레시피, 메인화면 수정

main
Seonjae 2023-03-30 11:02:19 +09:00
parent 7181b90bbc
commit b1ebad8d52
21 changed files with 2957 additions and 2174 deletions

View File

@ -109,12 +109,12 @@ namespace INT_PT002.Controls
}
public void UpdateStartLeakDataDisplay(LeakData datas)
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionChildControl[i].UpdateStartLeakDataDisplay(datas.CollDiffData[i], datas.CollDispData[i], datas.CollJudgment[i]);
}
public void ClearAllData()
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionChildControl[i].ClearAllData();
}

View File

@ -101,11 +101,11 @@ namespace INT_PT002.Controls
this.CollectionLeakCount.Add(this.labelLeakCount10);
this.ListPassCount = new List<int>();
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.ListPassCount.Add(0);
this.ListLeakCount = new List<int>();
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.ListLeakCount.Add(0);
}
@ -120,10 +120,10 @@ namespace INT_PT002.Controls
try
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.ListPassCount[i] = 0;
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.ListLeakCount[i] = 0;
this.smartFile1.StringType.FillBuffer();
@ -134,7 +134,7 @@ namespace INT_PT002.Controls
this.UpdateListBoxDataDisplay(this.smartFile1.StringType.ReadBuffer(i));
}
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionPassCount[i].Text = this.ListPassCount[i].ToString();
this.CollectionLeakCount[i].Text = this.ListLeakCount[i].ToString();
@ -161,7 +161,7 @@ namespace INT_PT002.Controls
// Time
this.listBoxTime.AddItem(sb[1]);
// 1~10 판정데이터
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
temp = sb[i + 4];
@ -356,7 +356,7 @@ namespace INT_PT002.Controls
private void treeViewInspection_AfterSelect(object sender, TreeViewEventArgs e)
{
this.labelPath.Text = e.Node.Text;
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionListBox[i].ClearAll();
this.listBoxTime.ClearAll();
this.LoadFile(this.ParentForm.ParentForm.PathDataInspectionFolder + this.treeViewInspection.SelectedNode.FullPath);
@ -366,14 +366,14 @@ namespace INT_PT002.Controls
{
this.listBoxTime.ScrollUp();
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionListBox[i].ScrollUp();
}
private void buttonDown_Click(object sender, EventArgs e)
{
this.listBoxTime.ScrollDown();
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionListBox[i].ScrollDown();
}
#endregion

View File

@ -88,6 +88,7 @@
this.labelDispStdLevel = new SmartX.SmartLabel();
this.smartLabel34 = new SmartX.SmartLabel();
this.smartLabel35 = new SmartX.SmartLabel();
this.smartTimerMessageShow = new SmartX.SmartTimer();
this.smartGroupBox1.SuspendLayout();
this.smartGroupBox2.SuspendLayout();
this.smartGroupBox5.SuspendLayout();
@ -1452,6 +1453,15 @@
this.smartLabel35.TextVAlign = SmartX.SmartLabel.TextVerAlign.Middle;
this.smartLabel35.Wordwrap = false;
//
// smartTimerMessageShow
//
this.smartTimerMessageShow.CounterMode = SmartX.SmartTimer.CounterModes.Up_Counter;
this.smartTimerMessageShow.Interval = 10;
this.smartTimerMessageShow.IntervalSeries = null;
this.smartTimerMessageShow.TimeCount = ((long)(1000000));
this.smartTimerMessageShow.TimeFormStringSeparator = ":";
this.smartTimerMessageShow.Tick += new System.EventHandler(this.smartTimerMessageShow_Tick);
//
// ControlMenuRecipeSetting
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -1528,5 +1538,6 @@
private SmartX.SmartLabel smartLabel33;
private SmartX.SmartLabel smartLabel35;
private SmartX.SmartLabel smartLabel34;
private SmartX.SmartTimer smartTimerMessageShow;
}
}

View File

