1. 영어 변경 시 엔지니어 설정 버튼 및 화면 영문 전환 안되는 버그 수정
   2. 선별기설정 영문->한글로 변경 시 배경화면 한글로 변경 안되는 버그 수정
 - 엔지니어 설정 제목 표기 제대로 안되는 버그 수정
 - 시리얼 통신 Mode - 'Printer(1Lane)', 'Printer(2Lane)' 추가
   네추럴 F&P 요청에 의함(담당자 : 전종찬)
master
CJY 2020-08-04 10:39:08 +09:00
parent 9444d9104a
commit 7b53d37050
10 changed files with 82 additions and 30 deletions

View File

@ -80,6 +80,8 @@ namespace ITC81DB_2.Controls
this.SelectedWeightData2 = new WeightData(); this.SelectedWeightData2 = new WeightData();
this.SelectedProductItem1 = new ProductItem(); this.SelectedProductItem1 = new ProductItem();
this.SelectedProductItem2 = new ProductItem(); this.SelectedProductItem2 = new ProductItem();
this.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
} }
private void UpdateDisplay1(WeightData data, ProductItem item) private void UpdateDisplay1(WeightData data, ProductItem item)
@ -266,17 +268,19 @@ namespace ITC81DB_2.Controls
this.labelTotalCount2.Text = value; this.labelTotalCount2.Text = value;
} }
public void DisplayPrintButton(SystemConfigurationItem system)
{
if (system.SerialCOM1Mode >= 3 || system.SerialCOM1Mode <= 5 || system.SerialCOM3Mode >= 3 || system.SerialCOM3Mode <= 5)
this.buttonPrint.Visible = true;
else
this.buttonPrint.Visible = false;
}
public void DisplayRefresh(SystemStatus status) public void DisplayRefresh(SystemStatus status)
{ {
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplay = DataStore.DisplayStore.BasicDataStatistics; this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplay = DataStore.DisplayStore.BasicDataStatistics;
this.ParentForm.ParentForm.SetDisplayMode(DataStore.DisplayMode.Menu); this.ParentForm.ParentForm.SetDisplayMode(DataStore.DisplayMode.Menu);
this.ParentForm.DisplayTitleRoot(this.ParentForm.ParentForm.CurrentSystemStatus); this.ParentForm.DisplayTitleRoot(this.ParentForm.ParentForm.CurrentSystemStatus);
if (this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode == 3 || this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode == 3)
this.buttonPrint.Visible = true;
else
this.buttonPrint.Visible = false;
this.SelectedProductNo = this.ParentForm.ParentForm.SystemConfig.ProductNumber; this.SelectedProductNo = this.ParentForm.ParentForm.SystemConfig.ProductNumber;
if (this.buttonItemNo.Text != this.SelectedProductNo.ToString()) if (this.buttonItemNo.Text != this.SelectedProductNo.ToString())

View File

@ -77,7 +77,9 @@ namespace ITC81DB_2.Controls
this.comboBoxCOM1Mode.Items.Add("None"); this.comboBoxCOM1Mode.Items.Add("None");
this.comboBoxCOM1Mode.Items.Add("STD1"); this.comboBoxCOM1Mode.Items.Add("STD1");
this.comboBoxCOM1Mode.Items.Add("Remote"); this.comboBoxCOM1Mode.Items.Add("Remote");
this.comboBoxCOM1Mode.Items.Add("Printer"); this.comboBoxCOM1Mode.Items.Add("Printer(All)");
this.comboBoxCOM1Mode.Items.Add("Printer(1Lane)");
this.comboBoxCOM1Mode.Items.Add("Printer(2Lane)");
this.comboBoxCOM1Mode.SelectedIndex = 0; this.comboBoxCOM1Mode.SelectedIndex = 0;
this.comboBoxCOM1Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial1Mode_SelectedIndexChanged); this.comboBoxCOM1Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial1Mode_SelectedIndexChanged);
@ -95,7 +97,9 @@ namespace ITC81DB_2.Controls
this.comboBoxCOM3Mode.Items.Add("None"); this.comboBoxCOM3Mode.Items.Add("None");
this.comboBoxCOM3Mode.Items.Add("STD1"); this.comboBoxCOM3Mode.Items.Add("STD1");
this.comboBoxCOM3Mode.Items.Add("Remote"); this.comboBoxCOM3Mode.Items.Add("Remote");
this.comboBoxCOM3Mode.Items.Add("Printer"); this.comboBoxCOM3Mode.Items.Add("Printer(All)");
this.comboBoxCOM3Mode.Items.Add("Printer(1Lane)");
this.comboBoxCOM3Mode.Items.Add("Printer(2Lane)");
this.comboBoxCOM3Mode.SelectedIndex = 0; this.comboBoxCOM3Mode.SelectedIndex = 0;
this.comboBoxCOM3Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial2Mode_SelectedIndexChanged); this.comboBoxCOM3Mode.SelectedIndexChanged += new EventHandler(this.comboBoxSerial2Mode_SelectedIndexChanged);
@ -118,7 +122,9 @@ namespace ITC81DB_2.Controls
case 2: // Remote case 2: // Remote
this.labelCh1Format.Text = "STX[1],No[2],Grd[1],Weight[6],ETX[1]"; this.labelCh1Format.Text = "STX[1],No[2],Grd[1],Weight[6],ETX[1]";
break; break;
case 3: // Printer case 3: // Printer(All)
case 4: // Printer(1Lane)
case 5: // Printer(2Lane)
this.labelCh1Format.Text = "No[4],Grd[8],Weight[10],CNT[10]"; this.labelCh1Format.Text = "No[4],Grd[8],Weight[10],CNT[10]";
break; break;
default: default:
@ -135,7 +141,9 @@ namespace ITC81DB_2.Controls
case 2: // Remote case 2: // Remote
this.labelCh2Format.Text = "STX[1],No[2],Grd[1],Weight[6],ETX[1]"; this.labelCh2Format.Text = "STX[1],No[2],Grd[1],Weight[6],ETX[1]";
break; break;
case 3: // Printer case 3: // Printer(All)
case 4: // Printer(1Lane)
case 5: // Printer(2Lane)
this.labelCh2Format.Text = "No[4],Grd[8],Weight[10],CNT[10]"; this.labelCh2Format.Text = "No[4],Grd[8],Weight[10],CNT[10]";
break; break;
default: default:
@ -218,6 +226,9 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate = this.comboBoxCOM1BaudRate.SelectedIndex; this.ParentForm.ParentForm.SystemConfig.SerialCOM1BaudRate = this.comboBoxCOM1BaudRate.SelectedIndex;
this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode = this.comboBoxCOM1Mode.SelectedIndex; this.ParentForm.ParentForm.SystemConfig.SerialCOM1Mode = this.comboBoxCOM1Mode.SelectedIndex;
this.ParentForm.CenterBasicDataStatistics.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMainDisplay.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig); this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.OpenSerialCOM1(); this.ParentForm.ParentForm.OpenSerialCOM1();
@ -229,6 +240,9 @@ namespace ITC81DB_2.Controls
this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate = this.comboBoxCOM3BaudRate.SelectedIndex; this.ParentForm.ParentForm.SystemConfig.SerialCOM3BaudRate = this.comboBoxCOM3BaudRate.SelectedIndex;
this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode = this.comboBoxCOM3Mode.SelectedIndex; this.ParentForm.ParentForm.SystemConfig.SerialCOM3Mode = this.comboBoxCOM3Mode.SelectedIndex;
this.ParentForm.CenterBasicDataStatistics.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMainDisplay.DisplayPrintButton(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig); this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.OpenSerialCOM3(); this.ParentForm.ParentForm.OpenSerialCOM3();
@ -269,6 +283,8 @@ namespace ITC81DB_2.Controls
#endregion #endregion
break; break;
case 3: case 3:
case 4:
case 5:
#region Printer #region Printer
sb.Append(string.Format("{0, 4}", this.ParentForm.ParentForm.SystemConfig.ProductNumber)); sb.Append(string.Format("{0, 4}", this.ParentForm.ParentForm.SystemConfig.ProductNumber));
sb.Append(string.Format("{0, 3}", 1)); sb.Append(string.Format("{0, 3}", 1));
@ -320,6 +336,8 @@ namespace ITC81DB_2.Controls
#endregion #endregion
break; break;
case 3: case 3:
case 4:
case 5:
#region Printer #region Printer
sb.Append(string.Format("{0, 4}", this.ParentForm.ParentForm.SystemConfig.ProductNumber)); sb.Append(string.Format("{0, 4}", this.ParentForm.ParentForm.SystemConfig.ProductNumber));
sb.Append(string.Format("{0, 3}", 1)); sb.Append(string.Format("{0, 3}", 1));

