|
|
|
|
@ -2,11 +2,14 @@
|
|
|
|
|
using CommonFunc;
|
|
|
|
|
using CommonFunc.Tools;
|
|
|
|
|
using HandyControl.Tools.Extension;
|
|
|
|
|
using LiveCharts.Charts;
|
|
|
|
|
using Microsoft.SqlServer.Server;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using System.Net.Sockets;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Timers;
|
|
|
|
|
@ -30,7 +33,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class LanJu_Operator : UserControl
|
|
|
|
|
{
|
|
|
|
|
public static string PlcIp= "172.18.15.20";
|
|
|
|
|
public static string PlcIp = "172.18.15.20";
|
|
|
|
|
public static bool isSuccess = false;
|
|
|
|
|
public static bool IsWrite = false;
|
|
|
|
|
public static PlcHelper plc = new PlcHelper();
|
|
|
|
|
@ -789,7 +792,7 @@ namespace XGLFinishPro.Views
|
|
|
|
|
}
|
|
|
|
|
else if (type == 1)
|
|
|
|
|
{
|
|
|
|
|
if (!formingMachineService.UpdateProWorkBatchInWorkBatchCode(lineCode, batchCode, status,productCode,productName))
|
|
|
|
|
if (!formingMachineService.UpdateProWorkBatchInWorkBatchCode(lineCode, batchCode, status, productCode, productName))
|
|
|
|
|
{
|
|
|
|
|
CustomMessageBox.Show("更新打印机表状态失败!", CustomMessageBoxButton.OK, CustomMessageBoxIcon.Warning);
|
|
|
|
|
return false;
|
|
|
|
|
@ -1211,9 +1214,10 @@ namespace XGLFinishPro.Views
|
|
|
|
|
{
|
|
|
|
|
if (row["plc_point_no"].ToString() == height)
|
|
|
|
|
{
|
|
|
|
|
plc.Write(new PlcSetting() {
|
|
|
|
|
PlcAddress= row["plc_point_address"].ToString() ,
|
|
|
|
|
PlcValueLength="2"
|
|
|
|
|
plc.Write(new PlcSetting()
|
|
|
|
|
{
|
|
|
|
|
PlcAddress = row["plc_point_address"].ToString(),
|
|
|
|
|
PlcValueLength = "2"
|
|
|
|
|
}, h);
|
|
|
|
|
}
|
|
|
|
|
else if (row["plc_point_no"].ToString() == width1)
|
|
|
|
|
|