From 7bf22fd5000c6c3e751b74a1abc242ccbb726429 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Thu, 26 Jun 2025 17:15:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?20250526=20=E6=8A=A5=E8=A1=A8=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../版本日志/HJGLDB_DS_2025-06-26_bwj.sql | 41 +++++ .../PipingSingleDiagramPrint.aspx | 2 +- .../PipingSingleDiagramPrint.aspx.cs | 167 ++++++------------ HJGL_DS/FineUIPro.Web/ErrLog.txt | 33 +++- HJGL_DS/FineUIPro.Web/Web.config | 2 +- 5 files changed, 127 insertions(+), 118 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2025-06-26_bwj.sql diff --git a/DataBase/版本日志/HJGLDB_DS_2025-06-26_bwj.sql b/DataBase/版本日志/HJGLDB_DS_2025-06-26_bwj.sql new file mode 100644 index 0000000..17d25de --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2025-06-26_bwj.sql @@ -0,0 +1,41 @@ + + +ALTER PROCEDURE [dbo].[HJGL_rpt_PipelineAttach] +( + @iso_id NVARCHAR(50) +) +AS +/**********Ŀܵͼҳ************/ +SELECT v.* FROM +(select ROW_NUMBER() OVER(ORDER BY report.Sort1,report.Sort2,report.Sort3,report.Sort4,report.Sort5) AS Number,report.* from +(SELECT JointInfo.JOT_ID, +JointInfo.ProjectId, +isoInfo.ISO_IsoNo,--ܵ +JointInfo.JOT_JointNo,--ڱ +JointInfo.Sort1,JointInfo.Sort2,JointInfo.Sort3,JointInfo.Sort4,JointInfo.Sort5, +JointInfo.JOT_CellWelder, +(CASE WHEN JointInfo.JOT_CellWelder!=JointInfo.JOT_FloorWelder THEN Welder1.WED_Code+'/'+Welder2.WED_Code ELSE Welder1.WED_Code END) AS WED_Code,-- +JointInfo.JOT_JointDesc,-- +(CASE WHEN Steel.STE_Code IS NOT NULL AND Steel1.STE_Code IS NOT NULL and Steel.STE_Code!=Steel1.STE_Code THEN Steel.STE_Code + '/' + Steel1.STE_Code +WHEN Steel.STE_Code IS NOT NULL THEN Steel.STE_Code ELSE ISNULL(Steel1.STE_Code,'') END) AS STE_Code, -- +JointInfo.JOT_Location,--λ +(CASE WHEN IS_Proess= '1' THEN 'Y' ELSE 'N' END) AS IS_Proess, --ȴ +(select top 1 NDT_Code from HJGL_CH_TrustItem + left join HJGL_CH_Trust on HJGL_CH_Trust.CH_TrustID=HJGL_CH_TrustItem.CH_TrustID + left join HJGL_BS_NDTType on HJGL_BS_NDTType.NDT_ID = HJGL_CH_Trust.CH_NDTMethod + where HJGL_CH_TrustItem.JOT_ID = JointInfo.JOT_ID) as NDTCode --ⷽʽ +FROM HJGL_PW_JointInfo AS JointInfo +LEFT JOIN HJGL_PW_IsoInfo AS isoInfo On isoInfo.ISO_ID = JointInfo.ISO_ID +LEFT JOIN HJGL_BS_Welder AS Welder1 ON Welder1.WED_ID = JointInfo.JOT_CellWelder +LEFT JOIN HJGL_BS_Welder AS Welder2 ON Welder2.WED_ID = JointInfo.JOT_FloorWelder +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_BO_WeldReportMain AS WeldReportMain ON WeldReportMain.DReportID = JointInfo.DReportID + +where JointInfo.ISO_ID=@iso_id +) report) v +order by v.Sort1,v.Sort2,v.Sort3,v.Sort4,v.Sort5 + +GO + + diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx index 82875fe..7ed7d44 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx @@ -74,7 +74,7 @@ + SortDirection="ASC" EnableCheckBoxSelect="true" EnableMultiSelect="true"> diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs index 95de96e..14f50b7 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs @@ -292,7 +292,7 @@ namespace FineUIPro.Web.ContinuousPrint if (tb.Rows.Count > 0) { CellRangeAddress region; - var pageNum = tb.Rows.Count < 31 ? 1 : Math.Ceiling((float)(tb.Rows.Count) / 31); + var pageNum = tb.Rows.Count < 29 ? 1 : Math.Ceiling((float)(tb.Rows.Count) / 28); #region 样式 //公共样式 @@ -399,19 +399,7 @@ namespace FineUIPro.Web.ContinuousPrint ws.GetRow(rowIndex + 2).GetCell(15).CellStyle = titleStyle; #endregion - //} - //else - //{ - // var pNum = (i + 1) * 31; - // //取数据开始和结束条数 - // dStart = 31 + ((i - 3) * 31); - // dEnd = 31 + pNum; - // //数据开始行和结束行 - // tStart = rowIndex; - // tEnd = rowIndex + 31; - //dStart = i == 1 ? 0 : (i - 1) * 31; - //dEnd = i * 31; - //} + #endregion #region 数据 @@ -428,114 +416,114 @@ namespace FineUIPro.Web.ContinuousPrint if (r == 0) { ws.GetRow(dataRow).GetCell(1).SetCellValue("1."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("无缝钢管DN50 S40 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("150米"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("无缝钢管DN50 S40 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("150米"); } else if (r == 1) { ws.GetRow(dataRow).GetCell(1).SetCellValue("2."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("无缝钢管DN25 S80 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("0.5米"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("无缝钢管DN25 S80 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("0.5米"); } else if (r == 2) { ws.GetRow(dataRow).GetCell(1).SetCellValue("3."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("90°弯头DN50 S40 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("11个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("90°弯头DN50 S40 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("11个"); } else if (r == 3) { ws.GetRow(dataRow).GetCell(1).SetCellValue("4."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN100*50 S40 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN100*50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN100*50 S40 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN100*50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); } else if (r == 4) { ws.GetRow(dataRow).GetCell(1).SetCellValue("5."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN80*50 S40 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN80*50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN80*50 S40 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN80*50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); } else if (r == 5) { ws.GetRow(dataRow).GetCell(1).SetCellValue("6."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN50*25 S40 20#8163"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50*25"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("异径三通DN50*25 S40 20#8163"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50*25"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); } else if (r == 6) { ws.GetRow(dataRow).GetCell(1).SetCellValue("7."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("8字盲板 DN50 CL300 20#"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("8字盲板 DN50 CL300 20#"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); } else if (r == 7) { ws.GetRow(dataRow).GetCell(1).SetCellValue("8."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("盲盖 DN25 CL300"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("盲盖 DN25 CL300"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1个"); } else if (r == 8) { ws.GetRow(dataRow).GetCell(1).SetCellValue("9."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("对焊法兰 DN50 CL300 S40 20#"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("6片"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("对焊法兰 DN50 CL300 S40 20#"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("6片"); } else if (r == 9) { ws.GetRow(dataRow).GetCell(1).SetCellValue("10."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("承插焊法兰 DN20 CL300 S80 20#"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("2片"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("承插焊法兰 DN20 CL300 S80 20#"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("2片"); } else if (r == 10) { ws.GetRow(dataRow).GetCell(1).SetCellValue("11."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("闸阀 DN50 CL300 WCB ANTI-H2S"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("3台"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("闸阀 DN50 CL300 WCB ANTI-H2S"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN50"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("3台"); } else if (r == 11) { ws.GetRow(dataRow).GetCell(1).SetCellValue("12."); - ws.GetRow(dataRow).GetCell(2).SetCellValue("闸阀 DN25 CL300 WCB ANTI-H2S"); - ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); - ws.GetRow(dataRow).GetCell(6).SetCellValue("1台"); + //ws.GetRow(dataRow).GetCell(2).SetCellValue("闸阀 DN25 CL300 WCB ANTI-H2S"); + //ws.GetRow(dataRow).GetCell(5).SetCellValue("DN25"); + //ws.GetRow(dataRow).GetCell(6).SetCellValue("1台"); } else if (r == 12) { ws.GetRow(dataRow).GetCell(1).SetCellValue("13."); - ws.GetRow(dataRow).GetCell(2).SetCellValue(""); - ws.GetRow(dataRow).GetCell(5).SetCellValue(""); - ws.GetRow(dataRow).GetCell(6).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(2).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(5).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(6).SetCellValue(""); } else if (r == 13) { ws.GetRow(dataRow).GetCell(1).SetCellValue("14."); - ws.GetRow(dataRow).GetCell(2).SetCellValue(""); - ws.GetRow(dataRow).GetCell(5).SetCellValue(""); - ws.GetRow(dataRow).GetCell(6).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(2).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(5).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(6).SetCellValue(""); } else if (r == 14) { ws.GetRow(dataRow).GetCell(1).SetCellValue("15."); - ws.GetRow(dataRow).GetCell(2).SetCellValue(""); - ws.GetRow(dataRow).GetCell(5).SetCellValue(""); - ws.GetRow(dataRow).GetCell(6).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(2).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(5).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(6).SetCellValue(""); } else if (r == 15) { ws.GetRow(dataRow).GetCell(1).SetCellValue("16."); - ws.GetRow(dataRow).GetCell(2).SetCellValue(""); - ws.GetRow(dataRow).GetCell(5).SetCellValue(""); - ws.GetRow(dataRow).GetCell(6).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(2).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(5).SetCellValue(""); + //ws.GetRow(dataRow).GetCell(6).SetCellValue(""); } else if (r == 16) { @@ -596,68 +584,17 @@ namespace FineUIPro.Web.ContinuousPrint ws.GetRow(dataRow).GetCell(10).CellStyle = styleList; ws.GetRow(dataRow).GetCell(11).SetCellValue(pageTb.Rows[j]["JOT_JointDesc"].ToString()); ws.GetRow(dataRow).GetCell(11).CellStyle = styleList; - ws.GetRow(dataRow).GetCell(12).SetCellValue(pageTb.Rows[j]["STE_Name"].ToString()); + ws.GetRow(dataRow).GetCell(12).SetCellValue(pageTb.Rows[j]["STE_Code"].ToString()); ws.GetRow(dataRow).GetCell(12).CellStyle = styleList; ws.GetRow(dataRow).GetCell(13).SetCellValue(pageTb.Rows[j]["JOT_Location"].ToString()); ws.GetRow(dataRow).GetCell(13).CellStyle = styleList; ws.GetRow(dataRow).GetCell(14).SetCellValue(pageTb.Rows[j]["IS_Proess"].ToString()); ws.GetRow(dataRow).GetCell(14).CellStyle = styleList; - ws.GetRow(dataRow).GetCell(15).SetCellValue(""); + ws.GetRow(dataRow).GetCell(15).SetCellValue(pageTb.Rows[j]["NDTCode"].ToString()); ws.GetRow(dataRow).GetCell(15).CellStyle = styleList; } #endregion - #region 尾部 - //ws = ExcelCreateRowBottom(ws, hssfworkbook, tEnd + 1, tEnd + 12, style, 1, 6); - - //region = new CellRangeAddress(tEnd + 1, tEnd + 6, 1, 6); - //ws.GetRow(tEnd + 1).GetCell(1).SetCellValue("说明:"); - //ws.GetRow(tEnd + 1).GetCell(1).CellStyle = leftstyle; - - //region = new CellRangeAddress(tEnd + 8, tEnd + 8, 1, 6); - //ws.GetRow(tEnd + 8).GetCell(1).SetCellValue("浙江鼎盛石化工程有限公司"); - //ws.GetRow(tEnd + 8).GetCell(1).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 9, tEnd + 9, 1, 2); - //ws.GetRow(tEnd + 9).GetCell(1).SetCellValue("工程名称"); - //ws.GetRow(tEnd + 9).GetCell(1).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 9, tEnd + 9, 3, 6); - //ws.GetRow(tEnd + 9).GetCell(3).SetCellValue(BLL.Base_ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectName); - //ws.GetRow(tEnd + 9).GetCell(3).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 10, tEnd + 10, 1, 2); - //ws.GetRow(tEnd + 10).GetCell(1).SetCellValue("施工图号"); - //ws.GetRow(tEnd + 10).GetCell(1).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 10, tEnd + 10, 3, 6); - //ws.GetRow(tEnd + 10).GetCell(3).SetCellValue(""); - //ws.GetRow(tEnd + 10).GetCell(3).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 11, tEnd + 11, 1, 2); - //ws.GetRow(tEnd + 11).GetCell(1).SetCellValue("管线编号"); - //ws.GetRow(tEnd + 11).GetCell(1).CellStyle = style; - - //ws.GetRow(tEnd + 11).GetCell(3).SetCellValue(""); - //ws.GetRow(tEnd + 11).GetCell(3).CellStyle = style; - - //ws.GetRow(tEnd + 11).GetCell(4).SetCellValue("绘制"); - //ws.GetRow(tEnd + 11).GetCell(4).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 11, tEnd + 11, 5, 6); - //ws.GetRow(tEnd + 11).GetCell(5).SetCellValue(""); - //ws.GetRow(tEnd + 11).GetCell(5).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 12, tEnd + 12, 1, 3); - //ws.GetRow(tEnd + 12).GetCell(1).SetCellValue("管 道 轴 测 图 附 页"); - //ws.GetRow(tEnd + 12).GetCell(1).CellStyle = style; - - //region = new CellRangeAddress(tEnd + 12, tEnd + 12, 4, 6); - //ws.GetRow(tEnd + 12).GetCell(4).SetCellValue(""); - //ws.GetRow(tEnd + 12).GetCell(4).CellStyle = style; - - #endregion - rowIndex = tEnd + 2; } } diff --git a/HJGL_DS/FineUIPro.Web/ErrLog.txt b/HJGL_DS/FineUIPro.Web/ErrLog.txt index 5f28270..82d5e61 100644 --- a/HJGL_DS/FineUIPro.Web/ErrLog.txt +++ b/HJGL_DS/FineUIPro.Web/ErrLog.txt @@ -1 +1,32 @@ - \ No newline at end of file + +错误信息开始=====> +错误类型:SqlException +错误信息:在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错) +错误堆栈: + 在 System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager) + 在 System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) + 在 System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) + 在 System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) + 在 System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) + 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) + 在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) + 在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) + 在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) + 在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) + 在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) + 在 System.Data.SqlClient.SqlConnection.Open() + 在 System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) + 在 System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe() + 在 System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode() + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) + 在 BLL.Sys_UserService.UserLogOn(String account, String password, Boolean rememberMe, Page page) 位置 E:\鼎盛\HJGL_DS\HJGL_DS\BLL\Common\SysManage\Sys_UserService.cs:行号 39 + 在 FineUIPro.Web.Login.btnLogin_Click(Object sender, EventArgs e) 位置 E:\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\Login.aspx.cs:行号 52 + 在 FineUIPro.Button.OnClick(EventArgs e) + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:06/26/2025 10:36:58 +出错文件:http://localhost:64304/Login.aspx +IP地址:::1 + +出错时间:06/26/2025 10:36:58 + diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index bf404b8..aa58035 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + From df66193a9d48415a753b8c7ae178b67a83d120d6 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Fri, 27 Jun 2025 15:09:59 +0800 Subject: [PATCH 2/3] 20250627 --- .../PipingSingleDiagramPrint.aspx.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs index 14f50b7..494984b 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs @@ -280,12 +280,21 @@ namespace FineUIPro.Web.ContinuousPrint var tb = SQLHelper.GetDataTableRunProc("HJGL_rpt_PipelineAttach", parameter); string IsoNo = string.Empty; + string projectName = string.Empty; if (!string.IsNullOrEmpty(hidISO_ID.Value)) { var isoInfo = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByIsoInfoId(this.Grid2.SelectedRowID); - if (isoInfo!=null) + if (isoInfo != null) { IsoNo = isoInfo.ISO_IsoNo; + if (!string.IsNullOrEmpty(isoInfo.ProjectId)) + { + var project = BLL.Base_ProjectService.GetProjectByProjectId(isoInfo.ProjectId); + if (project != null) + { + projectName = project.ProjectName; + } + } } } @@ -539,7 +548,7 @@ namespace FineUIPro.Web.ContinuousPrint { ws.GetRow(dataRow).GetCell(1).SetCellValue("工程名称"); ws.GetRow(dataRow).GetCell(1).CellStyle = titleStyle; - ws.GetRow(dataRow).GetCell(3).SetCellValue(BLL.Base_ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId).ProjectName); + ws.GetRow(dataRow).GetCell(3).SetCellValue(projectName); ws.GetRow(dataRow).GetCell(3).CellStyle = titleStyle; } else if (r == 25) From 429b8f6215112b659c9f924097d398ed167ed1f0 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Fri, 27 Jun 2025 15:40:24 +0800 Subject: [PATCH 3/3] 20250627 --- .../PipingSingleDiagramPrint.aspx | 1 + .../PipingSingleDiagramPrint.aspx.cs | 15 +++++ .../PipingSingleDiagramPrint.aspx.designer.cs | 59 +++++++++++-------- 3 files changed, 49 insertions(+), 26 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx index 7ed7d44..c8c242d 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx @@ -79,6 +79,7 @@ + diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs index 494984b..e7adb2f 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.cs @@ -56,6 +56,11 @@ namespace FineUIPro.Web.ContinuousPrint FROM HJGL_View_IsoInfo WHERE ProjectId= @ProjectId"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); + if (this.drpIsoId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIsoId.SelectedValue)) + { + strSql += " AND ISO_ID=@isoId"; + listStr.Add(new SqlParameter("@isoId", this.drpIsoId.SelectedValue)); + } SqlParameter[] parameter = listStr.ToArray(); Grid2.DataSource = SQLHelper.GetDataTableRunText(strSql, parameter); Grid2.DataBind(); @@ -111,6 +116,11 @@ namespace FineUIPro.Web.ContinuousPrint { this.hidProjectName.Text = BLL.Base_ProjectService.GetProjectByProjectId(this.Grid1.SelectedRowID).ProjectName; BindGrid1(this.Grid1.SelectedRowID); + + this.drpIsoId.DataTextField = "ISO_IsoNo"; + this.drpIsoId.DataValueField = "ISO_ID"; + this.drpIsoId.DataSource = (from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.Grid1.SelectedRowID orderby x.ISO_IsoNo select x).ToList(); + this.drpIsoId.DataBind(); } } #endregion @@ -821,5 +831,10 @@ namespace FineUIPro.Web.ContinuousPrint return newdt; } #endregion + + protected void drpIsoId_SelectedIndexChanged(object sender, EventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } } } \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.designer.cs index ec784a1..c456fb4 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/PipingSingleDiagramPrint.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.ContinuousPrint -{ - - - public partial class PipingSingleDiagramPrint - { - +namespace FineUIPro.Web.ContinuousPrint { + + + public partial class PipingSingleDiagramPrint { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel2 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// panelTopRegion 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelTopRegion; - + /// /// Grid1 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtProjectCode 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectCode; - + /// /// btnSubmit 控件。 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// hidProjectName 控件。 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hidProjectName; - + /// /// Label1 控件。 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// ToolbarSeparator1 控件。 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// panelBottomRegion 控件。 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelBottomRegion; - + /// /// Grid2 控件。 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid2; - + /// /// Toolbar3 控件。 /// @@ -157,7 +155,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// btnPrint 控件。 /// @@ -166,7 +164,16 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + + /// + /// drpIsoId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsoId; + /// /// lblContractor 控件。 /// @@ -175,7 +182,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblContractor; - + /// /// hidISO_ID 控件。 /// @@ -184,7 +191,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidISO_ID; - + /// /// Window1 控件。 ///