You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Net.NetworkInformation;
using System.Text;
using System.Linq;
using System.Data;
using System.Threading;
using Mesnac.Action.Base;
using Mesnac.Controls.Base;
using System.Windows.Forms;
using Mesnac.Codd.Session;
using System.IO;
using Mesnac.Action.Feeding.BasicInfo;
namespace Mesnac.Action.Feeding.FeedingPlc
{
/// <summary>
/// 下传强制输送标志
/// </summary>
public class CoerceDownload : FeedingAction, IAction
{
public void Run(RuntimeParameter runtime)
{
if (MessageBox.Show(@"在系统因为条码枪故障,通讯中断等客观原因下,\r\n您可以进行强制输送您的操作行为将以日志的形式提交个系统管理员。'
\r\n", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
{
return;
}
base.RunIni(runtime);
if (PlcData.Instance.PlcWriteByDataKey(PlcData.Instance.CoerceDownload, new object[] { 1 }))
{
MessageBox.Show("强制输送标示成功!");
return;
}
MessageBox.Show("强制输送标示失败!");
}
}
}