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.
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Mesnac.Action.Base;
|
|
using Mesnac.Controls.Base;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Mesnac.Action.Feeding.Verification
|
|
{
|
|
/// <summary>
|
|
/// 配方重传验证类
|
|
/// </summary>
|
|
public class RecipeResetValidateAction : FeedingAction , IAction
|
|
{
|
|
private IBaseControl _sender = null;
|
|
|
|
public void Run(RuntimeParameter runtime)
|
|
{
|
|
base.RunIni(runtime);
|
|
this._sender = runtime.BaseControl;
|
|
FrmRecipeResetDialog frmRecipeResetDialog = new FrmRecipeResetDialog();
|
|
if (this._sender != null)
|
|
{
|
|
frmRecipeResetDialog.ShowDialog(this._sender.MCRoot as Control);
|
|
}
|
|
else
|
|
{
|
|
frmRecipeResetDialog.ShowDialog();
|
|
}
|
|
if (frmRecipeResetDialog.DialogResult == DialogResult.Cancel)
|
|
{
|
|
runtime.IsReturn = true; //终止执行
|
|
}
|
|
frmRecipeResetDialog.Dispose();
|
|
return;
|
|
}
|
|
}
|
|
}
|