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.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/Product/PptPlan/ProductionBudgetAction.cs

42 lines
1.0 KiB
C#

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
/// <summary>
/// 生产预算
/// </summary>
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;
}
}
}