callm 1 год назад
Родитель
Сommit
41b561e2a3

+ 9 - 3
UAS_MES_LGDZ/CustomControl/RichText/RichTextAutoBottom.cs

@@ -39,7 +39,6 @@ namespace UAS_MES_NEW.CustomControl.RichText
                 FileName = Application.StartupPath + @"\Resources\Sound\5185.wav";
                 FileName = Application.StartupPath + @"\Resources\Sound\5185.wav";
                 thread.Start();
                 thread.Start();
                 thread = new Thread(PlaySound);
                 thread = new Thread(PlaySound);
-
             }
             }
             else if (color == Color.Green && Entity.SystemInf.CheckAudioEnable)
             else if (color == Color.Green && Entity.SystemInf.CheckAudioEnable)
             {
             {
@@ -48,10 +47,10 @@ namespace UAS_MES_NEW.CustomControl.RichText
                 thread.Start();
                 thread.Start();
                 thread = new Thread(PlaySound);
                 thread = new Thread(PlaySound);
             }
             }
-            else if (color == Color.Blue && Entity.SystemInf.CheckAudioEnable)
+            else if (color == Color.GreenYellow && Entity.SystemInf.CheckAudioEnable)
             {
             {
                 //颜色是绿色,进行正确提示音
                 //颜色是绿色,进行正确提示音
-                FileName = Application.StartupPath + @"\Resources\Sound\4082.wav";
+                FileName = Application.StartupPath + @"\Resources\Sound\3285.wav";
                 thread.Start();
                 thread.Start();
                 thread = new Thread(PlaySound);
                 thread = new Thread(PlaySound);
             }
             }
@@ -83,6 +82,13 @@ namespace UAS_MES_NEW.CustomControl.RichText
                 thread.Start();
                 thread.Start();
                 thread = new Thread(PlaySound);
                 thread = new Thread(PlaySound);
             }
             }
+            else if (color == Color.GreenYellow && Entity.SystemInf.CheckAudioEnable)
+            {
+                //颜色是绿色,进行正确提示音
+                FileName = Application.StartupPath + @"\Resources\Sound\9865.wav";
+                thread.Start();
+                thread = new Thread(PlaySound);
+            }
             LogManager.DoLog(FindForm().Tag + str);
             LogManager.DoLog(FindForm().Tag + str);
         }
         }
 
 

+ 1 - 1
UAS_MES_LGDZ/DataOperate/DataHelper.cs

@@ -9,7 +9,7 @@ namespace UAS_MES_NEW.DataOperate
 {
 {
     class DataHelper
     class DataHelper
     {
     {
-        //系统默认的的连接字符串
+        //系统默认的的连接字符串 
         private string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.30.253)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
         private string ConnectionStrings = "Connection Timeout=0;Pooling=false;Password=select!#%*(;User ID=N_MES;Pooling=false;Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=172.16.30.253)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl)));";
 
 
         //public static readonly string ERPAddesss = "http://218.64.89.153:8099/mes/";
         //public static readonly string ERPAddesss = "http://218.64.89.153:8099/mes/";

+ 1 - 1
UAS_MES_LGDZ/FunctionCode/Make/Make_FeedingCollection.cs

@@ -521,7 +521,7 @@ namespace UAS_MES_NEW.Make
                 CollectDataSonCode.Clear();
                 CollectDataSonCode.Clear();
                 //采集成功,设置序列号栏目为空
                 //采集成功,设置序列号栏目为空
                 RemainIndex = 0;
                 RemainIndex = 0;
-                OperateResult.AppendText(">>序列号" + sn_code.Text + "上料采集完成!\n", Color.Green);
+                OperateResult.AppendText(">>序列号" + sn_code.Text + "上料采集完成!\n", Color.GreenYellow);
                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "上料采集", "上料成功", sn_code.Text, "");
                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "上料采集", "上料成功", sn_code.Text, "");
                 if (LogicHandler.SetStepResult(ma_code, User.UserSourceCode, sn_code.Text, "上料采集", "上料成功", User.UserCode, out ErrorMessage))
                 if (LogicHandler.SetStepResult(ma_code, User.UserSourceCode, sn_code.Text, "上料采集", "上料成功", User.UserCode, out ErrorMessage))
                 {
                 {

+ 9 - 0
UAS_MES_LGDZ/Properties/Resources.Designer.cs

@@ -186,6 +186,15 @@ namespace UAS_MES_NEW.Properties {
             }
             }
         }
         }
         
         
