1.进度更新

This commit is contained in:
HCL 2024-01-09 17:27:31 +08:00
parent 631a041f25
commit 4da3aaffc5
1 changed files with 14 additions and 14 deletions

View File

@ -643,23 +643,23 @@ namespace MECF.Framework.UI.Client.CenterViews.Editors.Sequence
private static bool ValidateSequenceRules(SequenceData currentSequence, ref string ruleCheckMessage)
{
foreach (var stepInfo in currentSequence.Steps)
{
if (string.IsNullOrEmpty((stepInfo[1] as PositionParam).Value))
{
ruleCheckMessage = $"Step{(stepInfo[0] as StepParam).Value}, Position Is Empty";
return false;
}
//if (((stepInfo[4] as PathFileParam).Visible == Visibility.Visible && string.IsNullOrEmpty((stepInfo[4] as PathFileParam).Value)) ||
// ((stepInfo[5] as PathFileParam).Visible == Visibility.Visible && string.IsNullOrEmpty((stepInfo[5] as PathFileParam).Value)))
//foreach (var stepInfo in currentSequence.Steps)
//{
// ruleCheckMessage = $"Step{(stepInfo[0] as StepParam).Value}, Recipe Is Empty";
// if (string.IsNullOrEmpty((stepInfo[1] as PositionParam).Value))
// {
// ruleCheckMessage = $"Step{(stepInfo[0] as StepParam).Value}, Position Is Empty";
// return false;
// }
// //if (((stepInfo[4] as PathFileParam).Visible == Visibility.Visible && string.IsNullOrEmpty((stepInfo[4] as PathFileParam).Value)) ||
// // ((stepInfo[5] as PathFileParam).Visible == Visibility.Visible && string.IsNullOrEmpty((stepInfo[5] as PathFileParam).Value)))
// //{
// // ruleCheckMessage = $"Step{(stepInfo[0] as StepParam).Value}, Recipe Is Empty";
// // return false;
// //}
//}
}
return true;
}