@ -17,7 +17,7 @@ namespace INT_PT002.Controls
{
#region Field
private FormMenu m_ParentForm;
private Recipe SelectedRecipe;
private string MessageBoxRange;
#endregion
#region Constructor
@ -42,10 +42,10 @@ namespace INT_PT002.Controls
private void Initialize()
{
this.smartGroupBox1.Text = "Recipe > Setting";
this.SelectedRecipe = new Recipe();
this.MessageBoxRange = "";
}
private void UpdateDisplayControlData(Recipe item)
public void UpdateDisplayControlData(Recipe item)
{
string value = "";
@ -141,40 +141,12 @@ namespace INT_PT002.Controls
if (this.labelSbDiffFilter.Text != value)
this.labelSbDiffFilter.Text = value;
}
public void UpdateDisplayRecipeData(int no)
{
Recipe item = new Recipe();
this.ParentForm.ParentForm.LoadRecipeFile(ref item, no - 1);
this.SelectedRecipe.NUMBER = item.NUMBER;
this.SelectedRecipe.NAME = item.NAME;
this.SelectedRecipe.LOT = item.LOT;
this.SelectedRecipe.DISP_JUDG_STD_LEVEL = item.DISP_JUDG_STD_LEVEL;
this.SelectedRecipe.DISP_JUDG_MIN_LEVEL = item.DISP_JUDG_MIN_LEVEL;
this.SelectedRecipe.DISP_JUDG_EMPTY_LEVEL = item.DISP_JUDG_EMPTY_LEVEL;
this.SelectedRecipe.DISP_HOLD_DELAY_MSEC = item.DISP_HOLD_DELAY_MSEC;
this.SelectedRecipe.DIFF_LR_SECOND = item.DIFF_LR_SECOND;
this.SelectedRecipe.DIFF_LR_TOTAL = item.DIFF_LR_TOTAL;
this.SelectedRecipe.DIFF_LR_MEAN = item.DIFF_LR_MEAN;
this.SelectedRecipe.DIFF_HOLD_DELAY_MSEC = item.DIFF_HOLD_DELAY_MSEC;
this.SelectedRecipe.VACUUM_RELIEF = item.VACUUM_RELIEF;
this.SelectedRecipe.VACUUM_HOLD1 = item.VACUUM_HOLD1;
this.SelectedRecipe.VACUUM_HOLD2 = item.VACUUM_HOLD2;
this.SelectedRecipe.VACUUM_BLOWOFF = item.VACUUM_BLOWOFF;
this.SelectedRecipe.VACUUM_GUAGE_LEVEL = item.VACUUM_GUAGE_LEVEL;
this.UpdateDisplayControlData(this.SelectedRecipe);
}
public void DisplayRefresh()
{
this.ParentForm.ParentForm.CurrentSystemStatus.CurrentDisplay = Define.E_FormStore.FormProduct;
this.ParentForm.ParentForm.SetDisplayMode(Define.E_DisplayMode.Menu);
this.UpdateDisplayRecipeData(this.ParentForm.ParentForm.SystemConfig.RECIPE_NUMBER);
this.UpdateDisplayControlData(this.ParentForm.ParentForm.CurrentRecipe);
this.UpdateDisplayControlData(this.ParentForm.ParentForm.SystemConfig);
}
#endregion
@ -182,29 +154,45 @@ namespace INT_PT002.Controls
#region Event Handler
private void labelNumber_Click(object sender, EventArgs e)
{
string afterValue = "";
afterValue = this.labelNumber.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel17.Text, this.labelNumber.Text, 4, 0, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 1 || myKeypad.IntValue > 1000)
{
this.MessageBoxRange = "1 ~ 1000";
this.labelPressureLevel.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelNumber.Text = "**";
this.ParentForm.ParentForm.TransferRecipeParameter9043(myKeypad.IntValue);
}
}
private void labelPressureLevel_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelPressureLevel.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel15.Text, this.labelPressureLevel.Text, 5, 1, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.doubleValue < 50 || myKeypad.doubleValue > 100)
if (myKeypad.doubleValue > -50 || myKeypad.doubleValue < -100)
{
range = "50 ~ 100";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "-50.0 ~ -100.0";
this.labelPressureLevel.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelPressureLevel.Text = myKeypad.StringValue;
this.SelectedRecipe.VACUUM_GUAGE_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.VACUUM_GUAGE_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits6(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5517_VacuumGaugeStdLevel, value);
@ -214,7 +202,7 @@ namespace INT_PT002.Controls
// 밸브
private void labelVacuumRelief_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelVacuumRelief.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel22.Text, this.labelVacuumRelief.Text, 4, 0, false);
@ -223,16 +211,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelVacuumRelief.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelVacuumRelief.Text = myKeypad.StringValue;
this.SelectedRecipe.VACUUM_RELIEF = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.VACUUM_RELIEF = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5504_VacuumRelief, value);
@ -240,7 +227,7 @@ namespace INT_PT002.Controls
}
private void labelVacuumHold1_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelVacuumHold1.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel24.Text, this.labelVacuumHold1.Text, 4, 0, false);
@ -249,16 +236,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelVacuumHold1.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelVacuumHold1.Text = myKeypad.StringValue;
this.SelectedRecipe.VACUUM_HOLD1 = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.VACUUM_HOLD1 = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5505_VacuumHold1, value);
@ -266,25 +252,24 @@ namespace INT_PT002.Controls
}
private void labelVacuumHold2_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelVacuumHold2.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel26.Text, this.labelVacuumHold2.Text, 4, 0, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > this.SelectedRecipe.VACUUM_HOLD1 - 1)
if (myKeypad.IntValue < 0 || myKeypad.IntValue > this.ParentForm.ParentForm.CurrentRecipe.VACUUM_HOLD1 - 1)
{
range = string.Format("0 ~ {0}", this.SelectedRecipe.VACUUM_HOLD1 - 1);
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = string.Format("0 ~ {0}", this.ParentForm.ParentForm.CurrentRecipe.VACUUM_HOLD1 - 1);
this.labelVacuumHold2.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelVacuumHold2.Text = myKeypad.StringValue;
this.SelectedRecipe.VACUUM_HOLD2 = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.VACUUM_HOLD2 = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5506_VacuumHold2, value);
@ -292,7 +277,7 @@ namespace INT_PT002.Controls
}
private void labelVacuumBlowoff_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelVacuumBlowoff.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel2.Text, this.labelVacuumBlowoff.Text, 4, 0, false);
@ -301,16 +286,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelVacuumBlowoff.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelVacuumBlowoff.Text = myKeypad.StringValue;
this.SelectedRecipe.VACUUM_BLOWOFF = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.VACUUM_BLOWOFF = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5507_VacuumBlowoff, value);
@ -320,25 +304,24 @@ namespace INT_PT002.Controls
// 변위센서
private void labelDispStdLevel_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDispStdLevel.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel9.Text, this.labelDispStdLevel.Text, 5, 2, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 100)
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 100)
{
range = "0.00 ~ 100.00";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 100.00";
this.labelDispStdLevel.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDispStdLevel.Text = myKeypad.StringValue;
this.SelectedRecipe.DISP_JUDG_STD_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DISP_JUDG_STD_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits6(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5509_DispStdLevel, value);
@ -346,25 +329,24 @@ namespace INT_PT002.Controls
}
private void labelDispMinLevel_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDispMinLevel.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel7.Text, this.labelDispMinLevel.Text, 5, 2, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 100)
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 100)
{
range = "0.00 ~ 100.00";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 100.00";
this.labelDispMinLevel.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDispMinLevel.Text = myKeypad.StringValue;
this.SelectedRecipe.DISP_JUDG_MIN_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DISP_JUDG_MIN_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits6(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5510_DispMinLevel, value);
@ -372,25 +354,24 @@ namespace INT_PT002.Controls
}
private void labelDispEmptyLevel_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDispEmptyLevel.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel5.Text, this.labelDispEmptyLevel.Text, 5, 2, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 100)
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 100)
{
range = "0.00 ~ 100.00";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 100.00";
this.labelDispEmptyLevel.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDispEmptyLevel.Text = myKeypad.StringValue;
this.SelectedRecipe.DISP_JUDG_EMPTY_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DISP_JUDG_EMPTY_LEVEL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits6(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5511_DispEmptyLevel, value);
@ -398,7 +379,7 @@ namespace INT_PT002.Controls
}
private void labelDispHoldDelay_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDispHoldDelay.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel3.Text, this.labelDispHoldDelay.Text, 4, 0, false);
@ -407,16 +388,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelDispHoldDelay.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDispHoldDelay.Text = myKeypad.StringValue;
this.SelectedRecipe.DISP_HOLD_DELAY_MSEC = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DISP_HOLD_DELAY_MSEC = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5512_DispHoldDelay, value);
@ -426,7 +406,7 @@ namespace INT_PT002.Controls
// 차압센서
private void labelDiffLrSecond_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDiffLrSecond.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel13.Text, this.labelDiffLrSecond.Text, 7, 2, false);
@ -435,16 +415,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 99999.99)
{
range = "0.00 ~ 99999.99";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 99999.99";
this.labelDiffLrSecond.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDiffLrSecond.Text = myKeypad.StringValue;
this.SelectedRecipe.DIFF_LR_SECOND = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DIFF_LR_SECOND = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits8(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5513_DiffLrSecond, value);
@ -452,7 +431,7 @@ namespace INT_PT002.Controls
}
private void labelDiffLrTotal_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDiffLrTotal.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel11.Text, this.labelDiffLrTotal.Text, 7, 2, false);
@ -461,16 +440,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 99999.99)
{
range = "0.00 ~ 99999.99";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 99999.99";
this.labelDiffLrTotal.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDiffLrTotal.Text = myKeypad.StringValue;
this.SelectedRecipe.DIFF_LR_TOTAL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DIFF_LR_TOTAL = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits8(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5514_DiffLrTotal, value);
@ -478,7 +456,7 @@ namespace INT_PT002.Controls
}
private void labelDiffLrMean_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDiffLrMean.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel8.Text, this.labelDiffLrMean.Text, 7, 2, false);
@ -487,16 +465,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.doubleValue < 0 || myKeypad.doubleValue > 99999.99)
{
range = "0.00 ~ 99999.99";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0.00 ~ 99999.99";
this.labelDiffLrMean.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDiffLrMean.Text = myKeypad.StringValue;
this.SelectedRecipe.DIFF_LR_MEAN = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DIFF_LR_MEAN = myKeypad.StringValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits8(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5515_DiffLrMean, value);
@ -504,7 +481,7 @@ namespace INT_PT002.Controls
}
private void labelDiffHoldDelay_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelDiffHoldDelay.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel4.Text, this.labelDiffHoldDelay.Text, 4, 0, false);
@ -513,16 +490,15 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelDiffHoldDelay.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.labelDiffHoldDelay.Text = myKeypad.StringValue;
this.SelectedRecipe.DIFF_HOLD_DELAY_MSEC = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.SelectedRecipe, this.SelectedRecipe.NUMBER - 1);
this.ParentForm.ParentForm.CurrentRecipe.DIFF_HOLD_DELAY_MSEC = myKeypad.IntValue;
this.ParentForm.ParentForm.SaveRecipeFile(this.ParentForm.ParentForm.CurrentRecipe);
value = Helper.StringBlankFillDigits4(myKeypad.StringValue);
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._5516_DiffHoldDelay, value);
@ -532,7 +508,7 @@ namespace INT_PT002.Controls
// SysteConfiguration
private void labelLcdDataPeriod_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelLcdDataPeriod.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel14.Text, this.labelLcdDataPeriod.Text, 4, 0, false);
@ -541,10 +517,9 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 100 || myKeypad.IntValue > 5000)
{
range = "100 ~ 5000";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "100 ~ 5000";
this.labelLcdDataPeriod.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
@ -558,7 +533,7 @@ namespace INT_PT002.Controls
}
private void labelChattering_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelChattering.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel18.Text, this.labelChattering.Text, 4, 0, false);
@ -567,10 +542,9 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 50 || myKeypad.IntValue > 500)
{
range = "50 ~ 500";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "50 ~ 500";
this.labelChattering.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
@ -584,7 +558,7 @@ namespace INT_PT002.Controls
}
private void labelCutWait_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelCutWait.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel20.Text, this.labelCutWait.Text, 4, 0, false);
@ -593,10 +567,9 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 100 || myKeypad.IntValue > 9999)
{
range = "100 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "100 ~ 9999";
this.labelCutWait.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
@ -610,7 +583,7 @@ namespace INT_PT002.Controls
}
private void labelBuzzer_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelBuzzer.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel23.Text, this.labelBuzzer.Text, 4, 0, false);
@ -619,10 +592,9 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 0 || myKeypad.IntValue > 9999)
{
range = "0 ~ 9999";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "0 ~ 9999";
this.labelBuzzer.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
@ -636,7 +608,7 @@ namespace INT_PT002.Controls
}
private void labelSbDiffFilter_Click(object sender, EventArgs e)
{
string value = "", afterValue = "", range = "";
string value = "", afterValue = "";
afterValue = this.labelSbDiffFilter.Text;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad(this.smartLabel27.Text, this.labelSbDiffFilter.Text, 2, 0, false);
@ -645,10 +617,9 @@ namespace INT_PT002.Controls
{
if (myKeypad.IntValue < 1 || myKeypad.IntValue > 16)
{
range = "1 ~ 16";
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, range);
msg.ShowDialog();
this.MessageBoxRange = "1 ~ 16";
this.labelSbDiffFilter.Text = afterValue;
this.smartTimerMessageShow.Start();
return;
}
@ -660,6 +631,14 @@ namespace INT_PT002.Controls
this.ParentForm.ParentForm.TransferDataStream(CommunicationCommand.Write, CommunicationID.MainBoard, CommunicationAddress._1706_SbDiffFilter, value);
}
}
private void smartTimerMessageShow_Tick(object sender, EventArgs e)
{
this.smartTimerMessageShow.Stop();
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.ParentForm.SystemConfig.LANGUAGE, this.MessageBoxRange);
msg.ShowDialog();
}
#endregion
}
}