View File

@ -63,7 +63,7 @@ namespace ITC81DB_2.Controls
private void DefaultSetting() private void DefaultSetting()
{ {
this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber; this.labelSerialNo.Text = this.ParentForm.ParentForm.SystemConfig.SerialNumber;
this.labelDisplayVer.Text = "2.0.0"; this.labelDisplayVer.Text = "2.1.0";
} }
public void UpdateMainBoardVersionDisplay(string version) public void UpdateMainBoardVersionDisplay(string version)

View File

@ -143,7 +143,10 @@ namespace ITC81DB_2.Controls
else else
{ {
#region Korean #region Korean
//this.smartGroupBox1.Image = new Bitmap(images.GetImage(Class1.ButtonImages.korBackgroundSorterSetting)); this.smartGroupBox1.Image = new Bitmap(images.GetImage(Class1.ButtonImages.korBackgroundSorterSetting));
this.radioButtonDoubleEntryDsable.Text = "사용안함";
this.radioButtonDoubleEntryEnable.Text = "사용함";
this.comboBoxSorter1Mode.SelectedIndexChanged -= new EventHandler(this.comboBoxSorter1Mode_SelectedIndexChanged); this.comboBoxSorter1Mode.SelectedIndexChanged -= new EventHandler(this.comboBoxSorter1Mode_SelectedIndexChanged);
this.comboBoxSorter1Mode.Items.Clear(); this.comboBoxSorter1Mode.Items.Clear();

View File

@ -429,7 +429,7 @@ namespace ITC81DB_2.Forms
{ {
string value = ""; string value = "";
if (this.SystemConfig.SerialCOM1Mode == 3) if (this.SystemConfig.SerialCOM1Mode >= 3 || this.SystemConfig.SerialCOM1Mode <= 5)
{ {
this.TransferSerialCOM1("##############################"); this.TransferSerialCOM1("##############################");
this.TransferSerialCOM1(" TOTAL PRINT LINE1 "); this.TransferSerialCOM1(" TOTAL PRINT LINE1 ");
@ -512,7 +512,7 @@ namespace ITC81DB_2.Forms
this.TransferSerialCOM1("##############################\n\n\n\n"); this.TransferSerialCOM1("##############################\n\n\n\n");
} }
if (this.SystemConfig.SerialCOM3Mode == 3) if (this.SystemConfig.SerialCOM3Mode >= 3 || this.SystemConfig.SerialCOM3Mode <= 5)
{ {
this.TransferSerialCOM3("##############################"); this.TransferSerialCOM3("##############################");
this.TransferSerialCOM3(" TOTAL PRINT LINE1 "); this.TransferSerialCOM3(" TOTAL PRINT LINE1 ");
@ -1485,7 +1485,7 @@ namespace ITC81DB_2.Forms
// 통신 제대로 받으면 ACK // 통신 제대로 받으면 ACK
this.TransferData(string.Format("{0}{1}{2}", CommunicationCommand.RunWeightData, (int)DataStore.ResponseData.ACK, transferCount), CommunicationID.MainBoard); this.TransferData(string.Format("{0}{1}{2}", CommunicationCommand.RunWeightData, (int)DataStore.ResponseData.ACK, transferCount), CommunicationID.MainBoard);
// 통신 CH1 // 통신 COM1
if (this.SystemConfig.SerialCOM1Mode != 0) if (this.SystemConfig.SerialCOM1Mode != 0)
{ {
switch (this.SystemConfig.SerialCOM1Mode) switch (this.SystemConfig.SerialCOM1Mode)
@ -1500,14 +1500,18 @@ namespace ITC81DB_2.Forms
if (this.SystemConfig.IsPrintPerProductEnable == true) if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1)); this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1));
break; break;
case 4:
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1));
break;
default: default:
break; break;
} }
} }
// 통신 CH2 // 통신 COM3
if (this.SystemConfig.SerialCOM1Mode != 0) if (this.SystemConfig.SerialCOM3Mode != 0)
{ {
switch (this.SystemConfig.SerialCOM1Mode) switch (this.SystemConfig.SerialCOM3Mode)
{ {
case 1: case 1:
this.TransferSerialCOM3(this.Transfer_1_STD1(this.SystemConfig, DataStore.Line.Line1, this.CurrentWeightData1, this.CurrentProductItem1)); this.TransferSerialCOM3(this.Transfer_1_STD1(this.SystemConfig, DataStore.Line.Line1, this.CurrentWeightData1, this.CurrentProductItem1));
@ -1519,6 +1523,10 @@ namespace ITC81DB_2.Forms
if (this.SystemConfig.IsPrintPerProductEnable == true) if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1)); this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1));
break; break;
case 4:
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData1, DataStore.Line.Line1, this.CurrentProductItem1));
break;
default: default:
break; break;
} }
@ -1556,7 +1564,7 @@ namespace ITC81DB_2.Forms
// 통신 제대로 받으면 ACK // 통신 제대로 받으면 ACK
this.TransferData(string.Format("{0}{1}{2}", CommunicationCommand.RunWeightData, (int)DataStore.ResponseData.ACK, transferCount), CommunicationID.MainBoard); this.TransferData(string.Format("{0}{1}{2}", CommunicationCommand.RunWeightData, (int)DataStore.ResponseData.ACK, transferCount), CommunicationID.MainBoard);
// 통신 CH1 // 통신 COM1
if (this.SystemConfig.SerialCOM1Mode != 0) if (this.SystemConfig.SerialCOM1Mode != 0)
{ {
switch (this.SystemConfig.SerialCOM1Mode) switch (this.SystemConfig.SerialCOM1Mode)
@ -1571,14 +1579,18 @@ namespace ITC81DB_2.Forms
if (this.SystemConfig.IsPrintPerProductEnable == true) if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2)); this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2));
break; break;
case 5:
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM1(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2));
break;
default: default:
break; break;
} }
} }
// 통신 CH2 // 통신 COM3
if (this.SystemConfig.SerialCOM1Mode != 0) if (this.SystemConfig.SerialCOM3Mode != 0)
{ {
switch (this.SystemConfig.SerialCOM1Mode) switch (this.SystemConfig.SerialCOM3Mode)
{ {
case 1: case 1:
this.TransferSerialCOM3(this.Transfer_1_STD1(this.SystemConfig, DataStore.Line.Line2, this.CurrentWeightData2, this.CurrentProductItem2)); this.TransferSerialCOM3(this.Transfer_1_STD1(this.SystemConfig, DataStore.Line.Line2, this.CurrentWeightData2, this.CurrentProductItem2));
@ -1590,6 +1602,10 @@ namespace ITC81DB_2.Forms
if(this.SystemConfig.IsPrintPerProductEnable == true) if(this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2)); this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2));
break; break;
case 5:
if (this.SystemConfig.IsPrintPerProductEnable == true)
this.TransferSerialCOM3(this.Transfer_3_Print(this.CurrentWeightData2, DataStore.Line.Line2, this.CurrentProductItem2));
break;
default: default:
break; break;
} }

