충돌수정

master
DESKTOP-999R8N3\CJY 2023-11-27 17:56:11 +09:00
parent 60865a013f
commit d84b98fe73
14 changed files with 291 additions and 193 deletions

View File

@ -290,18 +290,7 @@ namespace INT51DB.Controls
private void labelOverRange_Click(object sender, EventArgs e) private void labelOverRange_Click(object sender, EventArgs e)
{ {
int digit = 0; DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelOverRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0)
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelOverRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK) if (myKeyPad.ShowDialog() == DialogResult.OK)
@ -316,9 +305,7 @@ namespace INT51DB.Controls
{ {
this.labelOverRange.Text = myKeyPad.StringValue; this.labelOverRange.Text = myKeyPad.StringValue;
this.SelectedProductItem.OverRange = myKeyPad.StringValue.Replace(".", ""); this.SelectedProductItem.OverRange = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1); this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1);
this.DisplayControls(this.SelectedProductItem); this.DisplayControls(this.SelectedProductItem);
} }
} }
@ -326,53 +313,57 @@ namespace INT51DB.Controls
private void labelPassRange_Click(object sender, EventArgs e) private void labelPassRange_Click(object sender, EventArgs e)
{ {
int digit = 0; int temp = 0, range = 0;
string value = "";
int oldUnderRangeDeviation = this.SelectedProductItem.UnderRangeDeviation;
int oldOverRangeDeviation = this.SelectedProductItem.OverRangeDeviation;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelPassRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelPassRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK) if (myKeyPad.ShowDialog() != DialogResult.OK)
{ return;
if ((myKeyPad.doubleValue > Helper.StringToWeight(this.SelectedProductItem.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces)) ||
(myKeyPad.doubleValue < Helper.StringToWeight(this.SelectedProductItem.UnderRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces)))
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.labelPassRange.Text = myKeyPad.StringValue;
this.SelectedProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1); this.SelectedProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
}
} #region UnderRange
temp = this.SelectedProductItem.PassRangeInt + oldUnderRangeDeviation;
if (temp < 0)
value = "0";
else
value = temp.ToString();
this.SelectedProductItem.UnderRange = value;
#endregion
#region OverRange
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0)
range = 9999;
else
range = 99999;
// V6.2.0
//if (this.ParentForm.ParentForm.SystemConfig1.DecimalPlaces == 2)
// range = 1000000;
//else if (this.ParentForm.ParentForm.SystemConfig1.DecimalPlaces == 1)
// range = 100000;
//else
// range = 10000;
temp = this.SelectedProductItem.PassRangeInt + oldOverRangeDeviation;
if (temp >= range)
value = myKeyPad.StringValue.Replace(".", "");
else
value = temp.ToString();
this.SelectedProductItem.OverRange = value;
#endregion
this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1);
this.DisplayControls(this.SelectedProductItem);
} }
private void labelUnderRange_Click(object sender, EventArgs e) private void labelUnderRange_Click(object sender, EventArgs e)
{ {
int digit = 0; DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelUnderRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0)
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelUnderRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK) if (myKeyPad.ShowDialog() == DialogResult.OK)
@ -389,7 +380,6 @@ namespace INT51DB.Controls
this.SelectedProductItem.UnderRange = myKeyPad.StringValue.Replace(".", ""); this.SelectedProductItem.UnderRange = myKeyPad.StringValue.Replace(".", "");
this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1); this.ParentForm.ParentForm.SaveProductFile(this.SelectedProductItem, this.SelectedProductNo - 1);
this.DisplayControls(this.SelectedProductItem); this.DisplayControls(this.SelectedProductItem);
} }
} }
@ -397,20 +387,10 @@ namespace INT51DB.Controls
private void labelDeviationOver_Click(object sender, EventArgs e) private void labelDeviationOver_Click(object sender, EventArgs e)
{ {
int digit = 0;
string sValue = ""; string sValue = "";
double dValue = 0.0; double dValue = 0.0;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelDeviationOver.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelDeviationOver.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK) if (myKeyPad.ShowDialog() == DialogResult.OK)
@ -439,20 +419,10 @@ namespace INT51DB.Controls
private void labelDeviationUnder_Click(object sender, EventArgs e) private void labelDeviationUnder_Click(object sender, EventArgs e)
{ {
int digit = 0;
string sValue = ""; string sValue = "";
double dValue = 0.0; double dValue = 0.0;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelDeviationUnder.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.labelDeviationUnder.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() == DialogResult.OK) if (myKeyPad.ShowDialog() == DialogResult.OK)

View File

@ -60,7 +60,7 @@ namespace INT51DB.Controls
} }
private void DefaultSetting() private void DefaultSetting()
{ {
this.labelDisplayVer.Text = "5.1.0"; this.labelDisplayVer.Text = "1.0.1";
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber; this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber;
} }