View File

@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="smartTimerMessageShow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</metadata>

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,14 @@
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 INT_PT002.Forms;
using INT_PT002.DataStore;
@ -16,6 +18,27 @@ namespace INT_PT002.Controls
{
#region Field
private FormMenu m_ParentForm;
private Color ColorProgressOn;
private Color ColorProgressOff;
private Color ColorResultPass;
private Color ColorResultNG;
private Color ColorResultNone;
private Collection<SmartLabel> CollectionResult;
private Collection<SmartLabel> CollectionDispRData;
private Collection<SmartLabel> CollectionDispMData;
private Collection<SmartLabel> CollectionDispMDataDiff;
private Collection<SmartLabel> CollectionDispSTD;
private Collection<SmartLabel> CollectionDiffMadc;
private Collection<SmartLabel> CollectionDiffSecDiff;
private Collection<SmartLabel> CollectionDiffSecSum;
private Collection<SmartLabel> CollectionDiffMean;
private Collection<SmartLabel> CollectionPressureWork;
private Collection<SmartLabel> CollectionPressureMaster;
#endregion
#region Constructor
@ -39,7 +62,591 @@ namespace INT_PT002.Controls
#region Method
private void Initialize()
{
this.smartGroupBox1.Text = "System > Status";
this.smartGroupBox1.Text = "System > E.Test";
this.ColorProgressOff = Color.Azure;
this.ColorProgressOn = Color.Lime;
this.ColorResultPass = Color.Green;
this.ColorResultNG = Color.Red;
this.ColorResultNone = Color.Black;
this.CollectionResult = new Collection<SmartLabel>();
this.CollectionResult.Add(this.labelResult1);
this.CollectionResult.Add(this.labelResult2);
this.CollectionResult.Add(this.labelResult3);
this.CollectionResult.Add(this.labelResult4);
this.CollectionResult.Add(this.labelResult5);
this.CollectionResult.Add(this.labelResult6);
this.CollectionResult.Add(this.labelResult7);
this.CollectionResult.Add(this.labelResult8);
this.CollectionResult.Add(this.labelResult9);
this.CollectionResult.Add(this.labelResult10);
this.CollectionDispRData = new Collection<SmartLabel>();
this.CollectionDispRData.Add(this.labelDispRData1);
this.CollectionDispRData.Add(this.labelDispRData2);
this.CollectionDispRData.Add(this.labelDispRData3);
this.CollectionDispRData.Add(this.labelDispRData4);
this.CollectionDispRData.Add(this.labelDispRData5);
this.CollectionDispRData.Add(this.labelDispRData6);
this.CollectionDispRData.Add(this.labelDispRData7);
this.CollectionDispRData.Add(this.labelDispRData8);
this.CollectionDispRData.Add(this.labelDispRData9);
this.CollectionDispRData.Add(this.labelDispRData10);
this.CollectionDispMData = new Collection<SmartLabel>();
this.CollectionDispMData.Add(this.labelDispMData1);
this.CollectionDispMData.Add(this.labelDispMData2);
this.CollectionDispMData.Add(this.labelDispMData3);
this.CollectionDispMData.Add(this.labelDispMData4);
this.CollectionDispMData.Add(this.labelDispMData5);
this.CollectionDispMData.Add(this.labelDispMData6);
this.CollectionDispMData.Add(this.labelDispMData7);
this.CollectionDispMData.Add(this.labelDispMData8);
this.CollectionDispMData.Add(this.labelDispMData9);
this.CollectionDispMData.Add(this.labelDispMData10);
this.CollectionDispMDataDiff = new Collection<SmartLabel>();
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff1);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff2);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff3);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff4);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff5);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff6);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff7);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff8);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff9);
this.CollectionDispMDataDiff.Add(this.labelDispMDataDiff10);
this.CollectionDispSTD = new Collection<SmartLabel>();
this.CollectionDispSTD.Add(this.labelDispSTD1);
this.CollectionDispSTD.Add(this.labelDispSTD2);
this.CollectionDispSTD.Add(this.labelDispSTD3);
this.CollectionDispSTD.Add(this.labelDispSTD4);
this.CollectionDispSTD.Add(this.labelDispSTD5);
this.CollectionDispSTD.Add(this.labelDispSTD6);
this.CollectionDispSTD.Add(this.labelDispSTD7);
this.CollectionDispSTD.Add(this.labelDispSTD8);
this.CollectionDispSTD.Add(this.labelDispSTD9);
this.CollectionDispSTD.Add(this.labelDispSTD10);
this.CollectionDiffMadc = new Collection<SmartLabel>();
this.CollectionDiffMadc.Add(this.labelDiffMadc1);
this.CollectionDiffMadc.Add(this.labelDiffMadc2);
this.CollectionDiffMadc.Add(this.labelDiffMadc3);
this.CollectionDiffMadc.Add(this.labelDiffMadc4);
this.CollectionDiffMadc.Add(this.labelDiffMadc5);
this.CollectionDiffMadc.Add(this.labelDiffMadc6);
this.CollectionDiffMadc.Add(this.labelDiffMadc7);
this.CollectionDiffMadc.Add(this.labelDiffMadc8);
this.CollectionDiffMadc.Add(this.labelDiffMadc9);
this.CollectionDiffMadc.Add(this.labelDiffMadc10);
this.CollectionDiffSecDiff = new Collection<SmartLabel>();
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff1);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff2);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff3);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff4);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff5);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff6);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff7);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff8);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff9);
this.CollectionDiffSecDiff.Add(this.labelDiffSecDiff10);
this.CollectionDiffSecSum = new Collection<SmartLabel>();
this.CollectionDiffSecSum.Add(this.labelDiffSecSum1);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum2);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum3);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum4);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum5);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum6);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum7);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum8);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum9);
this.CollectionDiffSecSum.Add(this.labelDiffSecSum10);
this.CollectionDiffMean = new Collection<SmartLabel>();
this.CollectionDiffMean.Add(this.labelDiffMean1);
this.CollectionDiffMean.Add(this.labelDiffMean2);
this.CollectionDiffMean.Add(this.labelDiffMean3);
this.CollectionDiffMean.Add(this.labelDiffMean4);
this.CollectionDiffMean.Add(this.labelDiffMean5);
this.CollectionDiffMean.Add(this.labelDiffMean6);
this.CollectionDiffMean.Add(this.labelDiffMean7);
this.CollectionDiffMean.Add(this.labelDiffMean8);
this.CollectionDiffMean.Add(this.labelDiffMean9);
this.CollectionDiffMean.Add(this.labelDiffMean10);
this.CollectionPressureWork = new Collection<SmartLabel>();
this.CollectionPressureWork.Add(this.labelPressureWork1);
this.CollectionPressureWork.Add(this.labelPressureWork2);
this.CollectionPressureWork.Add(this.labelPressureWork3);
this.CollectionPressureWork.Add(this.labelPressureWork4);
this.CollectionPressureWork.Add(this.labelPressureWork5);
this.CollectionPressureWork.Add(this.labelPressureWork6);
this.CollectionPressureWork.Add(this.labelPressureWork7);
this.CollectionPressureWork.Add(this.labelPressureWork8);
this.CollectionPressureWork.Add(this.labelPressureWork9);
this.CollectionPressureWork.Add(this.labelPressureWork10);
this.CollectionPressureMaster = new Collection<SmartLabel>();
this.CollectionPressureMaster.Add(this.labelPressureMaster1);
this.CollectionPressureMaster.Add(this.labelPressureMaster2);
this.CollectionPressureMaster.Add(this.labelPressureMaster3);
this.CollectionPressureMaster.Add(this.labelPressureMaster4);
this.CollectionPressureMaster.Add(this.labelPressureMaster5);
this.CollectionPressureMaster.Add(this.labelPressureMaster6);
this.CollectionPressureMaster.Add(this.labelPressureMaster7);
this.CollectionPressureMaster.Add(this.labelPressureMaster8);
this.CollectionPressureMaster.Add(this.labelPressureMaster9);
this.CollectionPressureMaster.Add(this.labelPressureMaster10);
}
private void InitializeData()
{
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionResult[i].Text = "-";
this.CollectionResult[i].TextColor = this.ColorResultNone;
this.CollectionResult[i].Font = new Font("New Gulim", 20, FontStyle.Bold);
this.CollectionDispRData[i].Text = "0.00";
this.CollectionDispMData[i].Text = "0.00";
this.CollectionDispMDataDiff[i].Text = "0.00";
this.CollectionDispSTD[i].Text = "0.00";
this.CollectionDiffMadc[i].Text = "0.00";
this.CollectionDiffSecDiff[i].Text = "0.00";
this.CollectionDiffSecSum[i].Text = "0.00";
this.CollectionDiffMean[i].Text = "0.00";
this.CollectionPressureWork[i].Text = "0.0";
this.CollectionPressureMaster[i].Text = "0.0";
}
}
private void GetJudgmentResult(Define.E_JudgmentStatus judg, SmartLabel label2)
{
string value = "";
switch (judg)
{
case Define.E_JudgmentStatus.None:
value = "-";
label2.TextColor = this.ColorResultNone;
label2.Font = new Font("New Gulim", 20, FontStyle.Bold);
break;
case Define.E_JudgmentStatus.Pass:
value = "Pass";
label2.TextColor = this.ColorResultPass;
label2.Font = new Font("New Gulim", 20, FontStyle.Bold);
break;
case Define.E_JudgmentStatus.Ng:
value = "Leak";
label2.TextColor = this.ColorResultNG;
label2.Font = new Font("New Gulim", 20, FontStyle.Bold);
break;
case Define.E_JudgmentStatus.Error:
value = "Empty";
label2.TextColor = this.ColorResultNone;
label2.Font = new Font("New Gulim", 20, FontStyle.Bold);
break;
default:
break;
}
if (label2.Text != value)
label2.Text = value;
}
public void UpdateProcessStatusDisplay(Define.E_ProcessStatus status)
{
switch (status)
{
case Define.E_ProcessStatus._0_None:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._1_Initial:
this.labelProgress0.BackGroundColor = this.ColorProgressOn;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
this.timerOn.Stop();
this.timerOff.Stop();
if (this.CollectionResult[0].Text == "검사 중..")
{
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionResult[i].Visible = true;
this.CollectionResult[i].Text = "-";
this.CollectionResult[i].TextColor = this.ColorResultNone;
this.CollectionResult[i].Font = new Font("New Gulim", 48, FontStyle.Bold);
}
}
break;
case Define.E_ProcessStatus._2_ProductEntry:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOn;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
// Label Initialize
//this.InitializeLabel();
break;
case Define.E_ProcessStatus._3_ChamberConbined:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOn;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._4_VacuumStart:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOn;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._5_VacuumHold:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOn;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._6_Judgment:
break;
case Define.E_ProcessStatus._7_VacuumBreak:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOn;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._8_ChamberSeparation:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOn;
this.labelProgress8.BackGroundColor = this.ColorProgressOff;
break;
case Define.E_ProcessStatus._9_ProductRelease:
this.labelProgress0.BackGroundColor = this.ColorProgressOff;
this.labelProgress1.BackGroundColor = this.ColorProgressOff;
this.labelProgress2.BackGroundColor = this.ColorProgressOff;
this.labelProgress3.BackGroundColor = this.ColorProgressOff;
this.labelProgress4.BackGroundColor = this.ColorProgressOff;
this.labelProgress6.BackGroundColor = this.ColorProgressOff;
this.labelProgress7.BackGroundColor = this.ColorProgressOff;
this.labelProgress8.BackGroundColor = this.ColorProgressOn;
break;
default:
break;
}
}
private void UpdateDisplayDotGraphDiff(SmartDraw draw, DiffData diff)
{
int iValue = 0;
double dValue = 0.0;
// 값 표시 범위
// 15.000 ~ -2.000 (17.000 ~ 0)
// 그래프 영역 높이 102
// 17000 / 102 = 166.666666~
//dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 166.66666;
if (dValue > 110)
dValue = 110;
if (dValue < 1)
dValue = 1;
iValue = int.Parse(string.Format("{0:f0}", dValue));
draw.Chart.PutData(iValue);
}
private void UpdateDisplayDotGraphDisp(SmartDraw draw, DispData disp)
{
int iValue = 0;
double dValue = 0.0;
// 값 표시 범위
// 15.000 ~ -2.000 (17.000 ~ 0)
// 그래프 영역 높이 102
// 17000 / 102 = 166.666666~
//dValue = (int.Parse(data.CurrentValueSign + data.CurrentValue) + 2000) / 166.66666;
if (dValue > 110)
dValue = 110;
if (dValue < 1)
dValue = 1;
iValue = int.Parse(string.Format("{0:f0}", dValue));
draw.Chart.PutData(iValue);
}
public void UpdateEquipmentStatusDisplay(Define.E_EquipmentStatus status)
{
if (status == Define.E_EquipmentStatus.Start)
{
#region Start
//this.labelStart.Visible = true;
//this.labelStop.Visible = false;
#endregion
}
else
{
#region Stop
//this.labelStart.Visible = false;
//this.labelStop.Visible = true;
#endregion
}
}
public void UpdateDisplayDiffData(Collection<DiffData> datas)
{
string value = "";
bool bValue = false;
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
value = datas[i].MAdc;
if (this.CollectionDiffMadc[i].Text != value)
this.CollectionDiffMadc[i].Text = value;
value = datas[i].SecBufDiff;
if (this.CollectionDiffSecDiff[i].Text != value)
this.CollectionDiffSecDiff[i].Text = value;
value = datas[i].SecBufSum;
if (this.CollectionDiffSecSum[i].Text != value)
this.CollectionDiffSecSum[i].Text = value;
value = datas[i].DiffMean;
if (this.CollectionDiffMean[i].Text != value)
this.CollectionDiffMean[i].Text = value;
}
}
public void UpdateDisplayDispData(Collection<DispData> datas)
{
string value = "";
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
value = datas[i].RData;
if (this.CollectionDispRData[i].Text != value)
this.CollectionDispRData[i].Text = value;
value = datas[i].MData;
if (this.CollectionDispMData[i].Text != value)
this.CollectionDispMData[i].Text = value;
value = datas[i].MDataDiff;
if (this.CollectionDispMDataDiff[i].Text != value)
this.CollectionDispMDataDiff[i].Text = value;
value = datas[i].STD;
if (this.CollectionDispSTD[i].Text != value)
this.CollectionDispSTD[i].Text = value;
}
}
public void UpdateDisplayPresData(Collection<PressureData> datas)
{
string value = "";
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
value = datas[i].WorkingChamber;
if (this.CollectionPressureWork[i].Text != value)
this.CollectionPressureWork[i].Text = value;
value = datas[i].MasterChamber;
if (this.CollectionPressureMaster[i].Text != value)
this.CollectionPressureMaster[i].Text = value;
}
}
public void UpdateDisplayAlarmView(AlarmList alarm)
{
//if (alarm.IsServoEmergencyStop == true)
// this.labelAlarm.Text = "a1_Servo emergency stop";
//if (alarm.IsServo1Alarm == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a2_Servo1";
//}
//if (alarm.IsServo2Alarm == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a3_Servo2";
//}
//if (alarm.IsServoTorque1AlarmTorque == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a4_Servo1 Torque";
//}
//if (alarm.IsServoTorque2AlarmTorque == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a5_Servo2 Torque";
//}
//if (alarm.IsPressureError == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a6_Pressure";
//}
//if (alarm.CollectionIsSensorBoardError[0] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a7_Sensor board 1";
//}
//if (alarm.CollectionIsSensorBoardError[1] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a8_Sensor board 2";
//}
//if (alarm.CollectionIsSensorBoardError[2] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a9_Sensor board 3";
//}
//if (alarm.CollectionIsSensorBoardError[3] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a10_Sensor board 4";
//}
//if (alarm.CollectionIsSensorBoardError[4] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a11_Sensor board 5";
//}
//if (alarm.CollectionIsSensorBoardError[5] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a12_Sensor board 6";
//}
//if (alarm.CollectionIsSensorBoardError[6] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a13_Sensor board 7";
//}
//if (alarm.CollectionIsSensorBoardError[7] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a14_Sensor board 8";
//}
//if (alarm.CollectionIsSensorBoardError[8] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a15_Sensor board 9";
//}
//if (alarm.CollectionIsSensorBoardError[9] == true)
//{
// if (this.labelAlarm.Text != "")
// this.labelAlarm.Text += " ";
// this.labelAlarm.Text += "a16_Sensor board 10";
//}
}
public void UpdateDisplayJudgmentData(LeakData datas)
{
this.timerOn.Stop();
this.timerOff.Stop();
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = true;
this.UpdateDisplayJudgmentData1(datas);
this.UpdateDisplayJudgmentData2(datas);
this.UpdateDisplayJudgmentData3(datas);
this.UpdateDisplayJudgmentData4(datas);
this.UpdateDisplayJudgmentData5(datas);
this.UpdateDisplayJudgmentData6(datas);
this.UpdateDisplayJudgmentData7(datas);
this.UpdateDisplayJudgmentData8(datas);
this.UpdateDisplayJudgmentData9(datas);
this.UpdateDisplayJudgmentData10(datas);
}
private void UpdateDisplayJudgmentData1(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[0], this.labelResult1);
}
private void UpdateDisplayJudgmentData2(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[1], this.labelResult2);
}
private void UpdateDisplayJudgmentData3(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[2], this.labelResult3);
}
private void UpdateDisplayJudgmentData4(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[3], this.labelResult4);
}
private void UpdateDisplayJudgmentData5(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[4], this.labelResult5);
}
private void UpdateDisplayJudgmentData6(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[5], this.labelResult6);
}
private void UpdateDisplayJudgmentData7(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[6], this.labelResult7);
}
private void UpdateDisplayJudgmentData8(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[7], this.labelResult8);
}
private void UpdateDisplayJudgmentData9(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[8], this.labelResult9);
}
private void UpdateDisplayJudgmentData10(LeakData data)
{
this.GetJudgmentResult(data.CollJudgment[9], this.labelResult10);
}
public void DisplayRefresh()
@ -54,6 +661,25 @@ namespace INT_PT002.Controls
{
this.ParentForm.ParentForm.TransferData(CommunicationCommand.CutInpupt, CommunicationID.MainBoard);
}
private void timerOn_Tick(object sender, EventArgs e)
{
this.timerOn.Stop();
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = false;
this.timerOff.Start();
}
private void timerOff_Tick(object sender, EventArgs e)
{
this.timerOff.Stop();
for (int i = 0; i < this.ParentForm.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = true;
this.timerOn.Start();
}
#endregion
}
}

