diff --git a/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql b/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql new file mode 100644 index 00000000..4e589fbc --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_V2024-09-23-phf.sql @@ -0,0 +1,3 @@ +CREATE NONCLUSTERED INDEX [SitePerson_Person_pid_isused_intime_index] +ON [dbo].[SitePerson_Person] ([ProjectId],[IsUsed],[InTime],[OutTime]) +INCLUDE ([PersonName]); \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index e69de29b..539a3001 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -0,0 +1,28 @@ + +错误信息开始=====> +错误类型:SqlException +错误信息:在将 nvarchar 值 'PP-' 转换成数据类型 int 时失败。 +错误堆栈: + 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) + 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) + 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) + 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) + 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) + 在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() + 在 BLL.SQLHelper.RunProcNewId2(String storedProcName, String tableName, String columnName, String projectId) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 880 + 在 FineUIPro.Web.TestRun.DriverSchemeEdit.Page_Load(Object sender, EventArgs e) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\TestRun\DriverSchemeEdit.aspx.cs:行号 154 + 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) + 在 System.EventHandler.Invoke(Object sender, EventArgs e) + 在 System.Web.UI.Control.OnLoad(EventArgs e) + 在 System.Web.UI.Control.LoadRecursive() + 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +出错时间:09/23/2024 10:27:46 +出错文件:http://localhost:8579/TestRun/DriverSchemeEdit.aspx?SolutionType=09 +IP地址:::1 +操作人员:JT + +出错时间:09/23/2024 10:27:46 + diff --git a/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs b/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs index 951ff6d7..bb05428f 100644 --- a/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/TestRun/DriverSchemeEdit.aspx.cs @@ -151,8 +151,8 @@ namespace FineUIPro.Web.TestRun options.Hidden = true; optio.Hidden = true; plApprove2.Hidden = true; - txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", - "dbo.Solution_TestRunConstructSolution", "Code", CurrUser.LoginProjectId); + //txtCode.Text = SQLHelper.RunProcNewId2("SpGetNewCode3ByProjectId", + // "dbo.Solution_TestRunConstructSolution", "Code", CurrUser.LoginProjectId); this.txtSolutionType.Text = TestRunConstructSolutionService.ConvertSolutionType(Request.Params["SolutionType"]); this.hdSolutionType.Text = Request.Params["SolutionType"]; TestRunConstructSolutionService.Init(drpHandleType, Const.TestRunConstructSolution_Compile, false); diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx.cs b/SGGL/FineUIPro.Web/common/main_new.aspx.cs index 3a33b6b6..a9ec355c 100644 --- a/SGGL/FineUIPro.Web/common/main_new.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new.aspx.cs @@ -24,6 +24,14 @@ namespace FineUIPro.Web.common { pids = CurrUser.CompanyProjectId.Split(','); } + else { + //加载所有在建项目的数据 + var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x=>x.ProjectId).ToArray(); + if (pidArray.Length>0) + { + pids = pidArray; + } + } //未遂事故 diff --git a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs index 3d6027d8..7758e0f3 100644 --- a/SGGL/FineUIPro.Web/common/main_new0.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new0.aspx.cs @@ -32,6 +32,15 @@ namespace FineUIPro.Web.common { pids = CurrUser.CompanyProjectId.Split(','); } + else + { + //加载所有在建项目的数据 + var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x => x.ProjectId).ToArray(); + if (pidArray.Length > 0) + { + pids = pidArray; + } + } var unitId = string.Empty; var thisUnit = CommonService.GetIsThisUnit(); diff --git a/SGGL/FineUIPro.Web/common/main_new1.aspx.cs b/SGGL/FineUIPro.Web/common/main_new1.aspx.cs index 90b9356c..91ae046f 100644 --- a/SGGL/FineUIPro.Web/common/main_new1.aspx.cs +++ b/SGGL/FineUIPro.Web/common/main_new1.aspx.cs @@ -37,6 +37,16 @@ namespace FineUIPro.Web.common { pids = CurrUser.CompanyProjectId.Split(','); } + else + { + //加载所有在建项目的数据 + var pidArray = Funs.DB.Base_Project.Where(x => x.ProjectState == "1").Select(x => x.ProjectId).ToArray(); + if (pidArray.Length > 0) + { + pids = pidArray; + } + } + ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false); if (this.drpProject.Items.Count > 0) {