using Mesnac.Action.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Mesnac.Action.ChemicalWeighing.Product.PptPlan
{
///
/// 重传计划信息
///
class ProductionBudgetAction : ChemicalWeighingAction, IAction
{
#region 字段定义
private RuntimeParameter _runtime;
#endregion
#region IAction接口实现
public void Run(RuntimeParameter runtime)
{
base.RunIni(runtime);
this._runtime = runtime;
this.DoWork();
}
#endregion
///
/// 生产预算
///
private void DoWork()
{
this._runtime.BaseControl.MCEnabled = false;
//创建生产预算窗体
FrmBudget frmBudget = new FrmBudget();
frmBudget.ShowDialog(this._runtime.BaseControl.MCRoot as Control);
frmBudget.Dispose();
this._runtime.BaseControl.MCEnabled = true;
}
}
}