View File

@ -117,6 +117,12 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="timerOn.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="timerOff.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>138, 17</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</metadata>

View File

@ -193,7 +193,7 @@ namespace INT_PT002.Controls
this.ParentForm.ParentForm.SystemConfig.LEVEL1_NAME = this.textBoxLevel1.Text;
this.groupBoxLevel1.Text = this.textBoxLevel1.Text;
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.Child_User_UserEditor.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.KeyboardClose();
}
else if (e.KeyChar == 27)
@ -218,7 +218,7 @@ namespace INT_PT002.Controls
this.ParentForm.ParentForm.SystemConfig.LEVEL2_NAME = this.textBoxLevel2.Text;
this.groupBoxLevel2.Text = this.textBoxLevel2.Text;
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.Child_User_UserEditor.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.KeyboardClose();
}
else if (e.KeyChar == 27)
@ -243,7 +243,7 @@ namespace INT_PT002.Controls
this.ParentForm.ParentForm.SystemConfig.LEVEL3_NAME = this.textBoxLevel3.Text;
this.groupBoxLevel3.Text = this.textBoxLevel3.Text;
this.ParentForm.ParentForm.SaveSystemConfigurationFile(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.Child_User_UserEditor.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.ParentForm.ParentForm.ChildFormMenu.UpdateLevelNameDisplay(this.ParentForm.ParentForm.SystemConfig);
this.KeyboardClose();
}
else if (e.KeyChar == 27)

