fix 外包工号约束
This commit is contained in:
@@ -86,6 +86,11 @@ public class GainfoOutsourceRequest : IValidatableObject
|
|||||||
{
|
{
|
||||||
yield return new ValidationResult($"工号[{Code}]不能包含中文", new[] { nameof(Code) });
|
yield return new ValidationResult($"工号[{Code}]不能包含中文", new[] { nameof(Code) });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Code.StartsWith("LS"))
|
||||||
|
{
|
||||||
|
yield return new ValidationResult($"工号[{Code}]不能以LS开头", new[] { nameof(Code) });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user