View File

@ -65,15 +65,15 @@ namespace INT51DB.Controls
} }
public void RescaleProgressBar() public void RescaleProgressBar(ProductItem item)
{ {
int value = 0; int value = 0;
value = this.ParentForm.ParentForm.CurrentProductItem.ProgressBarMaximum; value = item.ProgressBarMaximum;
if (this.progressBar.Maximum != value) if (this.progressBar.Maximum != value)
this.progressBar.Maximum = value; this.progressBar.Maximum = value;
value = this.ParentForm.ParentForm.CurrentProductItem.ProgressBarMinimum; value = item.ProgressBarMinimum;
if (this.progressBar.Minimum != value) if (this.progressBar.Minimum != value)
this.progressBar.Minimum = value; this.progressBar.Minimum = value;
@ -92,7 +92,10 @@ namespace INT51DB.Controls
tareValue = Helper.StringToDecimalPlaces(item.TareRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); tareValue = Helper.StringToDecimalPlaces(item.TareRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
break; break;
case DataStore.WeightInputMode.Deviation: case DataStore.WeightInputMode.Deviation:
underValue = Helper.StringToDecimalPlaces(item.UnderRangDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); if (item.UnderRangeDeviation == 0)
underValue = string.Format("-{0}", Helper.DoubleToString(0, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
else
underValue = Helper.StringToDecimalPlaces(item.UnderRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = string.Format("+{0}", overValue); overValue = string.Format("+{0}", overValue);
@ -215,7 +218,7 @@ namespace INT51DB.Controls
this.SetProduct(pItem); this.SetProduct(pItem);
this.SetCount(wData); this.SetCount(wData);
this.RescaleProgressBar(); this.RescaleProgressBar(pItem);
} }
public void UpdateUpdateStartWeightDisplay(DataStore.EquipmentStatus status, WeightData data) public void UpdateUpdateStartWeightDisplay(DataStore.EquipmentStatus status, WeightData data)
{ {
@ -251,18 +254,8 @@ namespace INT51DB.Controls
{ {
string value = "", sValue = ""; string value = "", sValue = "";
double dValue = 0.0; double dValue = 0.0;
int digit = 0;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonUnderRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonUnderRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() != DialogResult.OK) if (myKeyPad.ShowDialog() != DialogResult.OK)
@ -294,10 +287,26 @@ namespace INT51DB.Controls
else else
{ {
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = sValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.UnderRange = sValue.Replace(".", "");
this.buttonUnderRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl(); switch (this.ParentForm.ParentForm.CurrentSystemStatus.CurrentWeightInputMode)
{
case DataStore.WeightInputMode.Weight:
value = myKeyPad.StringValue;
break;
case DataStore.WeightInputMode.Deviation:
if (myKeyPad.doubleValue == 0)
value = string.Format("-{0}", Helper.DoubleToString(0, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
else
value = myKeyPad.StringValue;
break;
default:
value = myKeyPad.StringValue;
break;
}
this.buttonUnderRange.Text = value;
this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange); value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange);
@ -306,101 +315,87 @@ namespace INT51DB.Controls
} }
private void buttonPassRange_Click(object sender, EventArgs e) private void buttonPassRange_Click(object sender, EventArgs e)
{ {
string value = ""; string value = "", underRange = "", overRange = "", viewValue = "";
int digit = 0, temp = 0; int digit = 0, temp = 0;
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
int oldUnderRangeDeviation = this.ParentForm.ParentForm.CurrentProductItem.UnderRangeDeviation;
int oldOverRangeDeviation = this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) if (this.ParentForm.ParentForm.CurrentWeightData.Weight < 1)
digit = 4; viewValue = this.buttonPassRange.Text;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else else
digit = 5; viewValue = Helper.DoubleToString(this.ParentForm.ParentForm.CurrentWeightData.Weight, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonPassRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces, DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(viewValue, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() != DialogResult.OK) if (myKeyPad.ShowDialog() != DialogResult.OK)
return; return;
this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
#region UnderRange
temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + oldUnderRangeDeviation;
if (temp < 0)
value = "0";
else
value = temp.ToString();
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = value;
#endregion
#region OverRange
temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + oldOverRangeDeviation;
if (temp > 99999)
value = "99999";
else
value = temp.ToString();
this.ParentForm.ParentForm.CurrentProductItem.OverRange = value;
#endregion
this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.UnderRange, value);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.PassRange);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.PassRange, value);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.OverRange);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.OverRange, value);
switch (this.ParentForm.ParentForm.CurrentSystemStatus.CurrentWeightInputMode) switch (this.ParentForm.ParentForm.CurrentSystemStatus.CurrentWeightInputMode)
{ {
case DataStore.WeightInputMode.Weight: case DataStore.WeightInputMode.Weight:
#region WeightMode #region WeightMode
if ((myKeyPad.doubleValue > Helper.StringToWeight(this.ParentForm.ParentForm.CurrentProductItem.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces)) underRange = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.UnderRange.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
|| (myKeyPad.doubleValue < Helper.StringToWeight(this.ParentForm.ParentForm.CurrentProductItem.UnderRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces))) overRange = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.OverRange.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
{
// 입력범위를 확인하세요
DialogFormMessage myMsg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.Language);
myMsg.ShowDialog();
}
else
{
this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
this.buttonPassRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl();
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.PassRange);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.PassRange, value);
}
#endregion #endregion
break; break;
case DataStore.WeightInputMode.Deviation: case DataStore.WeightInputMode.Deviation:
#region DeviationMode #region DeviationMode
this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", ""); if (this.ParentForm.ParentForm.CurrentProductItem.UnderRangeDeviation == 0)
underRange = string.Format("-{0}", Helper.DoubleToString(0, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces));
temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + this.ParentForm.ParentForm.CurrentProductItem.UnderRangDeviation;
if (temp < 0)
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = "0";
else else
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = temp.ToString(); underRange = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.UnderRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overRange = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation; overRange = string.Format("+{0}", overRange);
if (temp > 10000)
this.ParentForm.ParentForm.CurrentProductItem.OverRange = this.ParentForm.ParentForm.CurrentProductItem.PassRange;
else
this.ParentForm.ParentForm.CurrentProductItem.OverRange = temp.ToString();
this.ParentForm.RescaleControl();
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
this.buttonPassRange.Text = myKeyPad.StringValue;
this.buttonUnderRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.UnderRangDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
this.buttonOverRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
sb.Append(Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange));
sb.Append(Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.OverRange));
sb.Append(Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.TareRange));
sb.Append(Helper.StringZeroFillDigits4(this.ParentForm.ParentForm.SystemConfig.ProductNumber.ToString()));
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress.ParameterWeightSetting, sb.ToString());
#endregion #endregion
break; break;
default: default:
break; break;
} }
this.buttonPassRange.Text = myKeyPad.StringValue;
this.buttonUnderRange.Text = underRange;
this.buttonOverRange.Text = overRange;
} }
private void buttonOverRange_Click(object sender, EventArgs e) private void buttonOverRange_Click(object sender, EventArgs e)
{ {
string value = "", sValue = ""; string value = "", sValue = "";
double dValue = 0.0; double dValue = 0.0;
int digit = 0;
if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 0) DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonOverRange.Text, 5, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
digit = 4;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 1)
digit = 5;
else if (this.ParentForm.ParentForm.SystemConfig.DecimalPlaces == 2)
digit = 6;
else
digit = 5;
DialogFormNumKeyPad myKeyPad = new DialogFormNumKeyPad(this.buttonOverRange.Text, digit, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces,
false, this.ParentForm.ParentForm.SystemConfig.Language); false, this.ParentForm.ParentForm.SystemConfig.Language);
if (myKeyPad.ShowDialog() != DialogResult.OK) if (myKeyPad.ShowDialog() != DialogResult.OK)
@ -431,11 +426,29 @@ namespace INT51DB.Controls
} }
else else
{ {
string temp = "";
this.ParentForm.ParentForm.CurrentProductItem.OverRange = sValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.OverRange = sValue.Replace(".", "");
this.buttonOverRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl(); switch (this.ParentForm.ParentForm.CurrentSystemStatus.CurrentWeightInputMode)
{
case DataStore.WeightInputMode.Weight:
value = myKeyPad.StringValue;
break;
case DataStore.WeightInputMode.Deviation:
if (myKeyPad.StringValue.Contains('+') == true)
temp = myKeyPad.StringValue.Replace("+", "");
else
temp = myKeyPad.StringValue;
value = string.Format("+{0}", temp);
break;
default:
value = myKeyPad.StringValue;
break;
}
this.buttonOverRange.Text = value;
this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.OverRange); value = Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.OverRange);

