diff --git a/DataBase/版本日志/HJGLDB_DS_2026-07-23_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-07-23_bwj.sql
new file mode 100644
index 0000000..1882fb2
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-07-23_bwj.sql
@@ -0,0 +1,125 @@
+
+ALTER VIEW [dbo].[HJGL_View_JointInfo]
+AS
+/*¹ÜÏߺ¸¿ÚÐÅϢÊÓͼ*/
+SELECT
+ JointInfo.JOT_ID,
+ JointInfo.ProjectId,
+ JointInfo.PointType,
+ JointInfo.RT1_RepairFilm,
+ JointInfo.dreportid,
+ IsoInfo.BSU_ID,
+ JointInfo.STE_ID,
+ JOT_JointNo,
+ JOT_DailyReportNo, --Èձ¨¸æºÅ
+ (CASE WHEN JointInfo.Jot_WeldingDate IS NOT NULL THEN JointInfo.Jot_WeldingDate
+ ELSE WeldReportMain.JOT_WeldDate END) AS JOT_WeldDate, --º¸½ÓÈÕÆÚ
+ JointInfo.ISO_ID,
+ ISO_IsoNo, --¹ÜÏߺÅ
+ Unit.UnitCode,
+ Unit.UnitName,
+ Steel.STE_Code AS STE_Name1,--²ÄÖÊ1
+ Steel1.STE_Code AS STE_Name2,--²ÄÖÊ2
+ Welder.WED_Code AS WED_Code1, --¸ÇÃ溸¹¤´úºÅ
+ Welder.WED_Name AS WED_Name1, --¸ÇÃ溸¹¤Ãû³Æ
+ FloorWelder.WED_Code AS WED_Code2, --´òµ¸¹¤´úºÅ
+ FloorWelder.WED_Name AS WED_Name2, --´òµ¸¹¤Ãû³Æ
+ JointInfo.WLO_Code,
+ (CASE WHEN JointInfo.WLO_Code='F' THEN 'Ïֳ¡°²װ' ELSE 'ԤÖÆ' END) AS WLO_Name,--º¸½ÓÇøÓò
+ JOT_DoneDin,
+ IS_Compute,
+ com1.Com_Name AS Component1,--×é¼þ1ºÅ
+ com1.COM_Code AS COM_Code1,--×é¼þ1ºÅ
+ com2.COM_Name AS Component2,--×é¼þ2ºÅ
+ com2.COM_Code AS COM_Code2,--×é¼þ1ºÅ
+ m1.WeldName AS WeldMat,--º¸Ìõ
+ WeldMaterial.WeldName AS WeldSilk,--º¸˿
+ batchDetail.PointType AS JointStatus,---º¸¿Ú״̬
+ JOT_Dia,
+ JOT_Size,
+ JOT_Sch,
+ JOT_FactSch,
+ JOT_JointFlag,
+ JOT_TrustFlag,
+ ProessTypes,
+ JOT_JointDesc,
+ JointInfo.JOTY_ID,
+ JointType.JOTY_Name,--º¸·ìÀàÐÍ
+ JointType.JOTY_Code,--º¸·ìÀàÐÍ
+ JointInfo.WME_ID,
+ WeldMethod.WME_Name AS WME_Name,--º¸½ӷ½·¨
+ WeldMethod.WME_Code,--º¸½ӷ½·¨´úÂë
+ SlopeType.JST_Name, --Æ¿ÚÀàÐÍ
+ SlopeType.JST_Code, --Æ¿ÚÀàÐʹúÂë
+ IS_Proess,
+ (CASE WHEN IS_Proess=1 THEN 'ÊÇ' ELSE '·ñ' END) AS IS_ProessName,
+ JOT_PrepareTemp,
+ JOT_CellTemp,
+ JOT_LastTemp,
+ JOT_JointAttribute,
+ JOT_Location,
+ batch.BatchCode AS BatchCode,--Åú´κÅ
+ batchDetail.PointDate AS PointDate,--µã¿ÚÈÕÆÚ
+ NULL AS CH_TrustCode, NULL AS CH_TrustDate,
+ --NDTType.NDT_Name as NDT_Name,--̽ÉËÀàÐÍ
+ JointInfo.JOT_Remark,
+ JointInfo.RT_States,
+ JointInfo.UT_States,
+ JointInfo.MT_States,
+ JointInfo.PT_States,
+ JointInfo.PAUT_States,
+ (case when (select top 1 IsOK from HJGL_CH_HotProessResult hr where hr.JOT_ID=JointInfo.JOT_ID)=1 then 'ºϸñ'
+ else '' end) as HotProessResult,
+ Servicess.SER_Code,--½éÖʴúºÅ
+ --NDTRate.NDTR_Name as NDTR_Name, --̽É˱ÈÀý
+ --NDTRate.NDTR_Code, --̽É˱ÈÀý
+ isoInfo.ISO_TestPress,--ÊÔÑéѹÁ¦
+ isoInfo.ISO_DesignPress,--Éè¼ÆѹÁ¦
+ isoInfo.ISO_DesignTemperature,--Éè¼ÆÎ¶È
+ IsoClass.ISC_IsoCode,--¹ÜÏߵȼ¶
+ is_hj= CAST((CASE WHEN JointInfo.DReportID IS NULL THEN '0' ELSE '1' END ) AS BIT), --ÊǷÓ
+ if_dk=CAST((CASE WHEN batchDetail.NDT IS NULL THEN '0' ELSE '1' END) AS BIT), --ÊǷñµã¿Ú
+ JointInfo.InstallationId,
+ JointInfo.NDTR_ID,
+ JointInfo.IsSpecial,
+ JointInfo.IsSpecial AS IsSpecialName, --ÊǷñÌØÊâ
+ Installation.InstallationName,--װÖÃ
+ NDTRate.NDTR_Name,
+ JointInfo.Sort1,JointInfo.Sort2,JointInfo.Sort3,JointInfo.Sort4,JointInfo.Sort5
+ ,JointType.JOTY_Group,
+ JointInfo.JOT_Electricity,--º¸½ӵçÁ÷
+ JointInfo.JOT_Voltage, --º¸½ӵçѹ
+ JointInfo.WeldL, --·dz£º¸·ì
+ JointInfo.IsGold,--ÊǷñ»ƽð¿Ú
+ JointInfo.JOT_QualifiedLevel, --ºϸñµȼ¶
+ Steel.HardQuaStandard--Ӳ¶Ⱥϸñ±ê
+FROM HJGL_PW_JointInfo AS JointInfo
+LEFT JOIN HJGL_PW_IsoInfo AS IsoInfo ON IsoInfo.ISO_ID=JointInfo.ISO_ID
+LEFT JOIN HJGL_BO_WeldReportMain AS WeldReportMain ON WeldReportMain.DReportID=JointInfo.DReportID
+LEFT JOIN HJGL_BS_Steel AS Steel ON Steel.STE_ID=JointInfo.STE_ID
+LEFT JOIN HJGL_BS_Steel AS Steel1 ON Steel1.STE_ID=JointInfo.STE_ID2
+LEFT JOIN HJGL_BS_Welder AS Welder ON Welder.WED_ID= JointInfo.JOT_CellWelder
+LEFT JOIN HJGL_BS_Welder AS FloorWelder ON FloorWelder.WED_ID=JointInfo.JOT_FloorWelder
+--LEFT JOIN HJGL_BS_WeldLocation AS WeldLocation ON WeldLocation.WLO_Code =JointInfo.WLO_Code
+LEFT JOIN HJGL_BS_Component AS com1 ON com1.COM_ID=JointInfo.JOT_Component1
+LEFT JOIN HJGL_BS_Component AS com2 ON com2.COM_ID=JointInfo.JOT_Component2
+--LEFT JOIN HJGL_BS_WeldMaterial m1 ON m1.WMT_ID=JointInfo.JOT_WeldMat
+--LEFT JOIN HJGL_BS_WeldMaterial AS WeldMaterial ON WeldMaterial.WMT_ID=JointInfo.JOT_WeldSilk
+LEFT JOIN View_WeldInfoDropDownLists as m1 on m1.WeldId = JointInfo.JOT_WeldMat and m1.WeldTypeName like '%º¸Ìõ%'
+LEFT JOIN View_WeldInfoDropDownLists as WeldMaterial on WeldMaterial.WeldId = JointInfo.JOT_WeldSilk and WeldMaterial.WeldTypeName like '%º¸˿%'
+LEFT JOIN HJGL_BS_JointType AS JointType ON JointType.JOTY_ID=JointInfo.JOTY_ID
+LEFT JOIN HJGL_BS_WeldMethod AS WeldMethod ON WeldMethod .WME_ID=JointInfo.WME_ID
+LEFT JOIN HJGL_BS_SlopeType AS SlopeType ON SlopeType.JST_ID=JointInfo.JST_ID
+LEFT JOIN dbo.HJGL_BO_BatchDetail AS batchDetail ON batchDetail.JOT_ID = JointInfo.JOT_ID
+LEFT JOIN dbo.HJGL_BO_Batch AS batch ON batch.BatchId = batchDetail.BatchId
+LEFT JOIN Base_Unit AS Unit ON Unit.UnitId=IsoInfo.BSU_ID
+--left join HJGL_BS_NDTRate AS NDTRate on NDTRate.NDTR_ID=IsoInfo.NDTR_ID
+LEFT JOIN HJGL_BS_Service AS Servicess ON Servicess.SER_ID=IsoInfo.SER_ID
+LEFT JOIN HJGL_BS_IsoClass AS IsoClass ON IsoClass.ISC_ID=IsoInfo.ISC_ID
+LEFT JOIN Project_Installation AS Installation ON Installation.InstallationId =JointInfo.InstallationId
+LEFT JOIN HJGL_BS_NDTRate AS NDTRate ON NDTRate.NDTR_ID =JointInfo.NDTR_ID
+
+
+GO
+
+
diff --git a/DataBase/版本日志/HJGLDB_DS_2026-07-28_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2026-07-28_bwj.sql
new file mode 100644
index 0000000..20cc6a7
--- /dev/null
+++ b/DataBase/版本日志/HJGLDB_DS_2026-07-28_bwj.sql
@@ -0,0 +1,113 @@
+
+ALTER PROC [dbo].[HJGL_sp_rpt_welderStatistics]
+ @unitcode varchar(50) = NULL,
+ @WED_ID nvarchar(50) = NULL,
+ @projectId NVARCHAR(50) = NULL
+AS
+/*º¸¹¤º¸½Ӽì²âͳ¼Ʊí*/
+SELECT welder.ProjectWelderId,
+ welder.ProjectId,
+ project.ProjectCode,--ʩ¹¤ºÅ
+ wld.wed_code,-- º¸¹¤´úÂë
+ wld.wed_name,--º¸¹¤Ãû³Æ
+
+ ISNULL(totalJoint.totalJoint,0) AS totalJoint, --ÒѺ¸º¸·ìÊý
+ ISNULL(TrustJointNum.TrustJointNum,0) AS TrustJointNum, --ÒÑίÍк¸·ìÊý
+ CAST((CASE ISNULL(TrustJointNum.TrustJointNum,0) WHEN 0 THEN 0
+ ELSE 1.0 * ISNULL(TrustJointNum.TrustJointNum,0)/(1.0 * totalJoint.totalJoint) END) AS DECIMAL(19,3))
+ AS OneCheckRate , ---һ´μì²â±ÈÀý
+
+ ISNULL(FixedJoint.FixedJoint,0) AS FixedJoint, --ÒѺ¸¹̶¨¿ÚÊý
+ ISNULL(TrustFixedJoint.TrustFixedJoint,0) AS TrustFixedJoint, --ÒÑίÍй̶¨¿ÚÊý
+ CAST((CASE ISNULL(TrustFixedJoint.TrustFixedJoint,0) WHEN 0 THEN 0
+ ELSE 1.0 * ISNULL(TrustFixedJoint.TrustFixedJoint,0)/(1.0 * FixedJoint.FixedJoint) END) AS DECIMAL(19,3))
+ AS FixedJointCheckRate , ---¹̶¨¿ڼì²â±ÈÀý
+
+ ISNULL(ButtJoint.ButtJoint,0) AS ButtJoint, --ÒѺ¸¶ԽӺ¸·ìÊý
+ ISNULL(TrustButtJoint.TrustButtJoint,0) AS TrustButtJoint, --ÒÑίÍжԽӺ¸·ìÊý
+ CAST((CASE ISNULL(TrustButtJoint.TrustButtJoint,0) WHEN 0 THEN 0
+ ELSE 1.0 * ISNULL(TrustButtJoint.TrustButtJoint,0)/(1.0 * ButtJoint.ButtJoint) END) AS DECIMAL(19,3))
+ AS ButtJointCheckRate , ---¶ԽӺ¸·ì¼ì²â±ÈÀý
+
+ ISNULL(FilletJoint.FilletJoint,0) AS FilletJoint, --ÒѺ¸½Ǻ¸·ìÊý
+ ISNULL(TrustFilletJoint.TrustFilletJoint,0) AS TrustFilletJoint, --ÒÑίÍнǺ¸·ìÊý
+ CAST((CASE ISNULL(TrustFilletJoint.TrustFilletJoint,0) WHEN 0 THEN 0
+ ELSE 1.0 * ISNULL(TrustFilletJoint.TrustFilletJoint,0)/(1.0 * FilletJoint.FilletJoint) END) AS DECIMAL(19,3))
+ AS FilletJointCheckRate
+
+FROM dbo.Project_Welder AS welder
+LEFT JOIN Base_Project project on welder.ProjectId=project.ProjectId
+LEFT JOIN dbo.HJGL_BS_Welder wld on wld.WED_ID=welder.WED_ID
+ --ÒѺ¸º¸¿ÚÊý
+LEFT JOIN (SELECT COUNT(*) AS totalJoint,HJGL_pw_jointinfo.JOT_CellWelder,ProjectId
+ FROM HJGL_PW_JointInfo
+ WHERE HJGL_pw_jointinfo.DReportID is not null
+ GROUP BY HJGL_pw_jointinfo.JOT_CellWelder,ProjectId) AS totalJoint ON totalJoint.JOT_CellWelder = welder.WED_ID and totalJoint.ProjectId=welder.ProjectId
+
+ --ÒѺ¸¹̶¨¿ÚÊý
+LEFT JOIN (SELECT COUNT(*) AS FixedJoint,JOT_CellWelder,ProjectId
+ FROM HJGL_PW_JointInfo
+ WHERE DReportID is not null AND JOT_JointAttribute='¹̶¨'
+ GROUP BY HJGL_pw_jointinfo.JOT_CellWelder,ProjectId) AS FixedJoint ON FixedJoint.JOT_CellWelder = welder.WED_ID and FixedJoint.ProjectId=welder.ProjectId
+
+
+ --ÒѺ¸¶ԽӺ¸·ìÊý
+LEFT JOIN (SELECT COUNT(*) AS ButtJoint,joint.JOT_CellWelder,ProjectId
+ FROM HJGL_PW_JointInfo joint
+ LEFT JOIN dbo.HJGL_BS_JointType jointType on jointType.JOTY_ID=joint.JOTY_ID
+ WHERE DReportID is not null AND jointType.JOTY_Group='1'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS ButtJoint ON ButtJoint.JOT_CellWelder = welder.WED_ID and ButtJoint.ProjectId=welder.ProjectId
+
+
+ --ÒѺ¸½Ǻ¸·ìÊý
+LEFT JOIN (SELECT COUNT(*) AS FilletJoint,joint.JOT_CellWelder,ProjectId
+ FROM HJGL_PW_JointInfo joint
+ LEFT JOIN dbo.HJGL_BS_JointType jointType on jointType.JOTY_ID=joint.JOTY_ID
+ WHERE DReportID is not null AND jointType.JOTY_Group='2'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS FilletJoint ON FilletJoint.JOT_CellWelder = welder.WED_ID and FilletJoint.ProjectId=welder.ProjectId
+
+
+--ÒÑίÍк¸¿ÚÊý
+ LEFT JOIN (SELECT COUNT(*) AS TrustJointNum,joint.JOT_CellWelder,ProjectId
+ FROM dbo.HJGL_BO_BatchDetail batchDetail
+ LEFT JOIN HJGL_pw_jointinfo joint ON joint.jot_id=batchDetail.jot_id
+ WHERE (batchDetail.NDT is not null OR batchDetail.NDT!='') and joint.JOT_JointNo not like '%A%' and joint.JOT_JointNo not like '%B%' and batchDetail.PointType!='2'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS TrustJointNum ON TrustJointNum.JOT_CellWelder = welder.WED_ID and TrustJointNum.ProjectId=welder.ProjectId
+
+
+--ÒÑίÍй̶¨¿ÚÊý
+ LEFT JOIN (SELECT COUNT(*) AS TrustFixedJoint,joint.JOT_CellWelder,ProjectId
+ FROM dbo.HJGL_BO_BatchDetail batchDetail
+ LEFT JOIN HJGL_pw_jointinfo joint ON joint.jot_id=batchDetail.jot_id
+ WHERE (batchDetail.NDT is not null OR batchDetail.NDT!='')
+ AND joint.JOT_JointAttribute='¹̶¨' and joint.JOT_JointNo not like '%A%' and joint.JOT_JointNo not like '%B%' and batchDetail.PointType!='2'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS TrustFixedJoint ON TrustFixedJoint.JOT_CellWelder = welder.WED_ID and TrustFixedJoint.ProjectId=welder.ProjectId
+
+
+--ÒÑίÍжԽӺ¸·ìÊý
+ LEFT JOIN (SELECT COUNT(*) AS TrustButtJoint,joint.JOT_CellWelder,ProjectId
+ FROM dbo.HJGL_BO_BatchDetail batchDetail
+ LEFT JOIN HJGL_pw_jointinfo joint ON joint.jot_id=batchDetail.jot_id
+ LEFT JOIN dbo.HJGL_BS_JointType jointType on jointType.JOTY_ID=joint.JOTY_ID
+ WHERE (batchDetail.NDT is not null OR batchDetail.NDT!='')
+ AND jointType.JOTY_Group='1' and joint.JOT_JointNo not like '%A%' and joint.JOT_JointNo not like '%B%' and batchDetail.PointType!='2'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS TrustButtJoint ON TrustButtJoint.JOT_CellWelder = welder.WED_ID and TrustButtJoint.ProjectId=welder.ProjectId
+
+--ÒÑίÍнǺ¸·ìÊý
+ LEFT JOIN (SELECT COUNT(*) AS TrustFilletJoint,joint.JOT_CellWelder,ProjectId
+ FROM dbo.HJGL_BO_BatchDetail batchDetail
+ LEFT JOIN HJGL_pw_jointinfo joint ON joint.jot_id=batchDetail.jot_id
+ LEFT JOIN dbo.HJGL_BS_JointType jointType on jointType.JOTY_ID=joint.JOTY_ID
+ WHERE (batchDetail.NDT is not null OR batchDetail.NDT!='')
+ AND jointType.JOTY_Group='2' and joint.JOT_JointNo not like '%A%' and joint.JOT_JointNo not like '%B%' and batchDetail.PointType!='2'
+ GROUP BY joint.JOT_CellWelder,ProjectId) AS TrustFilletJoint ON TrustFilletJoint.JOT_CellWelder = welder.WED_ID and TrustFilletJoint.ProjectId=welder.ProjectId
+
+
+WHERE (welder.ProjectId = @projectId OR @projectId IS NULL)
+AND (wld.WED_Unit=@unitcode OR @unitcode IS NULL)
+AND (wld.WED_ID=@WED_ID OR @WED_ID is null)
+order BY wld.WED_Code
+
+
+GO
+
diff --git a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs
index a462f94..757ff32 100644
--- a/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs
+++ b/HJGL_DS/BLL/HJGL/WeldingManage/HJGL_PW_JointInfoService.cs
@@ -1358,5 +1358,23 @@ namespace BLL
&& (y.JOTY_Name.Contains("支管连接焊缝") || y.JOTY_Name.Contains("角焊缝"))
select x).ToList();
}
+
+ public static string ConvertJointCodeString(string jotIdList)
+ {
+ string name = string.Empty;
+ string[] list = jotIdList.Split(',');
+ foreach (var item in list)
+ {
+ if (!string.IsNullOrEmpty(item))
+ {
+ name += GetJointInfoByJotID(item).JOT_JointNo + ",";
+ }
+ }
+ if (!string.IsNullOrEmpty(name))
+ {
+ name = name.Substring(0, name.LastIndexOf(","));
+ }
+ return name;
+ }
}
}
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 555f340..73bce3c 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -58,6 +58,7 @@
true
AnyCPU
false
+ false
@@ -1304,6 +1305,7 @@
+
@@ -6476,6 +6478,13 @@
DetectionPoint.aspx
+
+ JointInfoBatchModity.aspx
+ ASPXCodeBehind
+
+
+ JointInfoBatchModity.aspx
+
JointInfoBatchUpdate.aspx
ASPXCodeBehind
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
index 80f7761..e3436b8 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
@@ -1,4 +1,4 @@
-
+
true
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx
index a7a96c7..836857e 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx
@@ -36,6 +36,7 @@
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
index 82d7bab..e558b26 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
@@ -1,4 +1,8 @@
-using System;
+using BLL;
+using FastReport.Utils;
+using NPOI.POIFS.Crypt.Dsig;
+using NPOI.SS.Formula.Functions;
+using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
@@ -8,7 +12,6 @@ using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
-using BLL;
namespace FineUIPro.Web.HJGL.DataIn
{
public partial class JointIn : PageBase
@@ -607,7 +610,7 @@ namespace FineUIPro.Web.HJGL.DataIn
if (getProject != null && getPWisInfo != null)
{
var getJoint = Funs.DB.HJGL_PW_JointInfo.FirstOrDefault(x => x.ProjectId == getProject.ProjectId && x.ISO_ID == getPWisInfo.ISO_ID && x.JOT_JointNo == col2);
- if (getJoint != null)
+ if (getJoint != null && this.cbUpdateIn.Checked == false)
{
result += "第" + (i + 2).ToString() + "行," + "该焊口已存在" + "\n";
}
@@ -940,7 +943,56 @@ namespace FineUIPro.Web.HJGL.DataIn
}
else
{
- result += "第" + (i + 2).ToString() + "行," + "该焊口已存在" + "\n";
+ if (this.cbUpdateIn.Checked)
+ {
+ newJointInfo.JOT_JointNo = col2;
+ if (col8 == "固定")
+ {
+ if (newJointInfo.JOT_JointNo.Last() != 'G')
+ {
+ newJointInfo.JOT_JointNo = newJointInfo.JOT_JointNo + "G";
+ }
+ }
+ if (newJointInfo.IsGold == true)
+ {
+ if (newJointInfo.JOT_JointNo.Last() != 'H')
+ {
+ newJointInfo.JOT_JointNo = newJointInfo.JOT_JointNo + "H";
+ }
+ }
+ newJointInfo.JOT_ID = getJoint.JOT_ID;
+ BLL.HJGL_PW_JointInfoService.UpdateJointInfo(newJointInfo);
+
+ // 更新排序字段
+ string strSort = @"UPDATE dbo.HJGL_PW_JointInfo SET
+ Sort1=(case when PATINDEX('[A-Z]%',JOT_JointNo)>0 THEN 'B'
+ WHEN ISNUMERIC(JOT_JointNo)=1 then 'C' ELSE 'C' END),
+ Sort2=(CASE WHEN ISNUMERIC(JOT_JointNo)=1 then try_cast(REPLACE(JOT_JointNo,'.','') AS INT)
+ WHEN ISNUMERIC(SUBSTRING(JOT_JointNo,0,CHARINDEX('Z',JOT_JointNo)))=1
+ THEN TRY_CAST(SUBSTRING(JOT_JointNo,0,CHARINDEX('Z',JOT_JointNo)) as int)
+ WHEN PATINDEX('[0-9]%',JOT_JointNo)>0 then
+ TRY_CAST(left(JOT_JointNo,PATINDEX('%[^0-9]%',JOT_JointNo)-1) as int)
+ ELSE 0 END),
+ Sort3= SUBSTRING(JOT_JointNo,1,1),
+ Sort4=(CASE WHEN CHARINDEX('Z',JOT_JointNo)>0 and SUBSTRING(JOT_JointNo,1,1)<>'Z'
+ THEN ISNULL(TRY_CAST(SUBSTRING(replace(JOT_JointNo,'#',''),2,CHARINDEX('Z',JOT_JointNo)-2) as int),0)
+ WHEN PATINDEX('%[A-G]%',SUBSTRING(replace(JOT_JointNo,'#',''),2,len(JOT_JointNo)))>0
+ THEN ISNULL(TRY_CAST(SUBSTRING(JOT_JointNo,2,len(JOT_JointNo)-2) as int),0)
+ ELSE ISNULL(TRY_CAST(SUBSTRING(replace(JOT_JointNo,'#',''),2,len(JOT_JointNo)) as int),0) END),
+ Sort5=(CASE WHEN CHARINDEX('Z',JOT_JointNo)>0
+ THEN ISNULL(TRY_CAST(SUBSTRING(JOT_JointNo,charindex('Z',JOT_JointNo)+1,len(JOT_JointNo)) AS INT),0)
+ WHEN PATINDEX('%[A-Y]',SUBSTRING(replace(JOT_JointNo,'#',''),2,len(JOT_JointNo)))>0
+ THEN ISNULL(TRY_CAST(SUBSTRING(JOT_JointNo,2,len(JOT_JointNo)-1) as int),0) ELSE 0 END)
+ WHERE JOT_ID='" + newJointInfo.JOT_ID + "'";
+ SQLHelper.ExecutSql(strSort);
+
+ //JOT_IDStr += Funs.DB.HJGL_PW_JointInfo.FirstOrDefault(x => x.ProjectId == getProject.ProjectId && x.ISO_ID == getPWisInfo.ISO_ID && x.JOT_JointNo == col2).JOT_ID + ",";
+ JOT_IDStr += newJointInfo.JOT_ID + ",";
+ }
+ else
+ {
+ result += "第" + (i + 2).ToString() + "行," + "该焊口已存在" + "\n";
+ }
}
}
errorInfos += result;
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.designer.cs
index e6ed166..335d19a 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HJGL.DataIn {
-
-
- public partial class JointIn {
-
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class JointIn
+ {
+
///
/// Head1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
+
///
/// form1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// panelCenterRegion 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelCenterRegion;
-
+
///
/// Toolbar2 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// FileExcel 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.FileUpload FileExcel;
-
+
///
/// btnAudit 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAudit;
-
+
///
/// imgbtnImport 控件。
///
@@ -92,7 +94,16 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button imgbtnImport;
-
+
+ ///
+ /// cbUpdateIn 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox cbUpdateIn;
+
///
/// ToolbarFill1 控件。
///
@@ -101,7 +112,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// imgbtnUpload 控件。
///
@@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button imgbtnUpload;
-
+
///
/// hdFileName 控件。
///
@@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.HiddenField hdFileName;
-
+
///
/// Grid1 控件。
///
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -155,7 +166,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Menu1 控件。
///
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnMenuDelete 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx
index 7823936..1c3ed49 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfo.aspx
@@ -71,15 +71,12 @@
-
+
-
-
-
@@ -95,6 +92,8 @@
+
+
@@ -102,6 +101,8 @@
+
+
<%--
--%>
@@ -172,8 +173,8 @@
<%----%>
-
+
@@ -384,6 +385,10 @@
Target="top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="650px">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.cs
index 3f55b62..b9139b8 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.cs
@@ -86,7 +86,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_welderStatistics", parameter);
this.Grid1.RecordCount = tb.Rows.Count;
- tb = GetFilteredTable(Grid1.FilteredData, tb);
+ //tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
@@ -151,6 +151,8 @@ namespace FineUIPro.Web.HJGL.WeldingReport
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("焊工焊接检测统计表" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
+ this.Grid1.PageSize = 100000;
+ this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
}
@@ -181,7 +183,12 @@ namespace FineUIPro.Web.HJGL.WeldingReport
{
html = (row.FindControl("labNumber") as AspNet.Label).Text;
}
- sb.AppendFormat("| {0} | ", html);
+ if (column.ColumnID == "tfWelderCode")
+ {
+ html = (row.FindControl("lblWelderCode") as AspNet.Label).Text;
+ }
+ //sb.AppendFormat("{0} | ", html);
+ sb.AppendFormat("{0} | ", html);
}
sb.Append("");
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.designer.cs
index 20c059a..28ed700 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderCheckStatistic.aspx.designer.cs
@@ -2,16 +2,18 @@
// <自动生成>
// 此代码由工具生成。
//
-// 对此文件的更改可能会导致不正确的行为,并且如果
-// 重新生成代码,这些更改将会丢失。
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.HJGL.WeldingReport {
-
-
- public partial class WelderCheckStatistic {
-
+namespace FineUIPro.Web.HJGL.WeldingReport
+{
+
+
+ public partial class WelderCheckStatistic
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// RegionPanel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.RegionPanel RegionPanel1;
-
+
///
/// Region1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Region Region1;
-
+
///
/// Form2 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form Form2;
-
+
///
/// drpProject 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpProject;
-
+
///
/// drpUnit 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpUnit;
-
+
///
/// drpWloName 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpWloName;
-
+
///
/// BtnAnalyse 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button BtnAnalyse;
-
+
///
/// btnOut 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOut;
-
+
///
/// Region2 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Region Region2;
-
+
///
/// Grid1 控件。
///
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// labNumber 控件。
///
@@ -128,7 +130,16 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label labNumber;
-
+
+ ///
+ /// lblWelderCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label lblWelderCode;
+
///
/// ToolbarSeparator1 控件。
///
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config
index 070a5f8..3c98f31 100644
--- a/HJGL_DS/FineUIPro.Web/Web.config
+++ b/HJGL_DS/FineUIPro.Web/Web.config
@@ -11,7 +11,7 @@
-
+
diff --git a/HJGL_DS/Model/Model.cs b/HJGL_DS/Model/Model.cs
index 376f631..614c7b9 100644
--- a/HJGL_DS/Model/Model.cs
+++ b/HJGL_DS/Model/Model.cs
@@ -66384,6 +66384,18 @@ namespace Model
private string _JOTY_Group;
+ private string _JOT_Electricity;
+
+ private string _JOT_Voltage;
+
+ private System.Nullable _WeldL;
+
+ private System.Nullable _IsGold;
+
+ private string _JOT_QualifiedLevel;
+
+ private string _HardQuaStandard;
+
public HJGL_View_JointInfo()
{
}
@@ -67731,6 +67743,102 @@ namespace Model
}
}
}
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JOT_Electricity", DbType="VarChar(40)")]
+ public string JOT_Electricity
+ {
+ get
+ {
+ return this._JOT_Electricity;
+ }
+ set
+ {
+ if ((this._JOT_Electricity != value))
+ {
+ this._JOT_Electricity = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JOT_Voltage", DbType="VarChar(40)")]
+ public string JOT_Voltage
+ {
+ get
+ {
+ return this._JOT_Voltage;
+ }
+ set
+ {
+ if ((this._JOT_Voltage != value))
+ {
+ this._JOT_Voltage = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldL", DbType="Int")]
+ public System.Nullable WeldL
+ {
+ get
+ {
+ return this._WeldL;
+ }
+ set
+ {
+ if ((this._WeldL != value))
+ {
+ this._WeldL = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsGold", DbType="Bit")]
+ public System.Nullable IsGold
+ {
+ get
+ {
+ return this._IsGold;
+ }
+ set
+ {
+ if ((this._IsGold != value))
+ {
+ this._IsGold = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_JOT_QualifiedLevel", DbType="NVarChar(10)")]
+ public string JOT_QualifiedLevel
+ {
+ get
+ {
+ return this._JOT_QualifiedLevel;
+ }
+ set
+ {
+ if ((this._JOT_QualifiedLevel != value))
+ {
+ this._JOT_QualifiedLevel = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_HardQuaStandard", DbType="NVarChar(50)")]
+ public string HardQuaStandard
+ {
+ get
+ {
+ return this._HardQuaStandard;
+ }
+ set
+ {
+ if ((this._HardQuaStandard != value))
+ {
+ this._HardQuaStandard = value;
+ }
+ }
+ }
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.HJGL_View_JointInfoAndIsoInfo")]
diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user
index 28be9c4..8cd7f1f 100644
--- a/HJGL_DS/WebAPI/WebAPI.csproj.user
+++ b/HJGL_DS/WebAPI/WebAPI.csproj.user
@@ -1,4 +1,4 @@
-
+
Release|Any CPU