View File

@ -144,7 +144,7 @@ namespace INT_PT002.DataStore
this.VACUUM_HOLD1 = 40;
this.VACUUM_HOLD2 = 1;
this.VACUUM_BLOWOFF = 5;
this.VACUUM_GUAGE_LEVEL = "88.0";
this.VACUUM_GUAGE_LEVEL = "-88.0";
}
#endregion
}

View File

@ -38,6 +38,7 @@
this.pictureBoxAsterisk = new System.Windows.Forms.PictureBox();
this.pictureBoxQuestion = new System.Windows.Forms.PictureBox();
this.timerAutoClose = new System.Windows.Forms.Timer();
this.smartForm1 = new SmartX.SmartForm();
this.smartGroupBox1.SuspendLayout();
this.SuspendLayout();
//
@ -82,7 +83,7 @@
this.labelMessage1.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.labelMessage1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
this.labelMessage1.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.labelMessage1.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage1.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage1.LineSpacing = 0F;
this.labelMessage1.Location = new System.Drawing.Point(76, 61);
this.labelMessage1.Name = "labelMessage1";
@ -105,7 +106,7 @@
this.labelMessage2.BackGroundColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
this.labelMessage2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(42)))), ((int)(((byte)(82)))));
this.labelMessage2.BorderStyle = SmartX.SmartLabel.BorderStyles.None;
this.labelMessage2.Font = new System.Drawing.Font("새굴림", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage2.Font = new System.Drawing.Font("New Gulim", 10F, System.Drawing.FontStyle.Regular);
this.labelMessage2.LineSpacing = 0F;
this.labelMessage2.Location = new System.Drawing.Point(76, 87);
this.labelMessage2.Name = "labelMessage2";
@ -180,6 +181,24 @@
this.timerAutoClose.Interval = 1000;
this.timerAutoClose.Tick += new System.EventHandler(this.timerAutoClose_Tick);
//
// smartForm1
//
this.smartForm1.BackGroundFillStyle = SmartXUIBase.SmartUIControlFormBase.BackGroundFillStyles.GradationColor1;
this.smartForm1.BackImage = ((System.Drawing.Image)(resources.GetObject("smartForm1.BackImage")));
this.smartForm1.CenterLocation = false;
this.smartForm1.GradationColorBottom = System.Drawing.Color.Gray;
this.smartForm1.GradationColorTop = System.Drawing.Color.White;
this.smartForm1.LCDDirection = SmartXUIBase.SmartUIControlFormBase.LCDDIRECTIONS.HORIZONTAL;
this.smartForm1.LCDSize = SmartXUIBase.SmartUIControlFormBase.LCDRESOLUTION.CUSTOMIZING;
this.smartForm1.Location = new System.Drawing.Point(0, 0);
this.smartForm1.MainForm = null;
this.smartForm1.Mode = SmartXUIBase.SmartUIControlFormBase.RUNMODE.RUNTIME;
this.smartForm1.MouseCursor = SmartX.SmartForm.OnOff.OFF;
this.smartForm1.Name = "smartForm1";
this.smartForm1.Size = new System.Drawing.Size(450, 155);
this.smartForm1.SpecialFunctionClickPointSize = 100;
this.smartForm1.UseMainMenu = false;
//
// DialogFormMessage
//
this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
@ -189,6 +208,7 @@
this.ClientSize = new System.Drawing.Size(450, 155);
this.ControlBox = false;
this.Controls.Add(this.smartGroupBox1);
this.Controls.Add(this.smartForm1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Name = "DialogFormMessage";
this.Text = "DialogFormYesNo";
@ -208,5 +228,6 @@
private System.Windows.Forms.PictureBox pictureBoxAsterisk;
private System.Windows.Forms.PictureBox pictureBoxQuestion;
private System.Windows.Forms.Timer timerAutoClose;
private SmartX.SmartForm smartForm1;
}
}

View File

@ -419,6 +419,26 @@
<metadata name="timerAutoClose.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="smartForm1.BackImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAcIAAACbCAYAAADx7pvOAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAMnSURBVHhe7dXtWRRmGITR6b+cmJhoNDGiKIqiIPjBssuy
QBtvnj7m/DhzTQd3fjvaLABoJYQAVBNCAKrlyQwAtBJCAKrlyZs5AFAqv88AQCshBKCaEAJQLX+83SwA
aCWEAFQTQgCq5ekMALTK0+M5AFBKCAGolj+PbxYAtBJCAKoJIQDV8te7mwUArYQQgGpCCEC1PJsBgFZ5
9n4OAJQSQgCq5fkMALQSQgCq5fnJHAAolb9nAKCVEAJQbUK4nQMAnfJiBgBa5cWHOQBQSggBqJaXMwDQ
SggBqJaXH+cAQKn8MwMArYQQgGpCCEC1/Hu6XQDQSggBqJZXMwDQSggBqDYh3M0BgE7579NuAUArIQSg
mhACUC2vZwCgVV5/ngMApYQQgGo5mgGAVkIIQLUcnc0BgFJ5MwMArYQQgGpCCEC1vP2yWwDQakJ4OwcA
OgkhANVyPAMArYQQgGo5/joHAErl3QwAtBJCAKoJIQDV8v78dgFAKyEEoJoQAlAtJzMA0ConF3MAoJQQ
AlAtHy72CwBaCSEA1YQQgGr5+G2/AKCVEAJQTQgBqJbTGQBoldPLOQBQKp9mAKCVEAJQTQgBqJbPV/sF
AK2EEIBqQghAtZxd3S0AaCWEAFTL2fc5AFAqX2YAoJUQAlBNCAGolq8/7hYAtBJCAKoJIQDVcj4DAK1y
/nMOAJQSQgCq5WIGAFoJIQDVJoSHOQDQKd9+HRYAtBJCAKoJIQDVcjkDAK1yeT0HAEoJIQDVcjUDAK2E
EIBqudrMAYBS+T4DAK2EEIBqQghAtfy4OSwAaDUhvJ8DAJ2EEIBq+TkDAK2EEIBq+bW9XwDQSggBqCaE
AFTL9QwAtMr1bg4AlBJCAKplMwMArYQQgGrZ3M4BgFK5mQGAVhPChzkA0EkIAaiW7QwAtMp2PwcASgkh
ANWymwGAVkIIQLXs7uYAQKnczgBAKyEEoJoQAlAt+8PDAoBWQghANSEEoFruDo8LAFoJIQDVcnc/BwBK
5TADAK2EEIBqQghAtdw/PC4AaCWEAFQTQgCq5WEGAFrl4XEOAJQSQgCq5XEGAFoJIQDFHtf/7AkH4TYt
pQwAAAAASUVORK5CYII=
</value>
</data>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</metadata>