View File

@ -76,6 +76,21 @@ namespace INT51DB.Controls
this.labelDownDelayTime.Text = value; this.labelDownDelayTime.Text = value;
#endregion #endregion
} }
public void UpdateEquipmentStatusDisplay(DataStore.EquipmentStatus status)
{
string value = "";
if (status == DataStore.EquipmentStatus.Start)
{
this.buttonServoDown.Enabled = false;
this.buttonServoUp1.Enabled = false;
}
else
{
this.buttonServoDown.Enabled = true;
this.buttonServoUp1.Enabled = true;
}
}
public void DisplayRefresh(SystemStatus status) public void DisplayRefresh(SystemStatus status)
{ {

View File

@ -277,7 +277,9 @@
this.buttonOverRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonOverRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonOverRange.Name = "buttonOverRange"; this.buttonOverRange.Name = "buttonOverRange";
this.buttonOverRange.NestedClickEventPrevent = false; this.buttonOverRange.NestedClickEventPrevent = false;
this.buttonOverRange.OutlinePixel = 1;
this.buttonOverRange.RepeatInterval = 200; this.buttonOverRange.RepeatInterval = 200;
this.buttonOverRange.RepeatIntervalAccelerate = null;
this.buttonOverRange.SafeInterval = 200; this.buttonOverRange.SafeInterval = 200;
this.buttonOverRange.Size = new System.Drawing.Size(176, 66); this.buttonOverRange.Size = new System.Drawing.Size(176, 66);
this.buttonOverRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.buttonOverRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
@ -289,6 +291,7 @@
this.buttonOverRange.TextLocation = new System.Drawing.Point(0, 0); this.buttonOverRange.TextLocation = new System.Drawing.Point(0, 0);
this.buttonOverRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.buttonOverRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonOverRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonOverRange.UpImage"))); this.buttonOverRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonOverRange.UpImage")));
this.buttonOverRange.Click += new System.EventHandler(this.buttonOverRange_Click);
// //
// buttonPassRange // buttonPassRange
// //
@ -307,7 +310,9 @@
this.buttonPassRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonPassRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonPassRange.Name = "buttonPassRange"; this.buttonPassRange.Name = "buttonPassRange";
this.buttonPassRange.NestedClickEventPrevent = false; this.buttonPassRange.NestedClickEventPrevent = false;
this.buttonPassRange.OutlinePixel = 1;
this.buttonPassRange.RepeatInterval = 200; this.buttonPassRange.RepeatInterval = 200;
this.buttonPassRange.RepeatIntervalAccelerate = null;
this.buttonPassRange.SafeInterval = 200; this.buttonPassRange.SafeInterval = 200;
this.buttonPassRange.Size = new System.Drawing.Size(176, 66); this.buttonPassRange.Size = new System.Drawing.Size(176, 66);
this.buttonPassRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.buttonPassRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
@ -319,6 +324,7 @@
this.buttonPassRange.TextLocation = new System.Drawing.Point(0, 0); this.buttonPassRange.TextLocation = new System.Drawing.Point(0, 0);
this.buttonPassRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.buttonPassRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonPassRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPassRange.UpImage"))); this.buttonPassRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonPassRange.UpImage")));
this.buttonPassRange.Click += new System.EventHandler(this.buttonPassRange_Click);
// //
// buttonUnderRange // buttonUnderRange
// //
@ -337,7 +343,9 @@
this.buttonUnderRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL; this.buttonUnderRange.Mode = SmartX.SmartButton.BUTTONMODE.NORMAL;
this.buttonUnderRange.Name = "buttonUnderRange"; this.buttonUnderRange.Name = "buttonUnderRange";
this.buttonUnderRange.NestedClickEventPrevent = false; this.buttonUnderRange.NestedClickEventPrevent = false;
this.buttonUnderRange.OutlinePixel = 1;
this.buttonUnderRange.RepeatInterval = 200; this.buttonUnderRange.RepeatInterval = 200;
this.buttonUnderRange.RepeatIntervalAccelerate = null;
this.buttonUnderRange.SafeInterval = 200; this.buttonUnderRange.SafeInterval = 200;
this.buttonUnderRange.Size = new System.Drawing.Size(176, 66); this.buttonUnderRange.Size = new System.Drawing.Size(176, 66);
this.buttonUnderRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE; this.buttonUnderRange.SpecialFunction = SmartX.SmartButton.SPECIALFUNC.NONE;
@ -349,6 +357,7 @@
this.buttonUnderRange.TextLocation = new System.Drawing.Point(0, 0); this.buttonUnderRange.TextLocation = new System.Drawing.Point(0, 0);
this.buttonUnderRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle; this.buttonUnderRange.TextVAlign = SmartX.SmartButton.TextVerAlign.Middle;
this.buttonUnderRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonUnderRange.UpImage"))); this.buttonUnderRange.UpImage = ((System.Drawing.Image)(resources.GetObject("buttonUnderRange.UpImage")));
this.buttonUnderRange.Click += new System.EventHandler(this.buttonUnderRange_Click);
// //
// draw // draw
// //

