Browse Source

优化校准字段取值

yhluo 4 months ago
parent
commit
5899d6832a
2 changed files with 27 additions and 3 deletions
  1. 2 3
      UAS_MES_HGS/FunctionCode/Make/Make_ImeiCheck.cs
  2. 25 0
      UAS_MES_HGS/UAS_MES_HGS.sln

+ 2 - 3
UAS_MES_HGS/FunctionCode/Make/Make_ImeiCheck.cs

@@ -69,8 +69,7 @@ namespace UAS_MES_NEW.Make
                 {
                     OperateResult.AppendText("<<" + sncode.Text + "\n", Color.Black);
                     sql.Clear();
-                    /*sql.Append("select max(ms_id) ms_id from makeserial where ms_sncode ='" + sncode.Text + "'");*/
-                    sql.Append("select max(MAL_ID) mal_id from makeaddresslist where MAL_SNCODE = '" + sncode.Text + "'");
+                    sql.Append("select ms_sncode from makeserial where ms_sncode ='" + sncode.Text + "'");
                     dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                     if (dt.Rows.Count == 0 || dt.Rows[0]["mal_id"].ToString() == "")
                     {
@@ -81,7 +80,7 @@ namespace UAS_MES_NEW.Make
                     {
                         sql.Clear();
                         /*sql.Append("select ms_sncode from  makeserial  where ms_id='" + dt.Rows[0]["ms_id"].ToString() + "'");*/
-                        sql.Append("select MAL_SN1_USER from makeaddresslist where MAL_ID = '" + dt.Rows[0]["ms_id"].ToString() + "'");
+                        sql.Append("select MAL_SN1_USER from makeaddresslist where MAL_SNCODE = '" + dt.Rows[0]["ms_sncode"].ToString() + "'");
                         info = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
                         if (info.Rows.Count > 0)
                         {

+ 25 - 0
UAS_MES_HGS/UAS_MES_HGS.sln

@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.14.36202.13 d17.14
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UAS_MES_HGS", "UAS_MES_HGS.csproj", "{DBB3AFA6-BBAC-42DB-8E4C-E02D71A27630}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Any CPU = Debug|Any CPU
+		Release|Any CPU = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{DBB3AFA6-BBAC-42DB-8E4C-E02D71A27630}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{DBB3AFA6-BBAC-42DB-8E4C-E02D71A27630}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{DBB3AFA6-BBAC-42DB-8E4C-E02D71A27630}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{DBB3AFA6-BBAC-42DB-8E4C-E02D71A27630}.Release|Any CPU.Build.0 = Release|Any CPU
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+	GlobalSection(ExtensibilityGlobals) = postSolution
+		SolutionGuid = {C6FD7080-F710-49FB-B595-090FBC9BD92F}
+	EndGlobalSection
+EndGlobal