View File

@ -144,6 +144,7 @@ namespace ITC81DB_2.Forms
this.InitializeControl(); this.InitializeControl();
this.UpdateDisplay(); this.UpdateDisplay();
this.DisplayPrintButton(this.ParentForm.SystemConfig);
// 알람 표시 // 알람 표시
this.pictureBoxIconAlarm.Visible = false; this.pictureBoxIconAlarm.Visible = false;
@ -223,6 +224,13 @@ namespace ITC81DB_2.Forms
this.MainDisplayXYChart.Clear(); this.MainDisplayXYChart.Clear();
} }
public void DisplayPrintButton(SystemConfigurationItem system)
{
if (system.SerialCOM1Mode >= 3 || system.SerialCOM1Mode <= 5 || system.SerialCOM3Mode >= 3 || system.SerialCOM3Mode <= 5)
this.buttonPrint.Visible = true;
else
this.buttonPrint.Visible = false;
}
private void UpdateDisplay() private void UpdateDisplay()
{ {
// Icon - 데이터 백업 // Icon - 데이터 백업
@ -260,11 +268,6 @@ namespace ITC81DB_2.Forms
this.pictureBoxCOM3Enable.Visible = true; this.pictureBoxCOM3Enable.Visible = true;
this.pictureBoxCOM3Disable.Visible = false; this.pictureBoxCOM3Disable.Visible = false;
} }
if (this.ParentForm.SystemConfig.SerialCOM3Mode == 3 || this.ParentForm.SystemConfig.SerialCOM1Mode == 3)
this.buttonPrint.Visible = true;
else
this.buttonPrint.Visible = false;
} }
private void UpdateDisplayUser(SystemStatus status) private void UpdateDisplayUser(SystemStatus status)
{ {
@ -755,9 +758,9 @@ namespace ITC81DB_2.Forms
{ {
this.ParentForm.SystemConfig.IsPrintPerProductEnable = false; this.ParentForm.SystemConfig.IsPrintPerProductEnable = false;
if (this.ParentForm.SystemConfig.SerialCOM1Mode == 3) if (this.ParentForm.SystemConfig.SerialCOM1Mode != 0)
this.ParentForm.TransferSerialCOM1("\n\n\n\n"); this.ParentForm.TransferSerialCOM1("\n\n\n\n");
else if (this.ParentForm.SystemConfig.SerialCOM3Mode == 3) else if (this.ParentForm.SystemConfig.SerialCOM3Mode != 0)
this.ParentForm.TransferSerialCOM3("\n\n\n\n"); this.ParentForm.TransferSerialCOM3("\n\n\n\n");
} }

View File

@ -13,11 +13,19 @@
2열 기본형 컨베어 계량기 2열 기본형 컨베어 계량기
*/ */
@ Ver 2.1.0 by CJY
- 2020.08.04
- Ver 2.0.1 Modify
- 시리얼 통신 Mode - 'Printer(1Lane)', 'Printer(2Lane)' 추가
네추럴 F&P 요청에 의함(담당자 : 전종찬)
@ Ver 2.0.1 by CJY @ Ver 2.0.1 by CJY
- 2020.07.24 - 2020.07.24
- Ver 2.0.0 Modify - Ver 2.0.0 Modify
- 언어 - 영어 변경 시 엔지니어 설정 버튼 및 화면 영문 전환 안되는 버그 수정 - 언어
- 제목 표기 제대로 안되는 버그 수정 1. 영어 변경 시 엔지니어 설정 버튼 및 화면 영문 전환 안되는 버그 수정
2. 선별기설정 영문->한글로 변경 시 배경화면 한글로 변경 안되는 버그 수정
- 엔지니어 설정 제목 표기 제대로 안되는 버그 수정
@ Ver 2.0.0 by CJY @ Ver 2.0.0 by CJY
- 2020.07.15 - 2020.07.15

Binary file not shown.

Binary file not shown.