From 689707bfd169db9b0231a1193396c7557c5bf306 Mon Sep 17 00:00:00 2001 From: wendy <408182087@qq.com> Date: Tue, 9 Jun 2026 17:50:38 +0800 Subject: [PATCH] =?UTF-8?q?20260609=20=E6=97=A5=E6=8A=A5=E7=84=8A=E6=9D=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../FineUIPro.Web/FineUIPro.Web.csproj.user | 2 +- .../HJGL/WeldingManage/WeldReportEdit.aspx.cs | 25 ++-- HJGL_DS/FineUIPro.Web/Web.config | 134 +++++++++--------- HJGL_DS/WebAPI/WebAPI.csproj.user | 2 +- 4 files changed, 82 insertions(+), 81 deletions(-) diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index e3436b8..6e29203 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ true - Release|Any CPU + Debug|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs index 4fbb4a5..57adb0b 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/WeldReportEdit.aspx.cs @@ -1,11 +1,12 @@ -using System; +using BLL; +using Model; +using Newtonsoft.Json.Linq; +using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web.UI; -using BLL; -using Newtonsoft.Json.Linq; namespace FineUIPro.Web.HJGL.WeldingManage { @@ -349,13 +350,13 @@ namespace FineUIPro.Web.HJGL.WeldingManage { string status = mergedRow.Value("status"); JObject values = mergedRow.Value("values"); - //var weldMat = (from x in Funs.DB.HJGL_BS_WeldMaterial where x.WMT_MatCode == values.Value("JOT_WeldMat") select x).FirstOrDefault(); - //if (weldMat == null) - //{ - // ShowNotify("焊条牌号不能为空!", MessageBoxIcon.Warning); - // return; - //} - var weldSilk = (from x in Funs.DB.HJGL_BS_WeldMaterial where x.WMT_MatCode == values.Value("JOT_WeldSilk") select x).FirstOrDefault(); + var weldMat = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldTypeName.Contains("焊条") && x.WeldName == values.Value("JOT_WeldMat") select x).FirstOrDefault(); + if (weldMat == null) + { + ShowNotify("焊条牌号不能为空!", MessageBoxIcon.Warning); + return; + } + var weldSilk = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldTypeName.Contains("焊丝") && x.WeldName == values.Value("JOT_WeldSilk") select x).FirstOrDefault(); if (weldSilk == null) { ShowNotify("焊丝牌号不能为空!", MessageBoxIcon.Warning); @@ -1256,7 +1257,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage // item.JOT_WeldMat = null; // item.WeldMatCode = null; //} - var weldMat = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldName == values.Value("JOT_WeldMat") select x).FirstOrDefault(); + var weldMat = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldTypeName.Contains("焊条") && x.WeldName == values.Value("JOT_WeldMat") select x).FirstOrDefault(); if (weldMat != null) { item.JOT_WeldMat = weldMat.WeldId; @@ -1279,7 +1280,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage // item.JOT_WeldSilk = null; // item.WeldSilkCode = null; //} - var weldSilk = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldName == values.Value("JOT_WeldSilk") select x).FirstOrDefault(); + var weldSilk = (from x in Funs.DB.View_WeldInfoDropDownLists where x.WeldTypeName.Contains("焊丝") && x.WeldName == values.Value("JOT_WeldSilk") select x).FirstOrDefault(); if (weldSilk != null) { item.JOT_WeldSilk = weldSilk.WeldId; diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index bf11678..557f12f 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -1,4 +1,4 @@ - + -
+
- + - + - - - - - - - + + + + + + + - - + + - - - + + + - + - + - + - + - + - - + + - - + + - - - + + + - + - + - + - + - - + + - - + + - - - + + + - + - - - - + + + + - + - - - + + + - + - - - + + + - - - - + + + + - + - + - + - + - - - + + + - - + + @@ -164,8 +164,8 @@ - - + + diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index 8cd7f1f..ef14066 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