View File

@ -20,8 +20,6 @@ namespace INT_PT002.Forms
public partial class FormMain : Form
{
#region Field
public static int Lane = 10;
public bool IsSmartFileIOOpen;
public bool IsCommunicationLogOpen;
private int CommunicationCheckCount;
@ -444,7 +442,7 @@ namespace INT_PT002.Forms
UserManager.UserMgr_user_list_t userList = (UserManager.UserMgr_user_list_t)data;
if (this.CurrentSystemStatus.CurrentDisplay == Define.E_FormStore.FormUserEditor)
this.ChildFormMenu.Child_User_UserEditor.CallBackGetUserData(userList);
this.ChildFormMenu.CallBackGetUserData(userList);
}
catch
{
@ -470,7 +468,7 @@ namespace INT_PT002.Forms
UserManager.UserMgr_user_lock_t user = (UserManager.UserMgr_user_lock_t)data;
if (this.CurrentSystemStatus.CurrentDisplay == Define.E_FormStore.FormUserEditor)
this.ChildFormMenu.Child_User_UserEditor.CallBackUserListLockDataEvent(user);
this.ChildFormMenu.CallBackUserListLockDataEvent(user);
}
catch
{
@ -491,7 +489,7 @@ namespace INT_PT002.Forms
try
{
UserManager.UserMgr_user_del_t user = (UserManager.UserMgr_user_del_t)data;
this.ChildFormMenu.Child_User_UserEditor.CallBackUserListDeleteDataEvent(user);
this.ChildFormMenu.CallBackUserListDeleteDataEvent(user);
}
catch
{
@ -503,7 +501,7 @@ namespace INT_PT002.Forms
{
UserManager.UserMgr_user_modify_t user = (UserManager.UserMgr_user_modify_t)data;
this.ChildFormMenu.Child_User_UserEditor.CallBackUserModifyUserData(user);
this.ChildFormMenu.CallBackUserModifyUserData(user);
}
catch
{
@ -527,7 +525,7 @@ namespace INT_PT002.Forms
{
UserManager.UserMgr_user_info_t user = (UserManager.UserMgr_user_info_t)data;
this.ChildFormMenu.Child_User_UserEditor.CallBackUserListNewData(user);
this.ChildFormMenu.CallBackUserListNewData(user);
}
catch (Exception e)
{
@ -755,7 +753,7 @@ namespace INT_PT002.Forms
}
this.smartFileIO.StructType.WriteBufferSave();
}
public void SaveRecipeFile(Recipe item, int index)
public void SaveRecipeFile(Recipe item)
{
bool fileCheck = false;
string fullFilePath = "";
@ -793,7 +791,7 @@ namespace INT_PT002.Forms
structItem.VACUUM_BLOWOFF = item.VACUUM_BLOWOFF;
structItem.VACUUM_GUAGE_LEVEL = item.VACUUM_GUAGE_LEVEL;
this.smartFileIO.StructType.Write(structItem, index, SmartFile.WriteMode.Overwrite);
this.smartFileIO.StructType.Write(structItem, item.NUMBER - 1, SmartFile.WriteMode.Overwrite);
this.smartFileIO.Close();
}
public void LoadRecipeFile(ref Recipe item, int index)
@ -1304,8 +1302,7 @@ namespace INT_PT002.Forms
#region Value Assign
this.SystemConfig.MAINBOARD_VERSION = receiveData;
#endregion
if (this.ChildFormMenu.Child_System_Information != null)
this.ChildFormMenu.Child_System_Information.UpdateMainBoardVersionDisplay(this.SystemConfig.MAINBOARD_VERSION);
this.ChildFormMenu.UpdateMainBoardVersionDisplay(this.SystemConfig.MAINBOARD_VERSION);
break;
case "2001":
#region Value Assign
@ -1318,7 +1315,8 @@ namespace INT_PT002.Forms
this.LoadRecipeFile(ref this.CurrentRecipe, this.SystemConfig.RECIPE_NUMBER - 1);
this.ChildFormMenu.UpdateDisplayRecipeData(this.SystemConfig.RECIPE_NUMBER);
this.ChildFormMainDisplay.UpdateDisplayRecipeData(this.CurrentRecipe);
this.ChildFormMenu.UpdateDisplayRecipeData(this.CurrentRecipe);
break;
default:
break;
@ -1568,7 +1566,7 @@ namespace INT_PT002.Forms
if (this.CurrentSystemStatus.CurrentDisplay == Define.E_FormStore.FormMainDisplay)
this.ChildFormMainDisplay.UpdateDisplayAlarmView(this.CurrentAlarmList);
else if (this.CurrentSystemStatus.CurrentDisplay == Define.E_FormStore.FormIOTest)
this.ChildFormMenu.Child_Manual_IoTest.UpdateDisplayAlarmView(this.CurrentAlarmList);
this.ChildFormMenu.UpdateDisplayAlarmView(this.CurrentAlarmList);
break;
default:

File diff suppressed because it is too large Load Diff

View File

@ -219,7 +219,7 @@ namespace INT_PT002.Forms
}
private void InitializeData()
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionResult[i].Text = "-";
this.CollectionResult[i].TextColor = this.ColorResultNone;
@ -422,7 +422,7 @@ namespace INT_PT002.Forms
if (this.CollectionResult[0].Text == "검사 중..")
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionResult[i].Visible = true;
this.CollectionResult[i].Text = "-";
@ -748,7 +748,7 @@ namespace INT_PT002.Forms
this.timerOn.Enabled = false;
this.timerOff.Enabled = false;
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = true;
this.UpdateDisplayJudgmentData1(datas);
@ -841,7 +841,7 @@ namespace INT_PT002.Forms
this.InitializeData();
this.ChildControl.ClearAllData();
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionResult[i].Font = new Font("New Gulim", 20, FontStyle.Bold);
this.CollectionResult[i].Text = "검사 중..";
@ -910,7 +910,7 @@ namespace INT_PT002.Forms
{
this.timerOn.Enabled = false;
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = false;
this.timerOff.Enabled = true;
@ -919,7 +919,7 @@ namespace INT_PT002.Forms
{
this.timerOff.Enabled = false;
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionResult[i].Visible = true;
this.timerOn.Enabled = true;

View File

@ -369,9 +369,6 @@
cEEPAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="smartDraw_ChartChannelPenStyle1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="timerOff.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>264, 17</value>
</metadata>

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,8 @@ namespace INT_PT002.Forms
#region Field
private int FlagIgnoreCNT;
private string MessageBoxRange;
private Color ColorProgressOn;
private Color ColorProgressOff;
private Color ColorResultPass;
@ -32,8 +34,8 @@ namespace INT_PT002.Forms
private Collection<SmartLabel> CollectionLabelResult;
private Collection<SmartLabel> CollectionLabelPressure;
private Collection<SmartLabel> CollectionLabelSensorStatus;
private Collection<SmartProgressBar> CollectionProgressBarLeakRatePerSec;
private Collection<SmartLabel> CollectionLabelLeakRatePerSec;
private Collection<SmartLabel> CollectionLabelSbAlarm;
private FormMain m_ParentForm;
@ -64,6 +66,7 @@ namespace INT_PT002.Forms
private void DefaultSetting()
{
this.FlagIgnoreCNT = 0;
this.MessageBoxRange = "";
this.ColorProgressOff = Color.FromArgb(100, 101, 103);
this.ColorProgressOn = Color.FromArgb(0, 118, 222);
@ -74,7 +77,6 @@ namespace INT_PT002.Forms
this.ColorSensorError = Color.FromArgb(254, 70, 70);
this.CollectionLabelResult = new Collection<SmartLabel>();
this.CollectionLabelResult.Clear();
this.CollectionLabelResult.Add(this.labelResult1);
this.CollectionLabelResult.Add(this.labelResult2);
this.CollectionLabelResult.Add(this.labelResult3);
@ -87,7 +89,6 @@ namespace INT_PT002.Forms
this.CollectionLabelResult.Add(this.labelResult10);
this.CollectionLabelPressure = new Collection<SmartLabel>();
this.CollectionLabelPressure.Clear();
this.CollectionLabelPressure.Add(this.labelPressure1);
this.CollectionLabelPressure.Add(this.labelPressure2);
this.CollectionLabelPressure.Add(this.labelPressure3);
@ -99,45 +100,47 @@ namespace INT_PT002.Forms
this.CollectionLabelPressure.Add(this.labelPressure9);
this.CollectionLabelPressure.Add(this.labelPressure10);
this.CollectionLabelSensorStatus = new Collection<SmartLabel>();
this.CollectionLabelSensorStatus.Clear();
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus1);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus2);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus3);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus4);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus5);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus6);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus7);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus8);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus9);
this.CollectionLabelSensorStatus.Add(this.labelSensorStatus10);
this.CollectionLabelLeakRatePerSec = new Collection<SmartLabel>();
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec1);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec2);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec3);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec4);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec5);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec6);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec7);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec8);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec9);
this.CollectionLabelLeakRatePerSec.Add(this.labelLrSec10);
this.CollectionProgressBarLeakRatePerSec = new Collection<SmartProgressBar>();
this.CollectionProgressBarLeakRatePerSec.Clear();
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec1);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec2);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec3);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec4);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec5);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec6);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec7);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec8);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec9);
this.CollectionProgressBarLeakRatePerSec.Add(this.progressBarLeakRatePerSec10);
this.CollectionLabelSbAlarm = new Collection<SmartLabel>();
this.CollectionLabelSbAlarm.Clear();
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm1);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm2);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm3);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm4);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm5);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm6);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm7);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm8);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm9);
this.CollectionLabelSbAlarm.Add(this.labelSbAlarm10);
this.ChildControl = new ControlMainDisplay(this.ParentForm);
this.Controls.Add(this.ChildControl);
this.ChildControl.Location = new Point(0, 118);
this.ChildControl.BringToFront();
this.ChildControl.Visible = false;
this.buttonRecipeNo.ButtonText = this.ParentForm.SystemConfig.RECIPE_NUMBER.ToString();
}
private void InitializeData()
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.CollectionLabelResult[i].Visible = false;
this.CollectionLabelPressure[i].Text = "0";
this.CollectionProgressBarLeakRatePerSec[i].Value = 0;
this.CollectionLabelLeakRatePerSec[i].Text = "0";
this.CollectionLabelSbAlarm[i].Visible = false;
}
}
@ -338,6 +341,8 @@ namespace INT_PT002.Forms
this.labelProgress6_1.BackGroundColor = this.ColorProgressOff;
this.labelProgress7_1.BackGroundColor = this.ColorProgressOff;
this.labelProgress8_1.BackGroundColor = this.ColorProgressOff;
this.buttonInspection.Enabled = true;
break;
case Define.E_ProcessStatus._2_ProductEntry:
this.labelProgress0.RoundRectFillColor = this.ColorProgressOff;
@ -360,6 +365,7 @@ namespace INT_PT002.Forms
this.labelProgress7_1.BackGroundColor = this.ColorProgressOff;
this.labelProgress8_1.BackGroundColor = this.ColorProgressOff;
this.buttonInspection.Enabled = false;
// Label Initialize
//this.InitializeLabel();
break;
@ -556,88 +562,36 @@ namespace INT_PT002.Forms
{
string value = "";
// ServoEmergencyStop
if (alarm.IsServoEmergencyStop == true)
value = "a1_Servo emergency stop ";
// Servo1Alarm
if (alarm.IsServo1Alarm == true)
value += "a2_Servo1 ";
// Servo2Alarm
if (alarm.IsServo2Alarm == true)
value += "a3_Servo2 ";
// ServoTorque1AlarmTorque
if (alarm.IsServoTorque1AlarmTorque == true)
value += "a4_Servo1 Torque ";
// ServoTorque2AlarmTorque
if (alarm.IsServoTorque2AlarmTorque == true)
value += "a5_Servo2 Torque ";
// PressureError
if (alarm.IsPressureError == true)
value += "a6_Pressure ";
if (alarm.CollectionIsSensorBoardError[0] == true)
{
//this.labelAlarm.Text += "a7_Sensor board 1 ";
this.CollectionLabelSensorStatus[0].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[0].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[1] == true)
{
//this.labelAlarm.Text += "a8_Sensor board 2 ";
this.CollectionLabelSensorStatus[1].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[1].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[2] == true)
{
//this.labelAlarm.Text += "a9_Sensor board 3 ";
this.CollectionLabelSensorStatus[2].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[2].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[3] == true)
{
//this.labelAlarm.Text += "a10_Sensor board 4 ";
this.CollectionLabelSensorStatus[3].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[3].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[4] == true)
{
//this.labelAlarm.Text += "a11_Sensor board 5 ";
this.CollectionLabelSensorStatus[4].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[4].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[5] == true)
{
//this.labelAlarm.Text += "a12_Sensor board 6 ";
this.CollectionLabelSensorStatus[5].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[5].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[6] == true)
{
//this.labelAlarm.Text += "a13_Sensor board 7 ";
this.CollectionLabelSensorStatus[6].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[6].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[7] == true)
{
//this.labelAlarm.Text += "a14_Sensor board 8 ";
this.CollectionLabelSensorStatus[7].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[7].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[8] == true)
{
//this.labelAlarm.Text += "a15_Sensor board 9 ";
this.CollectionLabelSensorStatus[8].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[8].BackGroundColor = this.ColorSensorNormal;
if (alarm.CollectionIsSensorBoardError[9] == true)
{
//this.labelAlarm.Text += "a16_Sensor board 10 ";
this.CollectionLabelSensorStatus[9].BackGroundColor = this.ColorSensorError;
}
else
this.CollectionLabelSensorStatus[9].BackGroundColor = this.ColorSensorNormal;
// SB Alarm
this.CollectionLabelSbAlarm[0].Visible = alarm.CollectionIsSensorBoardError[0];
this.CollectionLabelSbAlarm[1].Visible = alarm.CollectionIsSensorBoardError[1];
this.CollectionLabelSbAlarm[2].Visible = alarm.CollectionIsSensorBoardError[2];
this.CollectionLabelSbAlarm[3].Visible = alarm.CollectionIsSensorBoardError[3];
this.CollectionLabelSbAlarm[4].Visible = alarm.CollectionIsSensorBoardError[4];
this.CollectionLabelSbAlarm[5].Visible = alarm.CollectionIsSensorBoardError[5];
this.CollectionLabelSbAlarm[6].Visible = alarm.CollectionIsSensorBoardError[6];
this.CollectionLabelSbAlarm[7].Visible = alarm.CollectionIsSensorBoardError[7];
this.CollectionLabelSbAlarm[8].Visible = alarm.CollectionIsSensorBoardError[8];
this.CollectionLabelSbAlarm[9].Visible = alarm.CollectionIsSensorBoardError[9];
value = value.Trim();
this.label1.Size = new Size(value.Length * 7, 20);
@ -646,28 +600,13 @@ namespace INT_PT002.Forms
if (this.label1.Width > 655)
{
if (this.label1.Text != "")
this.smartTimer1.Start();
this.smartTimerAlarm.Start();
}
}
private void UpdateProgressBarPressure()
{
}
private void UpdateProgressBarMaxLeakValue()
{
}
public void UpdateDisplayDiffData(Collection<DiffData> datas)
{
string[] temp;
for (int i = 0; i < FormMain.Lane; i++)
{
temp = datas[i].SecBufDiff.Split('.');
this.CollectionProgressBarLeakRatePerSec[i].Value = int.Parse(temp[0]);
}
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionLabelLeakRatePerSec[i].Text = datas[i].SecBufDiff;
}
public void UpdateDisplayDispData(Collection<DispData> datas)
{
@ -675,14 +614,12 @@ namespace INT_PT002.Forms
}
public void UpdateDisplayPresData(Collection<PressureData> datas)
{
for (int i = 0; i < FormMain.Lane; i++)
{
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
this.CollectionLabelPressure[i].Text = datas[i].WorkingChamber.Trim() + " kPa";
}
}
public void UpdateDisplayJudgmentData(LeakData datas)
{
for (int i = 0; i < FormMain.Lane; i++)
for (int i = 0; i < this.ParentForm.CurrentSystemStatus.EquipmentColumn; i++)
{
this.GetJudgmentResult(datas.CollJudgment[i], this.CollectionLabelResult[i]);
this.CollectionLabelResult[i].Visible = true;
@ -691,7 +628,10 @@ namespace INT_PT002.Forms
this.ParentForm.TrackingInspectionData(datas);
this.ChildControl.UpdateStartLeakDataDisplay(datas);
}
public void UpdateDisplayRecipeData(Recipe data)
{
this.buttonRecipeNo.ButtonText = data.NUMBER.ToString();
}
public void UpdateDisplayTime()
{
this.labelTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
@ -701,6 +641,8 @@ namespace INT_PT002.Forms
{
this.ParentForm.CurrentSystemStatus.CurrentDisplay = Define.E_FormStore.FormMainDisplay;
this.ParentForm.SetDisplayMode(Define.E_DisplayMode.Normal);
this.buttonRecipeNo.ButtonText = this.ParentForm.CurrentRecipe.NUMBER.ToString();
}
#endregion
@ -714,12 +656,33 @@ namespace INT_PT002.Forms
this.ParentForm.TransferData(CommunicationCommand.Stop, CommunicationID.MainBoard);
}
private void buttonProductNo_Click(object sender, EventArgs e)
{
string afterValue = "";
afterValue = this.buttonRecipeNo.ButtonText;
DialogFormNumKeyPad myKeypad = new DialogFormNumKeyPad("NUMBER", this.buttonRecipeNo.ButtonText, 4, 0, false);
if (myKeypad.ShowDialog() == DialogResult.OK)
{
if (myKeypad.IntValue < 1 || myKeypad.IntValue > 1000)
{
this.MessageBoxRange = "1 ~ 1000";
this.buttonRecipeNo.ButtonText = afterValue;
this.smartTimerMessageShow.Start();
return;
}
this.buttonRecipeNo.ButtonText = "**";
this.ParentForm.TransferRecipeParameter9043(myKeypad.IntValue);
}
}
private void buttonDisplayGraph_Click(object sender, EventArgs e)
{
this.ChildControl.DisplayRefresh(1);
this.ChildControl.Visible = true;
}
private void buttonStart_Click(object sender, EventArgs e)
private void buttonInspection_Click(object sender, EventArgs e)
{
this.ParentForm.TransferData(CommunicationCommand.CutInpupt, CommunicationID.MainBoard);
@ -801,15 +764,21 @@ namespace INT_PT002.Forms
this.ParentForm.Dispose();
this.ParentForm.Close();
}
#endregion
private void smartTimer1_Tick(object sender, EventArgs e)
private void smartTimerAlarm_Tick(object sender, EventArgs e)
{
this.label1.Left = this.label1.Left - 5;
if (this.label1.Left < 0 - this.label1.Width - 20)
this.label1.Left = this.smartGroupBox1.Width - 10;
}
private void smartTimerMessageShow_Tick(object sender, EventArgs e)
{
this.smartTimerMessageShow.Stop();
DialogFormMessage msg = new DialogFormMessage(1, this.ParentForm.SystemConfig.LANGUAGE, this.MessageBoxRange);
msg.ShowDialog();
}
#endregion
private void smartButton1_Click(object sender, EventArgs e)
{
string value = "";
@ -826,7 +795,7 @@ namespace INT_PT002.Forms
this.label1.Text = value;
if (this.label1.Text != "")
this.smartTimer1.Start();
this.smartTimerAlarm.Start();
}
}
}

