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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
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 ( "强制输送标示失败!" ) ;
}
}
}