View File

@ -113,7 +113,7 @@ namespace INT51DB.Controls
overValue = Helper.StringToDecimalPlaces(item.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); overValue = Helper.StringToDecimalPlaces(item.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
break; break;
case DataStore.WeightInputMode.Deviation: case DataStore.WeightInputMode.Deviation:
underValue = Helper.StringToDecimalPlaces(item.UnderRangDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); underValue = Helper.StringToDecimalPlaces(item.UnderRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = string.Format("+{0}", overValue); overValue = string.Format("+{0}", overValue);
@ -273,7 +273,7 @@ namespace INT51DB.Controls
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = sValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.UnderRange = sValue.Replace(".", "");
this.buttonUnderRange.Text = myKeyPad.StringValue; this.buttonUnderRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl(); this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
@ -319,7 +319,7 @@ namespace INT51DB.Controls
this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
this.buttonPassRange.Text = myKeyPad.StringValue; this.buttonPassRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl(); this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
@ -332,7 +332,7 @@ namespace INT51DB.Controls
#region DeviationMode #region DeviationMode
this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.PassRange = myKeyPad.StringValue.Replace(".", "");
temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + this.ParentForm.ParentForm.CurrentProductItem.UnderRangDeviation; temp = this.ParentForm.ParentForm.CurrentProductItem.PassRangeInt + this.ParentForm.ParentForm.CurrentProductItem.UnderRangeDeviation;
if (temp < 0) if (temp < 0)
this.ParentForm.ParentForm.CurrentProductItem.UnderRange = "0"; this.ParentForm.ParentForm.CurrentProductItem.UnderRange = "0";
else else
@ -344,12 +344,12 @@ namespace INT51DB.Controls
else else
this.ParentForm.ParentForm.CurrentProductItem.OverRange = temp.ToString(); this.ParentForm.ParentForm.CurrentProductItem.OverRange = temp.ToString();
this.ParentForm.RescaleControl(); this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);
this.buttonPassRange.Text = myKeyPad.StringValue; this.buttonPassRange.Text = myKeyPad.StringValue;
this.buttonUnderRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.UnderRangDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); this.buttonUnderRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.UnderRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
this.buttonOverRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); this.buttonOverRange.Text = Helper.StringToDecimalPlaces(this.ParentForm.ParentForm.CurrentProductItem.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
sb.Append(Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange)); sb.Append(Helper.StringZeroFillDigits7(this.ParentForm.ParentForm.CurrentProductItem.UnderRange));
@ -413,7 +413,7 @@ namespace INT51DB.Controls
this.ParentForm.ParentForm.CurrentProductItem.OverRange = sValue.Replace(".", ""); this.ParentForm.ParentForm.CurrentProductItem.OverRange = sValue.Replace(".", "");
this.buttonOverRange.Text = myKeyPad.StringValue; this.buttonOverRange.Text = myKeyPad.StringValue;
this.ParentForm.RescaleControl(); this.ParentForm.RescaleControl(this.ParentForm.ParentForm.CurrentProductItem);
this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1); this.ParentForm.ParentForm.SaveProductFile(this.ParentForm.ParentForm.CurrentProductItem, this.ParentForm.ParentForm.SystemConfig.ProductNumber - 1);

