- Feedback 아이콘 표시 버그 수정 -> 9507 Optionboard 항목이 -1로 저장될 경우 0으로 강제변경

master
CJY 2025-09-16 19:43:16 +09:00
parent e6b847636f
commit e77336f3b3
7 changed files with 1975 additions and 1974 deletions

View File

@ -130,6 +130,8 @@ namespace ITC81DB_2.Controls
}
public bool IsUsingFeedback()
{
try
{
int value = int.Parse(this.ParentForm.ParentForm.CurrentSystemParameter9507.OptionBoard);
if (value == 1 && int.Parse(this.ParentForm.ParentForm.CurrentSystemParameter9508.OPT1SamplingCount) != 0)
@ -137,6 +139,11 @@ namespace ITC81DB_2.Controls
else
return false;
}
catch
{
return false;
}
}
public string CaculateDeviation1(int value)
{
string sValue = "";

View File

@ -1546,11 +1546,8 @@ namespace ITC81DB_2.Forms
return ret = -1;
#endregion
if (iValue != this.SystemConfig.ProductNumber)
{
this.SystemConfig.ProductNumber = iValue;
this.SaveSystemConfigurationFile1(this.SystemConfig);
}
// 최초에 부팅이 완료 되었는지 확인
if (this.IsBootingComplete == false)
@ -1558,8 +1555,10 @@ namespace ITC81DB_2.Forms
this.LoadProductFile1(ref this.CurrentProductItem1, this.SystemConfig.ProductNumber - 1);
this.LoadProductFile2(ref this.CurrentProductItem2, this.SystemConfig.ProductNumber - 1);
this.LoadCounterFile1(ref this.CurrentWeightData1, this.SystemConfig.ProductNumber - 1);
this.LoadCounterFile2(ref this.CurrentWeightData2, this.SystemConfig.ProductNumber - 1);
this.LoadJudgmentSetFile1(ref this.CurrentJudgmentSetItem1, this.SystemConfig.ProductNumber - 1);
this.LoadJudgmentSetFile2(ref this.CurrentJudgmentSetItem2, this.SystemConfig.ProductNumber - 1);
@ -1657,6 +1656,9 @@ namespace ITC81DB_2.Forms
this.CurrentSystemParameter9507.Dummy1 = receiveData.Substring(23, 7).Trim();
this.CurrentSystemParameter9507.Dummy2 = receiveData.Substring(30, 7).Trim();
this.CurrentSystemParameter9507.Dummy3 = receiveData.Substring(37, 7).Trim();
if(receiveData.Substring(44, 4).Trim().StartsWith("-") == true)
this.CurrentSystemParameter9507.OptionBoard = "0";
else
this.CurrentSystemParameter9507.OptionBoard = receiveData.Substring(44, 4).Trim();
this.CurrentSystemParameter9507.Dummy4 = receiveData.Substring(48, 4).Trim();
this.CurrentSystemParameter9507.Dummy5 = receiveData.Substring(52, 4).Trim();

View File

@ -427,8 +427,6 @@ namespace ITC81DB_2.Forms
}
// Icon - Feedback
try
{
if (this.MainFeedback.IsUsingFeedback() == true) // Feedback
{
this.pictureBoxFeedbackDisable.Visible = false;
@ -440,12 +438,6 @@ namespace ITC81DB_2.Forms
this.pictureBoxFeedbackEnable.Visible = false;
}
}
catch
{
this.pictureBoxFeedbackDisable.Visible = true;
this.pictureBoxFeedbackEnable.Visible = false;
}
}
/// <summary>
/// 사용안함(Modbus 유료화 추가되면 사용할 것)
/// </summary>

File diff suppressed because it is too large Load Diff

View File

@ -17,7 +17,7 @@
@ Ver 3.1.5 by CJY
- 2025.09.02
- Ver 3.1.4 Modify
- Feedback 아이콘 표시 버그 수정
- Feedback 아이콘 표시 버그 수정 -> 9507 Optionboard 항목이 -1로 저장될 경우 0으로 강제변경
@ Ver 3.1.4 by CJY
- 2025.02.27

Binary file not shown.

Binary file not shown.