feedback 기능 추가중

main
DESKTOP-S459P9R\LSJ 2025-12-17 11:49:17 +09:00
parent ccc5eab507
commit d9a8ff6cc3
14 changed files with 17103 additions and 3420 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,659 @@
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using SmartX;
using INT63DC_6CH.Forms;
using INT63DC_6CH.DialogForms;
namespace INT63DC_6CH.Controls
{
public partial class ControlMainDisplayFeedbacak : UserControl
{
#region Field
private FormMainDisplay m_ParentForm;
private Collection<SmartLabel> CollectionLane;
private Collection<SmartLabel> CollectionSampleCount;
private Collection<SmartLabel> CollectionIgnoreCount;
private Collection<SmartLabel> CollectionFeedbackWeight;
private Collection<SmartLabel> CollectionCurrentWeight;
#endregion
#region Constructor
public ControlMainDisplayFeedbacak(FormMainDisplay parent)
{
InitializeComponent();
this.ParentForm = parent;
this.CreateCollection();
this.InitializeControl();
}
#endregion
#region Property
public FormMainDisplay ParentForm
{
get { return this.m_ParentForm; }
private set { this.m_ParentForm = value; }
}
#endregion
#region Method
private void CreateCollection()
{
this.CollectionLane = new Collection<SmartLabel>();
this.CollectionLane.Add(this.labelLane1);
this.CollectionLane.Add(this.labelLane2);
this.CollectionLane.Add(this.labelLane3);
this.CollectionLane.Add(this.labelLane4);
this.CollectionLane.Add(this.labelLane5);
this.CollectionLane.Add(this.labelLane6);
this.CollectionSampleCount = new Collection<SmartLabel>();
this.CollectionSampleCount.Add(this.labelSampleCount1);
this.CollectionSampleCount.Add(this.labelSampleCount2);
this.CollectionSampleCount.Add(this.labelSampleCount3);
this.CollectionSampleCount.Add(this.labelSampleCount4);
this.CollectionSampleCount.Add(this.labelSampleCount5);
this.CollectionSampleCount.Add(this.labelSampleCount6);
this.CollectionIgnoreCount = new Collection<SmartLabel>();
this.CollectionIgnoreCount.Add(this.labelIgnoreCount1);
this.CollectionIgnoreCount.Add(this.labelIgnoreCount2);
this.CollectionIgnoreCount.Add(this.labelIgnoreCount3);
this.CollectionIgnoreCount.Add(this.labelIgnoreCount4);
this.CollectionIgnoreCount.Add(this.labelIgnoreCount5);
this.CollectionIgnoreCount.Add(this.labelIgnoreCount6);
this.CollectionFeedbackWeight = new Collection<SmartLabel>();
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight1);
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight2);
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight3);
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight4);
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight5);
this.CollectionFeedbackWeight.Add(this.labelFeedbackWeight6);
this.CollectionCurrentWeight = new Collection<SmartLabel>();
this.CollectionCurrentWeight.Add(this.labelCurrentWeight1);
this.CollectionCurrentWeight.Add(this.labelCurrentWeight2);
this.CollectionCurrentWeight.Add(this.labelCurrentWeight3);
this.CollectionCurrentWeight.Add(this.labelCurrentWeight4);
this.CollectionCurrentWeight.Add(this.labelCurrentWeight5);
this.CollectionCurrentWeight.Add(this.labelCurrentWeight6);
}
private void InitializeControl()
{
for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig.EquipmentColumns; i++)
{
this.CollectionLane[i].Visible = true;
this.CollectionSampleCount[i].Visible = true;
this.CollectionSampleCount[i].Text = "0";
this.CollectionIgnoreCount[i].Visible = true;
this.CollectionIgnoreCount[i].Text = "0";
this.CollectionFeedbackWeight[i].Visible = true;
this.CollectionFeedbackWeight[i].Text = Helper.StringToDecimalPlaces("0", this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
this.CollectionCurrentWeight[i].Visible = true;
this.CollectionCurrentWeight[i].Text = Helper.StringToDecimalPlaces("0", this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
}
}
public void UpdateFeedbackDisplay(FeedbackConfiguration feedback, SystemConfigurationItem system, ProductItem product)
{
int passRange = 0, underRange = 0, overRange = 0, deadZone = 0, deadZoneHigh = 0, deadZoneLow = 0, lowLimit = 0, highLimit = 0;
string value = "";
underRange = int.Parse(product.UnderRange);
passRange = int.Parse(product.PassRange);
overRange = int.Parse(product.OverRange);
deadZone = int.Parse(feedback.DeadZone);
deadZoneHigh = passRange + deadZone;
deadZoneLow = passRange - deadZone;
lowLimit = int.Parse(feedback.LowLimit);
highLimit = int.Parse(feedback.HighLimit);
// SampleCount
value = system.FeedbackSampleCount.ToString();
if (this.labelSampleCount.Text != value)
this.labelSampleCount.Text = value;
// IgnorePackages
value = system.FeedbackIgnorePackages.ToString();
if (this.labelIgnorePackages.Text != value)
this.labelIgnorePackages.Text = value;
// DeadZone
value = Helper.StringToDecimalPlaces(feedback.DeadZone, system.DecimalPlaces);
if (this.labelDeadZone.Text != value)
this.labelDeadZone.Text = value;
// HightLimit
value = Helper.StringToDecimalPlaces(feedback.HighLimit, system.DecimalPlaces);
if (this.labelHighLimitRange.Text != value)
{
this.labelHighLimitRange.Text = value;
this.labelHighLimitRange1.Text = value;
}
// LowLimit
value = Helper.StringToDecimalPlaces(feedback.LowLimit, system.DecimalPlaces);
if (this.labelLowLimitRange.Text != value)
{
this.labelLowLimitRange.Text = value;
this.labelLowLimitRange1.Text = value;
}
// DeadZoneLowLimit
value = Helper.StringToDecimalPlaces(deadZoneLow.ToString(), system.DecimalPlaces);
if (this.labelDeadZoneLowLimitRange.Text != value)
this.labelDeadZoneLowLimitRange.Text = value;
// DeadZoneHighLimit
value = Helper.StringToDecimalPlaces(deadZoneHigh.ToString(), system.DecimalPlaces);
if (this.labelDeadZoneHighLimitRange.Text != value)
this.labelDeadZoneHighLimitRange.Text = value;
// OverRange
value = Helper.StringToDecimalPlaces(product.OverRange, system.DecimalPlaces);
if (this.labelOverRange.Text != value)
this.labelOverRange.Text = value;
// PassRange
value = Helper.StringToDecimalPlaces(product.PassRange, system.DecimalPlaces);
if (this.labelPassRange.Text != value)
this.labelPassRange.Text = value;
// UnderRange
value = Helper.StringToDecimalPlaces(product.UnderRange, system.DecimalPlaces);
if (this.labelUnderRange.Text != value)
this.labelUnderRange.Text = value;
// Information Feedback Range
if (highLimit > overRange && lowLimit < underRange)
{
this.pictureBoxFeedback1.Visible = false;
this.pictureBoxFeedback2.Visible = false;
this.pictureBoxFeedback3.Visible = false;
this.pictureBoxFeedback4.Visible = true;
this.labelOverRange.Location = new Point(854, 61);
this.labelHighLimitRange1.Location = new Point(854, 23);
this.labelLowLimitRange1.Location = new Point(854, 330);
this.labelUnderRange.Location = new Point(854, 291);
}
else if (highLimit > overRange)
{
this.pictureBoxFeedback1.Visible = false;
this.pictureBoxFeedback2.Visible = true;
this.pictureBoxFeedback3.Visible = false;
this.pictureBoxFeedback4.Visible = false;
this.labelOverRange.Location = new Point(854, 61);
this.labelHighLimitRange1.Location = new Point(854, 23);
this.labelLowLimitRange1.Location = new Point(854, 291);
this.labelUnderRange.Location = new Point(854, 330);
}
else if (lowLimit < underRange)
{
this.pictureBoxFeedback1.Visible = false;
this.pictureBoxFeedback2.Visible = false;
this.pictureBoxFeedback3.Visible = true;
this.pictureBoxFeedback4.Visible = false;
this.labelOverRange.Location = new Point(854, 23);
this.labelHighLimitRange1.Location = new Point(854, 61);
this.labelLowLimitRange1.Location = new Point(854, 330);
this.labelUnderRange.Location = new Point(854, 291);
}
else
{
this.pictureBoxFeedback1.Visible = true;
this.pictureBoxFeedback2.Visible = false;
this.pictureBoxFeedback3.Visible = false;
this.pictureBoxFeedback4.Visible = false;
this.labelOverRange.Location = new Point(854, 23);
this.labelHighLimitRange1.Location = new Point(854, 61);
this.labelLowLimitRange1.Location = new Point(854, 291);
this.labelUnderRange.Location = new Point(854, 330);
}
}
public void UpdateEquipmentStatusDisplay(DataStore.EquipmentStatus status)
{
this.UpdateFeedbackDataDisplay(status, this.ParentForm.ParentForm.CollectionFeedbackStatus);
if (status == DataStore.EquipmentStatus.Start)
{
}
else
{
}
}
public void UpdateFeedbackDataDisplay(DataStore.EquipmentStatus status, Collection<FeedBackSystem> feedbackData)
{
this.UpdateFeedbackDataDisplay1(status, feedbackData[0]);
this.UpdateFeedbackDataDisplay2(status, feedbackData[1]);
this.UpdateFeedbackDataDisplay3(status, feedbackData[2]);
this.UpdateFeedbackDataDisplay4(status, feedbackData[3]);
this.UpdateFeedbackDataDisplay5(status, feedbackData[4]);
this.UpdateFeedbackDataDisplay6(status, feedbackData[5]);
}
public void UpdateFeedbackDataDisplay1(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount1.Text != value)
this.labelSampleCount1.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount1.Text != value)
this.labelIgnoreCount1.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight1.Text != value)
this.labelFeedbackWeight1.Text = value;
}
public void UpdateFeedbackDataDisplay2(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount2.Text != value)
this.labelSampleCount2.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount2.Text != value)
this.labelIgnoreCount2.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight2.Text != value)
this.labelFeedbackWeight2.Text = value;
}
public void UpdateFeedbackDataDisplay3(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount3.Text != value)
this.labelSampleCount3.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount3.Text != value)
this.labelIgnoreCount3.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight3.Text != value)
this.labelFeedbackWeight3.Text = value;
}
public void UpdateFeedbackDataDisplay4(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount4.Text != value)
this.labelSampleCount4.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount4.Text != value)
this.labelIgnoreCount4.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight4.Text != value)
this.labelFeedbackWeight4.Text = value;
}
public void UpdateFeedbackDataDisplay5(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount5.Text != value)
this.labelSampleCount5.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount5.Text != value)
this.labelIgnoreCount5.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight5.Text != value)
this.labelFeedbackWeight5.Text = value;
}
public void UpdateFeedbackDataDisplay6(DataStore.EquipmentStatus status, FeedBackSystem feedbackData)
{
string value = "";
// Sample Count
value = feedbackData.WeightList.Count.ToString();
if (this.labelSampleCount6.Text != value)
this.labelSampleCount6.Text = value;
// Ignore Count
value = feedbackData.IgnoreCount.ToString();
if (this.labelIgnoreCount6.Text != value)
this.labelIgnoreCount6.Text = value;
// Feedback Weight
if (feedbackData.FeedbackWeight <= 0)
value = Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
else
value = string.Format("+{0}", Helper.DoubleToString(feedbackData.FeedbackWeight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
if (this.labelFeedbackWeight6.Text != value)
this.labelFeedbackWeight6.Text = value;
}
public void UpdateStopWeightDisplay(DataStore.EquipmentStatus status, Collection<WeightData> weightDatas)
{
string value = "";
if (this.ParentForm.ParentForm.SystemConfig.EquipmentColumns > weightDatas.Count)
return;
if (status == DataStore.EquipmentStatus.Stop)
{
for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig.EquipmentColumns; i++)
{
// 중량
value = Helper.StringToDecimalPlaces(weightDatas[i].WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.CollectionCurrentWeight[i].Text != value)
this.CollectionCurrentWeight[i].Text = value;
}
}
}
public void UpdateStartWeightDisplay(DataStore.EquipmentStatus status, Collection<WeightData> weightDatas)
{
this.UpdateStartWeightDisplay1(status, weightDatas[0]);
this.UpdateStartWeightDisplay2(status, weightDatas[1]);
this.UpdateStartWeightDisplay3(status, weightDatas[2]);
this.UpdateStartWeightDisplay4(status, weightDatas[3]);
this.UpdateStartWeightDisplay5(status, weightDatas[4]);
this.UpdateStartWeightDisplay6(status, weightDatas[5]);
}
public void UpdateStartWeightDisplay1(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight1.Text != value)
this.labelCurrentWeight1.Text = value;
}
public void UpdateStartWeightDisplay2(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight2.Text != value)
this.labelCurrentWeight2.Text = value;
}
public void UpdateStartWeightDisplay3(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight3.Text != value)
this.labelCurrentWeight3.Text = value;
}
public void UpdateStartWeightDisplay4(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight4.Text != value)
this.labelCurrentWeight4.Text = value;
}
public void UpdateStartWeightDisplay5(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight5.Text != value)
this.labelCurrentWeight5.Text = value;
}
public void UpdateStartWeightDisplay6(DataStore.EquipmentStatus status, WeightData weightData)
{
string value = "";
if (weightData.JudgmentStatus == DataStore.JudgmentStatus.Empty)
return;
value = Helper.StringToDecimalPlaces(weightData.WeightString, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
if (this.labelCurrentWeight6.Text != value)
this.labelCurrentWeight6.Text = value;
}
public void Clear()
{
for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig.EquipmentColumns; i++)
{
this.ParentForm.ParentForm.CollectionFeedbackStatus[i].ClearDataAll();
}
this.UpdateFeedbackDataDisplay(this.ParentForm.ParentForm.EquipmentStatus, this.ParentForm.ParentForm.CollectionFeedbackStatus);
}
public void DisplayRefresh()
{
this.UpdateFeedbackDisplay(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig, this.ParentForm.ParentForm.CurrentProductItem);
}
#endregion
#region Event Handler
private void labelSampleCount_Click(object sender, EventArgs e)
{
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelSampleCount.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue < 1 || myKeyPad.doubleValue > 9999)
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.labelSampleCount.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.SystemConfig.FeedbackSampleCount = myKeyPad.IntValue;
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.Update30000ModbusData();
this.ParentForm.ParentForm.ModbusCommonDataSend();
for (int i = 0; i < this.ParentForm.ParentForm.SystemConfig.EquipmentColumns; i++)
this.ParentForm.ParentForm.CollectionFeedbackStatus[i].ClearData();
}
}
}
private void labelIgnorePackages_Click(object sender, EventArgs e)
{
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelIgnorePackages.Text, 4, 0, false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue < 1 || myKeyPad.doubleValue > 9999)
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.labelIgnorePackages.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.SystemConfig.FeedbackIgnorePackages = myKeyPad.IntValue;
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.Update30000ModbusData();
this.ParentForm.ParentForm.ModbusCommonDataSend();
}
}
}
private void labelDeadZone_Click(object sender, EventArgs e)
{
int passRange = 0, deadZone = 0, deadZoneHigh = 0, deadZoneLow = 0;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelDeadZone.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces, false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
passRange = int.Parse(this.ParentForm.ParentForm.CurrentProductItem.PassRange);
deadZone = int.Parse(myKeyPad.StringValue.Replace(".", ""));
deadZoneHigh = passRange + deadZone;
deadZoneLow = passRange - deadZone;
if (deadZoneLow < int.Parse(this.ParentForm.ParentForm.CurrentFeedbackItem.LowLimit) ||
deadZoneLow < int.Parse(this.ParentForm.ParentForm.CurrentProductItem.UnderRange) ||
deadZoneHigh > int.Parse(this.ParentForm.ParentForm.CurrentFeedbackItem.HighLimit) ||
deadZoneHigh > int.Parse(this.ParentForm.ParentForm.CurrentProductItem.OverRange))
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.labelDeadZone.Text = myKeyPad.StringValue;
this.labelDeadZoneHighLimitRange.Text = Helper.StringToDecimalPlaces(deadZoneHigh.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
this.labelDeadZoneLowLimitRange.Text = Helper.StringToDecimalPlaces(deadZoneLow.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
this.ParentForm.ParentForm.CurrentFeedbackItem.DeadZone = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveFeedbackItemFile(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
this.ParentForm.ParentForm.Update30000ModbusData();
this.ParentForm.ParentForm.ModbusCommonDataSend();
}
}
}
private void labelHighLimitRange_Click(object sender, EventArgs e)
{
bool saveEnable = false;
int passRange = 0, deadZone = 0, deadZoneHigh = 0;
string data = "";
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelHighLimitRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces, false, this.ParentForm.ParentForm.SystemConfig.Language);
passRange = int.Parse(this.ParentForm.ParentForm.CurrentProductItem.PassRange);
deadZone = int.Parse(this.ParentForm.ParentForm.CurrentFeedbackItem.DeadZone);
deadZoneHigh = passRange + deadZone;
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue < Helper.StringToWeight(deadZoneHigh.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces))
{
// 입력범위를 확인하세요
data = string.Format("{0} ~ {1}", Helper.StringToDecimalPlaces(deadZoneHigh.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces),
Helper.StringToDecimalPlaces("99999", this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language, data);
myMsg.ShowDialog();
}
else
{
if (myKeyPad.doubleValue > Helper.StringToWeight(this.ParentForm.ParentForm.CurrentProductItem.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces))
{
DialogFormYesNo myMsgYesNo = new DialogFormYesNo(this.ParentForm.ParentForm.SystemConfig.Language, 6);
if (myMsgYesNo.ShowDialog() == DialogResult.Yes)
saveEnable = true;
}
else
saveEnable = true;
if (saveEnable == true)
{
this.labelHighLimitRange.Text = myKeyPad.StringValue;
this.labelHighLimitRange1.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.CurrentFeedbackItem.HighLimit = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveFeedbackItemFile(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
this.ParentForm.ParentForm.Update30000ModbusData();
this.ParentForm.ParentForm.ModbusCommonDataSend();
this.UpdateFeedbackDisplay(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig, this.ParentForm.ParentForm.CurrentProductItem);
}
}
}
}
private void labelLowLimitRange_Click(object sender, EventArgs e)
{
bool saveEnable = false;
int passRange = 0, deadZone = 0, deadZoneLow = 0;
string data = "";
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelLowLimitRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces, false, this.ParentForm.ParentForm.SystemConfig.Language);
passRange = int.Parse(this.ParentForm.ParentForm.CurrentProductItem.PassRange);
deadZone = int.Parse(this.ParentForm.ParentForm.CurrentFeedbackItem.DeadZone);
deadZoneLow = passRange - deadZone;
if (myKeyPad.ShowDialog() == DialogResult.OK)
{
if (myKeyPad.doubleValue > Helper.StringToWeight(deadZoneLow.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces))
{
// 입력범위를 확인하세요
data = string.Format("{0} ~ {1}", Helper.StringToDecimalPlaces("0", this.ParentForm.ParentForm.SystemConfig.DecimalPlaces),
Helper.StringToDecimalPlaces(deadZoneLow.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language, data);
myMsg.ShowDialog();
}
else
{
if (myKeyPad.doubleValue < Helper.StringToWeight(this.ParentForm.ParentForm.CurrentProductItem.UnderRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces))
{
DialogFormYesNo myMsgYesNo = new DialogFormYesNo(this.ParentForm.ParentForm.SystemConfig.Language, 7);
if (myMsgYesNo.ShowDialog() == DialogResult.Yes)
saveEnable = true;
}
else
saveEnable = true;
if (saveEnable == true)
{
this.labelLowLimitRange.Text = myKeyPad.StringValue;
this.labelLowLimitRange1.Text = myKeyPad.StringValue;
this.ParentForm.ParentForm.CurrentFeedbackItem.LowLimit = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveFeedbackItemFile(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
this.ParentForm.ParentForm.Update30000ModbusData();
this.ParentForm.ParentForm.ModbusCommonDataSend();
this.UpdateFeedbackDisplay(this.ParentForm.ParentForm.CurrentFeedbackItem, this.ParentForm.ParentForm.SystemConfig, this.ParentForm.ParentForm.CurrentProductItem);
}
}
}
}
#endregion
}
}

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,13 @@ namespace INT63DC_6CH
public class DataStore
{
#region Enum
public enum FeedbackStatus
{
None,
Positive,
Negative,
};
public enum EquipmentStatus
{
Stop = 0,
@ -48,6 +55,7 @@ namespace INT63DC_6CH
FormMainDisplayBarGraph,
FormMainDisplayDotGraph,
FormMainDisplayTable,
FormMainDisplayFeedback,
};
public enum E_LanguageID
@ -925,6 +933,7 @@ namespace INT63DC_6CH
private bool m_IsDataStatistics;
private bool m_IsPart11;
private bool m_IsModbus;
private bool m_IsFeedback;
private int m_AutoLogoutTime;
private int m_UsbID;
@ -947,6 +956,8 @@ namespace INT63DC_6CH
private int m_ModbusTcpAddress2;
private int m_ModbusTcpStartAddress;
private int m_NumberOfLoginFailures;
private int m_FeedbackSampleCount;
private int m_FeedbackIgnorePackages;
private string m_Unit;
private string m_EmptyWeight;
@ -1016,6 +1027,11 @@ namespace INT63DC_6CH
get { return this.m_IsModbus; }
set { this.m_IsModbus = value; }
}
public bool IsFeedback
{
get { return this.m_IsFeedback; }
set { this.m_IsFeedback = value; }
}
public int UsbID
{
@ -1122,6 +1138,16 @@ namespace INT63DC_6CH
get { return this.m_NumberOfLoginFailures; }
set { this.m_NumberOfLoginFailures = value; }
}
public int FeedbackSampleCount
{
get { return this.m_FeedbackSampleCount; }
set { this.m_FeedbackSampleCount = value; }
}
public int FeedbackIgnorePackages
{
get { return this.m_FeedbackIgnorePackages; }
set { this.m_FeedbackIgnorePackages = value; }
}
public string Unit
{
@ -1236,6 +1262,7 @@ namespace INT63DC_6CH
this.IsDataStatistics = false;
this.IsPart11 = false;
this.IsModbus = false;
this.IsFeedback = false;
this.UsbID = 1;
this.ProductNumber = 1;
@ -1258,6 +1285,8 @@ namespace INT63DC_6CH
this.ModbusTcpStartAddress = 1010;
this.AutoLogoutTime = 90;
this.NumberOfLoginFailures = 5;
this.FeedbackSampleCount = 10;
this.FeedbackIgnorePackages = 5;
this.Unit = "g";
this.EmptyWeight = "0";
@ -1297,7 +1326,7 @@ namespace INT63DC_6CH
public bool IsDataStatistics;
public bool IsPart11;
public bool IsModbus;
public bool dummyBool1;
public bool IsFeedback;
public bool dummyBool2;
public bool dummyBool3;
public bool dummyBool4;
@ -1333,8 +1362,8 @@ namespace INT63DC_6CH
public int ModbusTcpAddress2;
public int ModbusTcpStartAddress;
public int NumberOfLoginFailures;
public int dummyInt1;
public int dummyInt2;
public int FeedbackSampleCount;
public int FeedbackIgnorePackages;
public int dummyInt3;
public int dummyInt4;
public int dummyInt5;
@ -3858,4 +3887,185 @@ namespace INT63DC_6CH
#endregion
}
#endregion
#region FeedBackStatus
public class FeedBackSystem
{
#region Field
private bool m_IsFbCalComplete;
private int m_IgnoreCount;
private double m_FeedbackWeight;
private DataStore.FeedbackStatus m_Status;
private Collection<int> m_WeightList;
#endregion
#region Constructor
public FeedBackSystem()
{
this.DefaultSetting();
}
#endregion
#region Property
/// <summary>
/// Feedback calculation complete
/// </summary>
public bool IsFbCalComplete
{
get { return this.m_IsFbCalComplete; }
set { this.m_IsFbCalComplete = value; }
}
public int IgnoreCount
{
get { return this.m_IgnoreCount; }
set { this.m_IgnoreCount = value; }
}
public int SumWeight
{
get
{
int sum = 0;
foreach (int weignt in this.WeightList)
sum += weignt;
return sum;
}
}
public double FeedbackWeight
{
get { return this.m_FeedbackWeight; }
set { this.m_FeedbackWeight = value; }
}
public DataStore.FeedbackStatus Status
{
get { return this.m_Status; }
private set { this.m_Status = value; }
}
public Collection<int> WeightList
{
get { return this.m_WeightList; }
private set { this.m_WeightList = value; }
}
#endregion
#region Method
private void DefaultSetting()
{
this.WeightList = new Collection<int>();
this.WeightList.Clear();
this.IsFbCalComplete = false;
this.IgnoreCount = 0;
this.FeedbackWeight = 0.0;
this.Status = DataStore.FeedbackStatus.None;
}
public void SetWeight(int weight, DataStore.FeedbackStatus status)
{
if (status != this.Status)
this.WeightList.Clear();
this.WeightList.Add(weight);
this.Status = status;
}
public void ClearDataList()
{
this.WeightList.Clear();
}
public void ClearData()
{
this.ClearDataList();
this.IgnoreCount = 0;
this.IsFbCalComplete = false;
this.Status = DataStore.FeedbackStatus.None;
}
public void ClearDataAll()
{
this.ClearData();
this.FeedbackWeight = 0.0;
}
#endregion
}
#endregion
#region FeedbackItem
public class FeedbackConfiguration
{
#region Field
private string m_HighLimit;
private string m_LowLimit;
private string m_DeadZone;
#endregion
#region Constructor
public FeedbackConfiguration()
{
this.Initialization();
}
#endregion
#region Property
public string HighLimit
{
get { return this.m_HighLimit; }
set { this.m_HighLimit = value; }
}
public string LowLimit
{
get { return this.m_LowLimit; }
set { this.m_LowLimit = value; }
}
public string DeadZone
{
get { return this.m_DeadZone; }
set { this.m_DeadZone = value; }
}
#endregion
#region Method
public void Initialization()
{
this.HighLimit = "3000";
this.LowLimit = "1000";
this.DeadZone = "0";
}
#endregion
}
#endregion
#region Struct FeedbackItem
[StructLayout(LayoutKind.Sequential)]
public struct StructFeedbackConfiguration
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string HightLimit;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string LowLimit;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string DeadZone;
public bool DummyBool1;
public bool DummyBool2;
public bool DummyBool3;
public int DummyInt1;
public int DummyInt2;
public int DummyInt3;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string DummyString1;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string DummyString2;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)]
public string DummyString3;
}
#endregion
}