View File

@ -73,7 +73,7 @@ namespace INT51DB.Controls
overValue = Helper.StringToDecimalPlaces(item.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); overValue = Helper.StringToDecimalPlaces(item.OverRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
break; break;
case DataStore.WeightInputMode.Deviation: case DataStore.WeightInputMode.Deviation:
underValue = Helper.StringToDecimalPlaces(item.UnderRangDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); underValue = Helper.StringToDecimalPlaces(item.UnderRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); passValue = Helper.StringToDecimalPlaces(item.PassRange, this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces); overValue = Helper.StringToDecimalPlaces(item.OverRangeDeviation.ToString(), this.ParentForm.ParentForm.SystemConfig.DecimalPlaces);
overValue = string.Format("+{0}", overValue); overValue = string.Format("+{0}", overValue);

View File

@ -916,7 +916,7 @@ namespace INT51DB
public int OverRangeDeviation public int OverRangeDeviation
{ {
get { return this.m_OverRangeDeviation; } get { return this.OverRangeInt - this.PassRangeInt; }
//set //set
//{ //{
// int iValue = 0; // int iValue = 0;
@ -927,9 +927,9 @@ namespace INT51DB
// this.m_OverRangeDeviation = value; // this.m_OverRangeDeviation = value;
//} //}
} }
public int UnderRangDeviation public int UnderRangeDeviation
{ {
get { return this.m_UnderRangeDeviation; } get { return this.UnderRangeInt - this.PassRangeInt; }
//set //set
//{ //{
// int iValue = 0; // int iValue = 0;

View File

@ -497,7 +497,7 @@
this.buttonWeightInputMode.ButtonImageAutoSize = true; this.buttonWeightInputMode.ButtonImageAutoSize = true;
this.buttonWeightInputMode.ColorKeySamplePosition = new System.Drawing.Point(0, 0); this.buttonWeightInputMode.ColorKeySamplePosition = new System.Drawing.Point(0, 0);
this.buttonWeightInputMode.DisableImage = null; this.buttonWeightInputMode.DisableImage = null;
this.buttonWeightInputMode.DownImage = null; this.buttonWeightInputMode.DownImage = ((System.Drawing.Image)(resources.GetObject("buttonWeightInputMode.DownImage")));
this.buttonWeightInputMode.GroupID = 0; this.buttonWeightInputMode.GroupID = 0;
this.buttonWeightInputMode.InitVisible = false; this.buttonWeightInputMode.InitVisible = false;
this.buttonWeightInputMode.Location = new System.Drawing.Point(710, 129); this.buttonWeightInputMode.Location = new System.Drawing.Point(710, 129);

View File

@ -203,9 +203,9 @@ namespace INT51DB.Forms
this.ParentForm.TransferProductParameter(productNumber); this.ParentForm.TransferProductParameter(productNumber);
} }
public void RescaleControl() public void RescaleControl(ProductItem item)
{ {
this.MainDisplayBarGraph.RescaleProgressBar(); this.MainDisplayBarGraph.RescaleProgressBar(item);
} }
public void Clear() public void Clear()
{ {
@ -305,9 +305,12 @@ namespace INT51DB.Forms
this.MainDisplayFunction2.Visible = false; this.MainDisplayFunction2.Visible = false;
this.labelWeight.Text = Helper.StringToDecimalPlaces("0", this.ParentForm.SystemConfig.DecimalPlaces); this.labelWeight.Text = Helper.StringToDecimalPlaces("0", this.ParentForm.SystemConfig.DecimalPlaces);
this.buttonConveyorUpDown.Enabled = false;
this.MainDisplayBarGraph.UpdateEquipmentStatusDisplay(status); this.MainDisplayBarGraph.UpdateEquipmentStatusDisplay(status);
this.MainDisplayLineGraph.UpdateEquipmentStatusDisplay(status); this.MainDisplayLineGraph.UpdateEquipmentStatusDisplay(status);
this.MainDisplayList.UpdateEquipmentStatusDisplay(status); this.MainDisplayList.UpdateEquipmentStatusDisplay(status);
this.MainDisplayFunction1.UpdateEquipmentStatusDisplay(status);
} }
else else
{ {
@ -319,9 +322,13 @@ namespace INT51DB.Forms
this.buttonProductNo.Enabled = true; this.buttonProductNo.Enabled = true;
this.MainDisplayFunction2.Visible = false; this.MainDisplayFunction2.Visible = false;
this.buttonConveyorUpDown.Enabled = true;
this.buttonConveyorUpDown.ButtonUp();
this.MainDisplayBarGraph.UpdateEquipmentStatusDisplay(status); this.MainDisplayBarGraph.UpdateEquipmentStatusDisplay(status);
this.MainDisplayLineGraph.UpdateEquipmentStatusDisplay(status); this.MainDisplayLineGraph.UpdateEquipmentStatusDisplay(status);
this.MainDisplayList.UpdateEquipmentStatusDisplay(status); this.MainDisplayList.UpdateEquipmentStatusDisplay(status);
this.MainDisplayFunction1.UpdateEquipmentStatusDisplay(status);
} }
} }
public void UpdateCurrentProductDisplay(DataStore.EquipmentStatus status, ProductItem pItem, WeightData wData) public void UpdateCurrentProductDisplay(DataStore.EquipmentStatus status, ProductItem pItem, WeightData wData)
@ -521,6 +528,9 @@ namespace INT51DB.Forms
this.UpdateDisplay(); this.UpdateDisplay();
this.DisplayBottomMain(this.CurrentDisplay); this.DisplayBottomMain(this.CurrentDisplay);
this.buttonConveyorUpDown.Visible = true;
this.buttonConveyorUpDown.ButtonUp();
this.ProductChange(this.ParentForm.SystemConfig.ProductNumber); this.ProductChange(this.ParentForm.SystemConfig.ProductNumber);
} }
#endregion #endregion

