1111
This commit is contained in:
@ -211,7 +211,7 @@ namespace DHSoftware
|
||||
continue;
|
||||
}
|
||||
|
||||
if (control is AntdUI.Segmented segmented)
|
||||
if (control is AntdUI.Segmented segmented && control.Name == "segmented1")
|
||||
{
|
||||
HandleSegmentedItems(segmented, list);
|
||||
}
|
||||
@ -1106,6 +1106,27 @@ namespace DHSoftware
|
||||
}
|
||||
segmented1.SelectIndex = -1;
|
||||
}
|
||||
|
||||
private void segmented2_SelectIndexChanged(object sender, IntEventArgs e)
|
||||
{
|
||||
|
||||
int selectedIndex = segmented2.SelectIndex;
|
||||
|
||||
|
||||
switch (selectedIndex)
|
||||
{
|
||||
case 0:
|
||||
HandleVisualLocalizationButton();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
segmented2.SelectIndex = -1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public string BatchNO { get; set; }
|
||||
public bool CurrentMachine = false;
|
||||
public volatile int ProductNum_Total = 0;
|
||||
@ -1122,7 +1143,7 @@ namespace DHSoftware
|
||||
private void PrepareBatchNO()
|
||||
{
|
||||
BatchNO = string.IsNullOrEmpty(BatchNO) ? SystemModel.CurrentScheme + "-" + DateTime.Now.ToString("yyyyMMddHHmmss") : BatchNO;
|
||||
// DataSavePath = string.IsNullOrEmpty(DataSavePath) ? Path.Combine(X018PLCConfig.ImgDirectory, DateTime.Now.ToString("yyyyMMdd"), BatchNO) : DataSavePath;
|
||||
// DataSavePath = string.IsNullOrEmpty(DataSavePath) ? Path.Combine(X018PLCConfig.ImgDirectory, DateTime.Now.ToString("yyyyMMdd"), BatchNO) : DataSavePath;
|
||||
|
||||
}
|
||||
private void HandleStartButton()
|
||||
@ -1145,7 +1166,7 @@ namespace DHSoftware
|
||||
lblStartTime.Text = ProcessstartTime.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
//计数清零
|
||||
PieceCount = 0;
|
||||
|
||||
|
||||
//CameraSummaries.Clear();
|
||||
|
||||
if (PLC?.Enable == true)
|
||||
@ -1737,10 +1758,15 @@ namespace DHSoftware
|
||||
LoginWindow.Instance.parentForm = this;
|
||||
LoginWindow.Instance.Show();
|
||||
}
|
||||
|
||||
private void HandleVisualLocalizationButton()
|
||||
{
|
||||
VisualLocalizationWindow.Instance.Show();
|
||||
}
|
||||
private void btnCreateBatchNO_Click(object sender, EventArgs e)
|
||||
{
|
||||
textBoxBatchNO.Text = SystemModel.CurrentScheme + "-" + DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user