From 4dca42f14a9a600705c9a5d937c7b710424ddc7a Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 2 Jan 2024 17:12:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HJGL/PointTrust/PointBatch.aspx.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs index aa9b6ba6..61842a18 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.cs @@ -547,11 +547,14 @@ namespace FineUIPro.Web.HJGL.PointTrust string rateId = this.tvControlItem.SelectedNode.ParentNode.NodeID.Split('|')[0]; string detectionType = this.tvControlItem.SelectedNode.ParentNode.ParentNode.NodeID.Split('|')[0]; this.lbTotalJointNum.Label = "本单位工程检测比例为" + rateStr + "的焊口总数"; - int totalJointNum = (from x in db.HJGL_WeldJoint - join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId - where y.DetectionRateId == rateId && y.UnitWorkId == unitWorkId && y.DetectionType == detectionType - select x).Count(); - this.lbTotalJointNum.Text = totalJointNum.ToString(); + var totalJoint = from x in db.HJGL_WeldJoint + join y in db.HJGL_Pipeline on x.PipelineId equals y.PipelineId + where y.DetectionRateId == rateId && y.UnitWorkId == unitWorkId && y.DetectionType == detectionType + select x; + int totalJointNum = totalJoint.Count(); + int weldJointNum = totalJoint.Where(x => x.WeldingDailyId != null).Count(); + int notWeldJointNum = totalJoint.Where(x => x.WeldingDailyId == null).Count(); + this.lbTotalJointNum.Text = totalJointNum.ToString() + ", 已焊:" + weldJointNum.ToString() + ", 未焊:" + notWeldJointNum.ToString(); Model.Base_DetectionRate rate = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(rateId); if (rate != null) {