20230904 wbs维度数据仓库实现
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
<f:CheckItem Value="LW" Text="劳务数据" />
|
||||
</f:CheckBoxList>
|
||||
<f:TextBox runat="server" ID="hdWorkPackageId" Hidden="true"></f:TextBox>
|
||||
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server">
|
||||
</f:Button>
|
||||
<%-- <f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server">
|
||||
</f:Button>--%>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
@@ -53,15 +53,19 @@
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpHSSE" Title="安全数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" EnableTableStyle="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="120px">
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbExpertArgument" runat="server" Label="危大工程数量">
|
||||
</f:Label>
|
||||
<f:Label ID="lbAccident" runat="server" Label="安全事故数量">
|
||||
</f:Label>
|
||||
<f:Label ID="Label3" runat="server" Label="安全巡检问题总数">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
@@ -69,19 +73,33 @@
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpCQMS" Title="质量数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="150px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true" EnableTableStyle="true"
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbSpotCheck1" runat="server" Label="实体验收共检项数">
|
||||
<%-- <f:Label ID="lbSpotCheck1" runat="server" Label="实体验收共检项数">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheck2" runat="server" Label="实体验收共检一次合格数">
|
||||
</f:Label>--%>
|
||||
<f:Label ID="lbSpotCheckRate" runat="server" Label="实体验收一次合格率">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheck" runat="server" Label="实体验收一次合格率">
|
||||
<f:Label ID="lbSpotCheckDataRate" runat="server" Label="施工资料同步率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label2" runat="server" Label="质量问题数">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbSpotCheckOkRate" runat="server" Label="质量验收问题整改率" Hidden="true">
|
||||
</f:Label>
|
||||
<f:Label ID="lbControlItemRate" runat="server" Label="控制点完成率" Hidden="true">
|
||||
</f:Label>
|
||||
<f:Label ID="Label1" runat="server" Label="质量检查问题整改率" Hidden="true">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
@@ -89,18 +107,53 @@
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpJDGL" Title="进度数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbJDRate" runat="server" Label="项目进度完成百分比" Hidden="true">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpHTGL" Title="合同数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label4" runat="server" Label="合同签约价" Hidden="true">
|
||||
</f:Label>
|
||||
<f:Label ID="Label6" runat="server" Label="工程量清单库" Hidden="true">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpLW" Title="劳务数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" Label="" LabelWidth="180px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace FineUIPro.Web.DigData
|
||||
////权限按钮方法
|
||||
// this.ucTree.WorkPackageCode = this.WorkPackageCode;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("ShowProjectWBSPackage.aspx") + "return false;";
|
||||
//this.btnNew.OnClientClick = Window1.GetShowReference("ShowProjectWBSPackage.aspx") + "return false;";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,29 +105,113 @@ namespace FineUIPro.Web.DigData
|
||||
this.gpHSSE.Hidden = false;
|
||||
this.lbExpertArgument.Text = (from x in Funs.DB.Solution_LargerHazardListItem
|
||||
join y in Funs.DB.Solution_LargerHazardList on x.LargerHazardListId equals y.LargerHazardListId
|
||||
where y.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId) && y.States == Const.State_1
|
||||
where y.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId)
|
||||
&& y.States == Const.State_1
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
select x).Count().ToString();
|
||||
this.lbAccident.Text = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
where x.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId)
|
||||
&& x.States == Const.State_2
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
select x).Count().ToString();
|
||||
}
|
||||
if (item == "CQMS")
|
||||
{
|
||||
this.gpCQMS.Hidden = false;
|
||||
var getDetail = from x in Funs.DB.Check_SpotCheckDetail
|
||||
//// 实体验收 资料验收
|
||||
var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail
|
||||
join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode
|
||||
where y.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId) //&& y.States == Const.State_1
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
where y.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId)
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
&& y.State == "8"
|
||||
select x;
|
||||
int all = getDetail.Count();
|
||||
this.lbSpotCheck1.Text = all.ToString();
|
||||
int all = getSpotCheckDetail.Count();
|
||||
// this.lbSpotCheck1.Text = all.ToString();
|
||||
int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count(); //一次合格
|
||||
// this.lbSpotCheck2.Text= okCount.ToString();
|
||||
|
||||
int okCount = getDetail.Where(x => x.IsOK == true).Count();
|
||||
this.lbSpotCheck2.Text= okCount.ToString();
|
||||
this.lbSpotCheckRate.Text= all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString()+"%" : "0%";
|
||||
|
||||
this.lbSpotCheck.Text= all > 0 ? Math.Round(okCount * 1.0 / (all * 1.0)).ToString() : "0";
|
||||
/// 资料验收合格项目
|
||||
var getOKSpotCheckDetail = getSpotCheckDetail.Where(x => x.IsOK == true);
|
||||
int okYSCount = getOKSpotCheckDetail.Count(); //验收合格
|
||||
int okDateCount = getSpotCheckDetail.Where(x => x.IsDataOK == "1").Count(); //资料合格
|
||||
this.lbSpotCheckDataRate.Text = okYSCount > 0 ? Math.Round(okDateCount * 100.0 / (okYSCount * 1.0)).ToString() + "%" : "0%";
|
||||
|
||||
///实体质量问题整改率
|
||||
//int allNoOk = all - onesOKCount; ///问题数
|
||||
//int oKCount = getSpotCheckDetail.Where(x => x.IsOK == true).Count(); //合格数
|
||||
//int zgCount = oKCount - onesOKCount; ///整改数
|
||||
//this.lbSpotCheckOkRate.Text = allNoOk > 0 ? Math.Round(zgCount * 100.0 / (allNoOk * 1.0)).ToString() + "%" : "0%";
|
||||
|
||||
////控制点
|
||||
//var getControlItemAndCycle=from x in Funs.DB.WBS_ControlItemAndCycle
|
||||
// where x.ProjectId == this.ProjectId && x.WorkPackageId.Contains(workPackageId)
|
||||
// && (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
// && x.ControlPoint.Contains("A") && x.CheckNum >0
|
||||
// select x;
|
||||
/////A级控制点总量
|
||||
//int allControlItemCount = getControlItemAndCycle.Count();
|
||||
/////已完成A级控制点数
|
||||
//var getOKSpotCheckDetailCheckNum = from x in getOKSpotCheckDetail
|
||||
// group x by x.ControlItemAndCycleId
|
||||
// into g select new { g.First().ControlItemAndCycleId, num = g.Count() };
|
||||
|
||||
//var getOKControlItemAndCycle = from x in getControlItemAndCycle
|
||||
// join y in getOKSpotCheckDetailCheckNum on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
|
||||
// where x.CheckNum == y.num
|
||||
// select x;
|
||||
//int okControlItemCount= getOKControlItemAndCycle.Count();
|
||||
//this.lbControlItemRate.Text = allControlItemCount > 0 ? Math.Round(okControlItemCount * 100.0 / (allControlItemCount * 1.0)).ToString() + "%" : "0%";
|
||||
}
|
||||
if (item == "JDGL")
|
||||
{
|
||||
this.gpJDGL.Hidden = false;
|
||||
|
||||
//double totalSJCost = 0; ////累计实际费用
|
||||
//decimal totalPlanCost = 0; ////计划费用
|
||||
//var getWorkPackageDetail = Funs.DB.WBS_WorkPackageDetail.FirstOrDefault(x => x.WorkPackageId == workPackageId);
|
||||
//if (getWorkPackageDetail != null)
|
||||
//{
|
||||
// ///末级节点
|
||||
// var getMaxSJCost = Funs.DB.View_WBS_WorkPackageDetail.Where(x => x.WorkPackageId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault();
|
||||
// if (getMaxSJCost != null)
|
||||
// {
|
||||
// totalSJCost = getMaxSJCost.TotalThisValue ?? 0;
|
||||
// totalPlanCost = getMaxSJCost.PlanCost ?? 0;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// ///非末级节点
|
||||
// var getMaxSJCost = Funs.DB.View_WBS_WorkPackageParentDetail.Where(x =>x.ProjectId == this.ProjectId
|
||||
// && x.ParentId == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault();
|
||||
// if (getMaxSJCost != null)
|
||||
// {
|
||||
// totalSJCost = getMaxSJCost.TotalThisValue ?? 0;
|
||||
// totalPlanCost = getMaxSJCost.PlanCost ?? 0;
|
||||
// }
|
||||
//}
|
||||
////// 根 节点 建筑工程 安装工程
|
||||
//if (workPackageId == "1" || workPackageId == "2")
|
||||
//{
|
||||
// var getUnitWorkByType = from x in Funs.DB.WBS_UnitWork where x.ProjectId == this.ProjectId && x.ProjectType == workPackageId select x;
|
||||
// if (getUnitWorkByType.Count() > 0)
|
||||
// {
|
||||
// totalPlanCost = getUnitWorkByType.Sum(x => x.PlanCost ?? 0);
|
||||
// }
|
||||
//}
|
||||
|
||||
//var getUnitWork = Funs.DB.WBS_UnitWork.FirstOrDefault(x => x.ProjectId == this.ProjectId && x.UnitWorkId == workPackageId);
|
||||
//if (getUnitWork != null)
|
||||
//{
|
||||
// totalPlanCost= getUnitWork.PlanCost ?? 0;
|
||||
//}
|
||||
|
||||
/////项目进度完成百分比
|
||||
//decimal s = Convert.ToDecimal(totalSJCost);
|
||||
//this.lbJDRate.Text = totalPlanCost > 0 ? Math.Round(s / totalPlanCost).ToString() + "%" : "0%";
|
||||
|
||||
}
|
||||
if (item == "HTGL")
|
||||
{
|
||||
|
||||
+114
-15
@@ -104,15 +104,6 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdWorkPackageId;
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// Panel_CurrentApproval 控件。
|
||||
/// </summary>
|
||||
@@ -158,6 +149,24 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbExpertArgument;
|
||||
|
||||
/// <summary>
|
||||
/// lbAccident 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbAccident;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// gpCQMS 控件。
|
||||
/// </summary>
|
||||
@@ -177,31 +186,58 @@ namespace FineUIPro.Web.DigData
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck1 控件。
|
||||
/// lbSpotCheckRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck1;
|
||||
protected global::FineUIPro.Label lbSpotCheckRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck2 控件。
|
||||
/// lbSpotCheckDataRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck2;
|
||||
protected global::FineUIPro.Label lbSpotCheckDataRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck 控件。
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck;
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheckOkRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheckOkRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbControlItemRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbControlItemRate;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// gpJDGL 控件。
|
||||
@@ -212,6 +248,24 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpJDGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// lbJDRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbJDRate;
|
||||
|
||||
/// <summary>
|
||||
/// gpHTGL 控件。
|
||||
/// </summary>
|
||||
@@ -221,6 +275,33 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpHTGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// gpLW 控件。
|
||||
/// </summary>
|
||||
@@ -230,6 +311,24 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpLW;
|
||||
|
||||
/// <summary>
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -50,16 +50,20 @@
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpHSSE" Title="安全数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
<f:GroupPanel runat="server" ID="gpHSSE" Title="安全数据" Layout="VBox" Hidden="true"
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" EnableTableStyle="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="120px">
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbExpertArgument" runat="server" Label="危大工程数量">
|
||||
</f:Label>
|
||||
<f:Label ID="lbAccident" runat="server" Label="安全事故数量">
|
||||
</f:Label>
|
||||
<f:Label ID="Label3" runat="server" Label="安全巡检问题总数">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
@@ -67,18 +71,32 @@
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpCQMS" Title="质量数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="150px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true" EnableTableStyle="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="120px">
|
||||
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbSpotCheck1" runat="server" Label="实体验收共检项数">
|
||||
<%-- <f:Label ID="lbSpotCheck1" runat="server" Label="实体验收共检项数">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheck2" runat="server" Label="实体验收共检一次合格数">
|
||||
</f:Label>--%>
|
||||
<f:Label ID="lbSpotCheckRate" runat="server" Label="实体验收一次合格率">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheck" runat="server" Label="实体验收一次合格率">
|
||||
<f:Label ID="lbSpotCheckDataRate" runat="server" Label="施工资料同步率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label2" runat="server" Label="质量问题数">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbControlItemRate" runat="server" Label="控制点完成率">
|
||||
</f:Label>
|
||||
<f:Label ID="Label1" runat="server" Label="质量检查问题整改率">
|
||||
</f:Label>
|
||||
<f:Label ID="lbSpotCheckOkRate" runat="server" Label="质量验收问题整改率">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
@@ -87,18 +105,53 @@
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpJDGL" Title="进度数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form3" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="lbJDRate" runat="server" Label="项目进度完成百分比" Hidden="true">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpHTGL" Title="合同数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form4" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label4" runat="server" Label="合同签约价" Hidden="true">
|
||||
</f:Label>
|
||||
<f:Label ID="Label6" runat="server" Label="工程量清单库" Hidden="true">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
<f:GroupPanel runat="server" ID="gpLW" Title="劳务数据" Layout="VBox" Hidden="true"
|
||||
Height="300px" AutoScroll="true">
|
||||
Height="100px" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right" LabelWidth="180px">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="Label5" runat="server" Label="" LabelWidth="180px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
</f:GroupPanel>
|
||||
</Items>
|
||||
|
||||
@@ -87,28 +87,102 @@ namespace FineUIPro.Web.DigData
|
||||
this.lbExpertArgument.Text = (from x in Funs.DB.Solution_LargerHazardListItem
|
||||
join y in Funs.DB.Solution_LargerHazardList on x.LargerHazardListId equals y.LargerHazardListId
|
||||
where x.WorkPackageId.Contains(workPackageId) && y.States == Const.State_1
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
select x).Count().ToString();
|
||||
|
||||
this.lbAccident.Text = (from x in Funs.DB.Accident_AccidentPersonRecord
|
||||
where x.WorkPackageId.Contains(workPackageId)
|
||||
&& x.States == Const.State_2
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
select x).Count().ToString();
|
||||
}
|
||||
if (item == "CQMS")
|
||||
{
|
||||
this.gpCQMS.Hidden = false;
|
||||
var getDetail = from x in Funs.DB.Check_SpotCheckDetail
|
||||
//// 实体验收 资料验收
|
||||
var getSpotCheckDetail = from x in Funs.DB.Check_SpotCheckDetail
|
||||
join y in Funs.DB.Check_SpotCheck on x.SpotCheckCode equals y.SpotCheckCode
|
||||
where x.WorkPackageId.Contains(workPackageId) //&& y.States == Const.State_1
|
||||
where x.WorkPackageId.Contains(workPackageId) && y.State == "8"
|
||||
&& (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
select x;
|
||||
int all = getDetail.Count();
|
||||
this.lbSpotCheck1.Text = all.ToString();
|
||||
int all = getSpotCheckDetail.Count();
|
||||
// this.lbSpotCheck1.Text = all.ToString();
|
||||
int onesOKCount = getSpotCheckDetail.Where(x => x.IsOnesOK == true).Count();
|
||||
/// this.lbSpotCheck2.Text = okCount.ToString();
|
||||
this.lbSpotCheckRate.Text = all > 0 ? Math.Round(onesOKCount * 100.0 / (all * 1.0)).ToString() + "%" : "0%";
|
||||
|
||||
int okCount = getDetail.Where(x => x.IsOK == true).Count();
|
||||
this.lbSpotCheck2.Text = okCount.ToString();
|
||||
/// 资料验收合格项目
|
||||
var getOKSpotCheckDetail = getSpotCheckDetail.Where(x => x.IsOK == true);
|
||||
int okYSCount = getOKSpotCheckDetail.Count(); //验收合格
|
||||
int okDateCount = getSpotCheckDetail.Where(x => x.IsDataOK == "1").Count(); //资料合格
|
||||
this.lbSpotCheckDataRate.Text = okYSCount > 0 ? Math.Round(okDateCount * 100.0 / (okYSCount * 1.0)).ToString() + "%" : "0%";
|
||||
|
||||
this.lbSpotCheck.Text = all > 0 ? Math.Round(okCount * 1.0 / (all * 1.0)).ToString() : "0";
|
||||
/////实体质量问题整改率
|
||||
//int allNoOk = all - onesOKCount; ///问题数
|
||||
//int oKCount = getSpotCheckDetail.Where(x => x.IsOK == true).Count(); //合格数
|
||||
//int zgCount = oKCount - onesOKCount; ///整改数
|
||||
//this.lbSpotCheckOkRate.Text = allNoOk > 0 ? Math.Round(zgCount * 100.0 / (allNoOk * 1.0)).ToString() + "%" : "0%";
|
||||
|
||||
//////控制点
|
||||
//var getControlItemAndCycle = from x in Funs.DB.WBS_ControlItemAndCycle
|
||||
// where x.WorkPackageId.Contains(workPackageId)
|
||||
// && (controlItemAndCycleId == null || x.WorkPackageId.Contains(controlItemAndCycleId))
|
||||
// && x.ControlPoint.Contains("A") && x.CheckNum > 0
|
||||
// select x;
|
||||
/////A级控制点总量
|
||||
//int allControlItemCount = getControlItemAndCycle.Count();
|
||||
/////已完成A级控制点数
|
||||
//var getOKSpotCheckDetailCheckNum = from x in getOKSpotCheckDetail
|
||||
// group x by x.ControlItemAndCycleId
|
||||
// into g
|
||||
// select new { g.First().ControlItemAndCycleId, num = g.Count() };
|
||||
|
||||
//var getOKControlItemAndCycle = from x in getControlItemAndCycle
|
||||
// join y in getOKSpotCheckDetailCheckNum on x.ControlItemAndCycleId equals y.ControlItemAndCycleId
|
||||
// where x.CheckNum == y.num
|
||||
// select x;
|
||||
//int okControlItemCount = getOKControlItemAndCycle.Count();
|
||||
//this.lbControlItemRate.Text = allControlItemCount > 0 ? Math.Round(okControlItemCount * 100.0 / (allControlItemCount * 1.0)).ToString() + "%" : "0%";
|
||||
}
|
||||
if (item == "JDGL")
|
||||
{
|
||||
this.gpJDGL.Hidden = false;
|
||||
//double totalSJCost = 0; ////累计实际费用
|
||||
//decimal totalPlanCost = 0; ////计划费用
|
||||
//var getWorkPackageDetail = Funs.DB.View_WBS_WorkPackageDetail.FirstOrDefault(x => x.InitWorkPackageCode == workPackageId);
|
||||
//if (getWorkPackageDetail != null)
|
||||
//{
|
||||
// ///末级节点
|
||||
// var getMaxSJCost = Funs.DB.View_WBS_WorkPackageDetail.Where(x => x.InitWorkPackageCode == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault();
|
||||
// if (getMaxSJCost != null)
|
||||
// {
|
||||
// totalSJCost = getMaxSJCost.TotalThisValue ?? 0;
|
||||
// totalPlanCost = getMaxSJCost.PlanCost ?? 0;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// ///非末级节点
|
||||
// var getMaxSJCost = Funs.DB.View_WBS_WorkPackageParentDetail.Where(x => x.InitWorkPackageCode == workPackageId).OrderByDescending(x => x.Months).FirstOrDefault();
|
||||
// if (getMaxSJCost != null)
|
||||
// {
|
||||
// totalSJCost = getMaxSJCost.TotalThisValue ?? 0;
|
||||
// totalPlanCost = getMaxSJCost.PlanCost ?? 0;
|
||||
// }
|
||||
//}
|
||||
////// 根 节点 建筑工程 安装工程
|
||||
//if (workPackageId == "1" || workPackageId == "2")
|
||||
//{
|
||||
// var getUnitWorkByType = from x in Funs.DB.WBS_UnitWork where x.ProjectType == workPackageId select x;
|
||||
// if (getUnitWorkByType.Count() > 0)
|
||||
// {
|
||||
// totalPlanCost = getUnitWorkByType.Sum(x => x.PlanCost ?? 0);
|
||||
// }
|
||||
//}
|
||||
|
||||
/////项目进度完成百分比
|
||||
//decimal s = Convert.ToDecimal(totalSJCost);
|
||||
//this.lbJDRate.Text = totalPlanCost > 0 ? Math.Round(s / totalPlanCost).ToString() + "%" : "0%";
|
||||
}
|
||||
if (item == "HTGL")
|
||||
{
|
||||
|
||||
+114
-6
@@ -149,6 +149,24 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbExpertArgument;
|
||||
|
||||
/// <summary>
|
||||
/// lbAccident 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbAccident;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// gpCQMS 控件。
|
||||
/// </summary>
|
||||
@@ -168,31 +186,58 @@ namespace FineUIPro.Web.DigData
|
||||
protected global::FineUIPro.Form Form2;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck1 控件。
|
||||
/// lbSpotCheckRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck1;
|
||||
protected global::FineUIPro.Label lbSpotCheckRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck2 控件。
|
||||
/// lbSpotCheckDataRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck2;
|
||||
protected global::FineUIPro.Label lbSpotCheckDataRate;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheck 控件。
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheck;
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// lbControlItemRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbControlItemRate;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// lbSpotCheckOkRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbSpotCheckOkRate;
|
||||
|
||||
/// <summary>
|
||||
/// gpJDGL 控件。
|
||||
@@ -203,6 +248,24 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpJDGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form3;
|
||||
|
||||
/// <summary>
|
||||
/// lbJDRate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbJDRate;
|
||||
|
||||
/// <summary>
|
||||
/// gpHTGL 控件。
|
||||
/// </summary>
|
||||
@@ -212,6 +275,33 @@ namespace FineUIPro.Web.DigData
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpHTGL;
|
||||
|
||||
/// <summary>
|
||||
/// Form4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form4;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// gpLW 控件。
|
||||
/// </summary>
|
||||
@@ -220,5 +310,23 @@ namespace FineUIPro.Web.DigData
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.GroupPanel gpLW;
|
||||
|
||||
/// <summary>
|
||||
/// Form5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form Form5;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label5;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user