From 81de6657b55fed22d3832462a1f0c1e2d94c0522 Mon Sep 17 00:00:00 2001 From: lichao <506754232@qq.com> Date: Thu, 22 Dec 2022 17:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E5=BE=85=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/ErrLog.txt | 91 +++++++++++++++++++ SGGL/FineUIPro.Web/FineUIPro.Web.csproj | 72 +++++++++++++++ .../HSSE/SitePerson/PersonListEdit.aspx | 10 +- .../HSSE/SitePerson/PersonListEdit.aspx.cs | 70 +++++++++----- .../common/mainMenu_PDigData.aspx.cs | 2 +- 5 files changed, 217 insertions(+), 28 deletions(-) diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt index 3f687b3b..4b46a576 100644 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ b/SGGL/FineUIPro.Web/ErrLog.txt @@ -958,3 +958,94 @@ IP地址:::1 出错时间:12/17/2022 11:20:46 + +错误信息开始=====> +错误类型:SqlException +错误信息:列名 'HomePageType' 无效。 +错误堆栈: + 在 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.SqlDataReader.TryConsumeMetaData() + 在 System.Data.SqlClient.SqlDataReader.get_MetaData() + 在 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.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) + 在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) + 在 System.Data.Common.DbCommand.ExecuteReader() + 在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult) + 在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries) + 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) + 在 System.Data.Linq.Table`1.System.Linq.IQueryProvider.Execute[TResult](Expression expression) + 在 System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate) + 在 BLL.UserService.GetUserByUserId(String userId) 位置 D:\project\vs\gitee\sggl_cd\SGGL\BLL\SysManage\UserService.cs:行号 19 + 在 FineUIPro.Web.Global.Application_Start(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\Global.asax.cs:行号 30 +出错时间:12/22/2022 16:17:01 +出错时间:12/22/2022 16:17:01 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 302 + 在 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) +出错时间:12/22/2022 16:20:17 +出错文件:http://localhost:8119/indexProject.aspx?projectId=b11a16ea-148c-4bae-a5a1-32158b599482 +IP地址:::1 +操作人员: + +出错时间:12/22/2022 16:20:18 + + +错误信息开始=====> +错误类型:HttpParseException +错误信息:无法从其“Icon”属性的字符串表示形式“ThLarge”创建“FineUIPro.Icon”类型的对象。 +错误堆栈: + 在 System.Web.UI.TemplateParser.ProcessException(Exception ex) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) + 在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) +----错误类型:HttpException +----错误信息: +----无法从其“Icon”属性的字符串表示形式“ThLarge”创建“FineUIPro.Icon”类型的对象。 +----错误堆栈: + 在 System.Web.UI.PropertyConverter.ObjectFromString(Type objType, MemberInfo propertyInfo, String value) + 在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode) + 在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column) + 在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs) + 在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs) + 在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName) + 在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty) + 在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText) + 在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) +出错时间:12/22/2022 16:29:29 +出错文件:http://localhost:8119/HSSE/SitePerson/PersonListEdit.aspx?ProjectId=b11a16ea-148c-4bae-a5a1-32158b599482&&UnitId=1cfbabe9-86e5-4d2a-952c-0c52a728a127 +IP地址:::1 + +出错时间:12/22/2022 16:29:29 + + +错误信息开始=====> +错误类型:NullReferenceException +错误信息:未将对象引用设置到对象的实例。 +错误堆栈: + 在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\gitee\sggl_cd\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 302 + 在 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) +出错时间:12/22/2022 16:44:19 +出错文件:http://localhost:8119/indexProject.aspx?projectId=b11a16ea-148c-4bae-a5a1-32158b599482 +IP地址:::1 +操作人员: + +出错时间:12/22/2022 16:44:19 + diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj index 1cc43b8c..932a2500 100644 --- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj @@ -261,13 +261,22 @@ + + + + + + + + + @@ -6314,6 +6323,13 @@ WorkStage.aspx + + main0.aspx + ASPXCodeBehind + + + main0.aspx + main2.aspx ASPXCodeBehind @@ -6321,6 +6337,20 @@ main2.aspx + + mainI.aspx + ASPXCodeBehind + + + mainI.aspx + + + mainIII.aspx + ASPXCodeBehind + + + mainIII.aspx + mainMenu_CQMS_1.aspx ASPXCodeBehind @@ -6328,6 +6358,13 @@ mainMenu_CQMS_1.aspx + + mainMenu_DigitalSite.aspx + ASPXCodeBehind + + + mainMenu_DigitalSite.aspx + mainMenu_HJGL2.aspx ASPXCodeBehind @@ -6349,6 +6386,13 @@ mainMenu_HSSE2.aspx + + mainMenu_PDigData.aspx + ASPXCodeBehind + + + mainMenu_PDigData.aspx + mainMenu_SYHSE.aspx ASPXCodeBehind @@ -6363,6 +6407,34 @@ mainMenu_SYHSEN.aspx + + mainProject0.aspx + ASPXCodeBehind + + + mainProject0.aspx + + + mainProject1.aspx + ASPXCodeBehind + + + mainProject1.aspx + + + main_copy_index.aspx + ASPXCodeBehind + + + main_copy_index.aspx + + + main_copy_index_1.aspx + ASPXCodeBehind + + + main_copy_index_1.aspx + todolist.aspx ASPXCodeBehind diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx index 30dd2b6e..7100c945 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx @@ -43,12 +43,12 @@ + - - - diff --git a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs index 788990d8..df7089ab 100644 --- a/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/SitePerson/PersonListEdit.aspx.cs @@ -150,7 +150,7 @@ namespace FineUIPro.Web.HSSE.SitePerson this.drpMaritalStatus.SelectedValue = person.MaritalStatus; } this.txtIdcardAddress.Text = person.IdcardAddress; - this.rblIsUsed.SelectedValue = person.IsUsed==1? "1" : "0"; + this.rblIsUsed.SelectedValue = person.IsUsed==1|| person.IsUsed == 2 ? "1" : "0"; this.rblIsCardUsed.SelectedValue = person.IsCardUsed ? "True" : "False"; this.txtCardNo.Text = person.CardNo; this.txtPersonName.Text = person.PersonName; @@ -438,26 +438,7 @@ namespace FineUIPro.Web.HSSE.SitePerson { person.PostTitleId = this.drpTitle.SelectedValue; } - if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue)) - { - if (this.rblIsUsed.SelectedValue == "1") - { - if (whichBtn == 0) - { - - person.IsUsed = 2; - } - else - { - - person.IsUsed = 1; - } - } - else - { - person.IsUsed = 0; - } - } + if (!string.IsNullOrEmpty(this.rblIsCardUsed.SelectedValue)) { person.IsCardUsed = Convert.ToBoolean(this.rblIsCardUsed.SelectedValue); @@ -563,6 +544,26 @@ namespace FineUIPro.Web.HSSE.SitePerson person.IsOutside = this.ckIsOutside.Checked; if (string.IsNullOrEmpty(PersonId)) { + if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue)) + { + if (this.rblIsUsed.SelectedValue == "1") + { + if (whichBtn == 1) + { + + person.IsUsed = 1; + } + else + { + + person.IsUsed = 2; + } + } + else + { + person.IsUsed = 0; + } + } if (!string.IsNullOrEmpty(this.txtCardNo.Text.Trim())) { int cardNoCount = BLL.PersonService.GetPersonCountByCardNo(this.ProjectId, this.txtCardNo.Text.Trim()); @@ -598,8 +599,29 @@ namespace FineUIPro.Web.HSSE.SitePerson { var getPerson = BLL.PersonService.GetPersonById(PersonId); if (getPerson != null) - { person.FromPersonId = getPerson.FromPersonId; } + { + person.FromPersonId = getPerson.FromPersonId; + } + if (!string.IsNullOrEmpty(this.rblIsUsed.SelectedValue)) + { + if (this.rblIsUsed.SelectedValue == "1") + { + if (whichBtn == 1) + { + person.IsUsed = 1; + } + else + { + + person.IsUsed = getPerson.IsUsed; + } + } + else + { + person.IsUsed = 0; + } + } person.PersonId = PersonId; BLL.PersonService.UpdatePerson(person); //判断并更新项目用户的主副专业信息 @@ -732,6 +754,10 @@ namespace FineUIPro.Web.HSSE.SitePerson this.btnSave.Hidden = false; this.filePhoto.Hidden = false; this.btnReadIdentityCard.Hidden = false; + if (CurrUser.UnitId == Const.UnitId_CD) + { + this.btnAudit.Hidden = false; + } } } } diff --git a/SGGL/FineUIPro.Web/common/mainMenu_PDigData.aspx.cs b/SGGL/FineUIPro.Web/common/mainMenu_PDigData.aspx.cs index 05b844ec..f26a8d7d 100644 --- a/SGGL/FineUIPro.Web/common/mainMenu_PDigData.aspx.cs +++ b/SGGL/FineUIPro.Web/common/mainMenu_PDigData.aspx.cs @@ -13,7 +13,7 @@ namespace FineUIPro.Web.common if (!IsPostBack) { getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList(); - getPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == true + getPersons = Funs.DB.SitePerson_Person.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.IsUsed == 1 && x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime > DateTime.Now)).ToList(); ///当前现场总人数 getSitePerson();