+        /// <summary>
+        ///   查找类似于 System.IO.MemoryStream 的 System.IO.UnmanagedMemoryStream 类型的本地化资源。
+        /// </summary>
+        internal static System.IO.UnmanagedMemoryStream _9865 {
+            get {
+                return ResourceManager.GetStream("_9865", resourceCulture);
+            }
+        }
+        
         /// <summary>
         /// <summary>
         ///   查找 System.Drawing.Bitmap 类型的本地化资源。
         ///   查找 System.Drawing.Bitmap 类型的本地化资源。
         /// </summary>
         /// </summary>

+ 3 - 0
UAS_MES_LGDZ/Properties/Resources.resx

@@ -436,4 +436,7 @@
   <data name="SN" type="System.Resources.ResXFileRef, System.Windows.Forms">
   <data name="SN" type="System.Resources.ResXFileRef, System.Windows.Forms">
     <value>..\Resources\b473847f-a85b-400e-807a-4875c4c07ff1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
     <value>..\Resources\b473847f-a85b-400e-807a-4875c4c07ff1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
   </data>
   </data>
+  <data name="_9865" type="System.Resources.ResXFileRef, System.Windows.Forms">
+    <value>..\Resources\Sound\9865.wav;System.IO.MemoryStream, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </data>
 </root>
 </root>

+ 3 - 3
UAS_MES_LGDZ/PublicMethod/LogicHandler.cs

@@ -862,12 +862,12 @@ namespace UAS_MES_NEW.PublicMethod
             if (StepCode == CurrentStep)
             if (StepCode == CurrentStep)
             {
             {
                 InsertMakeProcess(iSN, iMakeCode, iSourceCode, iMPKind, iResult, iUserCode);
                 InsertMakeProcess(iSN, iMakeCode, iSourceCode, iMPKind, iResult, iUserCode);
-                return true;
             }
             }
             else
             else
             {
             {
-                return CS_SetResult(iMakeCode, iSourceCode, iSN, iUserCode, iResult, out oErrorMessage);
+               
             }
             }
+            return CS_SetResult(iMakeCode, iSourceCode, iSN, iUserCode, iResult, out oErrorMessage);
         }
         }
 
 
         public static bool SetStepResult(string iMakeCode, string iSourceCode, string iSN, string iMPKind, string iResult, string iUserCode, out string oErrorMessage)
         public static bool SetStepResult(string iMakeCode, string iSourceCode, string iSN, string iMPKind, string iResult, string iUserCode, out string oErrorMessage)
@@ -1017,8 +1017,8 @@ namespace UAS_MES_NEW.PublicMethod
                         dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_status=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "' ");
                         dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_status=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "' ");
                     else
                     else
                         dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_paststep = ms_paststep ||'," + StepCode + "',ms_reworkstatus=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "'");
                         dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_paststep = ms_paststep ||'," + StepCode + "',ms_reworkstatus=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "'");
-                    SetTestResult(iMakeCode, iSourceCode, iSnCode, "不良采集", "NG", iUserCode, out oErrorMessage);
                 }
                 }
+                SetTestResult(iMakeCode, iSourceCode, iSnCode, "不良采集", "NG", iUserCode, out oErrorMessage);
             }
             }
             return true;
             return true;
         }
         }

BIN
UAS_MES_LGDZ/Resources/Sound/9865.wav


+ 3 - 1
UAS_MES_LGDZ/UAS_MES_LGDZ.csproj

@@ -1993,6 +1993,7 @@
     <Content Include="Resources\Button\White-side.png" />
     <Content Include="Resources\Button\White-side.png" />
     <Content Include="Resources\change_password.png" />
     <Content Include="Resources\change_password.png" />
     <None Include="Resources\Sound\4082.wav" />
     <None Include="Resources\Sound\4082.wav" />
+    <Content Include="Resources\Sound\9865.wav" />
     <Content Include="Tool\DevComponents.DotNetBar2.dll" />
     <Content Include="Tool\DevComponents.DotNetBar2.dll" />
     <Content Include="Tool\DevExpress.BonusSkins.v15.2.dll" />
     <Content Include="Tool\DevExpress.BonusSkins.v15.2.dll" />
     <Content Include="Tool\DevExpress.Data.v15.2.dll" />
     <Content Include="Tool\DevExpress.Data.v15.2.dll" />
@@ -2138,7 +2139,8 @@
   </ItemGroup>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <PropertyGroup>
   <PropertyGroup>
-    <PostBuildEvent>xcopy  $(ProjectDir)Resources $(ProjectDir)$(OutDir)Resources  /s /e /k /i /y</PostBuildEvent>
+    <PostBuildEvent>
+    </PostBuildEvent>
   </PropertyGroup>
   </PropertyGroup>
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.
        Other similar extension points exist, see Microsoft.Common.targets.