Files
SGGL_SHJ/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs
T

83 lines
2.3 KiB
C#
Raw Normal View History

using BLL;
using System;
using System.Data;
using System.Linq;
namespace FineUIPro.Web.DigData
{
public partial class ProjectDataDW : PageBase
{
/// <summary>
/// 项目ID
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.ProjectId = this.CurrUser.LoginProjectId;
}
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ckType_SelectedIndexChanged(object sender, EventArgs e)
{
this.gpCQMS.Hidden = true;
this.gpLW.Hidden = true;
SetData();
}
/// <summary>
/// 数据展示
/// </summary>
private void SetData()
{
if (!string.IsNullOrEmpty(this.ProjectId))
{
foreach (var item in this.ckType.SelectedValueArray)
{
if (item == "CQMS")
{
this.gpCQMS.Hidden = false;
2023-09-18 13:47:38 +08:00
///质量验收问题整改率
this.lbSpotCheckRate.Text = CQMSDataDWService.getSpotCheckRate(this.ProjectId);
///控制点完成率
this.lbSpotCheckDataRate.Text = CQMSDataDWService.getSpotCheckDataRate(this.ProjectId);
2023-09-18 13:47:38 +08:00
//// 质量检查问题整改率
this.lbCheckControlStates.Text = CQMSDataDWService.getCheckControlStates(this.ProjectId);
2023-09-18 13:47:38 +08:00
///焊接一次合格率
this.lbFirstPassRate.Text = CQMSDataDWService.getFirstPassRate(this.ProjectId);
}
if (item == "LW")
{
this.gpLW.Hidden = false;
}
}
}
}
}
}