View File

@ -1728,6 +1728,70 @@
xIPQ3Rjm5CpsnYKYQsLjLXq8QbMzoq8xUMCiCsdcTeVPpaOdqEJ/JQBl45aRTHiox+umoBV6vEFjNgdS xIPQ3Rjm5CpsnYKYQsLjLXq8QbMzoq8xUMCiCsdcTeVPpaOdqEJ/JQBl45aRTHiox+umoBV6vEFjNgdS
qk4pwCa6iCljLRqPP2gMbEBRT/7wwYV8qRfQGcVkjlT8mJMZ3QZvMf0foMfABbSRC2gjF9BGLqCNXEAb qk4pwCa6iCljLRqPP2gMbEBRT/7wwYV8qRfQGcVkjlT8mJMZ3QZvMf0foMfABbSRC2gjF9BGLqCNXEAb
uYA2cgFt5ALaxBPyB4wXxL3bFhaEAAAAAElFTkSuQmCC uYA2cgFt5ALaxBPyB4wXxL3bFhaEAAAAAElFTkSuQmCC
</value>
</data>
<data name="buttonWeightInputMode.DownImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAFoAAAA5CAIAAAA5qquhAAAABGdBTUEAALGOfPtRkwAAAC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f96Znp42Ow3M
Ym7GrvBSqfS3E2TCp2pMMBX8EQqLkJNZjE9PT2VmA5arHNqQBOG4C7wkRM5MykEx6x929XqdiuDJGI8G
ooscTH/bTgnYKZmUA8J181T+2kRvYnSVQ/FJmKLpv0QOBhrLVGSS6Oi5ubkhkqdMCoQnHl5ioVkhXLck
kCcCU5Fd0OYKk9dLHh8fce7u7pq3z2HRkkBfbPQl4+RcYAyfyjE6OqpIkjdXSw4RytTX2Ho7QcFr8Kkc
YeZRsJw6oTPTfbxdAwmivqstw45ERaTKokCUvOTITF2EsLdZN+ei2S3e0+wmB1PInxiqABF1guCJLqZM
ysGiO6aNH5IyCfzMgqgiOESkCM9fKMenMOXk5AQVzH5XBKee2ZZDF0qSr12TmZfjI76WUobl+A64oVDk
o3PHcRzH+VkGBv4D1R1OrkU37EwAAAAASUVORK5CYII=
</value> </value>
</data> </data>
<data name="buttonWeightInputMode.UpImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="buttonWeightInputMode.UpImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">

