2023-11-21
This commit is contained in:
parent
416366935c
commit
9c2a562d94
Binary file not shown.
|
@ -217,7 +217,7 @@ html::-webkit-scrollbar{
|
|||
|
||||
.swiper {
|
||||
width: 100%;
|
||||
height: 80%;
|
||||
height: 96%;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
.swiper-slide>img{
|
||||
|
|
|
@ -7,14 +7,40 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<title>质量管理</title>
|
||||
<script src="lib/flex.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="css/base.css"/>
|
||||
<link rel="stylesheet" href="css/quality.css"/>
|
||||
<link rel="stylesheet" href="css/swiper-bundle.min.css" />
|
||||
<link rel="stylesheet" href="../res/assets/css/xfk.css"/>
|
||||
|
||||
<script src="lib/jquery.js"></script>
|
||||
<style>
|
||||
.swiper-box {
|
||||
height: calc(100% - 3.7rem);
|
||||
width: 100%;
|
||||
padding-top:.75rem;
|
||||
/* padding-top: .375rem; */
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.img-select {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
height: .5rem;
|
||||
width: 50%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<div class="y_body y_row">
|
||||
<body style="height:11.8rem;background-color:#040031;">
|
||||
<form id="form1" runat="server" style="height:100%;">
|
||||
<f:PageManager ID="PageManager1" runat="server"></f:PageManager>
|
||||
<div class="y_body y_row" style="height:100%;">
|
||||
<div class="site y_column">
|
||||
<div class="y_box js-hover" data-type="ManagerData">
|
||||
<div class="y_box_label y_image_default">质量管理人员数据</div>
|
||||
|
@ -88,12 +114,14 @@
|
|||
<div class="site y_column">
|
||||
|
||||
<div class="swiper-box">
|
||||
<div class="img-select">
|
||||
<f:DropDownList runat="server" Width="300px" ID="drpProject" OnSelectedIndexChanged="drpProject_SelectedIndexChanged"
|
||||
AutoPostBack="true" EnableEdit="true" CssClass="" >
|
||||
</f:DropDownList>
|
||||
</div>
|
||||
<div class="swiper">
|
||||
<div class="swiper-wrapper">
|
||||
<div class="swiper-slide"><img src="imags/16.png"/></div>
|
||||
<div class="swiper-slide"><img src="imags/16.png"/></div>
|
||||
<div class="swiper-slide"><img src="imags/16.png"/></div>
|
||||
<div class="swiper-slide"><img src="imags/16.png"/></div>
|
||||
<div class="swiper-wrapper" id="swiper-wrapper">
|
||||
<%=divProjectImg %>
|
||||
</div>
|
||||
<!-- 如果需要分页器 -->
|
||||
<div class="swiper-pagination"></div>
|
||||
|
@ -209,36 +237,40 @@
|
|||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<script src="lib/echarts.min.js"></script>
|
||||
<script src="lib/jquery.js"></script>
|
||||
|
||||
<script src="lib/echarts.min.js"></script>
|
||||
<script src="lib/swiper-bundle.min.js"></script>
|
||||
<script>
|
||||
// 轮播
|
||||
var mySwiper = new Swiper('.swiper', {
|
||||
direction: 'horizontal', // 垂直切换选项
|
||||
loop: true, // 循环模式选项
|
||||
autoplay: true,
|
||||
autoplay: {
|
||||
delay: 8000,
|
||||
stopOnLastSlide: false,
|
||||
disableOnInteraction: true,
|
||||
},
|
||||
// 如果需要分页器
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
function createSwiper() {
|
||||
var mySwiper = null
|
||||
// 轮播
|
||||
mySwiper = new Swiper('.swiper', {
|
||||
direction: 'horizontal', // 垂直切换选项
|
||||
loop: true, // 循环模式选项
|
||||
autoplay: true,
|
||||
autoplay: {
|
||||
delay: 8000,
|
||||
stopOnLastSlide: false,
|
||||
disableOnInteraction: true,
|
||||
},
|
||||
// 如果需要分页器
|
||||
pagination: {
|
||||
el: '.swiper-pagination',
|
||||
},
|
||||
|
||||
// 如果需要前进后退按钮
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
// 如果需要前进后退按钮
|
||||
navigation: {
|
||||
nextEl: '.swiper-button-next',
|
||||
prevEl: '.swiper-button-prev',
|
||||
},
|
||||
|
||||
// 如果需要滚动条
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
},
|
||||
})
|
||||
// 如果需要滚动条
|
||||
scrollbar: {
|
||||
el: '.swiper-scrollbar',
|
||||
},
|
||||
})
|
||||
}
|
||||
createSwiper()
|
||||
|
||||
// 质量问题治理数据
|
||||
zlmap()
|
||||
|
@ -512,81 +544,8 @@
|
|||
|
||||
}
|
||||
|
||||
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 == 'QualityTrainingData') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityTrainingData.aspx') //质量培训数据
|
||||
window.open("../DataShow/QualityTraining.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'MeasuringInstrumentsData') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/MeasuringInstrumentsData.aspx') //计量器具数据
|
||||
window.open("../DataShowLocal/QualityInstruments.aspx")
|
||||
|
||||
|
||||
title = '计量器具数据'
|
||||
}
|
||||
else if (type == 'ManagerData') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据
|
||||
window.open("../DataShow/QualityPerson.aspx")
|
||||
|
||||
title = '管理人员数据'
|
||||
}
|
||||
else if (type == 'QualityProblem') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
||||
window.open("../DataShow/QualityProblem.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'QualityInspection') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
||||
window.open("../DataShowLocal/InspectionManagementStatisc.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'QualityControlPoint') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityControlPoint.aspx') //质量控制点数据
|
||||
window.open("../DataShow/QualityControlPoint.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'QualityAcceptance') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityAcceptance.aspx') //质量验收数据
|
||||
window.open("../DataShow/QualityAcceptance.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'ProjectDivision') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/ProjectDivision.aspx') //工程划分数据
|
||||
window.open("../DataShow/ProjectDivision.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'HjData') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/HjData.aspx') //焊接数据
|
||||
window.open("../DataShow/HJGLWelding.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'DefectAnalysis') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/DefectAnalysis.aspx') //缺陷分析
|
||||
window.open("../DataShow/HJGLDefect.aspx")
|
||||
|
||||
}
|
||||
else if (type == 'NCRData') {
|
||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/DefectAnalysis.aspx') //缺陷分析
|
||||
window.open("../DataShowLocal/NCRStatisc.aspx")
|
||||
|
||||
}
|
||||
else {
|
||||
// $('iframe').attr('src', '../SysManage/Unit.aspx')
|
||||
//window.open("../DataShow/HJGLDefect.aspx")
|
||||
|
||||
console.log("通用")
|
||||
}
|
||||
}
|
||||
initClick();
|
||||
function initClick() {
|
||||
// 设置iframe高度
|
||||
|
|
|
@ -3,6 +3,7 @@ using FineUIPro.Web.BaseInfo;
|
|||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices.ComTypes;
|
||||
using System.Web;
|
||||
|
@ -13,6 +14,7 @@ namespace FineUIPro.Web.common
|
|||
{
|
||||
public partial class main_new1 : PageBase
|
||||
{
|
||||
protected string divProjectImg;
|
||||
/// <summary>
|
||||
/// 页面加载
|
||||
/// </summary>
|
||||
|
@ -21,7 +23,13 @@ namespace FineUIPro.Web.common
|
|||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
{
|
||||
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false);
|
||||
if (this.drpProject.Items.Count > 0)
|
||||
{
|
||||
this.drpProject.SelectedIndex = 0;
|
||||
}
|
||||
divProjectImg = "<div class=\"swiper-slide\"><img src=\"./imags/16.png\"></div>";
|
||||
//质量问题治理数据
|
||||
getProblemNums();
|
||||
|
||||
|
@ -483,7 +491,62 @@ namespace FineUIPro.Web.common
|
|||
|
||||
}
|
||||
#endregion
|
||||
private string GetFileType(string fileName)
|
||||
{
|
||||
string fileType = String.Empty;
|
||||
int lastDotIndex = fileName.LastIndexOf(".");
|
||||
if (lastDotIndex >= 0)
|
||||
{
|
||||
fileType = fileName.Substring(lastDotIndex + 1).ToLower();
|
||||
}
|
||||
|
||||
return fileType;
|
||||
}
|
||||
|
||||
protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
var project = ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue);
|
||||
var allowExtensions = new List<string>
|
||||
{
|
||||
|
||||
"jpg", "jpeg", "png", "bmp", "gif", // 图片文件类型
|
||||
|
||||
};
|
||||
var getImag = Funs.DB.AttachFile.FirstOrDefault(x => x.ToKeyId == project.ProjectId);
|
||||
if (getImag != null && !string.IsNullOrEmpty(getImag.AttachUrl))
|
||||
{
|
||||
string url = getImag.AttachUrl.Replace('\\', '/');
|
||||
var UrlList = Funs.GetStrListByStr(url, ',');
|
||||
bool isHiddDefaultImg = false;
|
||||
foreach (var item in UrlList)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item))
|
||||
{
|
||||
string atturl = Funs.RootPath + item.Replace(';', ' ').Trim();
|
||||
string fileType = GetFileType(atturl);
|
||||
|
||||
if (File.Exists(atturl) && allowExtensions.Contains(fileType))
|
||||
{
|
||||
isHiddDefaultImg = true;
|
||||
divProjectImg += string.Format(" <div class=\"swiper-slide\"><img src=\"{0}\"></div>",
|
||||
atturl.Replace(Funs.RootPath, "/"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
divProjectImg =
|
||||
divProjectImg.Replace("<div class=\"swiper-slide\"><img src=\"./imags/16.png\"></div>", "");
|
||||
}
|
||||
if (string.IsNullOrEmpty(divProjectImg))
|
||||
{
|
||||
divProjectImg = "<div class=\"swiper-slide\"><img src=\"./imags/16.png\"></div>";
|
||||
}
|
||||
string jsCode = "var swiperWrapper = document.getElementById('swiper-wrapper');";
|
||||
jsCode += "swiperWrapper.innerHTML = '" + divProjectImg + "';";
|
||||
string script2 = " createSwiper();";
|
||||
PageContext.RegisterStartupScript(jsCode);
|
||||
PageContext.RegisterStartupScript(script2);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -23,6 +23,15 @@ namespace FineUIPro.Web.common
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// spanQualityChartAnalysis 控件。
|
||||
/// </summary>
|
||||
|
@ -31,5 +40,14 @@ namespace FineUIPro.Web.common
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl spanQualityChartAnalysis;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue