diff --git a/DataBase/版本日志/SGGLDB_CD_V2023-04-26-001.sql b/DataBase/版本日志/SGGLDB_CD_V2023-04-26-001.sql
new file mode 100644
index 00000000..13d1d751
Binary files /dev/null and b/DataBase/版本日志/SGGLDB_CD_V2023-04-26-001.sql differ
diff --git a/SGGL/BLL/API/APIPersonService.cs b/SGGL/BLL/API/APIPersonService.cs
index 4df566b2..29138bf6 100644
--- a/SGGL/BLL/API/APIPersonService.cs
+++ b/SGGL/BLL/API/APIPersonService.cs
@@ -95,7 +95,7 @@ namespace BLL
Telephone = x.Telephone,
PhotoUrl = x.PhotoUrl,
DepartName = x.DepartName,
- IsUsed = x.IsUsed == 1 ? true : false,
+ IsUsed = x.IsUsed .HasValue?x.IsUsed.Value.ToString():"",
IsUsedName = x.IsUsed == 0 ? "不启用" : "启用",
AuditorId = x.AuditorId,
AuditorName = db.Sys_User.First(z => z.UserId == x.AuditorId).UserName,
@@ -202,7 +202,7 @@ namespace BLL
Telephone = x.Telephone,
PhotoUrl = x.PhotoUrl,
DepartName = x.DepartName,
- IsUsed = x.IsUsed==1?true:false,
+ IsUsed = x.IsUsed.HasValue?x.IsUsed.Value.ToString():"",
IsUsedName = x.IsUsed == 0 ? "不启用" : "启用",
AuditorId = x.AuditorId,
AuditorName = db.Sys_User.First(z => z.UserId == x.AuditorId).UserName,
@@ -400,7 +400,7 @@ namespace BLL
OutResult = x.OutResult,
Telephone = x.Telephone,
PhotoUrl = x.PhotoUrl,
- IsUsed = x.IsUsed==1?true:false,
+ IsUsed = x.IsUsed.HasValue?x.IsUsed.ToString():"",
IsUsedName = (x.IsUsed == 1 ? "启用" : "未启用"),
WorkAreaId = x.WorkAreaId,
WorkAreaName = UnitWorkService.GetUnitWorkName(x.WorkAreaId),
@@ -567,13 +567,19 @@ namespace BLL
/// 培训岗位ID
/// 培训类型ID
///
- public static List getTrainingPersonListByTrainTypeId(string projectId, string unitIds, string workPostIds, string departIds, string trainTypeId)
+ public static List getTrainingPersonListByTrainTypeId(string projectId, string unitIds, string workPostIds, string departIds, string trainTypeId,string InTime,string strParam)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
+ DateTime inDateTime=DateTime.Now;
+ if (!string.IsNullOrEmpty(InTime))
+ {
+ inDateTime = DateTime.Parse(InTime);
+ }
+
List unitIdList = Funs.GetStrListByStr(unitIds, ',');
var getPersons = from x in db.View_SitePerson_Person
- where x.ProjectId == projectId && unitIdList.Contains(x.UnitId) && x.IsUsed == 1
+ where x.ProjectId == projectId && unitIdList.Contains(x.UnitId) && x.IsUsed == 1 &&(string.IsNullOrEmpty(strParam)||x.PersonName.Contains(strParam)) && (string.IsNullOrEmpty(InTime) || x.InTime < inDateTime)
&& x.InTime <= DateTime.Now && (!x.OutTime.HasValue || x.OutTime >= DateTime.Now)
select new Model.PersonItem
{
@@ -723,13 +729,9 @@ namespace BLL
{
newPerson.ViceCNProfessionalId = person.ViceCNProfessionalId;
}
- if (person.IsUsed == true)
+ if (!string.IsNullOrEmpty(person.IsUsed))
{
- newPerson.IsUsed = 1;
- }
- else
- {
- newPerson.IsUsed = 0;
+ newPerson.IsUsed = int.Parse(person.IsUsed);
}
newPerson.Password = PersonService.GetPersonPassWord(person.IdentityCard);
string rootUrl = ConfigurationManager.AppSettings["localRoot"];
@@ -808,7 +810,10 @@ namespace BLL
}
else
{
- getPerson.IsUsed = person.IsUsed?1:0;
+ if (!string.IsNullOrEmpty(person.IsUsed))
+ {
+ getPerson.IsUsed = int.Parse(person.IsUsed);
+ }
getPerson.AuditorDate = DateTime.Now;
}
getPerson.AuditorId = person.AuditorId;
diff --git a/SGGL/BLL/API/HSSE/APITestRecordService.cs b/SGGL/BLL/API/HSSE/APITestRecordService.cs
index 2a60876d..adddf092 100644
--- a/SGGL/BLL/API/HSSE/APITestRecordService.cs
+++ b/SGGL/BLL/API/HSSE/APITestRecordService.cs
@@ -35,6 +35,7 @@ namespace BLL
TestScores = x.TestScores ?? 0,
TestType = x.TestType,
TemporaryUser = x.TemporaryUser,
+ Signature= x.Signature
}).ToList();
foreach(var item in getDataLists)
@@ -90,6 +91,7 @@ namespace BLL
TestScores = x.TestScores ?? 0,
TestType = x.TestType,
TemporaryUser = x.TemporaryUser,
+ Signature= x.Signature
};
var res = getDataLists.FirstOrDefault();
if (res != null)
@@ -845,5 +847,29 @@ namespace BLL
}
}
#endregion
+
+
+
+
+ ///
+ /// 修改考试记录信息
+ ///
+ ///
+ public static void updateTestRecord(Model.Training_TestRecord testRecord)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ Model.Training_TestRecord newTestRecord = db.Training_TestRecord.FirstOrDefault(e => e.TestRecordId == testRecord.TestRecordId);
+ if (newTestRecord != null)
+ {
+ newTestRecord.TestScores = testRecord.TestScores;
+ newTestRecord.TestEndTime = testRecord.TestEndTime;
+ newTestRecord.IsFiled = testRecord.IsFiled;
+ newTestRecord.Signature = testRecord.Signature;
+ newTestRecord.Fingerprint = testRecord.Fingerprint;
+ db.SubmitChanges();
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/SGGL/BLL/Common/PrinterDocService.cs b/SGGL/BLL/Common/PrinterDocService.cs
index f4ade49a..5a3ac2b1 100644
--- a/SGGL/BLL/Common/PrinterDocService.cs
+++ b/SGGL/BLL/Common/PrinterDocService.cs
@@ -1451,7 +1451,17 @@
sb.Append("");
sb.Append("");
- sb.AppendFormat("{0} | ", "姓名:" + testName);
+ if (!string.IsNullOrEmpty(getTestRecord.Signature))
+ {
+ sb.AppendFormat(".Replace() | ");
+ }
+ else
+ {
+ sb.AppendFormat(" | ");
+
+ //sb.AppendFormat("{0} | ", "姓名:" + testName);
+
+ }
sb.AppendFormat("{0} | ", "身份证号:" + idCard);
sb.AppendFormat("{0} | ", "分数:" + (getTestRecord.TestScores ?? 0).ToString());
sb.Append("
");
diff --git a/SGGL/FineUIPro.Web/CQMS/Foreign/ITPListProject.aspx.cs b/SGGL/FineUIPro.Web/CQMS/Foreign/ITPListProject.aspx.cs
index 51192bbe..cb366ddd 100644
--- a/SGGL/FineUIPro.Web/CQMS/Foreign/ITPListProject.aspx.cs
+++ b/SGGL/FineUIPro.Web/CQMS/Foreign/ITPListProject.aspx.cs
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.CQMS.Foreign
,[Memo]
,[CheckDate]
,[FileType]
- FROM CQMS_Foreign_ITPListProject where 1=1 ";
+ FROM CQMS_Foreign_ITPListProject where ProjectId='"+this.CurrUser.LoginProjectId+"' ";
List listStr = new List();
diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt
index 5f282702..00dc6d31 100644
--- a/SGGL/FineUIPro.Web/ErrLog.txt
+++ b/SGGL/FineUIPro.Web/ErrLog.txt
@@ -1 +1,98 @@
-
\ No newline at end of file
+
+错误信息开始=====>
+错误类型:HttpException
+错误信息:文件“/HSSE/AttachFile/webuploader.aspx”不存在。
+错误堆栈:
+ 在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:04/25/2023 18:54:47
+出错文件:http://localhost:1295/HSSE/AttachFile/webuploader.aspx?toKeyId=&path=FileUpload/SafePersonQualityAttachUrl&menuId=750F5074-45B9-470E-AE1E-6204957421E6&type=-1
+IP地址:::1
+
+出错时间:04/25/2023 18:54:47
+
+
+错误信息开始=====>
+错误类型:SqlException
+错误信息:参数化查询 '(@ProjectId nvarchar(4000))SELECT DISTINCT PersonQuality.SafePer' 需要参数 '@ProjectId',但未提供该参数。
+错误堆栈:
+ 在 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.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
+ 在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
+ 在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 D:\project\vs\sggl_cd\SGGL\BLL\SQLHelper.cs:行号 311
+ 在 FineUIPro.Web.HSSE.QualityAudit.SafePersonQuality.BindGrid() 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\QualityAudit\SafePersonQuality.aspx.cs:行号 102
+ 在 FineUIPro.Web.HSSE.QualityAudit.SafePersonQuality.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\QualityAudit\SafePersonQuality.aspx.cs:行号 60
+ 在 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)
+出错时间:04/25/2023 19:01:25
+出错文件:http://localhost:1295/HSSE/QualityAudit/SafePersonQuality.aspx
+IP地址:::1
+操作人员:JT
+
+出错时间:04/25/2023 19:01:25
+
+
+错误信息开始=====>
+错误类型:NullReferenceException
+错误信息:未将对象引用设置到对象的实例。
+错误堆栈:
+ 在 FineUIPro.Web.CQMS.Check.EditJointCheck.Page_Load(Object sender, EventArgs e) 位置 D:\project\vs\sggl_cd\SGGL\FineUIPro.Web\CQMS\Check\EditJointCheck.aspx.cs:行号 58
+ 在 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)
+出错时间:04/26/2023 15:31:55
+出错文件:http://localhost:1295/CQMS/Check/EditJointCheck.aspx
+IP地址:::1
+操作人员:JT
+
+出错时间:04/26/2023 15:31:55
+
+
+错误信息开始=====>
+错误类型:HttpCompileException
+错误信息:d:\project\vs\sggl_cd\SGGL\FineUIPro.Web\HSSE\Check\CheckSpecial.aspx(56): error CS1061: “ASP.hsse_check_checkspecial_aspx”不包含“drpType_SelectedIndexChanged”的定义,并且找不到可接受类型为“ASP.hsse_check_checkspecial_aspx”的第一个参数的扩展方法“drpType_SelectedIndexChanged”(是否缺少 using 指令或程序集引用?)
+错误堆栈:
+ 在 System.Web.Compilation.AssemblyBuilder.Compile()
+ 在 System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
+ 在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
+ 在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
+ 在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
+ 在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
+ 在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
+ 在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
+ 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
+ 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
+出错时间:04/27/2023 15:21:49
+出错文件:http://localhost:1295/HSSE/Check/CheckSpecial.aspx
+IP地址:::1
+
+出错时间:04/27/2023 15:21:49
+
diff --git a/SGGL/FineUIPro.Web/FileUpload/SafePersonQualityAttachUrl/2023-04/638180458829725872_附件3:2023年度工作通报事项一览表_(4).xlsx b/SGGL/FineUIPro.Web/FileUpload/SafePersonQualityAttachUrl/2023-04/638180458829725872_附件3:2023年度工作通报事项一览表_(4).xlsx
new file mode 100644
index 00000000..35fe88e8
Binary files /dev/null and b/SGGL/FineUIPro.Web/FileUpload/SafePersonQualityAttachUrl/2023-04/638180458829725872_附件3:2023年度工作通报事项一览表_(4).xlsx differ
diff --git a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecial.aspx b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecial.aspx
index dd7012d3..40e2e5ec 100644
--- a/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecial.aspx
+++ b/SGGL/FineUIPro.Web/HSSE/Check/CheckSpecial.aspx
@@ -38,7 +38,7 @@
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
-
-
-
-
-
+
+
-
+
-
-
+
+
+
+
+
+
+
+
@@ -127,13 +131,16 @@
+ Width="1400px" Height="540px">