View File

@ -146,7 +146,7 @@ namespace INT63DC_6CH.Forms
structItem.dummyBool12 = false;
structItem.dummyBool13 = false;
structItem.dummyBool14 = false;
structItem.dummyBool1 = false;
structItem.IsFeedback = false;
// int
structItem.AutoLogoutTime = item.AutoLogoutTime;
structItem.UsbID = item.UsbID;
@ -169,8 +169,8 @@ namespace INT63DC_6CH.Forms
structItem.ModbusTcpAddress2 = item.ModbusTcpAddress2;
structItem.ModbusTcpStartAddress = item.ModbusTcpStartAddress;
structItem.NumberOfLoginFailures = item.NumberOfLoginFailures;
structItem.dummyInt1 = 0;
structItem.dummyInt2 = 0;
structItem.FeedbackSampleCount = 0;
structItem.FeedbackIgnorePackages = 0;
structItem.dummyInt3 = 0;
structItem.dummyInt4 = 0;
structItem.dummyInt5 = 0;

View File

@ -141,7 +141,7 @@ namespace INT63DC_6CH.Forms
private void DefaultSetting()
{
this.labelMainControlVer.Text = "-";
this.labelDisplayVer.Text = "1.0.0";
this.labelDisplayVer.Text = "1.1.0";
this.labelUserMgerVer.Text = "";
this.labelAes128Ver.Text = "";
this.labelSerialPortVer.Text = "";

View File

@ -93,6 +93,8 @@ namespace INT63DC_6CH.Forms
public ProductItem CurrentProductItem;
// 현재 선택 된 판정 설정 값
public JudgmentSetItem CurrentJudgmentSetItem;
// 현재 선택 된 피드백 설정 값
public FeedbackConfiguration CurrentFeedbackItem;
// UserGroup
public UserGroup CurrentUserGroup;
// Dll User_Name List
@ -111,6 +113,7 @@ namespace INT63DC_6CH.Forms
private Collection<string> CollectionIOTest_InputData; // IO Test Input 데이터 취합
private Collection<string> CollectionIOTest_InputData1; // IO Test Input1 데이터 취합 확장보드
public Collection<string> CollectionProductName; // 품목명 리스트
public Collection<FeedBackSystem> CollectionFeedbackStatus; // 피드백 시스템 - option
// Modbus Data
public _30000_ModbusData Current30000ModbusData;
@ -278,15 +281,13 @@ namespace INT63DC_6CH.Forms
this.Current30000ModbusData = new _30000_ModbusData();
this.Current40000ModbusData = new _40000_ModbusData();
this.Modbus = new Modbus();
this.CollectionWeightData.Clear();
this.CollectionGraphData.Clear();
this.CollectionIOTest_InputData.Clear();
this.CollectionIOTest_InputData1.Clear();
this.CollectionProductName.Clear();
this.CollectionFeedbackStatus = new Collection<FeedBackSystem>();
for (int i = 0; i < this.SystemConfig.EquipmentColumns; i++)
{
this.CollectionWeightData.Add(new WeightData());
this.CollectionFeedbackStatus.Add(new FeedBackSystem());
}
for (int i = 0; i < 100; i++)
this.CollectionGraphData.Add(0);
@ -330,7 +331,7 @@ namespace INT63DC_6CH.Forms
this.SystemConfig = new SystemConfigurationItem();
this.CurrentProductItem = new ProductItem();
this.CurrentJudgmentSetItem = new JudgmentSetItem();
this.CurrentFeedbackItem = new FeedbackConfiguration();
this.CurrentAlarmList = new AlarmList();
this.CurrentUserGroup = new UserGroup();
this.CurrentDataViewerFilter = new DataViewerFilter();
@ -409,6 +410,10 @@ namespace INT63DC_6CH.Forms
}
else if (this.SystemConfig.EthernetOperationMode == 2)
this.EthernetClientDisconnect();
// FeedbackSystem
if (this.SystemConfig.IsFeedback == true)
this.CurrentFeedbackItem = new FeedbackConfiguration();
}
private bool UI_Invoke(System.Threading.ThreadStart invoker)
@ -1623,12 +1628,23 @@ namespace INT63DC_6CH.Forms
}
#endregion
#region Feedback
if (this.SystemConfig.IsFeedback == true)
{
for (int i = 0; i < this.SystemConfig.EquipmentColumns; i++)
this.FeedbackCalculation(i + 1, this.CollectionWeightData[i]);
}
#endregion
#region FormMainDisplay
this.TrackingInspectionData(this.CollectionWeightData);
if (this.ChildFormMainDisplay != null)
{
this.ChildFormMainDisplay.UpdateStartWeightDisplay(this.EquipmentStatus, this.CollectionWeightData);
if (this.SystemConfig.IsFeedback == true)
this.ChildFormMainDisplay.UpdateFeedbackDataDisplay(this.EquipmentStatus, this.CollectionFeedbackStatus);
}
#endregion
}
@ -1962,7 +1978,7 @@ namespace INT63DC_6CH.Forms
structItem.IsDataStatistics = this.SystemConfig.IsDataStatistics;
structItem.IsPart11 = this.SystemConfig.IsPart11;
structItem.IsModbus = this.SystemConfig.IsModbus;
structItem.dummyBool1 = false;
structItem.IsFeedback = this.SystemConfig.IsFeedback;
structItem.dummyBool2 = false;
structItem.dummyBool3 = false;
structItem.dummyBool4 = false;
@ -1998,8 +2014,8 @@ namespace INT63DC_6CH.Forms
structItem.ModbusTcpAddress2 = this.SystemConfig.ModbusTcpAddress2;
structItem.ModbusTcpStartAddress = this.SystemConfig.ModbusTcpStartAddress;
structItem.NumberOfLoginFailures = this.SystemConfig.NumberOfLoginFailures;
structItem.dummyInt1 = 0;
structItem.dummyInt2 = 0;
structItem.FeedbackSampleCount = this.SystemConfig.FeedbackSampleCount;
structItem.FeedbackIgnorePackages = this.SystemConfig.FeedbackIgnorePackages;
structItem.dummyInt3 = 0;
structItem.dummyInt4 = 0;
structItem.dummyInt5 = 0;
@ -2065,6 +2081,7 @@ namespace INT63DC_6CH.Forms
structItem.IsDataStatistics = item.IsDataStatistics;
structItem.IsPart11 = item.IsPart11;
structItem.IsModbus = item.IsModbus;
structItem.IsFeedback = item.IsFeedback;
structItem.dummyBool2 = false;
structItem.dummyBool3 = false;
structItem.dummyBool4 = false;
@ -2078,7 +2095,6 @@ namespace INT63DC_6CH.Forms
structItem.dummyBool12 = false;
structItem.dummyBool13 = false;
structItem.dummyBool14 = false;
structItem.dummyBool1 = false;
// int
structItem.AutoLogoutTime = item.AutoLogoutTime;
structItem.UsbID = item.UsbID;
@ -2101,8 +2117,8 @@ namespace INT63DC_6CH.Forms
structItem.ModbusTcpAddress2 = item.ModbusTcpAddress2;
structItem.ModbusTcpStartAddress = item.ModbusTcpStartAddress;
structItem.NumberOfLoginFailures = item.NumberOfLoginFailures;
structItem.dummyInt1 = 0;
structItem.dummyInt2 = 0;
structItem.FeedbackSampleCount = item.FeedbackSampleCount;
structItem.FeedbackIgnorePackages = item.FeedbackIgnorePackages;
structItem.dummyInt3 = 0;
structItem.dummyInt4 = 0;
structItem.dummyInt5 = 0;
@ -2173,6 +2189,7 @@ namespace INT63DC_6CH.Forms
this.SystemConfig.IsDataStatistics = structItem.IsDataStatistics;
this.SystemConfig.IsPart11 = structItem.IsPart11;
this.SystemConfig.IsModbus = structItem.IsModbus;
this.SystemConfig.IsFeedback = structItem.IsFeedback;
// int
this.SystemConfig.AutoLogoutTime = structItem.AutoLogoutTime;
this.SystemConfig.UsbID = structItem.UsbID;
@ -2195,6 +2212,8 @@ namespace INT63DC_6CH.Forms
this.SystemConfig.ModbusTcpAddress2 = structItem.ModbusTcpAddress2;
this.SystemConfig.ModbusTcpStartAddress = structItem.ModbusTcpStartAddress;
this.SystemConfig.NumberOfLoginFailures = structItem.NumberOfLoginFailures;
this.SystemConfig.FeedbackSampleCount = structItem.FeedbackSampleCount;
this.SystemConfig.FeedbackIgnorePackages = structItem.FeedbackIgnorePackages;
// string
this.SystemConfig.Unit = structItem.Unit;
this.SystemConfig.EmptyWeight = structItem.EmptyWeight;
@ -2290,7 +2309,7 @@ namespace INT63DC_6CH.Forms
}
public void LoadProductFile(ref ProductItem item, int index)
{
bool fileCheck = false, save = false;
bool fileCheck = false;
string fullFilePath = "";
StructProductItem structItem;
@ -2322,20 +2341,8 @@ namespace INT63DC_6CH.Forms
item.PassRange = structItem.PassRange;
item.UnderRange = structItem.UnderRange;
item.TareRange = structItem.TareRange;
// OverRangeLimit
if (structItem.OverRangeLimit == "")
{
item.OverRangeLimit = "99999";
save = true;
}
else
item.OverRangeLimit = structItem.OverRangeLimit;
// UnderRangeLimit
if (structItem.UnderRangeLimit == "")
item.UnderRangeLimit = "0";
else
item.UnderRangeLimit = structItem.UnderRangeLimit;
item.OverRangeLimit = structItem.OverRangeLimit;
item.UnderRangeLimit = structItem.UnderRangeLimit;
}
}
catch
@ -2347,8 +2354,6 @@ namespace INT63DC_6CH.Forms
}
this.smartFileIO.Close();
this.SaveProductFile(item, index);
}
public void LoadProductName(ref Collection<string> values)
{
@ -2374,6 +2379,35 @@ namespace INT63DC_6CH.Forms
this.smartFileIO.Close();
}
public void LoadProductFile(ref Collection<ProductItem> values)
{
string fullFilePath = "";
StructProductItem structItem;
this.smartFileIO.Close();
fullFilePath = this.PathSystemFileFolder + "ProductItem.int";
this.smartFileIO.FilePathName = fullFilePath;
this.smartFileIO.Open(this.BufferSmartUart);
if (this.smartFileIO.ReadStructureAllBuffer() == true)
{
for (int i = 0; i < 1000; i++)
{
structItem = (StructProductItem)this.smartFileIO.ReadStructureBuffer(typeof(StructProductItem), i);
values[i].Number = structItem.Number;
values[i].Name = structItem.Name;
values[i].LotNo = structItem.LotNo;
values[i].OverRange = structItem.OverRange;
values[i].PassRange = structItem.PassRange;
values[i].UnderRange = structItem.UnderRange;
values[i].TareRange = structItem.TareRange;
}
}
this.smartFileIO.Close();
}
#endregion
#region JudgmentSetItem File
@ -3995,6 +4029,125 @@ namespace INT63DC_6CH.Forms
}
#endregion
#region FeedbackItem File
private void CreateFeedbackItemFile()
{
string fullFilePath = "";
StructFeedbackConfiguration structItem;
Collection<ProductItem> collectionProductItem;
collectionProductItem = new Collection<ProductItem>();
for (int i = 0; i < 1000; i++)
collectionProductItem.Add(new ProductItem());
this.LoadProductFile(ref collectionProductItem);
this.smartFileIO.Close();
fullFilePath = this.PathSystemFileFolder + "FeedbackItem.int";
this.smartFileIO.FilePathName = fullFilePath;
this.smartFileIO.Open(this.BufferSmartUart);
this.CurrentFeedbackItem.Initialization();
for (int i = 0; i < 1000; i++)
{
structItem.HightLimit = collectionProductItem[i].OverRange;
structItem.LowLimit = collectionProductItem[i].UnderRange;
structItem.DeadZone = this.CurrentFeedbackItem.DeadZone;
structItem.DummyBool1 = false;
structItem.DummyBool2 = false;
structItem.DummyBool3 = false;
structItem.DummyInt1 = 1;
structItem.DummyInt2 = 1;
structItem.DummyInt3 = 1;
structItem.DummyString1 = "";
structItem.DummyString2 = "";
structItem.DummyString3 = "";
this.smartFileIO.WriteStructure_Begin(structItem, i);
}
this.smartFileIO.WriteStructure_End();
}
public void SaveFeedbackItemFile(FeedbackConfiguration item, int index)
{
bool fileCheck = false;
string fullFilePath = "";
StructFeedbackConfiguration structItem;
this.smartFileIO.Close();
fullFilePath = this.PathSystemFileFolder + "FeedbackItem.int";
this.smartFileIO.FilePathName = fullFilePath;
FileInfo fileInfo = new FileInfo(fullFilePath);
fileCheck = fileInfo.Exists;
if (fileCheck == false)
this.CreateFeedbackItemFile();
else
this.smartFileIO.Open(this.BufferSmartUart);
structItem.HightLimit = item.HighLimit;
structItem.LowLimit = item.LowLimit;
structItem.DeadZone = item.DeadZone;
structItem.DummyBool1 = false;
structItem.DummyBool2 = false;
structItem.DummyBool3 = false;
structItem.DummyInt1 = 1;
structItem.DummyInt2 = 1;
structItem.DummyInt3 = 1;
structItem.DummyString1 = "";
structItem.DummyString2 = "";
structItem.DummyString3 = "";
this.smartFileIO.WriteStructure_Begin(structItem, index);
this.smartFileIO.WriteStructure_End();
this.smartFileIO.Close();
}
public void LoadFeedbackItemFile(ref FeedbackConfiguration item, int index)
{
bool fileCheck = false;
string fullFilePath = "";
StructFeedbackConfiguration structItem;
this.smartFileIO.Close();
fullFilePath = this.PathSystemFileFolder + "FeedbackItem.int";
this.smartFileIO.FilePathName = fullFilePath;
FileInfo fileInfo = new FileInfo(fullFilePath);
fileCheck = fileInfo.Exists;
if (fileCheck == false)
this.CreateFeedbackItemFile();
else
this.smartFileIO.Open(this.BufferSmartUart);
try
{
structItem = (StructFeedbackConfiguration)this.smartFileIO.ReadStructure(index, typeof(StructFeedbackConfiguration));
item.HighLimit = structItem.HightLimit;
item.LowLimit = structItem.LowLimit;
item.DeadZone = structItem.DeadZone;
}
catch
{
DialogFormMessage myMsg = new DialogFormMessage(17, this.SystemConfig.Language);
myMsg.ShowDialog();
this.smartFileIO.Close();
}
this.smartFileIO.Close();
}
#endregion
#region Data Backup
private void DeleteLogFile(string path, DataStore.E_DataType type)
{
@ -7102,6 +7255,65 @@ namespace INT63DC_6CH.Forms
}
}
#endregion
#region FeedbackSystem
private void FeedbackCalculation(int lane, WeightData data)
{
double passRange = 0.0, sumWeight = 0.0, averageWeight = 0.0, feedbackWeight = 0.0;
if (this.CollectionFeedbackStatus[lane - 1].IsFbCalComplete == true)
{
this.CollectionFeedbackStatus[lane - 1].IgnoreCount++;
if (this.CollectionFeedbackStatus[lane - 1].IgnoreCount >= this.SystemConfig.FeedbackIgnorePackages)
{
this.CollectionFeedbackStatus[lane - 1].IgnoreCount = 0;
this.CollectionFeedbackStatus[lane - 1].IsFbCalComplete = false;
}
}
else
{
this.SetFeedbackSystem(lane, data);
if (this.CollectionFeedbackStatus[lane - 1].WeightList.Count >= this.SystemConfig.FeedbackSampleCount)
{
passRange = Helper.StringToWeight(this.CurrentProductItem.PassRange, this.SystemConfig.DecimalPlaces);
sumWeight = Helper.StringToWeight(this.CollectionFeedbackStatus[lane - 1].SumWeight.ToString(), this.SystemConfig.DecimalPlaces);
averageWeight = Math.Round((sumWeight / this.SystemConfig.FeedbackSampleCount), this.SystemConfig.DecimalPlaces);
feedbackWeight = averageWeight - passRange;
this.CollectionFeedbackStatus[lane - 1].FeedbackWeight = feedbackWeight;
this.CollectionFeedbackStatus[lane - 1].ClearData();
this.CollectionFeedbackStatus[lane - 1].IsFbCalComplete = true;
}
}
}
private void SetFeedbackSystem(int lane, WeightData data)
{
int checkWeight = 0;
int passRange = 0, lowLimit = 0, highLimit = 0, deadZone = 0, deadZoneLow = 0, deadZoneHigh = 0;
DataStore.FeedbackStatus status = DataStore.FeedbackStatus.None;
checkWeight = int.Parse(data.WeightString);
passRange = int.Parse(this.CurrentProductItem.PassRange);
lowLimit = int.Parse(this.CurrentFeedbackItem.LowLimit);
highLimit = int.Parse(this.CurrentFeedbackItem.HighLimit);
deadZone = int.Parse(this.CurrentFeedbackItem.DeadZone);
deadZoneLow = passRange - deadZone;
deadZoneHigh = passRange + deadZone;
if (((checkWeight < deadZoneLow) && (checkWeight > lowLimit)) || ((checkWeight > deadZoneHigh) && (checkWeight < highLimit)))
{
if ((checkWeight < deadZoneLow) && (checkWeight > lowLimit))
status = DataStore.FeedbackStatus.Negative;
else
status = DataStore.FeedbackStatus.Positive;
this.CollectionFeedbackStatus[lane - 1].SetWeight(checkWeight, status);
}
else
this.CollectionFeedbackStatus[lane - 1].ClearDataList();
}
#endregion
#endregion
#region Override Member

