using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; using Mesnac.Controls.Base; namespace Mesnac.Controls.Feeding { /// /// 组合密炼机 /// [ToolboxBitmap(typeof(Mixer2), "ICONS.mixer.bmp")]//新添加的代码 public partial class CombinedMixer : FeedingControl { #region 事件定义 /// /// 报警事件 /// public event EventHandler OnAlarm; #endregion #region 事件属性 private List _alarmActionList = new List(); public List AlarmActionList { get { return this.mixer21.AlarmActionList; } set { this.mixer21.AlarmActionList = value; } } #endregion public CombinedMixer() { InitializeComponent(); this.mixer21.OnAlarm += new EventHandler(mixer21_OnAlarm); } private void mixer21_OnAlarm(object sender, EventArgs e) { if (OnAlarm != null) { OnAlarm(this.mixer21, System.EventArgs.Empty); } } private void CombinedMixer_Resize(object sender, EventArgs e) { this.Width = 391; this.Height = 178; } /// /// 导开机动画属性 /// public string BatchFeederStatusName { get { return this.batchFeeder1.StatusName; } set { this.batchFeeder1.StatusName = value; } } /// /// 导开机状态 /// public BatchFeeder.Statuses BatchFeederStatus { get { return this.batchFeeder1.Status; } set { this.batchFeeder1.Status = value; } } /// /// 胶料称动画属性 /// public string RubberWeightStatusName { get { return this.rubberWeight1.StatusName; } set { this.rubberWeight1.StatusName = value; } } /// /// 胶料称状态 /// public RubberWeight.Statuses RubberWeightStatus { get { return this.rubberWeight1.Status; } set { this.rubberWeight1.Status = value; } } /// /// 胶料称电机状态动画属性 /// public string RubberWeightMotorStatusName { get { return this.rubberWeight1.MotorStatusName; } set { this.rubberWeight1.MotorStatusName = value; } } /// /// 胶料称电机状态 /// public OnOffStatuses RubberWeightMotorStatus { get { return this.rubberWeight1.MotorStatus; } set { this.rubberWeight1.MotorStatus = value; } } /// /// 胶料称设定值 /// public double RWSetValue { get { return this.rubberWeight1.SetValue; } set { this.rubberWeight1.SetValue = value; } } /// /// 胶料称称量值动画属性 /// public string RWWeightValueName { get { return this.rubberWeight1.WeightValueName; } set { this.rubberWeight1.WeightValueName = value; } } /// /// 胶料称称量值 /// public double RWWeightValue { get { return this.rubberWeight1.WeightValue; } set { this.rubberWeight1.WeightValue = value; } } /// /// 传输带动画属性 /// public string TransmissionBeltStatusName { get { return this.transmissionBelt1.StatusName; } set { this.transmissionBelt1.StatusName = value; } } /// /// 传输带状态 /// public TransmissionBelt.Statuses TransmissionBeltStatus { get { return this.transmissionBelt1.Status; } set { this.transmissionBelt1.Status = value; } } /// /// 传送带光电开关状态动画属性 /// public string CsdSensorStatusName { get { return this.transmissionBelt1.SensorStatusName; } set { this.transmissionBelt1.SensorStatusName = value; } } /// /// 传送带光电开关状态 /// public OnOffStatuses CsdSensorStatus { get { return this.transmissionBelt1.SensorStatus; } set { this.transmissionBelt1.SensorStatus = value; } } /// /// 传送带电机状态动画属性 /// public string CsdMotorStatusName { get { return this.transmissionBelt1.CsdMotorStatusName; } set { this.transmissionBelt1.CsdMotorStatusName = value; } } /// /// 传送带电机状态 /// public OnOffStatuses CsdMotorStatus { get { return this.transmissionBelt1.CsdMotorStatus; } set { this.transmissionBelt1.CsdMotorStatus = value; } } /// /// 上顶栓上动画属性 /// public string SdsUpStatusName { get { return this.mixer21.SdsUpStatusName; } set { this.mixer21.SdsUpStatusName = value; } } /// /// 上顶栓中动画属性 /// public string SdsMiddleStatusName { get { return this.mixer21.SdsMiddleStatusName; } set { this.mixer21.SdsMiddleStatusName = value; } } /// /// 上顶栓下动画属性 /// public string SdsDownStatusName { get { return this.mixer21.SdsDownStatusName; } set { this.mixer21.SdsDownStatusName = value; } } /// /// 上顶栓上状态 /// public Mixer2.SdsDeviceStatuses SdsUpStatus { get { return this.mixer21.SdsUpStatus; } set { this.mixer21.SdsUpStatus = value; } } /// /// 上顶栓中状态 /// public Mixer2.SdsDeviceStatuses SdsMiddleStatus { get { return this.mixer21.SdsMiddleStatus; } set { this.mixer21.SdsMiddleStatus = value; } } /// /// 上顶栓下状态 /// public Mixer2.SdsDeviceStatuses SdsDownStatus { get { return this.mixer21.SdsDownStatus; } set { this.mixer21.SdsDownStatus = value; } } /// /// 上顶栓状态 /// public Mixer2.sdsStatuses SdsStatus { get { return this.mixer21.sdsStatus; } set { this.mixer21.sdsStatus = value; } } /// /// 加料门动画属性 /// public string JlmStatusName { get { return this.mixer21.jlmStatusName; } set { this.mixer21.jlmStatusName = value; } } /// /// 加料门状态 /// public Mixer2.jlmStatuses JlmStatus { get { return this.mixer21.jlmStatus; } set { this.mixer21.jlmStatus = value; } } /// /// 密炼机动画属性 /// public string MixerStatusName { get { return this.mixer21.mixerStatusName; } set { this.mixer21.mixerStatusName = value; } } /// /// 密炼机状态 /// public Mixer2.mixerStatuses MixerStatus { get { return this.mixer21.mixerStatus; } set { this.mixer21.mixerStatus = value; } } /// /// 卸料门动画属性 /// public string XlmStatusName { get { return this.mixer21.xlmStatusName; } set { this.mixer21.xlmStatusName = value; } } /// /// 卸料门状态 /// public Mixer2.xlmStatuses XlmStatus { get { return this.mixer21.xlmStatus; } set { this.mixer21.xlmStatus = value; } } #region 报警 /// /// 上顶栓报警信息属性 /// public string SdsAlarmValue { get { return this.mixer21.SdsAlarmValue; } set { this.mixer21.SdsAlarmValue = value; } } /// /// 加料门报警信息属性 /// public string JlmAlarmValue { get { return this.mixer21.JlmAlarmValue; } set { this.mixer21.JlmAlarmValue = value; } } /// /// 卸料门报警信息属性 /// public string XlmAlarmValue { get { return this.mixer21.XlmAlarmValue; } set { this.mixer21.XlmAlarmValue = value; } } #endregion } }