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/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/DataBase/版本日志/HJGLDB_DS_2026-09-23_gf.sql b/DataBase/版本日志/HJGLDB_DS_2026-09-23_gf.sql new file mode 100644 index 0000000..7338ab9 --- /dev/null +++ b/DataBase/版本日志/HJGLDB_DS_2026-09-23_gf.sql @@ -0,0 +1,67 @@ + +CREATE VIEW [dbo].[View_UnitWeldPerformance] +AS +SELECT + NEWID() AS Id, + '' as ProjectCode, + total.WED_Unit, + un.UnitCode,-- µ¥Î»´úÂë + un.UnitName,--µ¥Î»Ãû³Æ + -------------±¾ÆÚstart + ISNULL(MRPerson.MRPersonNum,0) AS MRPersonNum, --ά±£ÔÚ¸ÚÈËÊý + ISNULL(TTPerson.TTPersonNum,0) AS TTPersonNum, --¼¼¸ÄÔÚ¸ÚÈËÊý + ISNULL(WeldJoint.totalSize,0) AS TotalSize, --µ±ÈÕº¸½ÓÁ¿ + ISNULL(WorkProject.WorkProjectNum,0) AS WorkProjectNum --ά±£¹¤×÷ÏîÊý +FROM + --×Ü´ïÒòÖµ --×ܺ¸¿Ú + (SELECT SUM(joint.JOT_Size) AS totalSize,COUNT(*) AS totalJoint + ,joint.WED_Unit + FROM View_JointWelder joint + LEFT JOIN HJGL_BO_WeldReportMain report ON joint.DReportID = report.DReportID + WHERE joint.DReportID IS NOT NULL and report.JOT_WeldDate >= '2026-01-01' + GROUP BY joint.WED_Unit) AS total + + +--ά±£ÔÚ¸ÚÈËÊý£¬Óм¸¸öÈËÁìÓÃÁ˺¸²Ä¾ÍÊǼ¸¸öÈË + LEFT JOIN (SELECT COUNT(usingMat.UsingMatId) AS MRPersonNum, + welder.WED_Unit + FROM dbo.HJGL_BS_Welder welder + left join dbo.Weld_UsingMat usingMat on usingMat.UsingMan=welder.WED_ID + WHERE usingMat.UsingDate>= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate= DATEADD(day, -1, CAST(GETDATE() AS date)) and report.JOT_WeldDate= DATEADD(day, -1, CAST(GETDATE() AS date)) and usingMat.UsingDate + true - Release|Any CPU + Debug|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/Global.asax.cs b/HJGL_DS/FineUIPro.Web/Global.asax.cs index 27002d0..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; @@ -377,9 +378,22 @@ { 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; @@ -425,10 +439,17 @@ 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 @@ - + diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx index 27d23e6..23aa1a3 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx @@ -117,7 +117,7 @@ HeaderText="使用ä½�ç½®" HeaderTextAlign="Center" TextAlign="Center"> + HeaderText="是å�¦ç®¡é�“焊接" HeaderTextAlign="Center" TextAlign="Center"> diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs index 6e3daaf..d29b6a3 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlan.aspx.cs @@ -141,7 +141,7 @@ namespace FineUIPro.Web.WeldMat.UsingPlan string strSql = @"SELECT UsingPlan.UsingPlanId, UsingPlan.WeldId, UsingPlan.ProjectId, UsingPlan.UsePosition,TeamGroupId,UsingPlan.STE_Name,UnitStore.UnitStoreName, unit.UnitName AS UsingUnit,UsingPlan.Amount, UsingPlan.UsingManOne, UsingPlan.InPutDate, CONVERT(varchar(100), UsingPlan.OrderDate, 23)+' '+UsingPlan.OrderTime as OrderTime, UsingPlan.CancelDate,UsingPlan.IsNeedConfirm, - (CASE UsingPlan.IsSteelStru WHEN 1 THEN '是' WHEN 0 THEN 'å�¦' ELSE '' END) AS IsSteelStru, + (CASE UsingPlan.IsSteelStru WHEN 1 THEN 'å�¦' WHEN 0 THEN '是' ELSE '' END) AS IsSteelStru, (CASE UsingPlan.IsSubmit WHEN 1 THEN '是' WHEN 0 THEN 'å�¦' ELSE '' END) AS IsSubmit, (CASE UsingPlan.IsCancel WHEN 1 THEN '是' WHEN 0 THEN 'å�¦' ELSE '' END) AS IsCancel, Weld.WeldCode,Weld.WeldName,Weld.WeldSpec,WeldType.WeldUnit,WeldType.WeldTypeName, diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx index 62ec827..994146d 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingPlan/UsingPlanEdit.aspx @@ -61,9 +61,9 @@ - - - + + + - + + diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx.cs index a333dd2..37deb70 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx.cs @@ -343,7 +343,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat BindGrid(); foreach (GridColumn column in grid.Columns) { - if (column.ColumnIndex < 24) + if (column.ColumnIndex < 25) { sb.AppendFormat("{0}", column.HeaderText); } @@ -355,7 +355,7 @@ namespace FineUIPro.Web.WeldMat.UsingSentMat sb.Append(""); foreach (GridColumn column in grid.Columns) { - if (column.ColumnIndex < 24) + if (column.ColumnIndex < 25) { string html = row.Values[column.ColumnIndex].ToString(); if (column.ColumnID == "tfNumber") diff --git a/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx b/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx index b82a7d4..61116a9 100644 --- a/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx +++ b/HJGL_DS/FineUIPro.Web/Welder/WelderManage.aspx @@ -57,9 +57,17 @@ + + + + + + \ No newline at end of file diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index 8cd7f1f..a48b337 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - + - Release|Any CPU + Debug|Any CPU FolderProfile true