- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
if (
!(this.Department.Length == 4 &&
"0123456789".Contains(this.Department[0]) &&
"0123456789".Contains(this.Department[1]) &&
"0123456789".Contains(this.Department[2]) &&
"0123456789".Contains(this.Department[3])) &&
!(this.Department.Length == 4 &&
"0123456789".Contains(this.Department[0]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[1]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[2]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[3])) &&
!(this.Department.Length == 5 &&
"0123456789".Contains(this.Department[0]) &&
"0123456789".Contains(this.Department[4]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[1]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[2]) &&
"ABCDEFGHIJKLMNOPQRSTUVWXYZ".Contains(this.Department[3])))
{
return "error";
}
Lure Of Chaos 05.05.2013 11:59 # 0