Merge branch 'master' of http://47.104.102.122:3000/xiaju/SGGL_JT
This commit is contained in:
@@ -43,7 +43,7 @@ namespace FineUIPro.Web.DataShow
|
||||
BindGrid();
|
||||
|
||||
//合计
|
||||
OutputSummaryData();
|
||||
// OutputSummaryData();
|
||||
this.Panel1.Title = "工程划分数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.CommonService.GetThisUnitId()) + ")";
|
||||
}
|
||||
}
|
||||
@@ -68,11 +68,11 @@ namespace FineUIPro.Web.DataShow
|
||||
p.ProjectId,
|
||||
p.ProjectCode,
|
||||
p.ProjectName,
|
||||
Count1 = db.Project_Installation.Count(a => a.ProjectId == p.ProjectId && a.SuperInstallationId == "0"),
|
||||
Count2 = db.WBS_UnitWork.Count(b => b.ProjectId == p.ProjectId),
|
||||
Count3 = db.WBS_DivisionProject.Count(c => c.ProjectId == p.ProjectId && c.SubItemType == "1"),
|
||||
Count4 = db.WBS_DivisionProject.Count(d => d.ProjectId == p.ProjectId && d.SubItemType == "3"),
|
||||
Count5 = db.WBS_BreakdownProject.Count(e => e.ProjectId == p.ProjectId)
|
||||
count1 = db.Project_Installation.Count(a => a.ProjectId == p.ProjectId && a.SuperInstallationId == "0"),
|
||||
count2 = db.WBS_UnitWork.Count(b => b.ProjectId == p.ProjectId),
|
||||
count3 = db.WBS_DivisionProject.Count(c => c.ProjectId == p.ProjectId && c.SubItemType == "1" && c.IsSelected == true),
|
||||
count4 = db.WBS_DivisionProject.Count(d => d.ProjectId == p.ProjectId && d.SubItemType == "3" && d.IsSelected == true),
|
||||
count5 = db.WBS_BreakdownProject.Count(e => e.ProjectId == p.ProjectId)
|
||||
}).ToList();
|
||||
|
||||
if (!string.IsNullOrEmpty(this.ucTree.SelectedNodeID))
|
||||
@@ -98,9 +98,18 @@ namespace FineUIPro.Web.DataShow
|
||||
//{
|
||||
// strSql += " AND h.RegisterDate <=@EndTime";
|
||||
// listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
|
||||
//}Grid1.RecordCount =model.Count;
|
||||
//}
|
||||
Grid1.RecordCount = model.Count;
|
||||
Grid1.DataSource = model.OrderBy(x => x.ProjectId);
|
||||
Grid1.DataBind();
|
||||
JObject summary = new JObject();
|
||||
summary.Add("ProjectName", "合计:");
|
||||
summary.Add("count1", model.Sum(x => x.count1));
|
||||
summary.Add("count2", model.Sum(x => x.count2));
|
||||
summary.Add("count3", model.Sum(x => x.count3));
|
||||
summary.Add("count4", model.Sum(x => x.count4));
|
||||
summary.Add("count5", model.Sum(x => x.count5));
|
||||
Grid1.SummaryData = summary;
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -115,9 +115,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
};
|
||||
if (personLists.Count() > 0)
|
||||
{
|
||||
var personIn = personLists.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true
|
||||
&& x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now)).ToList();
|
||||
rootNode.ToolTip = "当前项目人员总数:" + personLists.Count() + ";在场人员数:" + personIn.Count() + ";离场人员数:" + (personLists.Count() - personIn.Count());
|
||||
var personOut = personLists.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsedType == "0").ToList();
|
||||
rootNode.ToolTip = "当前项目人员总数:" + personLists.Count() + ";在场人员数:" + (personLists.Count() - personOut.Count()) + ";离场人员数:" + personOut.Count();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -171,9 +170,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
|
||||
if (personUnitLists.Count() > 0)
|
||||
{
|
||||
var personIn = personUnitLists.Where(x => x.InTime <= System.DateTime.Now && x.IsUsed == true
|
||||
&& (!x.OutTime.HasValue || x.OutTime >= System.DateTime.Now));
|
||||
newNode.ToolTip = q.UnitName + "人员总数:" + personUnitLists.Count() + ";在场人员数:" + personIn.Count() + ";离场人员数:" + (personUnitLists.Count() - personIn.Count());
|
||||
var personOut = personUnitLists.Where(x => x.IsUsedType == "0");
|
||||
newNode.ToolTip = q.UnitName + "人员总数:" + personUnitLists.Count() + ";在场人员数:" + (personUnitLists.Count() - personOut.Count()) + ";离场人员数:" + personOut.Count();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -891,6 +889,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
initTemplatePath = "File\\Word\\Person\\安全教育培训打印整套(班组管理员).doc";
|
||||
}
|
||||
else if (person.WorkPostName.Contains("起重机司机"))
|
||||
{
|
||||
initTemplatePath = "File\\Word\\Person\\安全教育培训打印整套(起重机司机).doc";
|
||||
}
|
||||
else if (person.WorkPostName.Contains("安全员"))
|
||||
{
|
||||
initTemplatePath = "File\\Word\\Person\\安全教育培训打印整套(安全员).doc";
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("当前岗位类型不可导出!", MessageBoxIcon.Warning);
|
||||
@@ -952,6 +958,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
}).FirstOrDefault();
|
||||
|
||||
string date1 = "";
|
||||
string date11 = "";
|
||||
string sign = "";
|
||||
string sign1 = "";
|
||||
Model.AttachFile attachFile = null;
|
||||
@@ -1019,10 +1026,25 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
}
|
||||
|
||||
// 构建格式化的字符串
|
||||
date1 = dateTime1.HasValue
|
||||
? $" {dateTime1.Value.Year} 年 {dateTime1.Value.Month:D2} 月 {dateTime1.Value.Day:D2} 日"
|
||||
: "";
|
||||
// date1 = dateTime1.HasValue
|
||||
// ? $" {dateTime1.Value.Year} 年 {dateTime1.Value.Month:D2} 月 {dateTime1.Value.Day:D2} 日"
|
||||
// : "";
|
||||
date1 = person.InTime.HasValue ? string.Format("{0:yyyy-MM-dd}", person.InTime.Value.AddDays(2)) : "";
|
||||
|
||||
if (!string.IsNullOrEmpty(InTime))
|
||||
{
|
||||
DateTime dt = DateTime.Parse(InTime);
|
||||
dt = dt.AddDays(2);
|
||||
date1 = string.Format("{0:yyyy年MM月dd日}", dt);
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(date1))
|
||||
{
|
||||
DateTime dt = DateTime.Parse(date1);
|
||||
dt = dt.AddDays(2);
|
||||
date11 = string.Format("{0:yyyy年MM月dd日}", dt);
|
||||
}
|
||||
|
||||
string sign2 = AttachFileService.getFileUrl(person.PersonId + "_2");
|
||||
if (!string.IsNullOrEmpty(sign2))
|
||||
{
|
||||
@@ -1033,9 +1055,16 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
helper.AddImage(string.Empty, "sign2", 0, 0, 0, 0);
|
||||
}
|
||||
|
||||
string date2 = personData.SignTime.HasValue
|
||||
? $" {personData.SignTime.Value.Year} 年 {personData.SignTime.Value.Month:D2} 月 {personData.SignTime.Value.Day:D2} 日"
|
||||
: "";
|
||||
// string date2 = personData.SignTime.HasValue
|
||||
// ? $" {personData.SignTime.Value.Year} 年 {personData.SignTime.Value.Month:D2} 月 {personData.SignTime.Value.Day:D2} 日"
|
||||
// : "";
|
||||
string date2 = "";
|
||||
if (!string.IsNullOrEmpty(date11))
|
||||
{
|
||||
DateTime dt = DateTime.Parse(date11);
|
||||
dt = dt.AddDays(3);
|
||||
date2 = string.Format("{0:yyyy年MM月dd日}", dt);
|
||||
}
|
||||
|
||||
string IdentityCard = person.IdentityCard;
|
||||
string Telephone = person.Telephone;
|
||||
@@ -1261,14 +1290,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
fieldNames = new[]
|
||||
{
|
||||
"projectName", "name", "time", "sex", "InTime", "sign",
|
||||
"date1", "date2", "IdentityCard", "Telephone", "year", "month", "day",
|
||||
"date1","date11", "date2", "IdentityCard", "Telephone", "year", "month", "day",
|
||||
"unitName", "workPostName", "TestStartTime","IdCard", "TestScores", "SValue", "SValueCount", "MValue",
|
||||
"MValueCount", "JValue", "JValueCount"
|
||||
};
|
||||
|
||||
fieldValues = new object[]
|
||||
{
|
||||
projectName, name, time, sex, InTime, sign, date1, date2,
|
||||
projectName, name, time, sex, InTime, sign, date1,date11, date2,
|
||||
IdentityCard, Telephone, year, month, day,
|
||||
unitName, workPostName, TestStartTime,IdCard, TestScores, SValue, SValueCount, MValue, MValueCount,
|
||||
JValue, JValueCount
|
||||
@@ -1279,14 +1308,14 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
fieldNames = new[]
|
||||
{
|
||||
"projectName", "name", "time", "sex", "InTime", "sign",
|
||||
"date1", "date2", "IdentityCard", "Telephone", "year", "month", "day",
|
||||
"date1","date11", "date2", "IdentityCard", "Telephone", "year", "month", "day",
|
||||
"unitName", "workPostName", "TestStartTime", "testName", "IdCard", "TestScores", "SValue", "SValueCount",
|
||||
"MValue", "MValueCount", "JValue", "JValueCount"
|
||||
};
|
||||
|
||||
fieldValues = new object[]
|
||||
{
|
||||
projectName, name, time, sex, InTime, sign, date1, date2,
|
||||
projectName, name, time, sex, InTime, sign, date1,date11, date2,
|
||||
IdentityCard, Telephone, year, month, day,
|
||||
unitName, workPostName, TestStartTime, testName, IdCard, TestScores, SValue, SValueCount,
|
||||
MValue, MValueCount, JValue, JValueCount
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
<div class="block" style="height: 3.35rem;">
|
||||
<div class="block-tit"><span>组织机构人员</span></div>
|
||||
<div id="org" class="block-main">
|
||||
<div class="org-row">
|
||||
<div class="org-row js-hover" data-type="Branch">
|
||||
<div class="org-box">
|
||||
<div class="org-box-value">{{form.org.branchSum}}</div>
|
||||
<div class="org-box-label">分支结构人数</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
<div class="org-box-label">专职</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="org-row1">
|
||||
<div class="org-row1 js-hover" data-type="Branch">
|
||||
<i></i>
|
||||
<div class="row1-inner">
|
||||
<div class="row1-tit">分支机构</div>
|
||||
@@ -61,7 +61,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="org-row1">
|
||||
<div class="org-row1 js-hover" data-type="SafetyInjectionEngineer">
|
||||
<i></i>
|
||||
<div class="row1-inner">
|
||||
<div class="row1-tit">注安师</div>
|
||||
@@ -70,7 +70,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="org-row1">
|
||||
<div class="org-row1 js-hover" data-type="ProjectNum">
|
||||
<i></i>
|
||||
<div class="row1-inner">
|
||||
<div class="row1-tit">项目人数</div>
|
||||
@@ -81,7 +81,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="org-row1">
|
||||
<div class="org-row1 js-hover" data-type="Certificate">
|
||||
<i></i>
|
||||
<div class="row1-inner">
|
||||
<div class="row1-tit">三类人员</div>
|
||||
@@ -97,7 +97,7 @@
|
||||
<!-- 预警警报 -->
|
||||
<div id="Early" class="block" style="height: 1.725rem;margin-top: 0.25rem;">
|
||||
<div class="block-tit"><span>预警警报</span></div>
|
||||
<div class="block-main">
|
||||
<div class="block-main js-hover" data-type="yjjb" >
|
||||
<div class="early-box">
|
||||
<div class="early-box-laber">水电监测</div>
|
||||
<div class="early-box-value">{{form.warning.hydropower}}吨</div>
|
||||
@@ -123,7 +123,7 @@
|
||||
<div :class="[checkIdx == 0?'selected':'']" @click="onChangeCheck(0)"><span>安全检查</span></div>
|
||||
<div :class="[checkIdx == 1?'selected':'']" @click="onChangeCheck(1)"><span>质量检查</span></div>
|
||||
</div>
|
||||
<div class="block-main" id="hsseCheck" >
|
||||
<div class="block-main js-hover" data-type="yhpc" id="hsseCheck" >
|
||||
<div class="early-box">
|
||||
<div class="early-box-laber">问题</div>
|
||||
<div class="early-box-value">{{form.hsseCheck.generalNum}}<span>项</span></div>
|
||||
@@ -141,7 +141,7 @@
|
||||
<div class="early-box-value">{{form.hsseCheck.rectificationRate}}<span>%</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="block-main" id="cqmsCheck" style="display: none;">
|
||||
<div class="block-main js-hover" data-type="cqmsjc" id="cqmsCheck" style="display: none;">
|
||||
<div class="early-box">
|
||||
<div class="early-box-laber">问题</div>
|
||||
<div class="early-box-value">{{form.cqmsCheck.generalNum}}<span>项</span></div>
|
||||
@@ -163,7 +163,7 @@
|
||||
<!-- 风险分级管控 -->
|
||||
<div id="risk" class="block" style="height: 1.675rem;margin-top: 0.25rem;">
|
||||
<div class="block-tit"><span>风险分级管控</span></div>
|
||||
<div class="block-main">
|
||||
<div class="block-main js-hover" data-type="SafeRiskData">
|
||||
<div class="box">
|
||||
<i></i>
|
||||
<div class="box-row">
|
||||
@@ -198,7 +198,7 @@
|
||||
<div id="tools" class="block" style="height: 2.15rem;margin-top: 0.25rem;">
|
||||
<div class="block-tit"><span>费用、机具及会议</span></div>
|
||||
<div class="block-main">
|
||||
<div class="t-box">
|
||||
<div class="t-box js-hover" data-type="SafeCost">
|
||||
<div class="t-box-tit">
|
||||
<i class="iconfont icon-l10" style="color: #FFBF46;font-size: 20px;"></i>
|
||||
<p>安全费用</p>
|
||||
@@ -212,7 +212,7 @@
|
||||
<div class="r-row-value"><span>{{form.costEquipmentMeeting.costUtilization}}</span><span>亿元</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="t-box">
|
||||
<div class="t-box js-hover" data-type="ConstructionEquipment">
|
||||
<div class="t-box-tit">
|
||||
<i class="iconfont icon-l10" style="color: #00DEFF;font-size: 20px;"></i>
|
||||
<p>施工机具设备</p>
|
||||
@@ -226,7 +226,7 @@
|
||||
<div class="r-row-value"><span>{{form.costEquipmentMeeting.specialEquipment}}</span><span>个</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="t-box">
|
||||
<div class="t-box js-hover" data-type="SafetyMeetingData" >
|
||||
<div class="t-box-tit">
|
||||
<i class="iconfont icon-l10" style="color: #00DEFF;font-size: 20px;"></i>
|
||||
<p>会议</p>
|
||||
@@ -246,28 +246,28 @@
|
||||
<div class="center">
|
||||
<div class="map">
|
||||
<div class="project-box" style="margin-top: 0.25rem;">
|
||||
<div class="p-item">
|
||||
<div class="p-item js-hover" data-type="BeUnderConstructionNum" >
|
||||
<i></i>
|
||||
<div class="p-row">
|
||||
<h6>在建项目</h6>
|
||||
<p><span>{{form.projectInfo.projectsUnderConstruction}}</span><span>项</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-item">
|
||||
<div class="p-item js-hover" data-type="ShutdownNum">
|
||||
<i></i>
|
||||
<div class="p-row">
|
||||
<h6>停工项目</h6>
|
||||
<p><span>{{form.projectInfo.shutdownProject}}</span><span>项</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-item">
|
||||
<div class="p-item js-hover" data-type="JoinConstructionPersonNum">
|
||||
<i></i>
|
||||
<div class="p-row">
|
||||
<h6>参建人数</h6>
|
||||
<p><span>{{form.projectInfo.participateInNum}}</span><span>项</span></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-item">
|
||||
<div class="p-item js-hover" data-type="MajorProjectsUnderConstructionNum">
|
||||
<i></i>
|
||||
<div class="p-row">
|
||||
<h6>在施危大工程</h6>
|
||||
@@ -289,7 +289,7 @@
|
||||
<!-- 危大工程管控数据 -->
|
||||
<div id="wd" class="block4" style="height: 1.425rem;">
|
||||
<div class="block4-tit"><span>危大工程管控数据</span></div>
|
||||
<div class="block4-main">
|
||||
<div class="block4-main js-hover" data-type="wdgcsj">
|
||||
<div class="wd">
|
||||
<div class="wd-box">
|
||||
<i></i>
|
||||
@@ -334,7 +334,7 @@
|
||||
style="height: 1.85rem;display: grid;grid-template-columns: 5.5rem 4.25rem;gap: 0.25rem;">
|
||||
<div id="yjgl" class="block5" style="height: 100%;">
|
||||
<div class="block5-tit"><span>应急管理数据</span></div>
|
||||
<div class="block5-main">
|
||||
<div class="block5-main js-hover" data-type="yjglsj">
|
||||
<div class="yjgl">
|
||||
<div class="yjgl-row">
|
||||
<i></i>
|
||||
@@ -361,7 +361,7 @@
|
||||
</div>
|
||||
<div id="gchf" class="block6" style="height: 100%;">
|
||||
<div class="block6-tit"><span>工程划分</span></div>
|
||||
<div class="block6-main">
|
||||
<div class="block6-main js-hover" data-type="ProjectDivision">
|
||||
<div class="gchf">
|
||||
<div class="gc-box">
|
||||
<i></i>
|
||||
@@ -385,7 +385,7 @@
|
||||
<!-- 质量验收数据 -->
|
||||
<div id="zhl" class="block4" style="height: 2.725rem;">
|
||||
<div class="block4-tit"><span>质量验收数据</span></div>
|
||||
<div class="block4-main">
|
||||
<div class="block4-main js-hover" data-type="QualityAcceptance">
|
||||
<div class="zhl">
|
||||
<div id="map1"></div>
|
||||
<div id="map2"></div>
|
||||
@@ -398,7 +398,7 @@
|
||||
<div class="layout" style="height: 1.7rem;display: grid;grid-template-columns: 1fr 1fr;gap: 0.25rem;">
|
||||
<div class="block1" id="tzsb">
|
||||
<div class="block-tit1"><span>特种设备质保体系</span></div>
|
||||
<div class="block1-main">
|
||||
<div class="block1-main js-hover" data-type="tzsbzbtx">
|
||||
<div class="box">
|
||||
<i></i>
|
||||
<div class="row">
|
||||
@@ -410,7 +410,7 @@
|
||||
</div>
|
||||
<div class="block1" id="tzh">
|
||||
<div class="block-tit1"><span>图纸会审/设计交底</span></div>
|
||||
<div class="block1-main">
|
||||
<div class="block1-main js-hover" data-type="QualityPerson">
|
||||
<div class="box">
|
||||
<i></i>
|
||||
<div class="row">
|
||||
@@ -432,7 +432,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="block-main" id="hsseEduTrain">
|
||||
<div class="educa-box">
|
||||
<div class="educa-box js-hover" data-type="SafeTrainData">
|
||||
<div class="box1">
|
||||
<div class="box1-row">
|
||||
<div class="educa-row-inner" style="margin-right: 0.125rem;">
|
||||
@@ -481,7 +481,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="block-main" id="cqmsEduTrain" style="display: none;">
|
||||
<div class="educa-box">
|
||||
<div class="educa-box js-hover" data-type="QualityTraining">
|
||||
<div class="box1 a-box1">
|
||||
<h6>质量教育-培训人数</h6>
|
||||
<p><span>{{form.cqmsTrainPersonNum}}</span><span>人</span></p>
|
||||
@@ -492,7 +492,7 @@
|
||||
<!-- 报验记录 -->
|
||||
<div id="byjl" class="block" style="height: 2.5375rem;margin-top: 0.25rem;">
|
||||
<div class="block-tit"><span>报验记录</span></div>
|
||||
<div class="block-main">
|
||||
<div class="block-main js-hover" data-type="byjl" >
|
||||
<div class="byjl">
|
||||
<div class="byjl-item">
|
||||
<i></i>
|
||||
@@ -536,7 +536,7 @@
|
||||
style="height: 2.1875rem;margin-top: 0.25rem;display: grid;grid-template-columns: 3.75rem 2.25rem;gap: 0.25rem;">
|
||||
<div class="block2" id="sgfa">
|
||||
<div class="block2-tit"><span>施工方案</span></div>
|
||||
<div class="block2-main">
|
||||
<div class="block2-main js-hover" data-type="sgfa">
|
||||
<div class="sgfa">
|
||||
<div class="sgfa-item">
|
||||
<i></i>
|
||||
@@ -558,7 +558,7 @@
|
||||
</div>
|
||||
<div id="xkz" class="block3">
|
||||
<div class="block3-tit"><span>高风险作业许可</span></div>
|
||||
<div class="block3-main">
|
||||
<div class="block3-main js-hover" data-type="HighRiskWorkPermit" >
|
||||
<div class="xkz">
|
||||
<div class="xkz-box">
|
||||
<i></i>
|
||||
@@ -577,7 +577,7 @@
|
||||
<!-- 计量器具数据 -->
|
||||
<div id="jlqj" class="block" style="height: 1.975rem;margin-top: 0.25rem;">
|
||||
<div class="block-tit"><span>计量器具数据</span></div>
|
||||
<div class="block-main">
|
||||
<div class="block-main js-hover" data-type="QualityInstruments">
|
||||
<div class="jlqj">
|
||||
<div class="jlqj-box">
|
||||
<i></i>
|
||||
@@ -1336,4 +1336,168 @@
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
function initClick() {
|
||||
// 设置iframe高度
|
||||
$('.click-wrap .click-item iframe').height($('.click-wrap').height())
|
||||
$(".js-hover").click(function () {
|
||||
var htmlContent = GetClickHtml(this)
|
||||
// $('.click-wrap').show()
|
||||
// $(".hover-wrap").hide()
|
||||
})
|
||||
$('.click-close').click(function () {
|
||||
$('.click-wrap').hide()
|
||||
})
|
||||
}
|
||||
$(function () {
|
||||
initClick();
|
||||
});
|
||||
|
||||
function GetClickHtml(obj) {
|
||||
var $this = $(obj), type = $this.attr('data-type'), tabType = $this.attr('data-tabType') || '';
|
||||
var title = '';
|
||||
if (tabType != '') {
|
||||
tabType = $this.closest('.bb-item').find('.tab-wrap .tab .active').attr('data-type')
|
||||
if (tabType == null) {
|
||||
tabType = $this.closest('.str-bottom').find('.tab-wrap .tab .active').attr('data-type')
|
||||
}
|
||||
}
|
||||
console.log(type)
|
||||
if (type == 'HeadOfficeNum') {
|
||||
$('iframe').attr('src', '../DataShow/CompanyPerson.aspx') //企业总部
|
||||
window.open("../DataShow/CompanyPerson.aspx")
|
||||
}
|
||||
else if (type == 'Branch') {
|
||||
$('iframe').attr('src', '../DataShow/CompanyPerson.aspx') //分支机构
|
||||
window.open("../DataShow/CompanyPerson.aspx")
|
||||
}
|
||||
else if (type == 'ProjectNum') {
|
||||
$('iframe').attr('src', '../DataShow/ProjectPerson.aspx')//项目人数
|
||||
window.open("../DataShow/ProjectPerson.aspx")
|
||||
}
|
||||
else if (type == 'SafetyInjectionEngineer') {
|
||||
$('iframe').attr('src', '../DataShow/ProjectPerson.aspx')//注安师
|
||||
window.open("../DataShow/ProjectPerson.aspx")
|
||||
}
|
||||
else if (type == 'Certificate') {
|
||||
$('iframe').attr('src', '../DataShow/ProjectPerson.aspx') //三类人员
|
||||
window.open("../DataShow/ProjectPerson.aspx")
|
||||
}
|
||||
else if (type == 'yjjb') {
|
||||
// $('iframe').attr('src', '../DataShow/QualityProblem.aspx') //预警警报
|
||||
// window.open('../DataShow/QualityProblem.aspx')
|
||||
}
|
||||
else if (type == 'yhpc') {
|
||||
$('iframe').attr('src', '../DataShow/HiddenRectification.aspx') //安全检查
|
||||
window.open("../DataShow/HiddenRectification.aspx")
|
||||
}
|
||||
else if (type == 'cqmsjc') {
|
||||
$('iframe').attr('src', '../DataShow/QualityProblem.aspx') //质量检查
|
||||
window.open('../DataShow/QualityProblem.aspx')
|
||||
}
|
||||
else if (type == 'SafeRiskData') {
|
||||
$('iframe').attr('src', '../DataShow/SecurityRisk.aspx') //风险分级管控
|
||||
window.open("../DataShow/SecurityRisk.aspx")
|
||||
}
|
||||
else if (type == 'SafeCost') {
|
||||
$('iframe').attr('src', '../DataShow/SecurityCost.aspx') //安全费用
|
||||
window.open("../DataShow/SecurityCost.aspx")
|
||||
}
|
||||
else if (type == 'ConstructionEquipment') {
|
||||
$('iframe').attr('src', '../DataShow/ConstructionEquipment.aspx') //施工机具设备
|
||||
window.open("../DataShow/ConstructionEquipment.aspx")
|
||||
}
|
||||
else if (type == 'SafetyMeetingData') {
|
||||
$('iframe').attr('src', '../DataShow/Meeting.aspx') //安全会议数据
|
||||
window.open("../DataShow/Meeting.aspx")
|
||||
}
|
||||
else if (type == 'BeUnderConstructionNum') {
|
||||
$('iframe').attr('src', '../DataShow/Project.aspx') //在建项目
|
||||
window.open("../DataShow/Project.aspx")
|
||||
}
|
||||
else if (type == 'ShutdownNum') {
|
||||
$('iframe').attr('src', '../DataShow/Project.aspx') //停工项目
|
||||
window.open("../DataShow/Project.aspx")
|
||||
}
|
||||
else if (type == 'JoinConstructionPersonNum') {
|
||||
$('iframe').attr('src', '../DataShow/Project.aspx') //参建人数
|
||||
window.open("../DataShow/Project.aspx")
|
||||
}
|
||||
else if (type == 'MajorProjectsUnderConstructionNum') {
|
||||
$('iframe').attr('src', '../DataShow/Project.aspx') //在施危大工程
|
||||
window.open("../DataShow/Project.aspx")
|
||||
}
|
||||
else if (type == 'wdgcsj') {
|
||||
$('iframe').attr('src', '../DataShow/LargeEngineering.aspx')//危大工程管控数据
|
||||
window.open("../DataShow/LargeEngineering.aspx")
|
||||
}
|
||||
else if (type == 'yjglsj') {
|
||||
$('iframe').attr('src', '../DataShow/Emergency.aspx')//应急管理数据
|
||||
window.open("../DataShow/Emergency.aspx")
|
||||
}
|
||||
else if (type == 'ProjectDivision') {
|
||||
$('iframe').attr('src', '../DataShow/ProjectDivision.aspx') //工程划分
|
||||
window.open('../DataShow/ProjectDivision.aspx')
|
||||
}
|
||||
else if (type == 'QualityAcceptance') {
|
||||
$('iframe').attr('src', '../DataShow/QualityAcceptance.aspx') //质量验收数据
|
||||
window.open('../DataShow/QualityAcceptance.aspx')
|
||||
}
|
||||
else if (type == 'tzsbzbtx') {
|
||||
// $('iframe').attr('src', '../DataShow/QualityTraining.aspx') //特种设备质保体系
|
||||
// window.open('../DataShow/QualityTraining.aspx')
|
||||
}
|
||||
else if (type == 'QualityPerson') {
|
||||
$('iframe').attr('src', '../DataShow/QualityPerson.aspx') //图纸会审/设计交流
|
||||
window.open('../DataShow/QualityPerson.aspx')
|
||||
}
|
||||
else if (type == 'SafeTrainData') {
|
||||
$('iframe').attr('src', '../DataShow/EduTrain.aspx') //安全教育培训
|
||||
window.open("../DataShow/EduTrain.aspx")
|
||||
}
|
||||
else if (type == 'WorkingHourData') {
|
||||
$('iframe').attr('src', '../DataShow/WorkingHours.aspx') //工时数据
|
||||
window.open("../DataShow/WorkingHours.aspx")
|
||||
}
|
||||
else if (type == 'QualityTraining') {
|
||||
$('iframe').attr('src', '../DataShow/QualityTraining.aspx') //质量教育-培训人数
|
||||
window.open('../DataShow/QualityTraining.aspx')
|
||||
}
|
||||
else if (type == 'byjl') {
|
||||
// $('iframe').attr('src', '../DataShow/QualityInstruments.aspx') //报验记录
|
||||
// window.open('../DataShow/QualityInstruments.aspx')
|
||||
}
|
||||
else if (type == 'sgfa') {
|
||||
// $('iframe').attr('src', '../DataShow/QualityProblem.aspx') //施工方案
|
||||
// window.open('../DataShow/QualityProblem.aspx')
|
||||
}
|
||||
else if (type == 'HighRiskWorkPermit') {
|
||||
$('iframe').attr('src', '../DataShow/License.aspx') //高风险作业许可
|
||||
window.open("../DataShow/License.aspx")
|
||||
}
|
||||
else if (type == 'QualityInstruments') {
|
||||
$('iframe').attr('src', '../DataShow/QualityInstruments.aspx') //计量器具数据
|
||||
window.open('../DataShow/QualityInstruments.aspx')
|
||||
}
|
||||
|
||||
else if (type == 'EnvironmentalData') {
|
||||
$('iframe').attr('src', '../DataShow/Environmental.aspx') //环保数据
|
||||
window.open("../DataShow/Environmental.aspx")
|
||||
}
|
||||
else if (type == 'SafetySupervisionAndInspectionData') {
|
||||
$('iframe').attr('src', '../DataShow/Check.aspx') //安全监督检查
|
||||
window.open("../DataShow/Check.aspx")
|
||||
}
|
||||
else if (type == 'AccidentEventData') {
|
||||
$('iframe').attr('src', '../DataShow/Accident.aspx') //事故事件数据
|
||||
window.open("../DataShow/Accident.aspx")
|
||||
}
|
||||
else {
|
||||
// $('iframe').attr('src', '../SysManage/Unit.aspx')
|
||||
// window.open("../DataShow/Unit.aspx")
|
||||
console.log("通用")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user