View File

@ -137,6 +137,7 @@
this.buttonExit = new SmartX.SmartButton();
this.timerServer = new SmartX.SmartTimer(this.components);
this.timerCutSignal = new SmartX.SmartTimer(this.components);
this.buttonFeedback = new SmartX.SmartButton();
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
this.panelSetting.SuspendLayout();
this.groupBoxJudgmentSetting.SuspendLayout();
@ -703,7 +704,7 @@
this.groupBoxJudgmentSetting.Controls.Add(this.labelJudgmentDelayTime);
this.groupBoxJudgmentSetting.Controls.Add(this.labelStaticJudgmentDelayTime);
this.groupBoxJudgmentSetting.Controls.Add(this.labelJudgmentCount);
this.groupBoxJudgmentSetting.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.groupBoxJudgmentSetting.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.groupBoxJudgmentSetting.ForeColor = System.Drawing.Color.White;
this.groupBoxJudgmentSetting.FrameLineColor1 = System.Drawing.Color.Black;
this.groupBoxJudgmentSetting.FrameLineColor2 = System.Drawing.Color.Black;
@ -748,7 +749,7 @@
this.labelStaticTurnDelayTime.BackPictureBox2 = null;
this.labelStaticTurnDelayTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticTurnDelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticTurnDelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticTurnDelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticTurnDelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticTurnDelayTime.InitVisible = true;
this.labelStaticTurnDelayTime.LineSpacing = 0F;
@ -769,7 +770,7 @@
this.labelStaticJudgmentCount.BackPictureBox2 = null;
this.labelStaticJudgmentCount.BorderColor = System.Drawing.Color.SteelBlue;
this.labelStaticJudgmentCount.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticJudgmentCount.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticJudgmentCount.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticJudgmentCount.ForeColor = System.Drawing.Color.White;
this.labelStaticJudgmentCount.InitVisible = true;
this.labelStaticJudgmentCount.LineSpacing = 0F;
@ -811,7 +812,7 @@
this.labelStaticJudgmentDelayTime.BackPictureBox2 = null;
this.labelStaticJudgmentDelayTime.BorderColor = System.Drawing.Color.SteelBlue;
this.labelStaticJudgmentDelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticJudgmentDelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticJudgmentDelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticJudgmentDelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticJudgmentDelayTime.InitVisible = true;
this.labelStaticJudgmentDelayTime.LineSpacing = 0F;
@ -847,7 +848,7 @@
//
// buttonClose
//
this.buttonClose.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.buttonClose.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.buttonClose.Location = new System.Drawing.Point(460, 417);
this.buttonClose.Name = "buttonClose";
this.buttonClose.Size = new System.Drawing.Size(100, 25);
@ -876,7 +877,7 @@
this.groupBoxSorter.Controls.Add(this.labelStaticSorter1DelayTime);
this.groupBoxSorter.Controls.Add(this.labelSorter1RunTime);
this.groupBoxSorter.Controls.Add(this.labelStaticSorter1RunTime);
this.groupBoxSorter.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.groupBoxSorter.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.groupBoxSorter.FrameLineColor1 = System.Drawing.Color.Black;
this.groupBoxSorter.FrameLineColor2 = System.Drawing.Color.Black;
this.groupBoxSorter.FrameLineThickness = 1;
@ -899,7 +900,7 @@
this.labelStaticDischargeStopperRunTime.BackPictureBox2 = null;
this.labelStaticDischargeStopperRunTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticDischargeStopperRunTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticDischargeStopperRunTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticDischargeStopperRunTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticDischargeStopperRunTime.ForeColor = System.Drawing.Color.White;
this.labelStaticDischargeStopperRunTime.InitVisible = true;
this.labelStaticDischargeStopperRunTime.LineSpacing = 0F;
@ -920,7 +921,7 @@
this.labelStaticDischargeStopperDelayTime.BackPictureBox2 = null;
this.labelStaticDischargeStopperDelayTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticDischargeStopperDelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticDischargeStopperDelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticDischargeStopperDelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticDischargeStopperDelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticDischargeStopperDelayTime.InitVisible = true;
this.labelStaticDischargeStopperDelayTime.LineSpacing = 0F;
@ -941,7 +942,7 @@
this.labelStaticEntryGateRunTime.BackPictureBox2 = null;
this.labelStaticEntryGateRunTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticEntryGateRunTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticEntryGateRunTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticEntryGateRunTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticEntryGateRunTime.ForeColor = System.Drawing.Color.White;
this.labelStaticEntryGateRunTime.InitVisible = true;
this.labelStaticEntryGateRunTime.LineSpacing = 0F;
@ -963,7 +964,7 @@
this.labelStaticEntryGateDelayTime.BackPictureBox2 = null;
this.labelStaticEntryGateDelayTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticEntryGateDelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticEntryGateDelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticEntryGateDelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticEntryGateDelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticEntryGateDelayTime.InitVisible = true;
this.labelStaticEntryGateDelayTime.LineSpacing = 0F;
@ -1092,7 +1093,7 @@
this.labelStaticSorter2DelayTime.BackPictureBox2 = null;
this.labelStaticSorter2DelayTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticSorter2DelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticSorter2DelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter2DelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter2DelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticSorter2DelayTime.InitVisible = true;
this.labelStaticSorter2DelayTime.LineSpacing = 0F;
@ -1134,7 +1135,7 @@
this.labelStaticSorter2RunTime.BackPictureBox2 = null;
this.labelStaticSorter2RunTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticSorter2RunTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticSorter2RunTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter2RunTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter2RunTime.ForeColor = System.Drawing.Color.White;
this.labelStaticSorter2RunTime.InitVisible = true;
this.labelStaticSorter2RunTime.LineSpacing = 0F;
@ -1176,7 +1177,7 @@
this.labelStaticSorter1DelayTime.BackPictureBox2 = null;
this.labelStaticSorter1DelayTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticSorter1DelayTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticSorter1DelayTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter1DelayTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter1DelayTime.ForeColor = System.Drawing.Color.White;
this.labelStaticSorter1DelayTime.InitVisible = true;
this.labelStaticSorter1DelayTime.LineSpacing = 0F;
@ -1218,7 +1219,7 @@
this.labelStaticSorter1RunTime.BackPictureBox2 = null;
this.labelStaticSorter1RunTime.BorderColor = System.Drawing.Color.Black;
this.labelStaticSorter1RunTime.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticSorter1RunTime.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter1RunTime.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticSorter1RunTime.ForeColor = System.Drawing.Color.White;
this.labelStaticSorter1RunTime.InitVisible = true;
this.labelStaticSorter1RunTime.LineSpacing = 0F;
@ -1302,7 +1303,7 @@
//
// buttonAlarm2OK
//
this.buttonAlarm2OK.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm2OK.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm2OK.Location = new System.Drawing.Point(335, 135);
this.buttonAlarm2OK.Name = "buttonAlarm2OK";
this.buttonAlarm2OK.Size = new System.Drawing.Size(100, 25);
@ -1325,7 +1326,7 @@
this.smartListBox1.ColumnAlign = SmartX.SmartListBox.COLUMNALIGNS.CENTER;
this.smartListBox1.ColumnDelimiter = '\0';
this.smartListBox1.ColumnOffsets = null;
this.smartListBox1.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.smartListBox1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.smartListBox1.FontColor = System.Drawing.Color.Black;
this.smartListBox1.InitVisible = true;
this.smartListBox1.ItemAddOrder = SmartX.SmartListBox.ITEMADDORDERS.BOTTOMADD;
@ -1364,7 +1365,7 @@
this.labelAlarm2ErrorCode.BackPictureBox2 = null;
this.labelAlarm2ErrorCode.BorderColor = System.Drawing.Color.Black;
this.labelAlarm2ErrorCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelAlarm2ErrorCode.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelAlarm2ErrorCode.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelAlarm2ErrorCode.InitVisible = true;
this.labelAlarm2ErrorCode.LineSpacing = 0F;
this.labelAlarm2ErrorCode.Location = new System.Drawing.Point(11, 4);
@ -1404,7 +1405,7 @@
this.labelUserID.BackPictureBox2 = null;
this.labelUserID.BorderColor = System.Drawing.Color.LightGray;
this.labelUserID.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelUserID.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelUserID.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelUserID.InitVisible = true;
this.labelUserID.LineSpacing = 0F;
this.labelUserID.Location = new System.Drawing.Point(661, 9);
@ -1424,7 +1425,7 @@
this.labelUserLevel.BackPictureBox2 = null;
this.labelUserLevel.BorderColor = System.Drawing.Color.LightGray;
this.labelUserLevel.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelUserLevel.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelUserLevel.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelUserLevel.ForeColor = System.Drawing.Color.Black;
this.labelUserLevel.InitVisible = true;
this.labelUserLevel.LineSpacing = 0F;
@ -1444,10 +1445,10 @@
this.labelTitleScreen.BackPictureBox2 = null;
this.labelTitleScreen.BorderColor = System.Drawing.Color.Black;
this.labelTitleScreen.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleScreen.Font = new System.Drawing.Font("새굴림", 15F, System.Drawing.FontStyle.Bold);
this.labelTitleScreen.Font = new System.Drawing.Font("New Gulim", 15F, System.Drawing.FontStyle.Bold);
this.labelTitleScreen.InitVisible = true;
this.labelTitleScreen.LineSpacing = 0F;
this.labelTitleScreen.Location = new System.Drawing.Point(661, 583);
this.labelTitleScreen.Location = new System.Drawing.Point(664, 583);
this.labelTitleScreen.Name = "labelTitleScreen";
this.labelTitleScreen.Size = new System.Drawing.Size(74, 74);
this.labelTitleScreen.TabIndex = 524;
@ -1463,7 +1464,7 @@
this.labelTitleNG.BackPictureBox2 = null;
this.labelTitleNG.BorderColor = System.Drawing.Color.Black;
this.labelTitleNG.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleNG.Font = new System.Drawing.Font("새굴림", 18F, System.Drawing.FontStyle.Bold);
this.labelTitleNG.Font = new System.Drawing.Font("New Gulim", 18F, System.Drawing.FontStyle.Bold);
this.labelTitleNG.InitVisible = true;
this.labelTitleNG.LineSpacing = 0F;
this.labelTitleNG.Location = new System.Drawing.Point(307, 704);
@ -1482,7 +1483,7 @@
this.labelTitleTotalCount.BackPictureBox2 = null;
this.labelTitleTotalCount.BorderColor = System.Drawing.Color.Black;
this.labelTitleTotalCount.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleTotalCount.Font = new System.Drawing.Font("새굴림", 20F, System.Drawing.FontStyle.Bold);
this.labelTitleTotalCount.Font = new System.Drawing.Font("New Gulim", 20F, System.Drawing.FontStyle.Bold);
this.labelTitleTotalCount.InitVisible = true;
this.labelTitleTotalCount.LineSpacing = 0F;
this.labelTitleTotalCount.Location = new System.Drawing.Point(25, 704);
@ -1607,7 +1608,7 @@
this.labelTitleBypass.BackPictureBox2 = null;
this.labelTitleBypass.BorderColor = System.Drawing.Color.Black;
this.labelTitleBypass.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitleBypass.Font = new System.Drawing.Font("새굴림", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleBypass.Font = new System.Drawing.Font("New Gulim", 11F, System.Drawing.FontStyle.Bold);
this.labelTitleBypass.InitVisible = true;
this.labelTitleBypass.LineSpacing = 0F;
this.labelTitleBypass.Location = new System.Drawing.Point(35, 8);
@ -1732,7 +1733,7 @@
this.buttonCut.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold);
this.buttonCut.GroupID = 0;
this.buttonCut.InitVisible = true;
this.buttonCut.Location = new System.Drawing.Point(661, 614);
this.buttonCut.Location = new System.Drawing.Point(465, 29);
this.buttonCut.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonCut.Name = "buttonCut";
this.buttonCut.NestedClickEventPrevent = false;
@ -1764,7 +1765,7 @@
this.labelCutSignalInterval.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.labelCutSignalInterval.InitVisible = true;
this.labelCutSignalInterval.LineSpacing = 0F;
this.labelCutSignalInterval.Location = new System.Drawing.Point(662, 585);
this.labelCutSignalInterval.Location = new System.Drawing.Point(466, 0);
this.labelCutSignalInterval.Name = "labelCutSignalInterval";
this.labelCutSignalInterval.Size = new System.Drawing.Size(80, 30);
this.labelCutSignalInterval.TabIndex = 8;
@ -1790,7 +1791,7 @@
//
// buttonAlarm3Ok
//
this.buttonAlarm3Ok.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm3Ok.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm3Ok.Location = new System.Drawing.Point(335, 135);
this.buttonAlarm3Ok.Name = "buttonAlarm3Ok";
this.buttonAlarm3Ok.Size = new System.Drawing.Size(100, 25);
@ -1812,7 +1813,7 @@
this.labelMessage4.BackPictureBox2 = null;
this.labelMessage4.BorderColor = System.Drawing.Color.Black;
this.labelMessage4.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelMessage4.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage4.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage4.InitVisible = true;
this.labelMessage4.LineSpacing = 0F;
this.labelMessage4.Location = new System.Drawing.Point(86, 88);
@ -1831,7 +1832,7 @@
this.labelMessage3.BackPictureBox2 = null;
this.labelMessage3.BorderColor = System.Drawing.Color.Black;
this.labelMessage3.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelMessage3.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage3.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage3.InitVisible = true;
this.labelMessage3.LineSpacing = 0F;
this.labelMessage3.Location = new System.Drawing.Point(86, 65);
@ -1850,7 +1851,7 @@
this.smartLabel4.BackPictureBox2 = null;
this.smartLabel4.BorderColor = System.Drawing.Color.Black;
this.smartLabel4.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel4.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.smartLabel4.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.smartLabel4.InitVisible = true;
this.smartLabel4.LineSpacing = 0F;
this.smartLabel4.Location = new System.Drawing.Point(11, 4);
@ -1895,7 +1896,7 @@
this.labelStaticOverRangeLimit.BackPictureBox2 = null;
this.labelStaticOverRangeLimit.BorderColor = System.Drawing.Color.SteelBlue;
this.labelStaticOverRangeLimit.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticOverRangeLimit.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticOverRangeLimit.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticOverRangeLimit.ForeColor = System.Drawing.Color.Black;
this.labelStaticOverRangeLimit.InitVisible = true;
this.labelStaticOverRangeLimit.LineSpacing = 0F;
@ -1965,7 +1966,7 @@
this.labelStaticUnderRangeLimit.BackPictureBox2 = null;
this.labelStaticUnderRangeLimit.BorderColor = System.Drawing.Color.SteelBlue;
this.labelStaticUnderRangeLimit.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticUnderRangeLimit.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticUnderRangeLimit.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticUnderRangeLimit.ForeColor = System.Drawing.Color.Black;
this.labelStaticUnderRangeLimit.InitVisible = true;
this.labelStaticUnderRangeLimit.LineSpacing = 0F;
@ -1986,7 +1987,7 @@
this.labelStaticOverRange.BackPictureBox2 = null;
this.labelStaticOverRange.BorderColor = System.Drawing.Color.Black;
this.labelStaticOverRange.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticOverRange.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticOverRange.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticOverRange.InitVisible = true;
this.labelStaticOverRange.LineSpacing = 0F;
this.labelStaticOverRange.Location = new System.Drawing.Point(64, 10);
@ -2027,7 +2028,7 @@
this.labelStaticUnderRange.BackPictureBox2 = null;
this.labelStaticUnderRange.BorderColor = System.Drawing.Color.Black;
this.labelStaticUnderRange.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticUnderRange.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticUnderRange.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticUnderRange.InitVisible = true;
this.labelStaticUnderRange.LineSpacing = 0F;
this.labelStaticUnderRange.Location = new System.Drawing.Point(64, 78);
@ -2047,7 +2048,7 @@
this.labelStaticPassRange.BackPictureBox2 = null;
this.labelStaticPassRange.BorderColor = System.Drawing.Color.Black;
this.labelStaticPassRange.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelStaticPassRange.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticPassRange.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelStaticPassRange.InitVisible = true;
this.labelStaticPassRange.LineSpacing = 0F;
this.labelStaticPassRange.Location = new System.Drawing.Point(64, 44);
@ -2115,7 +2116,7 @@
//
// buttonAlarm4Ok
//
this.buttonAlarm4Ok.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm4Ok.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.buttonAlarm4Ok.Location = new System.Drawing.Point(335, 135);
this.buttonAlarm4Ok.Name = "buttonAlarm4Ok";
this.buttonAlarm4Ok.Size = new System.Drawing.Size(100, 25);
@ -2137,7 +2138,7 @@
this.labelMessage5.BackPictureBox2 = null;
this.labelMessage5.BorderColor = System.Drawing.Color.Black;
this.labelMessage5.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelMessage5.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage5.InitVisible = true;
this.labelMessage5.LineSpacing = 0F;
this.labelMessage5.Location = new System.Drawing.Point(86, 76);
@ -2156,7 +2157,7 @@
this.smartLabel5.BackPictureBox2 = null;
this.smartLabel5.BorderColor = System.Drawing.Color.Black;
this.smartLabel5.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel5.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.smartLabel5.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.smartLabel5.InitVisible = true;
this.smartLabel5.LineSpacing = 0F;
this.smartLabel5.Location = new System.Drawing.Point(11, 4);
@ -2183,7 +2184,7 @@
this.labelExpireOfPassword.BackPictureBox2 = null;
this.labelExpireOfPassword.BorderColor = System.Drawing.Color.LightGray;
this.labelExpireOfPassword.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelExpireOfPassword.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelExpireOfPassword.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelExpireOfPassword.ForeColor = System.Drawing.Color.Black;
this.labelExpireOfPassword.InitVisible = true;
this.labelExpireOfPassword.LineSpacing = 0F;
@ -2265,12 +2266,44 @@
this.timerCutSignal.StartTime = ((long)(0));
this.timerCutSignal.Tick += new System.EventHandler(this.timerCutSignal_Tick);
//
// buttonFeedback
//
this.buttonFeedback.BackPictureBox = null;
this.buttonFeedback.BackPictureBox1 = null;
this.buttonFeedback.BackPictureBox2 = null;
this.buttonFeedback.ButtonColor = System.Drawing.Color.Gray;
this.buttonFeedback.ButtonImageAutoSize = true;
this.buttonFeedback.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonFeedback.DisableImage = null;
this.buttonFeedback.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonFeedback.DownImage")));
this.buttonFeedback.GroupID = 1;
this.buttonFeedback.InitVisible = true;
this.buttonFeedback.Location = new System.Drawing.Point(664, 583);
this.buttonFeedback.Mode = SmartX.SmartButton.BUTTONMODE.RADIO;
this.buttonFeedback.Name = "buttonFeedback";
this.buttonFeedback.NestedClickEventPrevent = false;
this.buttonFeedback.OutlinePixel = 1;
this.buttonFeedback.RepeatInterval = 200;
this.buttonFeedback.RepeatIntervalAccelerate = null;
this.buttonFeedback.SafeInterval = 200;
this.buttonFeedback.Size = new System.Drawing.Size(74, 74);
this.buttonFeedback.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonFeedback.TabIndex = 648;
this.buttonFeedback.TextColor = System.Drawing.Color.Black;
this.buttonFeedback.TextDownColor = System.Drawing.Color.White;
this.buttonFeedback.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonFeedback.TextLocation = new System.Drawing.Point(0, 0);
this.buttonFeedback.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonFeedback.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonFeedback.UpImage")));
this.buttonFeedback.Click += new System.EventHandler(this.buttonDisplay_Click);
//
// FormMainDisplay
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
this.AutoScroll = true;
this.ClientSize = new System.Drawing.Size(1024, 768);
this.Controls.Add(this.buttonFeedback);
this.Controls.Add(this.buttonExit);
this.Controls.Add(this.pictureBoxEthernetDisconnection);
this.Controls.Add(this.pictureBoxEthernetConnection);
@ -2441,5 +2474,6 @@
private System.Windows.Forms.Button buttonAlarm4Ok;
private SmartX.SmartTimer timerServer;
private SmartX.SmartTimer timerCutSignal;
private SmartX.SmartButton buttonFeedback;
}
}

