From 156883656d923bea50ee10c7452ea019384fc4ca Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 21 Sep 2026 17:05:59 +0800 Subject: [PATCH 1/8] 1 --- DataBase/版本日志/HJGLDB_DS_2026-09-21_gf.sql | 2 ++ HJGL_DS/FineUIPro.Web/Web.config | 4 ++-- HJGL_DS/WebAPI/WebAPI.csproj.user | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-09-21_gf.sql diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-21_gf.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-21_gf.sql new file mode 100644 index 0000000..447a818 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-09-21_gf.sql @@ -0,0 +1,2 @@ +alter table [dbo].[OAM_User] add IsSelfCreate bit null +GO \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index f469b13..070a5f8 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + @@ -67,7 +67,7 @@ - + diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index ef14066..28be9c4 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - + - Debug|Any CPU + Release|Any CPU FolderProfile true From 75123fa77ae6e45e08f1c74e7cd3a5b3f72f0dee Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 21 Sep 2026 17:36:20 +0800 Subject: [PATCH 2/8] 1 --- HJGL_DS/FineUIPro.Web/Global.asax.cs | 28 ++++++++++++++++++++++++++-- HJGL_DS/FineUIPro.Web/Web.config | 2 +- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/Global.asax.cs b/HJGL_DS/FineUIPro.Web/Global.asax.cs index 27002d0..b2992b4 100644 --- a/HJGL_DS/FineUIPro.Web/Global.asax.cs +++ b/HJGL_DS/FineUIPro.Web/Global.asax.cs @@ -377,14 +377,28 @@ { if (!string.IsNullOrEmpty(q.MIDWelder_QualifiedProjectCode)) { - if (q.MIDWelder_QualifiedProjectCode.Contains("+")) + if (q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("+") || q.MIDWelder_QualifiedProjectCode.Contains("和")) { - string[] codes = q.MIDWelder_QualifiedProjectCode.Split('+'); + string[] codes = null; + if (q.MIDWelder_QualifiedProjectCode.Contains("+")) + { + codes = q.MIDWelder_QualifiedProjectCode.Split('+'); + } + if (q.MIDWelder_QualifiedProjectCode.Contains("+")) + { + codes = q.MIDWelder_QualifiedProjectCode.Split('+'); + } + if (q.MIDWelder_QualifiedProjectCode.Contains("和")) + { + codes = q.MIDWelder_QualifiedProjectCode.Split('和'); + } + foreach (string c in codes) { var oldCode = from x in Funs.DB.HJGL_BS_WelderQualifiedProject where x.WED_ID == s.First().WED_ID && x.QualifiedProjectCode == c && x.LimitDate.Value.Date == q.MIDWelder_LimitDate.Value.Date select x; if (oldCode.Count() == 0) { + m++; Model.HJGL_BS_WelderQualifiedProject welderQualifiedProject = new Model.HJGL_BS_WelderQualifiedProject(); welderQualifiedProject.WelderQualifiedProjectId = SQLHelper.GetNewID(typeof(Model.HJGL_BS_WelderQualifiedProject)); welderQualifiedProject.WED_ID = s.First().WED_ID; @@ -397,6 +411,7 @@ } else { + k++; string welderQualifiedProjectId = oldCode.First().WelderQualifiedProjectId; DateTime? limitDate = q.MIDWelder_LimitDate; BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedLimitDate(welderQualifiedProjectId, limitDate, q.MIDWelder_sfxgjgbl, q.MIDWelder_jjsybl, q.MIDWelder_jjsy); @@ -408,6 +423,7 @@ var oldCode = from x in Funs.DB.HJGL_BS_WelderQualifiedProject where x.WED_ID == s.First().WED_ID && x.QualifiedProjectCode == q.MIDWelder_QualifiedProjectCode && x.LimitDate.Value.Date == q.MIDWelder_LimitDate.Value.Date select x; if (oldCode.Count() == 0) { + n++; Model.HJGL_BS_WelderQualifiedProject welderQualifiedProject = new Model.HJGL_BS_WelderQualifiedProject(); welderQualifiedProject.WelderQualifiedProjectId = SQLHelper.GetNewID(typeof(Model.HJGL_BS_WelderQualifiedProject)); welderQualifiedProject.WED_ID = s.First().WED_ID; @@ -420,15 +436,23 @@ } else { + l++; string welderQualifiedProjectId = oldCode.First().WelderQualifiedProjectId; DateTime? limitDate = q.MIDWelder_LimitDate; BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedLimitDate(welderQualifiedProjectId, limitDate, q.MIDWelder_sfxgjgbl, q.MIDWelder_jjsybl, q.MIDWelder_jjsy); } } + + // 回写表OAM_UesrQualified long welder_ID = q.MIDWelder_ID; bool isSync = true; BLL.HJGL_WelderQualifiedProjectService.UpdateOAWelderQue(welder_ID, isSync); + + //List listStr = new List(); + //listStr.Add(new SqlParameter("@MIDWelder_ID", q.MIDWelder_ID)); + //SqlParameter[] parameter = listStr.ToArray(); + //BLL.SQLHelper.ExecutSql("UPDATE dbo.OAM_UesrQualified SET IsSync=1 WHERE MIDWelder_ID=@MIDWelder_ID", parameter); } } } diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 3c98f31..070a5f8 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + From 13b8bbf2fe2729680c31c8ff788e82858e866d80 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Mon, 21 Sep 2026 17:41:15 +0800 Subject: [PATCH 3/8] 1 --- HJGL_DS/FineUIPro.Web/Global.asax.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/Global.asax.cs b/HJGL_DS/FineUIPro.Web/Global.asax.cs index b2992b4..26f47ca 100644 --- a/HJGL_DS/FineUIPro.Web/Global.asax.cs +++ b/HJGL_DS/FineUIPro.Web/Global.asax.cs @@ -398,7 +398,6 @@ var oldCode = from x in Funs.DB.HJGL_BS_WelderQualifiedProject where x.WED_ID == s.First().WED_ID && x.QualifiedProjectCode == c && x.LimitDate.Value.Date == q.MIDWelder_LimitDate.Value.Date select x; if (oldCode.Count() == 0) { - m++; Model.HJGL_BS_WelderQualifiedProject welderQualifiedProject = new Model.HJGL_BS_WelderQualifiedProject(); welderQualifiedProject.WelderQualifiedProjectId = SQLHelper.GetNewID(typeof(Model.HJGL_BS_WelderQualifiedProject)); welderQualifiedProject.WED_ID = s.First().WED_ID; @@ -411,7 +410,6 @@ } else { - k++; string welderQualifiedProjectId = oldCode.First().WelderQualifiedProjectId; DateTime? limitDate = q.MIDWelder_LimitDate; BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedLimitDate(welderQualifiedProjectId, limitDate, q.MIDWelder_sfxgjgbl, q.MIDWelder_jjsybl, q.MIDWelder_jjsy); @@ -423,7 +421,6 @@ var oldCode = from x in Funs.DB.HJGL_BS_WelderQualifiedProject where x.WED_ID == s.First().WED_ID && x.QualifiedProjectCode == q.MIDWelder_QualifiedProjectCode && x.LimitDate.Value.Date == q.MIDWelder_LimitDate.Value.Date select x; if (oldCode.Count() == 0) { - n++; Model.HJGL_BS_WelderQualifiedProject welderQualifiedProject = new Model.HJGL_BS_WelderQualifiedProject(); welderQualifiedProject.WelderQualifiedProjectId = SQLHelper.GetNewID(typeof(Model.HJGL_BS_WelderQualifiedProject)); welderQualifiedProject.WED_ID = s.First().WED_ID; @@ -436,7 +433,6 @@ } else { - l++; string welderQualifiedProjectId = oldCode.First().WelderQualifiedProjectId; DateTime? limitDate = q.MIDWelder_LimitDate; BLL.HJGL_WelderQualifiedProjectService.UpdateWelderQualifiedLimitDate(welderQualifiedProjectId, limitDate, q.MIDWelder_sfxgjgbl, q.MIDWelder_jjsybl, q.MIDWelder_jjsy); From a9f54cdeb7392b98a1a0672ff82f50e7af9ea68c Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Tue, 22 Sep 2026 10:08:42 +0800 Subject: [PATCH 4/8] 1 --- DataBase/版本日志/HJGLDB_DS_2026-09-22_gf.sql | 2 + .../PersonManage/HJGL_PersonManageService.cs | 3 +- HJGL_DS/FineUIPro.Web/Global.asax.cs | 1 + .../FineUIPro.Web/Welder/WelderManage.aspx | 2 + .../FineUIPro.Web/Welder/WelderManage.aspx.cs | 43 +++++++++++++++-- .../Welder/WelderManage.aspx.designer.cs | 9 ++++ HJGL_DS/Model/Model.cs | 48 +++++++++++++++++++ 7 files changed, 104 insertions(+), 4 deletions(-) create mode 100644 DataBase/版本日志/HJGLDB_DS_2026-09-22_gf.sql diff --git a/DataBase/版本日志/HJGLDB_DS_2026-09-22_gf.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-22_gf.sql new file mode 100644 index 0000000..b4f3b77 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-09-22_gf.sql @@ -0,0 +1,2 @@ +alter table HJGL_BS_Welder add IsSelfCreate bit null +GO \ No newline at end of file diff --git a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs index 508fac4..16c8f98 100644 --- a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs +++ b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs @@ -52,7 +52,7 @@ namespace BLL newWelder.ProjectId = welder.ProjectId; newWelder.IdentityCard = welder.IdentityCard; newWelder.SignatureUrl = welder.SignatureUrl; - + newWelder.IsSelfCreate = welder.IsSelfCreate; newWelder.MaxHanTiao = welder.MaxHanTiao; newWelder.MaxWeldingWire = welder.MaxWeldingWire; @@ -95,6 +95,7 @@ namespace BLL newWelder.MaxHanTiao = welder.MaxHanTiao; newWelder.MaxWeldingWire = welder.MaxWeldingWire; newWelder.IsOAM = welder.IsOAM; + newWelder.IsSelfCreate = welder.IsSelfCreate; if (!string.IsNullOrEmpty(welder.PhotoUrl) && newWelder.PhotoUrl != welder.PhotoUrl) { newWelder.PhotoUrl = welder.PhotoUrl; diff --git a/HJGL_DS/FineUIPro.Web/Global.asax.cs b/HJGL_DS/FineUIPro.Web/Global.asax.cs index 26f47ca..37bd268 100644 --- a/HJGL_DS/FineUIPro.Web/Global.asax.cs +++ b/HJGL_DS/FineUIPro.Web/Global.asax.cs @@ -340,6 +340,7 @@ newWelder.MaxHanTiao = q.MID_HanTiao; newWelder.MaxWeldingWire = q.MID_WeldingWire; newWelder.IsOAM = true; + newWelder.IsSelfCreate = q.IsSelfCreate; if (s.Count() > 0) { newWelder.WED_ID = s.First().WED_ID; diff --git a/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx b/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx index b82a7d4..ed8da84 100644 --- a/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx +++ b/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx @@ -60,6 +60,8 @@ +