public static string IpAddress(GlobalVariables.FillingLine fillingLineID, ScannerName barcodeScannerName) { switch (fillingLineID) { //case FillingLine.Smallpack: // switch (barcodeScannerName) // { // case ScannerName.QualityScanner: // return "127.0.0.1"; // case ScannerName.PackScanner: // return "172.21.67.168"; // case ScannerName.CartonScanner: // return "172.21.67.169"; // case ScannerName.PalletScanner: // return "172.21.67.170"; // default: // return "127.0.0.1"; // } //case FillingLine.Pail: // switch (barcodeScannerName) // { // case ScannerName.QualityScanner: // return "127.0.0.1"; // case ScannerName.PackScanner: // return "127.0.0.1"; //172.21.67.52 // case ScannerName.CartonScanner: // return "172.21.67.172"; // case ScannerName.PalletScanner: // return "172.21.67.173"; // default: // return "127.0.0.1"; // } //case FillingLine.Drum: // switch (barcodeScannerName) // { // case ScannerName.QualityScanner: // return "127.0.0.1"; // case ScannerName.PackScanner: // return "127.0.0.1"; // case ScannerName.CartonScanner: // return "127.0.0.1"; // case ScannerName.PalletScanner: // return "172.21.67.175"; // default: // return "127.0.0.1"; // } case FillingLine.Medium4L: switch (barcodeScannerName) { case ScannerName.CartonScanner: return("172.21.67.153"); case ScannerName.PalletScanner: return("172.21.67.154"); default: return("127.0.0.1"); } case FillingLine.Import: switch (barcodeScannerName) { case ScannerName.PalletScanner: return("172.21.67.181"); default: return("127.0.0.1"); } default: return("127.0.0.1"); } }
public static string IpAddress(ScannerName barcodeScannerName) { switch (GlobalVariables.FillingLineID) { case FillingLine.Smallpack: switch (barcodeScannerName) { case ScannerName.QualityScanner: return("127.0.0.1"); case ScannerName.PackScanner: return("192.168.8.21"); case ScannerName.CartonScanner: return("192.168.8.23"); case ScannerName.PalletScanner: return("192.168.8.24"); default: return("127.0.0.1"); } case FillingLine.Pail: switch (barcodeScannerName) { case ScannerName.QualityScanner: return("127.0.0.1"); case ScannerName.PackScanner: return("192.168.8.26"); case ScannerName.CartonScanner: return("192.168.8.28"); case ScannerName.PalletScanner: return("192.168.8.29"); default: return("127.0.0.1"); } case FillingLine.Drum: switch (barcodeScannerName) { case ScannerName.QualityScanner: return("127.0.0.1"); case ScannerName.PackScanner: return("127.0.0.1"); case ScannerName.CartonScanner: return("127.0.0.1"); case ScannerName.PalletScanner: return("192.168.8.75"); default: return("127.0.0.1"); } default: return("127.0.0.1"); } }
/// <summary> /// Returns the scanner name /// </summary> public override string ToString() { return((string)ScannerName.Clone()); }