View File

@ -29,6 +29,7 @@ namespace INT63DC_6CH.Forms
private ControlMainDisplayAlarm MainDisplayAlarmList;
private ControlMainDisplayFeedbacak MainDisplayFeedbaack;
private ControlMainDisplayEachBarGraph6 MainDisplayEachBarGraph6;
private ControlMainDisplayEachBarGraph7 MainDisplayEachBarGraph7;
private ControlMainDisplayEachBarGraph8 MainDisplayEachBarGraph8;
@ -584,6 +585,14 @@ namespace INT63DC_6CH.Forms
this.MainDisplay = DataStore.FormMainDisplayStore.FormMainDisplayBarGraph;
if (this.ParentForm.SystemConfig.IsFeedback == true)
{
this.MainDisplayFeedbaack = new ControlMainDisplayFeedbacak(this);
this.Controls.Add(this.MainDisplayFeedbaack);
this.MainDisplayFeedbaack.BringToFront();
this.MainDisplayFeedbaack.Location = new Point(0, 75);
}
switch (this.ParentForm.SystemConfig.EquipmentColumns)
{
case 6:
@ -757,6 +766,9 @@ namespace INT63DC_6CH.Forms
if (displayForm == DataStore.FormMainDisplayStore.FormMainDisplayBarGraph)
{
#region BarGraph
if (this.MainDisplayFeedbaack != null)
this.MainDisplayFeedbaack.Visible = false;
switch (this.ParentForm.SystemConfig.EquipmentColumns)
{
case 6:
@ -803,11 +815,14 @@ namespace INT63DC_6CH.Forms
break;
}
#endregion
this.UpdateDisplayButton(SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP);
this.UpdateDisplayButton(SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP);
}
else if (displayForm == DataStore.FormMainDisplayStore.FormMainDisplayDotGraph)
{
#region DotGraph
if (this.MainDisplayFeedbaack != null)
this.MainDisplayFeedbaack.Visible = false;
switch (this.ParentForm.SystemConfig.EquipmentColumns)
{
case 6:
@ -854,11 +869,14 @@ namespace INT63DC_6CH.Forms
break;
}
#endregion
this.UpdateDisplayButton(SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP);
this.UpdateDisplayButton(SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP);
}
else if (displayForm == DataStore.FormMainDisplayStore.FormMainDisplayTable)
{
#region Table
if (this.MainDisplayFeedbaack != null)
this.MainDisplayFeedbaack.Visible = false;
switch (this.ParentForm.SystemConfig.EquipmentColumns)
{
case 6:
@ -905,25 +923,88 @@ namespace INT63DC_6CH.Forms
break;
}
#endregion
this.UpdateDisplayButton(SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.DOWN);
this.UpdateDisplayButton(SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP);
}
else if (displayForm == DataStore.FormMainDisplayStore.FormMainDisplayFeedback)
{
#region Feedback
if (this.MainDisplayFeedbaack != null)
{
this.MainDisplayFeedbaack.DisplayRefresh();
this.MainDisplayFeedbaack.Visible = true;
}
switch (this.ParentForm.SystemConfig.EquipmentColumns)
{
case 6:
if (this.MainDisplayEachBarGraph6 != null)
this.MainDisplayEachBarGraph6.Visible = false;
if (this.MainDisplayDotGraph6 != null)
this.MainDisplayDotGraph6.Visible = false;
if (this.MainDisplayTable6 != null)
this.MainDisplayTable6.Visible = false;
break;
case 7:
if (this.MainDisplayEachBarGraph7 != null)
this.MainDisplayEachBarGraph7.Visible = false;
if (this.MainDisplayDotGraph7 != null)
this.MainDisplayDotGraph7.Visible = false;
if (this.MainDisplayTable7 != null)
this.MainDisplayTable7.Visible = false;
break;
case 8:
if (this.MainDisplayEachBarGraph8 != null)
this.MainDisplayEachBarGraph8.Visible = false;
if (this.MainDisplayDotGraph8 != null)
this.MainDisplayDotGraph8.Visible = false;
if (this.MainDisplayTable8 != null)
this.MainDisplayTable8.Visible = false;
break;
case 10:
if (this.MainDisplayEachBarGraph10 != null)
this.MainDisplayEachBarGraph10.Visible = false;
if (this.MainDisplayDotGraph10 != null)
this.MainDisplayDotGraph10.Visible = false;
if (this.MainDisplayTable10 != null)
this.MainDisplayTable10.Visible = false;
break;
case 12:
if (this.MainDisplayEachBarGraph12 != null)
this.MainDisplayEachBarGraph12.Visible = false;
if (this.MainDisplayDotGraph12 != null)
this.MainDisplayDotGraph12.Visible = false;
if (this.MainDisplayTable12 != null)
this.MainDisplayTable12.Visible = false;
break;
default:
break;
}
#endregion
this.UpdateDisplayButton(SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.UP, SmartButton.BUTSTATUS.DOWN, SmartButton.BUTSTATUS.UP);
}
}
private void UpdateDisplayButton(SmartButton.BUTSTATUS buttonBar, SmartButton.BUTSTATUS buttonDot, SmartButton.BUTSTATUS buttonTable)
private void UpdateDisplayButton(SmartButton.BUTSTATUS btBar, SmartButton.BUTSTATUS btDot, SmartButton.BUTSTATUS btTable, SmartButton.BUTSTATUS btFeedback)
{
if(buttonBar == SmartButton.BUTSTATUS.DOWN)
if (btBar == SmartButton.BUTSTATUS.DOWN)
this.buttonBarGraphForm.ButtonDown();
else
this.buttonBarGraphForm.ButtonUp();
if (buttonDot == SmartButton.BUTSTATUS.DOWN)
if (btDot == SmartButton.BUTSTATUS.DOWN)
this.buttonDotGraphForm.ButtonDown();
else
this.buttonDotGraphForm.ButtonUp();
if (buttonTable == SmartButton.BUTSTATUS.DOWN)
if (btTable == SmartButton.BUTSTATUS.DOWN)
this.buttonTableForm.ButtonDown();
else
this.buttonTableForm.ButtonUp();
if (btFeedback == SmartButton.BUTSTATUS.DOWN)
this.buttonFeedback.ButtonDown();
else
this.buttonFeedback.ButtonUp();
}
private bool UI_Invoke(ThreadStart invoker)
{
@ -1623,6 +1704,9 @@ namespace INT63DC_6CH.Forms
{
string value = "";
if (this.MainDisplayFeedbaack != null)
this.MainDisplayFeedbaack.UpdateStartWeightDisplay(status, weightDatas);
value = weightDatas[0].ProductionSpeed.ToString();
if (this.labelProductionSpeed.Text != value)
this.labelProductionSpeed.Text = value;
@ -1675,6 +1759,11 @@ namespace INT63DC_6CH.Forms
this.SetTotalCount();
}
public void UpdateFeedbackDataDisplay(DataStore.EquipmentStatus status, Collection<FeedBackSystem> feedbackData)
{
if (this.MainDisplayFeedbaack != null)
this.MainDisplayFeedbaack.UpdateFeedbackDataDisplay(status, feedbackData);
}
public void UpdateDisplayAlarmView(AlarmList alarm)
{
bool isAlarmMessageView = false;
@ -2493,6 +2582,8 @@ namespace INT63DC_6CH.Forms
this.MainDisplay = DataStore.FormMainDisplayStore.FormMainDisplayDotGraph;
else if (button == this.buttonTableForm)
this.MainDisplay = DataStore.FormMainDisplayStore.FormMainDisplayTable;
else if (button == this.buttonFeedback)
this.MainDisplay = DataStore.FormMainDisplayStore.FormMainDisplayFeedback;
else
this.MainDisplay = DataStore.FormMainDisplayStore.FormMainDisplayBarGraph;

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,8 @@
this.labelBuadrateWarning2 = new SmartX.SmartLabel();
this.labelBuadrateWarning = new SmartX.SmartLabel();
this.buttonSave = new SmartX.SmartButton();
this.buttonFeedback = new SmartX.SmartButton();
this.smartLabel3 = new SmartX.SmartLabel();
((System.ComponentModel.ISupportInitialize)(this.smartForm1)).BeginInit();
this.smartGroupBox1.SuspendLayout();
this.groupBoxOption.SuspendLayout();
@ -99,7 +101,7 @@
this.labelTitle.BackPictureBox2 = null;
this.labelTitle.BorderColor = System.Drawing.Color.Black;
this.labelTitle.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelTitle.Font = new System.Drawing.Font("새굴림", 35F, System.Drawing.FontStyle.Bold);
this.labelTitle.Font = new System.Drawing.Font("New Gulim", 35F, System.Drawing.FontStyle.Bold);
this.labelTitle.InitVisible = true;
this.labelTitle.LineSpacing = 0F;
this.labelTitle.Location = new System.Drawing.Point(199, 7);
@ -139,6 +141,8 @@
//
this.groupBoxOption.BackPictureBox = this.smartForm1;
this.groupBoxOption.BackPictureBox1 = null;
this.groupBoxOption.Controls.Add(this.buttonFeedback);
this.groupBoxOption.Controls.Add(this.smartLabel3);
this.groupBoxOption.Controls.Add(this.buttonPart11);
this.groupBoxOption.Controls.Add(this.smartLabel2);
this.groupBoxOption.Controls.Add(this.buttonDataStatistics);
@ -170,7 +174,7 @@
this.buttonPart11.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonPart11.DownImage")));
this.buttonPart11.GroupID = 0;
this.buttonPart11.InitVisible = true;
this.buttonPart11.Location = new System.Drawing.Point(339, 103);
this.buttonPart11.Location = new System.Drawing.Point(342, 75);
this.buttonPart11.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonPart11.Name = "buttonPart11";
this.buttonPart11.NestedClickEventPrevent = false;
@ -197,10 +201,10 @@
this.smartLabel2.BackPictureBox2 = null;
this.smartLabel2.BorderColor = System.Drawing.Color.Black;
this.smartLabel2.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel2.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Bold);
this.smartLabel2.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold);
this.smartLabel2.InitVisible = true;
this.smartLabel2.LineSpacing = 0F;
this.smartLabel2.Location = new System.Drawing.Point(133, 103);
this.smartLabel2.Location = new System.Drawing.Point(136, 75);
this.smartLabel2.Name = "smartLabel2";
this.smartLabel2.Size = new System.Drawing.Size(200, 25);
this.smartLabel2.TabIndex = 207;
@ -222,7 +226,7 @@
this.buttonDataStatistics.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonDataStatistics.DownImage")));
this.buttonDataStatistics.GroupID = 0;
this.buttonDataStatistics.InitVisible = true;
this.buttonDataStatistics.Location = new System.Drawing.Point(339, 72);
this.buttonDataStatistics.Location = new System.Drawing.Point(342, 44);
this.buttonDataStatistics.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonDataStatistics.Name = "buttonDataStatistics";
this.buttonDataStatistics.NestedClickEventPrevent = false;
@ -248,10 +252,10 @@
this.smartLabel1.BackPictureBox2 = null;
this.smartLabel1.BorderColor = System.Drawing.Color.Black;
this.smartLabel1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel1.Font = new System.Drawing.Font("새굴림", 12F, System.Drawing.FontStyle.Bold);
this.smartLabel1.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold);
this.smartLabel1.InitVisible = true;
this.smartLabel1.LineSpacing = 0F;
this.smartLabel1.Location = new System.Drawing.Point(133, 72);
this.smartLabel1.Location = new System.Drawing.Point(136, 44);
this.smartLabel1.Name = "smartLabel1";
this.smartLabel1.Size = new System.Drawing.Size(200, 25);
this.smartLabel1.TabIndex = 205;
@ -268,7 +272,7 @@
this.labelBuadrateWarning2.BackPictureBox2 = null;
this.labelBuadrateWarning2.BorderColor = System.Drawing.Color.Black;
this.labelBuadrateWarning2.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelBuadrateWarning2.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelBuadrateWarning2.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelBuadrateWarning2.ForeColor = System.Drawing.Color.DarkRed;
this.labelBuadrateWarning2.InitVisible = true;
this.labelBuadrateWarning2.LineSpacing = 0F;
@ -289,7 +293,7 @@
this.labelBuadrateWarning.BackPictureBox2 = null;
this.labelBuadrateWarning.BorderColor = System.Drawing.Color.Black;
this.labelBuadrateWarning.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.labelBuadrateWarning.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Bold);
this.labelBuadrateWarning.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Bold);
this.labelBuadrateWarning.ForeColor = System.Drawing.Color.DarkRed;
this.labelBuadrateWarning.InitVisible = true;
this.labelBuadrateWarning.LineSpacing = 0F;
@ -333,6 +337,57 @@
this.buttonSave.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonSave.UpImage")));
this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
//
// buttonFeedback
//
this.buttonFeedback.BackPictureBox = null;
this.buttonFeedback.BackPictureBox1 = null;
this.buttonFeedback.BackPictureBox2 = null;
this.buttonFeedback.ButtonColor = System.Drawing.Color.Gray;
this.buttonFeedback.ButtonImageAutoSize = true;
this.buttonFeedback.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonFeedback.DisableImage = null;
this.buttonFeedback.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonFeedback.DownImage")));
this.buttonFeedback.GroupID = 0;
this.buttonFeedback.InitVisible = true;
this.buttonFeedback.Location = new System.Drawing.Point(342, 106);
this.buttonFeedback.Mode = SmartX.SmartButton.BUTTONMODE.PUSH;
this.buttonFeedback.Name = "buttonFeedback";
this.buttonFeedback.NestedClickEventPrevent = false;
this.buttonFeedback.OutlinePixel = 1;
this.buttonFeedback.RepeatInterval = 200;
this.buttonFeedback.RepeatIntervalAccelerate = null;
this.buttonFeedback.SafeInterval = 200;
this.buttonFeedback.Size = new System.Drawing.Size(84, 25);
this.buttonFeedback.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
this.buttonFeedback.TabIndex = 210;
this.buttonFeedback.TextColor = System.Drawing.Color.Black;
this.buttonFeedback.TextDownColor = System.Drawing.Color.White;
this.buttonFeedback.TextHAlign = SmartX.SmartButton.TextHorAlign.Middle;
this.buttonFeedback.TextLocation = new System.Drawing.Point(0, 0);
this.buttonFeedback.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonFeedback.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonFeedback.UpImage")));
this.buttonFeedback.Visible = false;
//
// smartLabel3
//
this.smartLabel3.BackPictureBox = this.smartForm1;
this.smartLabel3.BackPictureBox1 = null;
this.smartLabel3.BackPictureBox2 = null;
this.smartLabel3.BorderColor = System.Drawing.Color.Black;
this.smartLabel3.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.smartLabel3.Font = new System.Drawing.Font("New Gulim", 12F, System.Drawing.FontStyle.Bold);
this.smartLabel3.InitVisible = true;
this.smartLabel3.LineSpacing = 0F;
this.smartLabel3.Location = new System.Drawing.Point(136, 106);
this.smartLabel3.Name = "smartLabel3";
this.smartLabel3.Size = new System.Drawing.Size(200, 25);
this.smartLabel3.TabIndex = 209;
this.smartLabel3.Text = "Feedback";
this.smartLabel3.TextHAlign = SmartX.SmartLabel.TextHorAlign.Right;
this.smartLabel3.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel3.Visible = false;
this.smartLabel3.Wordwrap = false;
//
// FormOptionSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -364,5 +419,7 @@
private SmartX.SmartGroupBox groupBoxOption;
private SmartX.SmartButton buttonPart11;
private SmartX.SmartLabel smartLabel2;
private SmartX.SmartButton buttonFeedback;
private SmartX.SmartLabel smartLabel3;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -145,6 +145,12 @@
<Compile Include="Controls\ControlMainDisplayEachBarGraph8.Designer.cs">
<DependentUpon>ControlMainDisplayEachBarGraph8.cs</DependentUpon>
</Compile>
<Compile Include="Controls\ControlMainDisplayFeedbacak.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\ControlMainDisplayFeedbacak.designer.cs">
<DependentUpon>ControlMainDisplayFeedbacak.cs</DependentUpon>
</Compile>
<Compile Include="Controls\ControlMainDisplayTable10.cs">
<SubType>UserControl</SubType>
</Compile>
@ -458,6 +464,10 @@
<DependentUpon>ControlMainDisplayEachBarGraph8.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ControlMainDisplayFeedbacak.resx">
<DependentUpon>ControlMainDisplayFeedbacak.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Controls\ControlMainDisplayTable10.resx">
<DependentUpon>ControlMainDisplayTable10.cs</DependentUpon>
<SubType>Designer</SubType>

Binary file not shown.