Files
SGGL_SHJ/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs
T
lpf 8efe030f47 refactor: 清理旧模块资源并整理人员服务目录
为收敛当前分支代码范围并统一人员服务目录,移除历史模块与静态资源,减少无效代码和目录分散带来的维护成本。
2026-09-19 13:45:38 +08:00

83 lines
2.3 KiB
C#

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;
///质量验收问题整改率
this.lbSpotCheckRate.Text = CQMSDataDWService.getSpotCheckRate(this.ProjectId);
///控制点完成率
this.lbSpotCheckDataRate.Text = CQMSDataDWService.getSpotCheckDataRate(this.ProjectId);
//// 质量检查问题整改率
this.lbCheckControlStates.Text = CQMSDataDWService.getCheckControlStates(this.ProjectId);
///焊接一次合格率
this.lbFirstPassRate.Text = CQMSDataDWService.getFirstPassRate(this.ProjectId);
}
if (item == "LW")
{
this.gpLW.Hidden = false;
}
}
}
}
}
}