Commit 75b00525 刘韬

阳光电源新扫码台

1 个父辈 a5e1fcb0
正在显示 127 个修改的文件 包含 389 行增加581 行删除
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
"ExpandedNodes": [ "ExpandedNodes": [
"" ""
], ],
"SelectedNode": "\\扫码贴标.sln",
"PreviewInSolutionExplorer": false "PreviewInSolutionExplorer": false
} }
\ No newline at end of file \ No newline at end of file
此文件类型无法预览
...@@ -197,7 +197,7 @@ namespace BLL ...@@ -197,7 +197,7 @@ namespace BLL
{ {
hObj = null; hObj = null;
Image.UnlockBits(bmpData); Image.UnlockBits(bmpData);
ErrInfo = ex.Message; ErrInfo = ex.ToString();
CodeSplice.Common.Log.Out(ErrInfo); CodeSplice.Common.Log.Out(ErrInfo);
return codeInfo; return codeInfo;
} }
...@@ -297,7 +297,7 @@ namespace BLL ...@@ -297,7 +297,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
CodeSplice.Common.Log.Out(ErrInfo); CodeSplice.Common.Log.Out(ErrInfo);
return codeInfo; return codeInfo;
} }
......
...@@ -67,7 +67,7 @@ namespace BLL ...@@ -67,7 +67,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
return; return;
} }
......
...@@ -118,7 +118,7 @@ namespace BLL ...@@ -118,7 +118,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
} }
_label.Add(lp); _label.Add(lp);
} }
......
...@@ -89,7 +89,7 @@ namespace BLL ...@@ -89,7 +89,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
//temp.ErrInfo = ex.Message; //temp.ErrInfo = ex.ToString();
} }
_mate.Add(temp); _mate.Add(temp);
} }
......
...@@ -43,7 +43,7 @@ namespace BLL ...@@ -43,7 +43,7 @@ namespace BLL
catch (Exception ex) catch (Exception ex)
{ {
eng = null; eng = null;
CodeSplice.Common.Log.OutError(ex.Message); CodeSplice.Common.Log.OutError(ex.ToString());
} }
index = -1; index = -1;
......
...@@ -58,7 +58,7 @@ namespace BLL ...@@ -58,7 +58,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
CodeSplice.Common.Log.OutError(ex.Message); CodeSplice.Common.Log.OutError(ex.ToString());
} }
} }
......
...@@ -102,8 +102,8 @@ namespace CodeSplice ...@@ -102,8 +102,8 @@ namespace CodeSplice
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.Log.Out("Error: " + ex.Message); Common.Log.Out("Error: " + ex.ToString());
MessageBox.Show(ex.Message); MessageBox.Show(ex.ToString());
} }
} }
......
...@@ -79,7 +79,7 @@ namespace CodeSplice ...@@ -79,7 +79,7 @@ namespace CodeSplice
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.Log.OutError(ex.Message); Common.Log.OutError(ex.ToString());
return false; return false;
} }
} }
...@@ -178,9 +178,10 @@ namespace CodeSplice ...@@ -178,9 +178,10 @@ namespace CodeSplice
{ {
string[] text = null; string[] text = null;
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
if (userControl != null) if (userControl != null)
userControl.SetOcrText(text); userControl.SetOcrText(keyValuePairs);
} }
else else
{ {
...@@ -277,8 +278,8 @@ namespace CodeSplice ...@@ -277,8 +278,8 @@ namespace CodeSplice
catch (Exception ex) catch (Exception ex)
{ {
noCamera = true; noCamera = true;
Common.Log.OutError(ex.Message); Common.Log.OutError(ex.ToString());
RtfLog.AppendText(ex.Message + "\r\n"); RtfLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -319,8 +320,8 @@ namespace CodeSplice ...@@ -319,8 +320,8 @@ namespace CodeSplice
catch (Exception ex) catch (Exception ex)
{ {
noPort = true; noPort = true;
Common.Log.OutError(ex.Message); Common.Log.OutError(ex.ToString());
RtfLog.AppendText(ex.Message + "\r\n"); RtfLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -352,8 +353,8 @@ namespace CodeSplice ...@@ -352,8 +353,8 @@ namespace CodeSplice
catch (Exception ex) catch (Exception ex)
{ {
noIO = true; noIO = true;
Common.Log.OutError(ex.Message); Common.Log.OutError(ex.ToString());
RtfLog.AppendText(ex.Message + "\r\n"); RtfLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -396,7 +397,7 @@ namespace CodeSplice ...@@ -396,7 +397,7 @@ namespace CodeSplice
value.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom; value.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
flatPanel1.Controls.Add(value); flatPanel1.Controls.Add(value);
userControl = (Interface.IUserControl)value; userControl = (Interface.IUserControl)value;
userControl.LogOut += UserControl_LogOut; //userControl.LogOut += UserControl_LogOut;
userControl.Printing += UserControl_Printing; userControl.Printing += UserControl_Printing;
break; break;
} }
...@@ -404,14 +405,14 @@ namespace CodeSplice ...@@ -404,14 +405,14 @@ namespace CodeSplice
} }
private string UserControl_Printing() private string UserControl_Printing(string key)
{ {
Common.Label.FindIndex(Common.Config.LabelName); Common.Label.FindIndex(Common.Config.LabelName);
Common.Label.PrintLast(labelReplace, out printImage, out string codeStr); Common.Label.PrintLast(labelReplace, out printImage, out string codeStr);
SaveHistory(); SaveHistory();
return codeStr; return codeStr;
} }
/*
private void UserControl_LogOut(Interface.Type type, string lang, string msg, string log) private void UserControl_LogOut(Interface.Type type, string lang, string msg, string log)
{ {
string val; string val;
...@@ -451,7 +452,7 @@ namespace CodeSplice ...@@ -451,7 +452,7 @@ namespace CodeSplice
} }
} }
*/
/// <summary> /// <summary>
/// 保存历史记录 /// 保存历史记录
/// </summary> /// </summary>
...@@ -575,15 +576,15 @@ namespace CodeSplice ...@@ -575,15 +576,15 @@ namespace CodeSplice
private void FrmMain_Load(object sender, EventArgs e) private void FrmMain_Load(object sender, EventArgs e)
{ {
InitOperPanel(); //InitOperPanel();
Asa.Dog dog = new Asa.Dog(); //Asa.Dog dog = new Asa.Dog();
bool rtn = dog.Login(null, userControl.ID); //bool rtn = dog.Login(null, userControl.ID);
if (!rtn) //if (!rtn)
{ //{
MessageBox.Show(dog.ErrInfo); // MessageBox.Show(dog.ErrInfo);
System.Diagnostics.Process.GetCurrentProcess().Kill(); // System.Diagnostics.Process.GetCurrentProcess().Kill();
} //}
Asa.Theme.Control.SetColor(RtfLog); Asa.Theme.Control.SetColor(RtfLog);
Common.Log = new Asa.File.Log(Common.LOG_DIR); Common.Log = new Asa.File.Log(Common.LOG_DIR);
...@@ -763,8 +764,8 @@ namespace CodeSplice ...@@ -763,8 +764,8 @@ namespace CodeSplice
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.Log.Out("Error: " + ex.Message); Common.Log.Out("Error: " + ex.ToString());
MessageBox.Show(ex.Message); MessageBox.Show(ex.ToString());
} }
} }
......
...@@ -74,8 +74,8 @@ namespace CodeSplice ...@@ -74,8 +74,8 @@ namespace CodeSplice
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.Log.Out("Error: " + ex.Message); Common.Log.Out("Error: " + ex.ToString());
MessageBox.Show(ex.Message); MessageBox.Show(ex.ToString());
} }
} }
...@@ -144,7 +144,7 @@ namespace CodeSplice ...@@ -144,7 +144,7 @@ namespace CodeSplice
catch (Exception ex) catch (Exception ex)
{ {
eng = null; eng = null;
Common.Log.OutError(ex.Message); Common.Log.OutError(ex.ToString());
} }
} }
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<NoConn Text="Unable to connect: " /> <NoConn Text="Unable to connect: " />
<NoFind Text="No find " /> <NoFind Text="No find " />
</Dialog> </Dialog>
<BtnMultiple Text="多个图像" Font="宋体,12,," Enabled="true" />
</FrmMain> </FrmMain>
<FrmLabel Text="LABEL"> <FrmLabel Text="LABEL">
<BtnNewLabel Text="New Label" Font="宋体,12,," Enabled="true" /> <BtnNewLabel Text="New Label" Font="宋体,12,," Enabled="true" />
......
===== 2021-10-27 13:17:53.450 =====
CameraCount = 0
===== 2021-10-27 13:17:53.453 =====
没有连接相机
===== 2021-10-27 13:17:53.454 =====
没有串口:COM1
===== 2021-10-27 13:17:55.351 =====
Ping 192.168.1.11 请求没有回应
===== 2021-10-27 13:21:45.680 =====
CameraCount = 0
===== 2021-10-27 13:21:45.687 =====
没有连接相机
===== 2021-10-27 13:21:45.689 =====
没有串口:COM1
===== 2021-10-27 13:21:46.864 =====
Ping 192.168.1.11 请求没有回应
===== 2021-10-27 13:22:06.711 =====
CameraCount = 0
===== 2021-10-27 13:22:06.713 =====
没有连接相机
===== 2021-10-27 13:22:06.714 =====
没有串口:COM1
===== 2021-10-27 13:22:08.357 =====
Ping 192.168.1.11 请求没有回应
===== 2022-07-09 15:17:40.421 =====
CameraCount = 0
===== 2022-07-09 15:17:40.424 =====
没有连接相机
===== 2022-07-09 15:17:40.434 =====
没有串口:COM1
===== 2022-07-09 15:17:42.386 =====
Ping 192.168.1.11 请求没有回应
此文件类型无法预览
此文件类型无法预览
e40c96438955bf71361e7dea90bf9c56cf69df8d 9ae794dfbdb4c133f7595e4410001b70d97e97c2
...@@ -37,3 +37,35 @@ C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\dog_net_windows.dll ...@@ -37,3 +37,35 @@ C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\dog_net_windows.dll
C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Dog.xml C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Dog.xml
C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Face.dll C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Face.dll
C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Face.xml C:\SMD\SmartScanningSystem\CodeSplice\bin\Debug\Asa.Face.xml
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.csproj.AssemblyReference.cache
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmMultiple.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmSubstring.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmLight.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmLabel.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmMain.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmMate.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.FrmTrace.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.Properties.Resources.resources
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.csproj.GenerateResource.cache
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.csproj.CoreCompileInputs.cache
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.exe
D:\rick\vs\SmartCode\CodeSplice\obj\Debug\CodeSplice.pdb
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\x86\liblept1753.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\x86\libtesseract3052.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\x64\liblept1753.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\x64\libtesseract3052.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\CodeSplice.exe.config
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\CodeSplice.exe
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\CodeSplice.pdb
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\MES_Interface.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Tesseract.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Basler.Pylon.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\MvCameraControl.Net.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\dog_net_windows.dll
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\MES_Interface.pdb
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.Camera.xml
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.Dog.xml
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.Face.xml
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.File.xml
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.IOModule.KND.xml
D:\rick\vs\SmartCode\CodeSplice\bin\Debug\Asa.Theme.xml
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.6.1", FrameworkDisplayName = ".NET Framework 4.6.1")]
...@@ -17,7 +17,7 @@ namespace Interface ...@@ -17,7 +17,7 @@ namespace Interface
/// </summary> /// </summary>
/// <param name="key">sn的key</param> /// <param name="key">sn的key</param>
/// <returns></returns> /// <returns></returns>
public delegate int SerialNoEvent(string key); public delegate int SerialNoEvent(string key,bool doIncrease);
public interface IUserControl public interface IUserControl
......
...@@ -25,3 +25,9 @@ C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.csproj.CoreCom ...@@ -25,3 +25,9 @@ C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.csproj.CoreCom
C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.dll C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.dll
C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.pdb C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.pdb
C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.csprojAssemblyReference.cache C:\Neotel\Program\SmartCode\MES_Interface\obj\Debug\MES_Interface.csprojAssemblyReference.cache
D:\rick\vs\SmartCode\MES_Interface\bin\Debug\MES_Interface.dll
D:\rick\vs\SmartCode\MES_Interface\bin\Debug\MES_Interface.pdb
D:\rick\vs\SmartCode\MES_Interface\obj\Debug\MES_Interface.csproj.CoreCompileInputs.cache
D:\rick\vs\SmartCode\MES_Interface\obj\Debug\MES_Interface.dll
D:\rick\vs\SmartCode\MES_Interface\obj\Debug\MES_Interface.pdb
D:\rick\vs\SmartCode\MES_Interface\obj\Debug\MES_Interface.csproj.AssemblyReference.cache
...@@ -135,8 +135,8 @@ namespace MES ...@@ -135,8 +135,8 @@ namespace MES
catch (Exception ex) catch (Exception ex)
{ {
IsConn = false; IsConn = false;
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
return IsConn; return IsConn;
...@@ -235,8 +235,8 @@ namespace MES ...@@ -235,8 +235,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -255,8 +255,8 @@ namespace MES ...@@ -255,8 +255,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -417,8 +417,8 @@ namespace MES ...@@ -417,8 +417,8 @@ namespace MES
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -475,7 +475,7 @@ namespace MES ...@@ -475,7 +475,7 @@ namespace MES
//} //}
//catch (Exception ex) //catch (Exception ex)
//{ //{
// LOG.Error(ex.Message); // LOG.Error(ex.ToString());
//} //}
} }
...@@ -494,7 +494,7 @@ namespace MES ...@@ -494,7 +494,7 @@ namespace MES
if (rtn) if (rtn)
{ {
int n = GetSN("sn"); int n = GetSN("sn",true);
printText.Add("FACTORYLOT", CboBatch.Text); printText.Add("FACTORYLOT", CboBatch.Text);
printText.Add("SN", string.Format("{0:0000}", n)); printText.Add("SN", string.Format("{0:0000}", n));
string s = Printing?.Invoke("sn"); string s = Printing?.Invoke("sn");
...@@ -515,7 +515,7 @@ namespace MES ...@@ -515,7 +515,7 @@ namespace MES
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error("BtnUploadOrder_Click", ex); LOG.Error("BtnUploadOrder_Click", ex);
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -608,7 +608,7 @@ namespace MES ...@@ -608,7 +608,7 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
} }
} }
...@@ -698,7 +698,7 @@ namespace MES ...@@ -698,7 +698,7 @@ namespace MES
// } // }
// catch (Exception ex) // catch (Exception ex)
// { // {
// LogOut?.Invoke(ex.Message); // LogOut?.Invoke(ex.ToString());
// } // }
//} //}
...@@ -764,7 +764,7 @@ namespace MES ...@@ -764,7 +764,7 @@ namespace MES
// } // }
// catch (Exception ex) // catch (Exception ex)
// { // {
// LogOut?.Invoke(ex.Message); // LogOut?.Invoke(ex.ToString());
// } // }
//} //}
......
...@@ -86,8 +86,8 @@ namespace MES ...@@ -86,8 +86,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
...@@ -116,8 +116,8 @@ namespace MES ...@@ -116,8 +116,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
...@@ -140,8 +140,8 @@ namespace MES ...@@ -140,8 +140,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
...@@ -163,8 +163,8 @@ namespace MES ...@@ -163,8 +163,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
...@@ -210,8 +210,8 @@ namespace MES ...@@ -210,8 +210,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
...@@ -262,8 +262,8 @@ namespace MES ...@@ -262,8 +262,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
...@@ -347,8 +347,8 @@ namespace MES ...@@ -347,8 +347,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
Log = ex.Message; Log = ex.ToString();
return false; return false;
} }
} }
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
...@@ -35,8 +36,9 @@ ...@@ -35,8 +36,9 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Asa.Face\Asa.Face.dll</HintPath> <HintPath>..\..\..\DLL\Asa.Face\Asa.Face.dll</HintPath>
</Reference> </Reference>
<Reference Include="log4net"> <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=AMD64">
<HintPath>..\..\..\..\DLL\log4net.dll</HintPath> <SpecificVersion>False</SpecificVersion>
<HintPath>..\SmartCode\bin\Debug\log4net.dll</HintPath>
</Reference> </Reference>
<Reference Include="RestSharp, Version=106.11.4.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL"> <Reference Include="RestSharp, Version=106.11.4.0, Culture=neutral, PublicKeyToken=598062e77f915f75, processorArchitecture=MSIL">
<HintPath>..\packages\RestSharp.106.11.4\lib\net452\RestSharp.dll</HintPath> <HintPath>..\packages\RestSharp.106.11.4\lib\net452\RestSharp.dll</HintPath>
......
...@@ -128,7 +128,6 @@ ...@@ -128,7 +128,6 @@
this.label1.Size = new System.Drawing.Size(148, 43); this.label1.Size = new System.Drawing.Size(148, 43);
this.label1.TabIndex = 5; this.label1.TabIndex = 5;
this.label1.Text = "未通过"; this.label1.Text = "未通过";
this.label1.Visible = false;
// //
// surCheck1 // surCheck1
// //
......
...@@ -99,6 +99,7 @@ namespace MES ...@@ -99,6 +99,7 @@ namespace MES
string dc_code = "", dc_order = "", lot_order = ""; string dc_code = "", dc_order = "", lot_order = "";
bool findQTY = false, findDC = false, findORDER = false, findLOT = false; bool findQTY = false, findDC = false, findORDER = false, findLOT = false;
try try
{ {
//QTY,DC带关键字提取 //QTY,DC带关键字提取
...@@ -196,7 +197,7 @@ namespace MES ...@@ -196,7 +197,7 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
Asa.Face.MessageBox.ShowError(ex.Message); Asa.Face.MessageBox.ShowError(ex.ToString());
} }
if (!findQTY) if (!findQTY)
...@@ -268,26 +269,26 @@ namespace MES ...@@ -268,26 +269,26 @@ namespace MES
int findIdx = -1; int findIdx = -1;
//查找匹配的条码 //查找匹配的条码
//for (int i = 0; i < _code.Length; i++) for (int i = 0; i < _code.Length; i++)
//{ {
// s = _code[i].Split(SPLIT); s = _code[i].Split(SPLIT);
// if (s.Length == 3 || s.Length == 4) if (s.Length == 3 || s.Length == 4)
// { {
// findIdx = i; findIdx = i;
// break; break;
// } }
//} }
//2020年11月11日 //2020年11月11日
findIdx = 0; //findIdx = 0;
if (_code.Length >= 1) //if (_code.Length >= 1)
s = new string[2] { _code[0], _code[1] }; // s = new string[2] { _code[0], _code[1] };
else //else
s = new string[2] { _code[0], _code[0] }; // s = new string[2] { _code[0], _code[0] };
...@@ -313,11 +314,11 @@ namespace MES ...@@ -313,11 +314,11 @@ namespace MES
{ {
//string code = _code[findIdx]; //以前 //string code = _code[findIdx]; //以前
string code = string.Format("{0}{3}{1}{3}{2}", s[0], s[1], val1, SPLIT); string code = string.Format("{0}{3}{1}{3}{2}", s[0], s[1], val1, SPLIT);
int sn = GetSN(code); int sn = GetSN(code,true);
if (printText.ContainsKey("sn")) if (printText.ContainsKey("sn"))
printText["sn"] = string.Format("{0:0000}", sn); printText["sn"] = "5"+string.Format("{0:000}", sn);
else else
printText.Add("sn", string.Format("{0:0000}", sn)); printText.Add("sn", "5" + string.Format("{0:000}", sn));
string temp = Printing?.Invoke(code); string temp = Printing?.Invoke(code);
System.Threading.Thread.Sleep(500); System.Threading.Thread.Sleep(500);
if (surCheck1.Checked) if (surCheck1.Checked)
...@@ -329,7 +330,7 @@ namespace MES ...@@ -329,7 +330,7 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
Asa.Face.MessageBox.ShowError(ex.Message); Asa.Face.MessageBox.ShowError(ex.ToString());
return false; return false;
} }
} }
...@@ -374,12 +375,12 @@ namespace MES ...@@ -374,12 +375,12 @@ namespace MES
printText.Add("qty", val2); printText.Add("qty", val2);
//int sn = GetSN(_code[findIdx]); //以前 //int sn = GetSN(_code[findIdx]); //以前
int sn = GetSN(string.Format("{0}{3}{1}{3}{2}", s[0], s[1], val1, SPLIT)); int sn = GetSN(string.Format("{0}{3}{1}{3}{2}", s[0], s[1], val1, SPLIT),false);
printText.Add("sn", string.Format("{0:0000}", sn)); printText.Add("sn", "5"+string.Format("{0:000}", sn));
} }
catch (Exception ex) catch (Exception ex)
{ {
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -390,7 +391,7 @@ namespace MES ...@@ -390,7 +391,7 @@ namespace MES
public bool Check() public bool Check()
{ {
string[] text = new string[2] { "未通过", "通过" }; string[] text = new string[2] { "未通过", "通过" };
label1.Visible = true;
if (_code == null) if (_code == null)
{ {
label1.Text = text[0]; label1.Text = text[0];
...@@ -414,7 +415,7 @@ namespace MES ...@@ -414,7 +415,7 @@ namespace MES
} }
} }
} }
LOG.Info("idx: " + idx);
//校验 //校验
if (idx == -1) if (idx == -1)
{ {
...@@ -424,11 +425,12 @@ namespace MES ...@@ -424,11 +425,12 @@ namespace MES
} }
s = _code[idx].Split(SPLIT); s = _code[idx].Split(SPLIT);
LOG.Info("s: " + string.Join(",", s));
bool find = false; bool find = false;
for (int i = 0; i < _code.Length; i++) for (int i = 0; i < _code.Length; i++)
{ {
LOG.Info($"_code[{i}]: " + _code[i]);
if (i == idx) continue; if (i == idx) continue;
int n = _code[i].IndexOf(s[1]); int n = _code[i].IndexOf(s[1]);
if (n > -1) if (n > -1)
...@@ -523,8 +525,8 @@ namespace MES ...@@ -523,8 +525,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -564,8 +566,8 @@ namespace MES ...@@ -564,8 +566,8 @@ namespace MES
} }
catch (Exception ex) catch (Exception ex)
{ {
LOG.Error(ex.Message); LOG.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return s; return s;
} }
} }
......
18e7e77dbdb10ae7c319dff27342e03e30a0873d f74ee2ebfe3dde84ecbe7946d84a4a33430f13e9
...@@ -42,3 +42,17 @@ D:\Neotel\SmartCode\MES_YangGuang\obj\Debug\MES.dll ...@@ -42,3 +42,17 @@ D:\Neotel\SmartCode\MES_YangGuang\obj\Debug\MES.dll
D:\Neotel\SmartCode\MES_YangGuang\obj\Debug\MES.pdb D:\Neotel\SmartCode\MES_YangGuang\obj\Debug\MES.pdb
D:\Neotel\SmartCode\MES_YangGuang\bin\Debug\Asa.Face.dll D:\Neotel\SmartCode\MES_YangGuang\bin\Debug\Asa.Face.dll
D:\Neotel\SmartCode\MES_YangGuang\bin\Debug\Asa.Face.xml D:\Neotel\SmartCode\MES_YangGuang\bin\Debug\Asa.Face.xml
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\MES.dll
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\MES.pdb
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\MES_Interface.dll
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\RestSharp.dll
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\MES_Interface.pdb
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\RestSharp.xml
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES_YangGuang(阳光电源).csproj.AssemblyReference.cache
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES.User.resources
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES_YangGuang(阳光电源).csproj.GenerateResource.cache
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES_YangGuang(阳光电源).csproj.CoreCompileInputs.cache
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES_YangGuang(阳光电源).csproj.CopyComplete
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES.dll
D:\rick\vs\SmartCode\MES_YangGuang\obj\Debug\MES.pdb
D:\rick\vs\SmartCode\MES_YangGuang\bin\Debug\log4net.dll
...@@ -238,7 +238,7 @@ namespace BLL ...@@ -238,7 +238,7 @@ namespace BLL
{ {
hObj = null; hObj = null;
Image.UnlockBits(bmpData); Image.UnlockBits(bmpData);
ErrInfo = ex.Message; ErrInfo = ex.ToString();
SmartCode.Common.log.Error(ErrInfo); SmartCode.Common.log.Error(ErrInfo);
return codeInfo; return codeInfo;
} }
...@@ -338,7 +338,7 @@ namespace BLL ...@@ -338,7 +338,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
SmartCode.Common.log.Error(ErrInfo); SmartCode.Common.log.Error(ErrInfo);
return codeInfo; return codeInfo;
} }
...@@ -364,7 +364,7 @@ namespace BLL ...@@ -364,7 +364,7 @@ namespace BLL
{ {
hObj = null; hObj = null;
Image.UnlockBits(bmpData); Image.UnlockBits(bmpData);
ErrInfo = ex.Message; ErrInfo = ex.ToString();
SmartCode.Common.log.Error(ErrInfo); SmartCode.Common.log.Error(ErrInfo);
return codeInfo; return codeInfo;
} }
...@@ -375,11 +375,11 @@ namespace BLL ...@@ -375,11 +375,11 @@ namespace BLL
//支持‘Data Matrix ECC 200’、‘QR Code’和‘PDF417’共3种类型 //支持‘Data Matrix ECC 200’、‘QR Code’和‘PDF417’共3种类型
//‘standard_recognition’、‘enhanced_recognition’、‘maximum_recognition’ //‘standard_recognition’、‘enhanced_recognition’、‘maximum_recognition’
HOperatorSet.CreateDataCode2dModel("QR Code", "default_parameters", "maximum_recognition", out HTuple dataCodeHandle); HOperatorSet.CreateDataCode2dModel("QR Code", "default_parameters", "maximum_recognition", out HTuple dataCodeHandle);
HOperatorSet.SetDataCode2dParam(dataCodeHandle, "timeout", 200); //一个二维码的解码时间 HOperatorSet.SetDataCode2dParam(dataCodeHandle, "timeout", 1000); //一个二维码的解码时间
//HOperatorSet.SetDataCode2dParam(dataCodeHandle, "symbol_size_min", 16); //码粒最小个数 //HOperatorSet.SetDataCode2dParam(dataCodeHandle, "symbol_size_min", 16); //码粒最小个数
//HOperatorSet.SetDataCode2dParam(dataCodeHandle, "symbol_size_max", 30); //码粒最大个数 //HOperatorSet.SetDataCode2dParam(dataCodeHandle, "symbol_size_max", 30); //码粒最大个数
HOperatorSet.SetDataCode2dParam(dataCodeHandle, "module_size_min", 10); //码粒最小像素 //HOperatorSet.SetDataCode2dParam(dataCodeHandle, "module_size_min", 3); //码粒最小像素
HOperatorSet.SetDataCode2dParam(dataCodeHandle, "module_size_max", 30); //码粒最大像素 //HOperatorSet.SetDataCode2dParam(dataCodeHandle, "module_size_max", 30); //码粒最大像素
HOperatorSet.FindDataCode2d(grayImage, out HObject symbolXLDs, dataCodeHandle, "stop_after_result_num", 5, out HTuple resultHandles, out HTuple decodedDataStrings); HOperatorSet.FindDataCode2d(grayImage, out HObject symbolXLDs, dataCodeHandle, "stop_after_result_num", 5, out HTuple resultHandles, out HTuple decodedDataStrings);
//码粒的个数 //码粒的个数
...@@ -418,7 +418,7 @@ namespace BLL ...@@ -418,7 +418,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
SmartCode.Common.log.Error(ErrInfo); SmartCode.Common.log.Error(ErrInfo);
} }
...@@ -471,7 +471,7 @@ namespace BLL ...@@ -471,7 +471,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
SmartCode.Common.log.Error(ErrInfo); SmartCode.Common.log.Error(ErrInfo);
} }
......
...@@ -357,7 +357,7 @@ namespace BLL ...@@ -357,7 +357,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
return; return;
} }
......
...@@ -110,7 +110,7 @@ namespace BLL.Label ...@@ -110,7 +110,7 @@ namespace BLL.Label
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
} }
_label.Add(lp); _label.Add(lp);
} }
...@@ -768,8 +768,8 @@ namespace BLL.Label ...@@ -768,8 +768,8 @@ namespace BLL.Label
} }
catch (Exception ex) catch (Exception ex)
{ {
SmartCode.Common.log.Error(ex.Message); SmartCode.Common.log.Error(ex.ToString());
System.Windows.Forms.MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); System.Windows.Forms.MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return null; return null;
} }
} }
......
...@@ -92,7 +92,7 @@ namespace BLL ...@@ -92,7 +92,7 @@ namespace BLL
} }
catch (Exception) catch (Exception)
{ {
//temp.ErrInfo = ex.Message; //temp.ErrInfo = ex.ToString();
} }
_mate.Add(temp); _mate.Add(temp);
} }
......
...@@ -53,7 +53,7 @@ namespace BLL ...@@ -53,7 +53,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
return false; return false;
} }
} }
...@@ -74,7 +74,7 @@ namespace BLL ...@@ -74,7 +74,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
IsCon = false; IsCon = false;
return false; return false;
} }
...@@ -97,27 +97,29 @@ namespace BLL ...@@ -97,27 +97,29 @@ namespace BLL
/// </summary> /// </summary>
/// <param name="key"></param> /// <param name="key"></param>
/// <returns></returns> /// <returns></returns>
public int GetSN(string key) public int GetSN(string key,bool doIncrease)
{ {
if (!IsCon) return 0; if (!IsCon) return 0;
try try
{ {
SQLiteCommand cmd = new SQLiteCommand(_con) { CommandText = "SELECT [Count] FROM SN WHERE [Text]='" + key + "'" }; SQLiteCommand cmd = new SQLiteCommand(_con) { CommandText = "SELECT [Count] FROM SN WHERE [Text]='" + key + "'" };
SQLiteDataReader dr = cmd.ExecuteReader(); //SQLiteDataReader dr = cmd.ExecuteReader();
int count; var countobj = cmd.ExecuteScalar();
int count = 0;
if (dr.Read()) if (countobj!=null)
{ {
count = dr.GetInt32(0); count = (int)countobj;
count++; if (doIncrease)
dr.Close(); {
//cmd.CommandText = "UPDATE SN SET [Count]=" + count + " WHERE [Text]='" + key + "'"; count++;
//cmd.ExecuteNonQuery(); //cmd.CommandText = "UPDATE SN SET [Count]=" + count + " WHERE [Text]='" + key + "'";
//cmd.ExecuteNonQuery();
}
} }
else else
{ {
dr.Close(); cmd.CommandText = "INSERT INTO SN([Text], [Count]) VALUES('" + key + "', 1)";
cmd.CommandText = "INSERT INTO SN([Text], [Count]) VALUES('" + key + "', 0)";
cmd.ExecuteNonQuery(); cmd.ExecuteNonQuery();
count = 1; count = 1;
} }
...@@ -127,7 +129,7 @@ namespace BLL ...@@ -127,7 +129,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
return 0; return 0;
} }
...@@ -199,7 +201,7 @@ namespace BLL ...@@ -199,7 +201,7 @@ namespace BLL
} }
catch (Exception ex) catch (Exception ex)
{ {
ErrInfo = ex.Message; ErrInfo = ex.ToString();
return false; return false;
} }
......
...@@ -21,5 +21,15 @@ namespace SmartCode ...@@ -21,5 +21,15 @@ namespace SmartCode
{ {
} }
private void surButton3_Click(object sender)
{
}
private void surCheck1_CheckedChanged(object sender)
{
}
} }
} }
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
...@@ -14,6 +15,12 @@ namespace SmartCode ...@@ -14,6 +15,12 @@ namespace SmartCode
[STAThread] [STAThread]
static void Main(string[] args) static void Main(string[] args)
{ {
var scp = Process.GetProcessesByName("SmartCode");
foreach (var sp in scp)
if (sp.Id!=Process.GetCurrentProcess().Id)
sp.Kill();
log4net.Config.XmlConfigurator.Configure(); log4net.Config.XmlConfigurator.Configure();
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
...@@ -30,6 +37,7 @@ namespace SmartCode ...@@ -30,6 +37,7 @@ namespace SmartCode
} }
Common.Config = new BLL.Config(Common.CONFIG_PATH); Common.Config = new BLL.Config(Common.CONFIG_PATH);
Common.Lang = new Asa.Face.Language(Common.LANGUAGE_DIR); Common.Lang = new Asa.Face.Language(Common.LANGUAGE_DIR);
Common.Lang.Load(Common.Config.Language); Common.Lang.Load(Common.Config.Language);
Common.Label = new BLL.Label.LabelEdit(Common.LABEL_DIR); Common.Label = new BLL.Label.LabelEdit(Common.LABEL_DIR);
...@@ -37,7 +45,7 @@ namespace SmartCode ...@@ -37,7 +45,7 @@ namespace SmartCode
Common.BarCode = new BLL.BarCode(); Common.BarCode = new BLL.BarCode();
Common.Material = new BLL.Material(Common.MATERIAL_DIR); Common.Material = new BLL.Material(Common.MATERIAL_DIR);
Common.Database = new BLL.DB(Common.DATABASE_PATH); Common.Database = new BLL.DB(Common.DATABASE_PATH);
Common.log.Info("=====程序开始1=====");
Application.Run(new FrmMain()); Application.Run(new FrmMain());
Common.log.Info("=====程序结束=====\r\n"); Common.log.Info("=====程序结束=====\r\n");
} }
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<TargetFrameworkProfile /> <TargetFrameworkProfile />
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>x64</PlatformTarget>
<DebugSymbols>true</DebugSymbols> <DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
...@@ -44,10 +44,6 @@ ...@@ -44,10 +44,6 @@
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\DLL\Camera\Asa.Camera.dll</HintPath> <HintPath>..\..\..\..\DLL\Camera\Asa.Camera.dll</HintPath>
</Reference> </Reference>
<Reference Include="Asa.Dog, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\DLL\SuperDog\Asa.Dog.dll</HintPath>
</Reference>
<Reference Include="Asa.Face, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="Asa.Face, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\DLL\Asa.Face\Asa.Face.dll</HintPath> <HintPath>..\..\..\DLL\Asa.Face\Asa.Face.dll</HintPath>
...@@ -66,12 +62,9 @@ ...@@ -66,12 +62,9 @@
<Reference Include="halcondotnet"> <Reference Include="halcondotnet">
<HintPath>..\..\..\..\DLL\Halcon\halcondotnet.dll</HintPath> <HintPath>..\..\..\..\DLL\Halcon\halcondotnet.dll</HintPath>
</Reference> </Reference>
<Reference Include="log4net"> <Reference Include="log4net, Version=1.2.10.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=x86">
<HintPath>..\..\..\..\DLL\log4net.dll</HintPath>
</Reference>
<Reference Include="MES, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion> <SpecificVersion>False</SpecificVersion>
<HintPath>..\MES_NanRui\bin\Debug\MES.dll</HintPath> <HintPath>..\MES_YangGuang\bin\Debug\log4net.dll</HintPath>
</Reference> </Reference>
<Reference Include="MvCameraControl.Net"> <Reference Include="MvCameraControl.Net">
<HintPath>..\..\..\..\DLL\Camera\MvCameraControl.Net.dll</HintPath> <HintPath>..\..\..\..\DLL\Camera\MvCameraControl.Net.dll</HintPath>
...@@ -107,12 +100,6 @@ ...@@ -107,12 +100,6 @@
<Compile Include="BLL\Config.cs" /> <Compile Include="BLL\Config.cs" />
<Compile Include="BLL\Material.cs" /> <Compile Include="BLL\Material.cs" />
<Compile Include="BLL\SQLite.cs" /> <Compile Include="BLL\SQLite.cs" />
<Compile Include="UI\FrmCount.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UI\FrmCount.Designer.cs">
<DependentUpon>FrmCount.cs</DependentUpon>
</Compile>
<Compile Include="FrmMate2.cs"> <Compile Include="FrmMate2.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
...@@ -166,9 +153,6 @@ ...@@ -166,9 +153,6 @@
<EmbeddedResource Include="FrmMate2.resx"> <EmbeddedResource Include="FrmMate2.resx">
<DependentUpon>FrmMate2.cs</DependentUpon> <DependentUpon>FrmMate2.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="UI\FrmCount.resx">
<DependentUpon>FrmCount.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UI\FrmPreview.resx"> <EmbeddedResource Include="UI\FrmPreview.resx">
<DependentUpon>FrmPreview.cs</DependentUpon> <DependentUpon>FrmPreview.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
...@@ -225,6 +209,10 @@ ...@@ -225,6 +209,10 @@
<Project>{fea24e3f-856f-459b-8c14-af9c87f075c9}</Project> <Project>{fea24e3f-856f-459b-8c14-af9c87f075c9}</Project>
<Name>MES_Interface</Name> <Name>MES_Interface</Name>
</ProjectReference> </ProjectReference>
<ProjectReference Include="..\MES_YangGuang\MES_YangGuang(阳光电源).csproj">
<Project>{fcd13548-ef07-4c9c-905e-9dd92b4838f1}</Project>
<Name>MES_YangGuang(阳光电源)</Name>
</ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\packages\Tesseract.3.3.0\build\Tesseract.targets" Condition="Exists('..\packages\Tesseract.3.3.0\build\Tesseract.targets')" /> <Import Project="..\packages\Tesseract.3.3.0\build\Tesseract.targets" Condition="Exists('..\packages\Tesseract.3.3.0\build\Tesseract.targets')" />
......
...@@ -90,8 +90,8 @@ namespace SmartCode ...@@ -90,8 +90,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
//Common.Log.Out("Error: " + ex.Message); //Common.Log.Out("Error: " + ex.ToString());
Asa.Face.MessageBox.Show("ERROR", ex.Message, MessageBoxButtons.OK); Asa.Face.MessageBox.Show("ERROR", ex.ToString(), MessageBoxButtons.OK);
} }
} }
......
...@@ -5,6 +5,7 @@ using System.Data; ...@@ -5,6 +5,7 @@ using System.Data;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows.Forms; using System.Windows.Forms;
...@@ -129,8 +130,8 @@ namespace SmartCode ...@@ -129,8 +130,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false; return false;
} }
} }
...@@ -305,8 +306,8 @@ namespace SmartCode ...@@ -305,8 +306,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -381,9 +382,9 @@ namespace SmartCode ...@@ -381,9 +382,9 @@ namespace SmartCode
catch (Exception ex) catch (Exception ex)
{ {
noCamera = true; noCamera = true;
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
RtxLog.AppendText(ex.Message + "\r\n"); RtxLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -424,9 +425,9 @@ namespace SmartCode ...@@ -424,9 +425,9 @@ namespace SmartCode
catch (Exception ex) catch (Exception ex)
{ {
noPort = true; noPort = true;
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
RtxLog.AppendText(ex.Message + "\r\n"); RtxLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -459,9 +460,9 @@ namespace SmartCode ...@@ -459,9 +460,9 @@ namespace SmartCode
catch (Exception ex) catch (Exception ex)
{ {
noIO = true; noIO = true;
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
RtxLog.AppendText(ex.Message + "\r\n"); RtxLog.AppendText(ex.ToString() + "\r\n");
} }
} }
...@@ -485,8 +486,8 @@ namespace SmartCode ...@@ -485,8 +486,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
...@@ -528,30 +529,12 @@ namespace SmartCode ...@@ -528,30 +529,12 @@ namespace SmartCode
//} //}
//catch (Exception ex) //catch (Exception ex)
//{ //{
// Common.log.Error(ex.Message); // Common.log.Error(ex.ToString());
// MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); // MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
//} //}
} }
/// <summary>
/// 初始化超级狗
/// </summary>
private void InitSuperDog()
{
//超级狗
Asa.Dog dog = new Asa.Dog();
bool rtn;
if (userControl == null)
rtn = dog.Login(null);
else
rtn = dog.Login(null, userControl.ID);
if (!rtn)
{
Common.log.Info(dog.ErrInfo);
Asa.Face.MessageBox.Show("ERROR", dog.ErrInfo, MessageBoxButtons.OK);
System.Diagnostics.Process.GetCurrentProcess().Kill();
}
}
/// <summary> /// <summary>
/// 初始化右上显示 /// 初始化右上显示
...@@ -699,9 +682,9 @@ namespace SmartCode ...@@ -699,9 +682,9 @@ namespace SmartCode
} }
} }
private int UserControl_GetSN(string key) private int UserControl_GetSN(string key,bool doIncrease)
{ {
return Common.Database.GetSN(key); return Common.Database.GetSN(key, doIncrease);
} }
private void IO_DI_Changed_Event(Asa.IOModule.Status[] sta) private void IO_DI_Changed_Event(Asa.IOModule.Status[] sta)
...@@ -731,6 +714,7 @@ namespace SmartCode ...@@ -731,6 +714,7 @@ namespace SmartCode
{ {
bool rtn; bool rtn;
label = null; label = null;
if (Common.Config.CameraSingle) if (Common.Config.CameraSingle)
{ {
rtn = Common.Camera.GrabOne(); rtn = Common.Camera.GrabOne();
...@@ -752,7 +736,8 @@ namespace SmartCode ...@@ -752,7 +736,8 @@ namespace SmartCode
grabImage = Common.BarCode.MergeImage(image); grabImage = Common.BarCode.MergeImage(image);
ImgShow.Image = grabImage; ImgShow.Image = grabImage;
} }
//Common.IO.WriteDO(Asa.IOModule.Addr.DO_1, Asa.IOModule.Status.Off);
//Thread.Sleep(500);
rtn = DiscernCode(); rtn = DiscernCode();
if (!rtn) return; if (!rtn) return;
if (userControl == null) return; if (userControl == null) return;
...@@ -793,8 +778,8 @@ namespace SmartCode ...@@ -793,8 +778,8 @@ namespace SmartCode
Common.Lang.SetLanguage(this); Common.Lang.SetLanguage(this);
PicLogo.Image = Image.FromFile(Application.StartupPath + PicLogo.Tag.ToString()); PicLogo.Image = Image.FromFile(Application.StartupPath + PicLogo.Tag.ToString());
if (!Common.debug) //if (!Common.debug)
InitSuperDog(); // InitSuperDog();
InitCamera(); InitCamera();
InitLightPort(); InitLightPort();
...@@ -817,11 +802,12 @@ namespace SmartCode ...@@ -817,11 +802,12 @@ namespace SmartCode
canRun = true; canRun = true;
BtnWork.StateColor = Color.Green; BtnWork.StateColor = Color.Green;
} }
Common.IO.WriteDO(Asa.IOModule.Addr.DO_1, Asa.IOModule.Status.On);
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -829,23 +815,23 @@ namespace SmartCode ...@@ -829,23 +815,23 @@ namespace SmartCode
{ {
try try
{ {
if (port != null)
if (Common.IO.IsConn)
Common.IO.Close();
if (Common.Database.IsCon)
Common.Database.Close();
if (port != null)
{ {
port.Open(); port.Open();
System.Threading.Thread.Sleep(50); System.Threading.Thread.Sleep(50);
port.Write(Common.Config.LightClose); port.Write(Common.Config.LightClose);
port.Close(); port.Close();
} }
if (Common.IO.IsConn)
Common.IO.Close();
if (Common.Database.IsCon)
Common.Database.Close();
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
} }
...@@ -954,6 +940,9 @@ namespace SmartCode ...@@ -954,6 +940,9 @@ namespace SmartCode
label = null; label = null;
if (Common.Config.CameraSingle) if (Common.Config.CameraSingle)
{ {
//Common.IO.WriteDO(Asa.IOModule.Addr.DO_1, Asa.IOModule.Status.On);
//Thread.Sleep(500);
rtn = Common.Camera.Open(Common.Config.CameraSN); rtn = Common.Camera.Open(Common.Config.CameraSN);
Common.log.Info("手动打开相机"); Common.log.Info("手动打开相机");
if (rtn) if (rtn)
...@@ -968,6 +957,7 @@ namespace SmartCode ...@@ -968,6 +957,7 @@ namespace SmartCode
Common.Camera.Close(); Common.Camera.Close();
Common.log.Info("手动关闭相机"); Common.log.Info("手动关闭相机");
} }
//Common.IO.WriteDO(Asa.IOModule.Addr.DO_1, Asa.IOModule.Status.Off);
} }
else else
{ {
...@@ -990,8 +980,8 @@ namespace SmartCode ...@@ -990,8 +980,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
finally finally
{ {
...@@ -1022,8 +1012,8 @@ namespace SmartCode ...@@ -1022,8 +1012,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error); MessageBox.Show(ex.ToString(), "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
} }
finally finally
{ {
......
...@@ -83,8 +83,8 @@ namespace SmartCode ...@@ -83,8 +83,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
MessageBox.Show(ex.Message); MessageBox.Show(ex.ToString());
} }
} }
...@@ -198,7 +198,7 @@ namespace SmartCode ...@@ -198,7 +198,7 @@ namespace SmartCode
catch (Exception ex) catch (Exception ex)
{ {
eng = null; eng = null;
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
} }
} }
...@@ -390,8 +390,8 @@ namespace SmartCode ...@@ -390,8 +390,8 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Common.log.Error(ex.Message); Common.log.Error(ex.ToString());
Asa.Face.MessageBox.ShowError(ex.Message); Asa.Face.MessageBox.ShowError(ex.ToString());
} }
//if (Common.Camera.Count == 0) //if (Common.Camera.Count == 0)
......
...@@ -215,7 +215,7 @@ namespace SmartCode ...@@ -215,7 +215,7 @@ namespace SmartCode
} }
catch (Exception ex) catch (Exception ex)
{ {
Asa.Face.MessageBox.Show("ERROR", ex.Message, MessageBoxButtons.OK); Asa.Face.MessageBox.Show("ERROR", ex.ToString(), MessageBoxButtons.OK);
} }
} }
......
此文件太大,无法显示。
[2020-12-28 15:49:23,677][1]INFO =====程序开始===== [2022-07-11 13:56:23,040][1]INFO =====程序开始=====
[2020-12-28 15:49:32,298][1]INFO 加载MES面板完成 [2022-07-11 13:56:23,047][1]INFO =====debug mode=====
[2020-12-28 15:49:32,718][1]INFO 相机数量为0 [2022-07-11 13:56:23,355][1]INFO =====程序开始1=====
[2020-12-28 15:49:32,718][1]INFO 没有连接相机 [2022-07-11 13:56:23,902][1]INFO 加载MES面板完成
[2020-12-28 15:49:32,733][1]INFO 没有串口:COM1 [2022-07-11 13:56:24,037][1]INFO 相机数量为0
[2020-12-28 15:49:37,621][1]INFO Ping 192.168.0.102 请求没有回应 [2022-07-11 13:56:24,037][1]INFO 没有连接相机
[2020-12-28 15:49:39,633][1]INFO MES Request Timeout IP = 10.144.9.73 [2022-07-11 13:56:24,040][1]INFO 没有串口:COM1
[2020-12-28 15:50:13,961][1]INFO =====程序结束===== [2022-07-11 13:56:28,892][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-11 13:56:29,368][1]INFO =====程序结束=====
[2020-12-28 15:50:29,083][1]INFO =====程序开始=====
[2020-12-28 15:50:30,765][1]INFO 加载MES面板完成
[2020-12-28 15:50:31,101][1]INFO 相机数量为0
[2020-12-28 15:50:31,101][1]INFO 没有连接相机
[2020-12-28 15:50:31,111][1]INFO 没有串口:COM1
[2020-12-28 15:50:36,127][1]INFO Ping 192.168.0.102 请求没有回应
[2020-12-28 15:50:38,134][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-12-28 15:50:51,830][1]INFO =====程序结束=====
[2020-12-28 16:24:53,414][1]INFO =====程序开始=====
[2020-12-28 16:24:55,133][1]INFO 加载MES面板完成
[2020-12-28 16:24:55,559][1]ERROR 未能加载文件或程序集“dog_net_windows, Version=1.0.1.28668, Culture=neutral, PublicKeyToken=56120be447701319”或它的某一个依赖项。系统找不到指定的文件。
[2020-12-28 16:26:23,684][1]INFO =====程序开始=====
[2020-12-28 16:26:25,250][1]INFO 加载MES面板完成
[2020-12-28 16:26:25,578][1]INFO Login: DogNotFound
[2020-12-28 16:26:56,301][1]INFO =====程序开始=====
[2020-12-28 16:26:56,314][1]INFO =====debug mode=====
[2020-12-28 16:26:57,942][1]INFO 加载MES面板完成
[2020-12-28 16:26:58,234][1]INFO 相机数量为0
[2020-12-28 16:26:58,234][1]INFO 没有连接相机
[2020-12-28 16:26:58,244][1]INFO 没有串口:COM1
[2020-12-28 16:27:03,127][1]INFO Ping 192.168.0.102 请求没有回应
[2020-12-28 16:27:05,127][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-12-28 16:27:33,056][1]INFO =====程序结束=====
[2022-07-11 20:03:48,938][1]INFO =====程序开始=====
[2022-07-11 20:03:48,945][1]INFO =====debug mode=====
[2022-07-11 20:03:49,299][1]INFO =====程序开始1=====
[2022-07-11 20:03:49,910][1]INFO 加载MES面板完成
[2022-07-11 20:03:50,062][1]INFO 相机数量为0
[2022-07-11 20:03:50,062][1]INFO 没有连接相机
[2022-07-11 20:03:50,066][1]INFO 没有串口:COM1
[2022-07-11 20:03:54,881][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:04:55,333][1]INFO =====程序开始=====
[2020-10-29 10:04:58,482][1]INFO 加载MES面板完成
[2020-10-29 10:04:58,889][1]INFO 相机数量为0
[2020-10-29 10:04:58,889][1]INFO 没有连接相机
[2020-10-29 10:04:58,907][1]INFO 没有串口:COM1
[2020-10-29 10:05:03,523][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:05:06,017][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:05:16,194][1]INFO =====程序结束=====
[2020-10-29 10:06:15,792][1]INFO =====程序开始=====
[2020-10-29 10:06:17,125][1]INFO 加载MES面板完成
[2020-10-29 10:06:17,433][1]INFO 相机数量为0
[2020-10-29 10:06:17,446][1]INFO 没有连接相机
[2020-10-29 10:06:17,474][1]INFO 没有串口:COM1
[2020-10-29 10:06:22,019][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:06:24,021][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:07:53,779][1]INFO =====程序开始=====
[2020-10-29 10:07:55,055][1]INFO 加载MES面板完成
[2020-10-29 10:07:55,271][1]INFO 相机数量为0
[2020-10-29 10:07:55,271][1]INFO 没有连接相机
[2020-10-29 10:07:55,273][1]INFO 没有串口:COM1
[2020-10-29 10:08:00,023][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:08:02,023][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:08:35,170][1]INFO =====程序开始=====
[2020-10-29 10:08:36,495][1]INFO 加载MES面板完成
[2020-10-29 10:08:36,699][1]INFO 相机数量为0
[2020-10-29 10:08:36,699][1]INFO 没有连接相机
[2020-10-29 10:08:36,701][1]INFO 没有串口:COM1
[2020-10-29 10:08:41,513][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:08:43,521][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:08:51,040][1]INFO =====程序结束=====
[2020-10-29 10:09:10,034][1]INFO =====程序开始=====
[2020-10-29 10:09:11,040][1]INFO 加载MES面板完成
[2020-10-29 10:09:11,218][1]INFO 相机数量为0
[2020-10-29 10:09:11,218][1]INFO 没有连接相机
[2020-10-29 10:09:11,222][1]INFO 没有串口:COM1
[2020-10-29 10:09:16,024][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:09:18,023][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:10:35,434][1]INFO =====程序开始=====
[2020-10-29 10:10:36,658][1]INFO 加载MES面板完成
[2020-10-29 10:10:36,832][1]INFO 相机数量为0
[2020-10-29 10:10:36,832][1]INFO 没有连接相机
[2020-10-29 10:10:36,833][1]INFO 没有串口:COM1
[2020-10-29 10:10:41,514][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:10:43,528][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:10:44,457][1]INFO =====程序结束=====
[2020-10-29 10:10:52,040][1]INFO =====程序开始=====
[2020-10-29 10:10:53,015][1]INFO 加载MES面板完成
[2020-10-29 10:10:53,192][1]INFO 相机数量为0
[2020-10-29 10:10:53,192][1]INFO 没有连接相机
[2020-10-29 10:10:53,194][1]INFO 没有串口:COM1
[2020-10-29 10:10:58,020][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 10:11:00,025][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 10:11:08,147][1]INFO =====程序结束=====
[2020-10-29 15:01:41,257][1]INFO =====程序开始=====
[2020-10-29 15:01:43,932][1]INFO 加载MES面板完成
[2020-10-29 15:01:44,218][1]INFO 相机数量为0
[2020-10-29 15:01:44,219][1]INFO 没有连接相机
[2020-10-29 15:01:44,220][1]INFO 没有串口:COM1
[2020-10-29 15:01:49,038][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:01:51,018][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:01:58,509][1]INFO 手动点击条码识别菜单
[2020-10-29 15:02:11,614][1]INFO =====程序结束=====
[2020-10-29 15:02:15,164][1]INFO =====程序开始=====
[2020-10-29 15:02:16,114][1]INFO 加载MES面板完成
[2020-10-29 15:02:16,285][1]INFO 相机数量为0
[2020-10-29 15:02:16,285][1]INFO 没有连接相机
[2020-10-29 15:02:16,286][1]INFO 没有串口:COM1
[2020-10-29 15:02:21,022][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:02:23,020][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:05:05,913][1]INFO =====程序结束=====
[2020-10-29 15:05:32,050][1]INFO =====程序开始=====
[2020-10-29 15:05:32,959][1]INFO 加载MES面板完成
[2020-10-29 15:05:33,151][1]INFO 相机数量为0
[2020-10-29 15:05:33,152][1]INFO 没有连接相机
[2020-10-29 15:05:33,153][1]INFO 没有串口:COM1
[2020-10-29 15:05:38,014][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:05:40,027][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:06:05,531][1]INFO 手动点击条码识别菜单
[2020-10-29 15:09:03,729][1]INFO =====程序开始=====
[2020-10-29 15:09:04,663][1]INFO 加载MES面板完成
[2020-10-29 15:09:04,926][1]INFO 相机数量为0
[2020-10-29 15:09:04,927][1]INFO 没有连接相机
[2020-10-29 15:09:04,939][1]INFO 没有串口:COM1
[2020-10-29 15:09:09,517][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:09:11,524][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:09:12,808][1]INFO =====程序结束=====
[2020-10-29 15:09:53,499][1]INFO =====程序开始=====
[2020-10-29 15:09:54,372][1]INFO 加载MES面板完成
[2020-10-29 15:09:54,550][1]INFO 相机数量为0
[2020-10-29 15:09:54,550][1]INFO 没有连接相机
[2020-10-29 15:09:54,552][1]INFO 没有串口:COM1
[2020-10-29 15:09:59,528][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:10:01,525][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:10:02,961][1]INFO =====程序结束=====
[2020-10-29 15:10:11,608][1]INFO =====程序开始=====
[2020-10-29 15:10:12,636][1]INFO 加载MES面板完成
[2020-10-29 15:10:12,892][1]INFO 相机数量为0
[2020-10-29 15:10:12,892][1]INFO 没有连接相机
[2020-10-29 15:10:12,894][1]INFO 没有串口:COM1
[2020-10-29 15:10:17,524][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:10:19,522][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:10:26,114][1]INFO 手动点击条码识别菜单
[2020-10-29 15:12:06,008][1]INFO =====程序结束=====
[2020-10-29 15:29:09,731][1]INFO =====程序开始=====
[2020-10-29 15:29:10,769][1]INFO 加载MES面板完成
[2020-10-29 15:29:10,965][1]ERROR 未能加载文件或程序集“dog_net_windows, Version=1.0.1.28668, Culture=neutral, PublicKeyToken=56120be447701319”或它的某一个依赖项。系统找不到指定的文件。
[2020-10-29 15:29:34,532][1]INFO =====程序开始=====
[2020-10-29 15:29:35,728][1]INFO 加载MES面板完成
[2020-10-29 15:29:36,060][1]INFO 相机数量为0
[2020-10-29 15:29:36,060][1]INFO 没有连接相机
[2020-10-29 15:29:36,063][1]INFO 没有串口:COM1
[2020-10-29 15:29:41,024][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 15:29:43,013][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 15:29:48,266][1]INFO 手动点击条码识别菜单
[2020-10-29 15:31:13,006][1]INFO =====程序结束=====
[2020-10-29 16:00:29,203][1]INFO =====程序开始=====
[2020-10-29 16:00:30,637][1]INFO 加载MES面板完成
[2020-10-29 16:00:30,910][1]INFO 相机数量为0
[2020-10-29 16:00:30,910][1]INFO 没有连接相机
[2020-10-29 16:00:30,913][1]INFO 没有串口:COM1
[2020-10-29 16:00:35,524][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 16:00:37,521][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 16:01:11,420][1]INFO =====程序结束=====
[2020-10-29 16:06:26,472][1]INFO =====程序开始=====
[2020-10-29 16:06:30,968][1]INFO 加载MES面板完成
[2020-10-29 16:06:31,137][1]INFO 相机数量为0
[2020-10-29 16:06:31,137][1]INFO 没有连接相机
[2020-10-29 16:06:31,139][1]INFO 没有串口:COM1
[2020-10-29 16:06:36,022][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 16:06:38,027][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 16:06:39,116][1]INFO =====程序结束=====
[2020-10-29 16:06:47,152][1]INFO =====程序开始=====
[2020-10-29 16:06:48,245][1]INFO 加载MES面板完成
[2020-10-29 16:06:48,432][1]INFO 相机数量为0
[2020-10-29 16:06:48,432][1]INFO 没有连接相机
[2020-10-29 16:06:48,434][1]INFO 没有串口:COM1
[2020-10-29 16:06:53,020][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 16:06:55,018][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 16:07:47,367][1]INFO =====程序结束=====
[2020-10-29 16:10:25,235][1]INFO =====程序开始=====
[2020-10-29 16:10:26,252][1]INFO 加载MES面板完成
[2020-10-29 16:10:26,419][1]INFO 相机数量为0
[2020-10-29 16:10:26,419][1]INFO 没有连接相机
[2020-10-29 16:10:26,423][1]INFO 没有串口:COM1
[2020-10-29 16:10:31,021][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-29 16:10:33,013][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-29 16:10:35,083][1]INFO =====程序结束=====
[2020-10-30 16:04:35,591][1]INFO =====程序开始=====
[2020-10-30 16:04:37,754][1]INFO 加载MES面板完成
[2020-10-30 16:04:38,168][1]INFO 相机数量为0
[2020-10-30 16:04:38,169][1]INFO 没有连接相机
[2020-10-30 16:04:38,203][1]INFO 没有串口:COM1
[2020-10-30 16:04:43,125][1]INFO Ping 192.168.0.102 请求没有回应
[2020-10-30 16:04:45,112][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-10-30 16:04:46,225][1]INFO =====程序结束=====
[2020-11-04 10:46:14,124][1]INFO =====程序开始=====
[2020-11-04 10:46:15,542][1]INFO 加载MES面板完成
[2020-11-04 10:46:15,738][1]ERROR 未能加载文件或程序集“dog_net_windows, Version=1.0.1.28668, Culture=neutral, PublicKeyToken=56120be447701319”或它的某一个依赖项。系统找不到指定的文件。
[2020-11-04 10:46:26,857][1]INFO 手动点击标签模板菜单
[2020-11-04 10:47:00,627][1]ERROR 未将对象引用设置到对象的实例。
[2020-11-04 10:47:02,180][1]INFO =====程序结束=====
[2020-11-10 13:12:27,131][1]INFO =====程序开始=====
[2020-11-10 13:12:29,262][1]INFO 加载MES面板完成
[2020-11-10 13:12:29,509][1]ERROR 未能加载文件或程序集“dog_net_windows, Version=1.0.1.28668, Culture=neutral, PublicKeyToken=56120be447701319”或它的某一个依赖项。系统找不到指定的文件。
[2020-11-10 13:14:53,187][1]INFO =====程序开始=====
[2020-11-10 13:14:57,839][1]INFO 加载MES面板完成
[2020-11-10 13:14:58,204][1]INFO 相机数量为0
[2020-11-10 13:14:58,204][1]INFO 没有连接相机
[2020-11-10 13:14:58,214][1]INFO 没有串口:COM1
[2020-11-10 13:15:02,869][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-10 13:15:04,864][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-10 13:15:07,181][1]INFO =====程序结束=====
[2020-11-10 13:15:44,782][1]INFO =====程序开始=====
[2020-11-10 13:15:45,600][1]INFO 加载MES面板完成
[2020-11-10 13:15:45,718][1]INFO 相机数量为0
[2020-11-10 13:15:45,719][1]INFO 没有连接相机
[2020-11-10 13:15:45,720][1]INFO 没有串口:COM1
[2020-11-10 13:15:50,367][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-10 13:15:51,983][1]INFO =====程序结束=====
[2020-11-12 09:18:27,180][1]INFO =====程序开始=====
[2020-11-12 09:18:28,606][1]INFO 加载MES面板完成
[2020-11-12 09:18:28,883][1]INFO 相机数量为0
[2020-11-12 09:18:28,884][1]INFO 没有连接相机
[2020-11-12 09:18:28,892][1]INFO 没有串口:COM1
[2020-11-12 09:18:33,841][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-12 09:18:35,852][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-12 09:18:41,028][1]INFO 手动点击条码识别菜单
[2020-11-12 09:19:34,565][1]INFO =====程序结束=====
[2020-11-12 09:26:53,973][1]INFO =====程序开始=====
[2020-11-12 09:26:55,117][1]INFO 加载MES面板完成
[2020-11-12 09:26:55,269][1]INFO 相机数量为0
[2020-11-12 09:26:55,270][1]INFO 没有连接相机
[2020-11-12 09:26:55,273][1]INFO 没有串口:COM1
[2020-11-12 09:26:59,849][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-12 09:27:01,842][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-12 09:27:07,322][1]INFO 手动点击条码识别菜单
[2020-11-12 09:27:18,572][1]INFO =====程序结束=====
[2020-11-12 09:49:59,862][1]INFO =====程序开始=====
[2020-11-12 09:50:00,801][1]INFO 加载MES面板完成
[2020-11-12 09:50:00,967][1]INFO 相机数量为0
[2020-11-12 09:50:00,967][1]INFO 没有连接相机
[2020-11-12 09:50:00,977][1]INFO 没有串口:COM1
[2020-11-12 09:50:05,851][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-12 09:50:07,854][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-12 09:50:14,103][1]INFO 手动点击条码识别菜单
[2020-11-12 09:50:59,642][1]INFO =====程序结束=====
[2020-11-12 10:04:50,762][1]INFO =====程序开始=====
[2020-11-12 10:04:51,837][1]INFO 加载MES面板完成
[2020-11-12 10:04:52,100][1]INFO 相机数量为0
[2020-11-12 10:04:52,100][1]INFO 没有连接相机
[2020-11-12 10:04:52,109][1]INFO 没有串口:COM1
[2020-11-12 10:04:56,843][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-12 10:04:58,842][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-12 10:05:04,052][1]INFO 手动点击条码识别菜单
[2020-11-12 10:16:34,319][1]INFO =====程序结束=====
[2020-11-19 13:43:50,081][1]INFO =====程序开始=====
[2020-11-19 13:43:51,235][1]INFO 加载MES面板完成
[2020-11-19 13:43:51,492][1]INFO 相机数量为0
[2020-11-19 13:43:51,492][1]INFO 没有连接相机
[2020-11-19 13:43:51,502][1]INFO 没有串口:COM1
[2020-11-19 13:43:56,338][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-19 13:43:58,337][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-19 13:44:06,629][1]INFO 手动点击物料模板菜单
[2020-11-19 13:50:19,794][1]INFO 手动点击标签模板菜单
[2020-11-19 13:53:35,175][1]INFO 手动点击标签模板菜单
[2020-11-19 14:06:12,111][1]INFO 手动点击物料模板菜单
[2020-11-19 14:09:39,377][1]INFO 手动点击标签模板菜单
[2020-11-19 14:13:04,675][1]INFO 手动点击物料模板菜单
[2020-11-19 14:32:41,819][1]INFO =====程序结束=====
[2020-11-25 17:19:06,724][1]INFO =====程序开始=====
[2020-11-25 17:19:08,580][1]INFO 加载MES面板完成
[2020-11-25 17:19:08,910][1]ERROR 未能加载文件或程序集“dog_net_windows, Version=1.0.1.28668, Culture=neutral, PublicKeyToken=56120be447701319”或它的某一个依赖项。系统找不到指定的文件。
[2020-11-25 17:19:17,876][1]INFO 手动点击标签追溯菜单
[2020-11-25 17:21:29,218][1]ERROR 未将对象引用设置到对象的实例。
[2020-11-25 17:21:31,379][1]INFO =====程序结束=====
[2020-11-30 14:10:39,437][1]INFO =====程序开始=====
[2020-11-30 14:10:41,540][1]INFO 加载MES面板完成
[2020-11-30 14:10:42,076][1]INFO 相机数量为0
[2020-11-30 14:10:42,076][1]INFO 没有连接相机
[2020-11-30 14:10:42,102][1]INFO 没有串口:COM1
[2020-11-30 14:10:46,724][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-30 14:10:49,212][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-30 14:11:07,560][1]INFO 手动点击标签模板菜单
[2020-11-30 14:11:20,707][1]INFO 手动点击物料模板菜单
[2020-11-30 14:12:26,582][1]INFO 手动点击设置菜单
[2020-11-30 14:12:38,844][1]INFO 手动点击批量打印菜单
[2020-11-30 14:12:40,156][1]INFO 手动点击标签追溯菜单
[2020-11-30 14:12:55,732][1]INFO =====程序结束=====
[2020-11-30 14:13:53,120][1]INFO =====程序开始=====
[2020-11-30 14:13:54,663][1]INFO 加载MES面板完成
[2020-11-30 14:13:55,239][1]INFO 相机数量为0
[2020-11-30 14:13:55,239][1]INFO 没有连接相机
[2020-11-30 14:13:55,252][1]INFO 没有串口:COM1
[2020-11-30 14:14:00,221][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-30 14:14:02,208][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-30 14:16:51,610][1]INFO 手动点击标签追溯菜单
[2020-11-30 14:18:21,988][1]INFO 手动点击标签模板菜单
[2020-11-30 14:18:42,896][1]ERROR Requested contents should be less than 80 digits long, but got 90
[2020-11-30 14:18:48,489][1]ERROR Contents length should be between 1 and 80 characters, but got 90
[2020-11-30 14:21:55,077][1]INFO 手动点击物料模板菜单
[2020-11-30 14:22:50,201][1]INFO 手动点击标签模板菜单
[2020-11-30 14:32:20,432][1]INFO 手动点击物料模板菜单
[2020-11-30 14:37:42,311][1]INFO 手动点击灯光调节菜单
[2020-11-30 14:37:50,692][1]INFO 手动点击设置菜单
[2020-11-30 14:41:03,188][1]INFO 手动点击设置菜单
[2020-11-30 14:44:33,792][1]INFO 手动点击条码识别菜单
[2020-11-30 14:44:38,645][1]INFO 手动点击批量打印菜单
[2020-11-30 14:48:48,289][1]INFO 手动点击标签追溯菜单
[2020-11-30 14:50:52,152][1]INFO 手动点击标签追溯菜单
[2020-11-30 14:54:11,320][1]INFO 手动点击标签模板菜单
[2020-11-30 14:54:48,237][1]INFO 手动点击物料模板菜单
[2020-11-30 14:55:26,731][1]INFO 手动点击条码识别菜单
[2020-11-30 14:56:53,690][1]INFO 手动点击设置菜单
[2020-11-30 14:58:51,479][1]INFO 手动点击灯光调节菜单
[2020-11-30 15:06:40,821][1]INFO =====程序结束=====
[2020-11-30 15:44:50,570][1]INFO =====程序开始=====
[2020-11-30 15:44:52,208][1]INFO 加载MES面板完成
[2020-11-30 15:44:52,649][1]INFO 相机数量为0
[2020-11-30 15:44:52,649][1]INFO 没有连接相机
[2020-11-30 15:44:52,663][1]INFO 没有串口:COM1
[2020-11-30 15:44:57,724][1]INFO Ping 192.168.0.102 请求没有回应
[2020-11-30 15:45:00,221][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-11-30 15:45:04,897][1]INFO 手动点击灯光调节菜单
[2020-12-01 11:21:46,032][1]INFO =====程序开始=====
[2020-12-01 11:21:48,808][1]INFO 加载MES面板完成
[2020-12-01 11:21:49,363][1]INFO 相机数量为0
[2020-12-01 11:21:49,367][1]INFO 没有连接相机
[2020-12-01 11:21:49,403][1]INFO 没有串口:COM1
[2020-12-01 11:21:54,291][1]INFO Ping 192.168.0.102 请求没有回应
[2020-12-01 11:21:56,784][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-12-01 11:22:09,286][1]INFO =====程序结束=====
[2020-12-02 16:47:06,049][1]INFO =====程序开始=====
[2020-12-02 16:47:09,386][1]INFO 加载MES面板完成
[2020-12-02 16:47:09,919][1]INFO 相机数量为0
[2020-12-02 16:47:09,919][1]INFO 没有连接相机
[2020-12-02 16:47:09,935][1]INFO 没有串口:COM1
[2020-12-02 16:47:14,632][1]INFO Ping 192.168.0.102 请求没有回应
[2020-12-02 16:47:16,627][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-12-02 16:47:22,750][1]INFO 手动点击设置菜单
[2020-12-02 16:47:32,758][1]INFO =====程序结束=====
[2020-12-03 10:36:58,126][1]INFO =====程序开始=====
[2020-12-03 10:37:00,374][1]INFO 加载MES面板完成
[2020-12-03 10:37:00,779][1]INFO 相机数量为0
[2020-12-03 10:37:00,779][1]INFO 没有连接相机
[2020-12-03 10:37:00,801][1]INFO 没有串口:COM1
[2020-12-03 10:37:05,780][1]INFO Ping 192.168.0.102 请求没有回应
[2020-12-03 10:37:07,778][1]INFO MES Request Timeout IP = 10.144.9.73
[2020-12-03 10:37:12,895][1]INFO 手动点击物料模板菜单
[2020-12-03 10:47:57,206][1]INFO 手动点击设置菜单
[2020-12-03 10:48:47,062][1]INFO =====程序结束=====
[2022-07-09 15:21:54,152][1]INFO =====程序开始=====
[2022-07-09 15:21:54,166][1]INFO =====debug mode=====
[2022-07-09 15:21:55,267][1]INFO 加载MES面板完成
[2022-07-09 15:21:55,496][1]INFO 相机数量为0
[2022-07-09 15:21:55,496][1]INFO 没有连接相机
[2022-07-09 15:21:55,499][1]INFO 没有串口:COM1
[2022-07-09 15:22:00,384][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:22:02,386][1]INFO MES Request Timeout IP = 10.144.9.73
[2022-07-09 15:22:08,885][1]INFO =====程序结束=====
[2022-07-09 15:22:28,717][1]INFO =====程序开始=====
[2022-07-09 15:22:28,725][1]INFO =====debug mode=====
[2022-07-09 15:22:29,699][1]INFO 加载MES面板完成
[2022-07-09 15:22:29,849][1]INFO 相机数量为0
[2022-07-09 15:22:29,849][1]INFO 没有连接相机
[2022-07-09 15:22:29,853][1]INFO 没有串口:COM1
[2022-07-09 15:22:34,389][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:28:12,491][1]INFO =====程序结束=====
[2022-07-09 15:32:25,248][1]INFO =====程序开始=====
[2022-07-09 15:32:25,965][1]INFO 加载MES面板完成
[2022-07-09 15:32:26,083][1]INFO 相机数量为0
[2022-07-09 15:32:26,083][1]INFO 没有连接相机
[2022-07-09 15:32:26,086][1]INFO 没有串口:COM1
[2022-07-09 15:32:30,882][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:32:38,216][1]INFO =====程序结束=====
[2022-07-09 15:32:52,246][1]INFO =====程序开始=====
[2022-07-09 15:32:52,939][1]INFO 加载MES面板完成
[2022-07-09 15:32:53,050][1]INFO 相机数量为0
[2022-07-09 15:32:53,051][1]INFO 没有连接相机
[2022-07-09 15:32:53,052][1]INFO 没有串口:COM1
[2022-07-09 15:32:57,886][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:32:59,588][1]INFO 手动点击条码识别菜单
[2022-07-09 15:33:01,191][1]INFO 手动点击条码识别菜单
[2022-07-09 15:33:22,137][1]INFO =====程序结束=====
[2022-07-09 15:35:28,311][1]INFO =====程序开始=====
[2022-07-09 15:35:29,018][1]INFO 加载MES面板完成
[2022-07-09 15:35:29,123][1]INFO 相机数量为0
[2022-07-09 15:35:29,123][1]INFO 没有连接相机
[2022-07-09 15:35:29,124][1]INFO 没有串口:COM1
[2022-07-09 15:35:33,881][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:35:52,802][1]INFO 手动点击标签模板菜单
[2022-07-09 15:35:56,652][1]INFO 手动点击物料模板菜单
[2022-07-09 15:36:13,907][1]INFO =====程序结束=====
[2022-07-09 15:58:28,038][1]INFO =====程序开始=====
[2022-07-09 15:58:28,800][1]INFO 加载MES面板完成
[2022-07-09 15:58:28,910][1]INFO 相机数量为0
[2022-07-09 15:58:28,910][1]INFO 没有连接相机
[2022-07-09 15:58:28,911][1]INFO 没有串口:COM1
[2022-07-09 15:58:33,892][1]INFO Ping 192.168.0.102 请求没有回应
[2022-07-09 15:58:46,340][1]INFO =====程序结束=====
此文件类型无法预览
此文件类型无法预览
此文件的差异太大,无法显示。
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!