diff --git a/DataBase/版本日志/SGGLDB_V2022-10-21.sql b/DataBase/版本日志/SGGLDB_V2022-10-21.sql
new file mode 100644
index 00000000..1e79fca5
--- /dev/null
+++ b/DataBase/版本日志/SGGLDB_V2022-10-21.sql
@@ -0,0 +1,63 @@
+
+ALTER VIEW [dbo].[View_HJGL_Pipeline]
+AS
+/*************ͼ*****************/
+SELECT pipeline.PipelineId,
+pipeline.ProjectId,
+pipeline.UnitId,
+pipeline.UnitWorkId,
+pipeline.PipelineCode,
+pipeline.SingleName,
+pipeline.SingleNumber,
+pipeline.PipingClassId,
+pipeline.MediumId,
+pipingClass.PipingClassCode,
+pipeline.DetectionRateId,
+rate.DetectionRateCode,
+pipeline.DetectionType,
+pipeline.TestPressure,
+pipeline.TestMedium,
+pipeline.PressurePipingClassId,
+pc.PressurePipingClassCode,
+pipeline.PipeLenth,
+pipeline.DesignPress,
+pipeline.DesignTemperature,
+pipeline.Remark,
+pipeline.LeakPressure,
+pipeline.LeakMedium,
+pipeline.VacuumPressure,
+pipeline.PCMedium ,
+pipeline.PCtype,
+pipeline.MaterialId,
+pipeline.PipeArea,
+mat.MaterialCode,
+lea.MediumName AS LeakMediumName,
+pur.PurgeMethodName AS PCMediumName,
+CAST((SELECT SUM(ISNULL(Size,0)) FROM dbo.HJGL_WeldJoint WHERE PipelineId=pipeline.PipelineId) AS DECIMAL(8,3)) AS TotalDin,
+CAST((SELECT ISNULL(SUM(ISNULL(jot.Size,0)),0) FROM dbo.HJGL_WeldJoint jot WHERE jot.PipelineId=pipeline.PipelineId AND jot.WeldingDailyId IS NOT NULL) AS DECIMAL(8,3)) AS FinishSize,
+(SELECT COUNT(WeldJointId) FROM dbo.HJGL_WeldJoint WHERE PipelineId=pipeline.PipelineId and IsTwoJoint is null) AS JointCount,
+unit.UnitName,
+workArea.UnitWorkCode,
+medium.MediumCode,
+medium.MediumName AS MediumName,
+testMedium.MediumCode AS TestMediumCode,
+pipeline.ActEndDate AS FinishedDate,
+pipeline.IsFinished
+FROM dbo.HJGL_Pipeline AS pipeline
+LEFT JOIN Base_PipingClass AS pipingClass ON pipingClass.PipingClassId=pipeline.PipingClassId
+LEFT JOIN dbo.Base_Unit AS unit ON unit.UnitId=pipeline.UnitId
+LEFT JOIN WBS_UnitWork AS workArea ON workArea.UnitWorkId=pipeline.UnitWorkId
+LEFT JOIN Base_Medium AS medium ON medium.MediumId=pipeline.MediumId
+LEFT JOIN dbo.Base_TestMedium AS testMedium ON testMedium.TestMediumId=pipeline.TestMedium
+LEFT JOIN dbo.Base_DetectionRate rate ON rate.DetectionRateId = pipeline.DetectionRateId
+LEFT JOIN dbo.Base_PressurePipingClass pc ON pc.PressurePipingClassId = pipeline.PressurePipingClassId
+LEFT JOIN dbo.Base_TestMedium AS lea ON lea.TestMediumId=pipeline.LeakMedium
+LEFT JOIN dbo.Base_PurgeMethod AS pur ON pur.PurgeMethodId=pipeline.PCMedium
+LEFT JOIN dbo.Base_Material AS mat ON mat.MaterialId=pipeline.MaterialId
+
+
+
+
+GO
+
+
diff --git a/SGGL/BLL/Person/Person_PersonsService.cs b/SGGL/BLL/Person/Person_PersonsService.cs
index 77b6ff53..70f3a8f5 100644
--- a/SGGL/BLL/Person/Person_PersonsService.cs
+++ b/SGGL/BLL/Person/Person_PersonsService.cs
@@ -545,7 +545,7 @@ namespace BLL
{
var getPersons = from x in db.Person_Persons
where x.PersonId != Const.hfnbdId && x.PersonId != Const.sedinId
- && (x.IsPost == true || !x.IsPost.HasValue) && x.RoleIds != null
+ && (x.IsPost == true || !x.IsPost.HasValue) && x.Account != null
select x;
if (listUnitIds.Count() > 0)
{
diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs
index b7adc101..999ba33d 100644
--- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs
@@ -254,7 +254,7 @@ namespace FineUIPro.Web.HJGL.InfoQuery
select x).ToList();
foreach (var item in pipeline)
{
- var jotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == null select x).Count();
+ var jotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId /*&& x.IsTwoJoint == null*/ select x).Count();
//var weldJotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == null && x.WeldingDailyId != null select x).Count();
TreeNode newNode = new TreeNode();
//if (jotCount > weldJotCount)
diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs
index 2f7767f8..01a61994 100644
--- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs
@@ -127,17 +127,45 @@ namespace FineUIPro.Web.HJGL.WeldingManage
select x).ToList();
foreach (var item in pipeline)
{
+ //var jotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == true select x).Count();
+ //var weldJotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == true && x.WeldingDailyId != null select x).Count();
+ //TreeNode newNode = new TreeNode();
+ //if (jotCount > weldJotCount)
+ //{
+ // newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+ //}
+ //else
+ //{
+ // newNode.Text = item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】";
+ //}
+
var jotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == true select x).Count();
- var weldJotCount = (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == true && x.WeldingDailyId != null select x).Count();
+ var AuditCount= (from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == item.PipelineId && x.IsTwoJoint == true && x.AuditDate !=null select x).Count();
TreeNode newNode = new TreeNode();
- if (jotCount > weldJotCount)
+
+ if (jotCount== AuditCount) //全部审核
{
- newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+ newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+
}
- else
+ else if ( AuditCount==0) //全部未审核
{
- newNode.Text = item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】";
+ newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+
}
+ else //部分审核
+ {
+ newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+
+ }
+ //if (jotCount > weldJotCount)
+ //{
+ // newNode.Text = "" + item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】" + "";
+ //}
+ //else
+ //{
+ // newNode.Text = item.PipelineCode + "【" + jotCount.ToString() + " " + "焊口" + "】";
+ //}
newNode.ToolTip = "管线号【焊口数】";
newNode.NodeID = item.PipelineId;
newNode.EnableClickEvent = true;
diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs
index 28536a1b..b902bc64 100644
--- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/PipelineListPDMSIn.aspx.cs
@@ -919,7 +919,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage
weldJoint.WeldTypeId = PipelineList[i].WeldTypeId;
weldJoint.DetectionTypeId = PipelineList[i].DetectionTypeId;
weldJoint.JointAttribute = PipelineList[i].JointAttribute;
-
+ weldJoint.ProjectId= this.CurrUser.LoginProjectId;
var isExistJot = Funs.DB.HJGL_WeldJoint.FirstOrDefault(x => x.PipelineId == pipeLineId && x.WeldJointCode == PipelineList[i].WeldJointCode);
if (isExistJot != null) // 更新焊口
{