This commit is contained in:
tfarcraw 2026-12-04 16:14:25 +08:00
parent 19fa2a2df5
commit fc1d705cd8
5 changed files with 7 additions and 6 deletions

View File

@ -841,7 +841,7 @@ namespace DAL
mt.HanxiCount = Convert.ToInt32(row["HanxiCount"]); mt.HanxiCount = Convert.ToInt32(row["HanxiCount"]);
mt.QingjieTime = Convert.ToInt32(row["QingjieTime"]); mt.QingjieTime = Convert.ToInt32(row["QingjieTime"]);
mt.HanxiTime = Convert.ToInt32(row["HanxiTime"]); mt.HanxiTime = Convert.ToInt32(row["HanxiTime"]);
mt.MyQita = ShareHelp.JsonToObj<Qita>(row["MyQita"]); mt.MyQita = ShareHelp.JsonToObj<Qita>(row["MyQita"].ToString());
list.Add(mt); list.Add(mt);

Binary file not shown.

View File

@ -478,7 +478,7 @@ namespace Model
{ {
//allDone.Set(); //allDone.Set();
// ConnSocket = (Socket)ar.AsyncState; // ConnSocket = (Socket)ar.AsyncState;
if (ConnSocket.Connected) if (ConnSocket!=null && ConnSocket.Connected)
{ {
ConnSocket.EndConnect(ar);//挂起异步连接 ConnSocket.EndConnect(ar);//挂起异步连接
@ -501,7 +501,7 @@ namespace Model
Showmsg.StatusBackground = ColorStr.Red; Showmsg.StatusBackground = ColorStr.Red;
Showmsg.StatusForeground = ColorStr.White; Showmsg.StatusForeground = ColorStr.White;
//重连 //重连
ConnSocket.BeginConnect(Endpoint, new AsyncCallback(ConnectCallback), ConnSocket); ConnSocket?.BeginConnect(Endpoint, new AsyncCallback(ConnectCallback), ConnSocket);
} }

View File

@ -353,6 +353,8 @@ namespace Model
this.RaisePropertyChanged("RunningMode"); this.RaisePropertyChanged("RunningMode");
} }
} }
public Qita MyQita { get; set; }
#endregion #endregion
@ -365,7 +367,6 @@ namespace Model
} }
public class Qita : NotificationObject public class Qita : NotificationObject
{ {
private double _XiaYa; private double _XiaYa;

View File

@ -2006,8 +2006,8 @@ namespace ViewModel
dw2 = false; dw2 = false;
TempPoint.PointRunStep = GengralProcessEnum.Start; TempPoint.PointRunStep = GengralProcessEnum.Start;
TempPoint2.PointRunStep = GengralProcessEnum.Start; TempPoint2.PointRunStep = GengralProcessEnum.Start;
TempPoint.PointZ += CurrentMachine.MyQita.XaiYa TempPoint.ShaftPoint_Z += CurrentMachine.MyQita.XiaYa;
TempPoint2.PointZ += CurrentMachine.MyQita.XaiYa TempPoint2.ShaftPoint_Z += CurrentMachine.MyQita.XiaYa;
} }
else if (TimeOutValidation(MyFlow.RunTime, 10000, "焊接位运行异常")) else if (TimeOutValidation(MyFlow.RunTime, 10000, "焊接位运行异常"))
{ {