View File

@ -628,7 +628,7 @@
rkJggg==
</value>
</data>
<data name="buttonProductNo.ImageDown" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="buttonRecipeNo.ImageDown" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGYAAAA7CAIAAAAGrWgcAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
@ -730,7 +730,7 @@
wdPfxoLlcF/PecHNyup/UZl6I9zzZ44AAAAASUVORK5CYII=
</value>
</data>
<data name="buttonProductNo.ImageUp" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<data name="buttonRecipeNo.ImageUp" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAGYAAAA7CAIAAAAGrWgcAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH
DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp
@ -3089,9 +3089,12 @@
rkJggg==
</value>
</data>
<metadata name="smartTimer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<metadata name="smartTimerAlarm.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="smartTimerMessageShow.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>164, 17</value>
</metadata>
<metadata name="$this.FormFactorShadowProperty" xml:space="preserve">
<value>WEBPAD</value>
</metadata>

View File

@ -13,6 +13,7 @@ using SmartX;
using INT_PT002.Controls;
using INT_PT002.DataStore;
using INT_PT002.DialogForms;
using INT_PT002.Part11_UserManager;
namespace INT_PT002.Forms
{
@ -22,19 +23,19 @@ namespace INT_PT002.Forms
private FormMain m_ParentForm;
// Recipe
public ControlMenuRecipeSetting Child_Recipe_Setting;
private ControlMenuRecipeSetting Child_Recipe_Setting;
// User
public ControlMenuUserUserEditor Child_User_UserEditor;
public ControlMenuUserGroupEditor Child_User_GroupEditor;
private ControlMenuUserUserEditor Child_User_UserEditor;
private ControlMenuUserGroupEditor Child_User_GroupEditor;
// Manual
public ControlMenuManualIoTest Child_Manual_IoTest;
private ControlMenuManualIoTest Child_Manual_IoTest;
// Log
public ControlMenuLogHistory Child_Log_History;
public ControlMenuLogInspection Child_Log_Inspection;
public ControlMenuLogAlarm Child_Log_Alarm;
private ControlMenuLogHistory Child_Log_History;
private ControlMenuLogInspection Child_Log_Inspection;
private ControlMenuLogAlarm Child_Log_Alarm;
// System
public ControlMenuSystemInformation Child_System_Information;
public ControlMenuSystemStatus Child_System_Status;
private ControlMenuSystemInformation Child_System_Information;
private ControlMenuSystemStatus Child_System_Status;
public Define.E_TopMenuStore SelectedTopMenu;
public Define.E_MenuRecipeStore SelectedMenuRecipe;
@ -447,7 +448,7 @@ namespace INT_PT002.Forms
this.buttonSystem.ButtonDown();
this.buttonBottom1.ButtonText = "Information";
this.buttonBottom2.ButtonText = "Status";
this.buttonBottom2.ButtonText = "E.Test";
this.buttonBottom1.Visible = true;
this.buttonBottom2.Visible = true;
@ -590,9 +591,9 @@ namespace INT_PT002.Forms
}
// Menu Recipe
public void UpdateDisplayRecipeData(int no)
public void UpdateDisplayRecipeData(Recipe item)
{
this.Child_Recipe_Setting.UpdateDisplayRecipeData(no);
this.Child_Recipe_Setting.UpdateDisplayControlData(item);
}
// Menu Equipment
@ -613,6 +614,44 @@ namespace INT_PT002.Forms
this.Child_Manual_IoTest.UpdateDisplayPresData(datas);
}
// Menu System
public void UpdateMainBoardVersionDisplay(string data)
{
this.Child_System_Information.UpdateMainBoardVersionDisplay(data);
}
// Menu User
public void UpdateLevelNameDisplay(SystemConfiguration data)
{
this.Child_User_UserEditor.UpdateLevelNameDisplay(data);
}
public void CallBackGetUserData(UserManager.UserMgr_user_list_t userList)
{
this.Child_User_UserEditor.CallBackGetUserData(userList);
}
public void CallBackUserListLockDataEvent(UserManager.UserMgr_user_lock_t user)
{
this.Child_User_UserEditor.CallBackUserListLockDataEvent(user);
}
public void CallBackUserListDeleteDataEvent(UserManager.UserMgr_user_del_t user)
{
this.Child_User_UserEditor.CallBackUserListDeleteDataEvent(user);
}
public void CallBackUserModifyUserData(UserManager.UserMgr_user_modify_t user)
{
this.Child_User_UserEditor.CallBackUserModifyUserData(user);
}
public void CallBackUserListNewData(UserManager.UserMgr_user_info_t user)
{
this.Child_User_UserEditor.CallBackUserListNewData(user);
}
// Menu Manual
public void UpdateDisplayAlarmView(AlarmList data)
{
this.Child_Manual_IoTest.UpdateDisplayAlarmView(data);
}
public void DisplayRefresh(SystemStatus status)
{
//this.UpdateDisplayUser(status.CurrentUser);

View File

@ -16,17 +16,17 @@ namespace INT_PT002
[MTAThread]
static void Main()
{
try
{
//try
//{
Application.Run(new FormMain());
}
catch (Exception ex)
{
FormMain.Exception(ex);
//}
//catch (Exception ex)
//{
// FormMain.Exception(ex);
DialogFormMessage myMsg = new DialogFormMessage(1);
myMsg.ShowDialog();
}
// DialogFormMessage myMsg = new DialogFormMessage(1);
// myMsg.ShowDialog();
//}
}
}
}