View File

@ -354,6 +354,14 @@ namespace INT51DB.Forms
break; break;
} }
} }
private bool EquipmentRun(DataStore.DisplayStore currentDisplay)
{
if (currentDisplay == DataStore.DisplayStore.SystemJudgmentSetting
|| currentDisplay == DataStore.DisplayStore.SystemSorterSetting)
return true;
else
return false;
}
private void DisplaySideMenu(DataStore.MemuSide menu) private void DisplaySideMenu(DataStore.MemuSide menu)
{ {
@ -894,30 +902,38 @@ namespace INT51DB.Forms
#endregion #endregion
#region Event Handler #region Event Handler
private void pictureBoxStop_Click(object sender, EventArgs e)
{
if (this.EquipmentRun(this.ParentForm.CurrentSystemStatus.CurrentDisplay) == true)
this.ParentForm.TransferData(CommunicationCommand.Start, CommunicationID.MainBoard);
}
private void pictureBoxStart_Click(object sender, EventArgs e)
{
if (this.EquipmentRun(this.ParentForm.CurrentSystemStatus.CurrentDisplay) == true)
this.ParentForm.TransferData(CommunicationCommand.Stop, CommunicationID.MainBoard);
}
private void buttonBasic_Click(object sender, EventArgs e) private void buttonBasic_Click(object sender, EventArgs e)
{ {
this.SelectedSideMenu = DataStore.MemuSide.Basic; this.SelectedSideMenu = DataStore.MemuSide.Basic;
this.DisplaySideMenu(this.SelectedSideMenu); this.DisplaySideMenu(this.SelectedSideMenu);
} }
private void buttonConfiguration_Click(object sender, EventArgs e) private void buttonConfiguration_Click(object sender, EventArgs e)
{ {
this.SelectedSideMenu = DataStore.MemuSide.Configuration; this.SelectedSideMenu = DataStore.MemuSide.Configuration;
this.DisplaySideMenu(this.SelectedSideMenu); this.DisplaySideMenu(this.SelectedSideMenu);
} }
private void buttonSystem_Click(object sender, EventArgs e) private void buttonSystem_Click(object sender, EventArgs e)
{ {
this.SelectedSideMenu = DataStore.MemuSide.System; this.SelectedSideMenu = DataStore.MemuSide.System;
this.DisplaySideMenu(this.SelectedSideMenu); this.DisplaySideMenu(this.SelectedSideMenu);
} }
private void buttonEquipment_Click(object sender, EventArgs e) private void buttonEquipment_Click(object sender, EventArgs e)
{ {
this.SelectedSideMenu = DataStore.MemuSide.Equipment; this.SelectedSideMenu = DataStore.MemuSide.Equipment;
this.DisplaySideMenu(this.SelectedSideMenu); this.DisplaySideMenu(this.SelectedSideMenu);
} }
private void buttonInformation_Click(object sender, EventArgs e) private void buttonInformation_Click(object sender, EventArgs e)
{ {
this.SelectedSideMenu = DataStore.MemuSide.Information; this.SelectedSideMenu = DataStore.MemuSide.Information;
@ -935,20 +951,11 @@ namespace INT51DB.Forms
((FormMain)(Owner)).smartForm.Show((int)DataStore.FormStore.FormMainDisplay); ((FormMain)(Owner)).smartForm.Show((int)DataStore.FormStore.FormMainDisplay);
} }
private void pictureBoxStop_Click(object sender, EventArgs e)
{
}
private void pictureBoxStart_Click(object sender, EventArgs e)
{
}
private void buttonHidden_Click(object sender, EventArgs e) private void buttonHidden_Click(object sender, EventArgs e)
{ {
this.ParentForm.CurrentSystemStatus.CurrentUser.Group = DataStore.UserGroup.Level4Developer; this.ParentForm.CurrentSystemStatus.CurrentUser.Group = DataStore.UserGroup.Level4Developer;
} }
#endregion #endregion
} }
} }

View File

@ -11,6 +11,16 @@
업다운 1열 체커 업다운 1열 체커
*/ */
@ Ver 1.0.1
- 2023.11.27
- Framework : SmartX Framework V3.1.1(update: 2019.03.21)
- 메인화면 등 버그 수정
1. 편차 이미지 누락
2. 간편중량설정 추가
3. 중량 입력 버그 수정
4. 버전정보 수정
5. 품목설정 버그 수정
@ Ver 1.0.0 @ Ver 1.0.0
- 2023.11.24 - 2023.11.24
- Framework : SmartX Framework V3.1.1(update: 2019.03.21) - Framework : SmartX Framework V3.1.1(update: 2019.03.21)

Binary file not shown.