Firmensuche erweitert auf Leistung
Umzug auf neuen SQL Server
This commit is contained in:
parent
878b6f05aa
commit
1488343514
@ -434,6 +434,22 @@ namespace ZKuP
|
|||||||
MessageBox.Show("Beauftragte Leistung muss qualifiziert angegeben werden!", "Fehler");
|
MessageBox.Show("Beauftragte Leistung muss qualifiziert angegeben werden!", "Fehler");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (tbBeauftragte_Leistung.Text.ToLower() == "bewerber" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "bewerbung" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "vorstellungsgespräch" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "besuch" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "besucher" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "hospitation")
|
||||||
|
{
|
||||||
|
MessageBox.Show($"{tbBeauftragte_Leistung.Text} ist keine Leistung einer Firma\n{tbBeauftragte_Leistung.Text} muss als Besucher angelegt werden\nEine Firma mit {tbBeauftragte_Leistung.Text} als beauftragte Leistung wird ohne Hinweis gelöscht", "Fehler");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (tbBeauftragte_Leistung.Text.ToLower() == "test" ||
|
||||||
|
tbBeauftragte_Leistung.Text.ToLower() == "termin")
|
||||||
|
{
|
||||||
|
MessageBox.Show($"Beauftragte Leistung muss qualifiziert angegeben werden!", "Fehler");
|
||||||
|
return;
|
||||||
|
}
|
||||||
else if (!dpEinweisung_Bis.SelectedDate.HasValue && (GetDPText() != "...Einweisung folgt..." && GetDPText() != "...Nur in Begleitung..."))
|
else if (!dpEinweisung_Bis.SelectedDate.HasValue && (GetDPText() != "...Einweisung folgt..." && GetDPText() != "...Nur in Begleitung..."))
|
||||||
{
|
{
|
||||||
MessageBox.Show("'Einweisung bis' eintragen", "Fehler");
|
MessageBox.Show("'Einweisung bis' eintragen", "Fehler");
|
||||||
@ -444,9 +460,9 @@ namespace ZKuP
|
|||||||
MessageBox.Show("'Ansprechpartner intern' auswählen!", "Fehler");
|
MessageBox.Show("'Ansprechpartner intern' auswählen!", "Fehler");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (string.IsNullOrWhiteSpace(tbAnzahl_Begleiter.Text))
|
else if (tbAnzahl_Begleiter.Text == "0" || string.IsNullOrWhiteSpace(tbAnzahl_Begleiter.Text))
|
||||||
{
|
{
|
||||||
MessageBox.Show("'Anzahl Personen' angeben!", "Fehler");
|
MessageBox.Show(this, "Anzahl Personen darf nicht 0 oder leer sein", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (!dpEinweisung_Bis.SelectedDate.HasValue && GetDPText() == "...Einweisung folgt...")
|
else if (!dpEinweisung_Bis.SelectedDate.HasValue && GetDPText() == "...Einweisung folgt...")
|
||||||
@ -467,7 +483,12 @@ namespace ZKuP
|
|||||||
{
|
{
|
||||||
if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Begleiter.Text, "^[0-9]*$"))
|
if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Begleiter.Text, "^[0-9]*$"))
|
||||||
{
|
{
|
||||||
MessageBox.Show(this, "Anzahl Begleiter darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show(this, "Anzahl Personen darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (tbAnzahl_Begleiter.Text == "0" || string.IsNullOrWhiteSpace(tbAnzahl_Begleiter.Text))
|
||||||
|
{
|
||||||
|
MessageBox.Show(this, "Anzahl Personen darf nicht 0 oder leer sein", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
||||||
@ -609,6 +630,11 @@ namespace ZKuP
|
|||||||
MessageBox.Show(this, "Anzahl Begleiter darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show(this, "Anzahl Begleiter darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else if (tbAnzahl_Begleiter.Text == "0" || string.IsNullOrWhiteSpace(tbAnzahl_Begleiter.Text))
|
||||||
|
{
|
||||||
|
MessageBox.Show(this, "Anzahl Personen darf nicht 0 oder leer sein", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
||||||
{
|
{
|
||||||
MessageBox.Show(this, "Anzahl Fzg. darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show(this, "Anzahl Fzg. darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
@ -730,7 +756,12 @@ namespace ZKuP
|
|||||||
{
|
{
|
||||||
if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Begleiter.Text, "^[0-9]*$"))
|
if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Begleiter.Text, "^[0-9]*$"))
|
||||||
{
|
{
|
||||||
MessageBox.Show(this, "Anzahl Begleiter darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
MessageBox.Show(this, "Anzahl Personen darf nur Zahlen enthalten", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else if (tbAnzahl_Begleiter.Text == "0" || string.IsNullOrWhiteSpace(tbAnzahl_Begleiter.Text))
|
||||||
|
{
|
||||||
|
MessageBox.Show(this, "Anzahl Personen darf nicht 0 oder leer sein", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
else if (!System.Text.RegularExpressions.Regex.IsMatch(tbAnzahl_Fzg.Text, "^[0-9]*$"))
|
||||||
@ -1958,7 +1989,7 @@ namespace ZKuP
|
|||||||
}
|
}
|
||||||
else if (searchTerm.Length < 6)
|
else if (searchTerm.Length < 6)
|
||||||
{
|
{
|
||||||
firmen.DefaultView.RowFilter = $"Name LIKE '%{searchTerm}%' OR Verantwortlicher_MA_Firma LIKE '%{searchTerm}%'";
|
firmen.DefaultView.RowFilter = $"Name LIKE '%{searchTerm}%' OR Verantwortlicher_MA_Firma LIKE '%{searchTerm}%' OR Beauftragte_Leistung LIKE '%{searchTerm}%'";
|
||||||
//dgFirmen.DataContext = firmen;
|
//dgFirmen.DataContext = firmen;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2016,7 +2047,7 @@ namespace ZKuP
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
firmen.DefaultView.RowFilter = $"Name LIKE '%{searchTerm}%' OR Verantwortlicher_MA_Firma LIKE '%{searchTerm}%'";
|
firmen.DefaultView.RowFilter = $"Name LIKE '%{searchTerm}%' OR Verantwortlicher_MA_Firma LIKE '%{searchTerm}%' OR Beauftragte_Leistung LIKE '%{searchTerm}%'";
|
||||||
//dgFirmen.DataContext = new DataTable();
|
//dgFirmen.DataContext = new DataTable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,7 @@ namespace ZKuP
|
|||||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string Version { get; } = "5.2.6.3";
|
public static string Version { get; } = "5.3.0.0";
|
||||||
//public static Roles LoggedInRole { get; private set; } = Roles.None;
|
//public static Roles LoggedInRole { get; private set; } = Roles.None;
|
||||||
internal static MainWindow main;
|
internal static MainWindow main;
|
||||||
ThemeManager TM;
|
ThemeManager TM;
|
||||||
@ -146,7 +146,7 @@ namespace ZKuP
|
|||||||
|
|
||||||
CheckWorkingDir();
|
CheckWorkingDir();
|
||||||
CheckVersion();
|
CheckVersion();
|
||||||
CheckMaintenance();
|
await CheckMaintenance();
|
||||||
CheckNotification();
|
CheckNotification();
|
||||||
|
|
||||||
|
|
||||||
@ -285,7 +285,7 @@ namespace ZKuP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void CheckMaintenance()
|
private async void CheckMaintenance()
|
||||||
{
|
{
|
||||||
var path = @"\\mhb00swfs003v.fv-werke.db.de\GLW99\ZKuP\Maintenance.txt";
|
var path = @"\\mhb00swfs003v.fv-werke.db.de\GLW99\ZKuP\Maintenance.txt";
|
||||||
|
|
||||||
@ -860,6 +860,7 @@ namespace ZKuP
|
|||||||
imgConnection.Opacity = 1;
|
imgConnection.Opacity = 1;
|
||||||
tbNetwork.Opacity = 1;
|
tbNetwork.Opacity = 1;
|
||||||
|
|
||||||
|
|
||||||
buttons.ForEach(p => p.IsEnabled = true);
|
buttons.ForEach(p => p.IsEnabled = true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -26,7 +26,7 @@ namespace ZKuP
|
|||||||
public static class SQL
|
public static class SQL
|
||||||
{
|
{
|
||||||
private static string p = "fNZG8bO+b8lbajxNUCPCIRNBap4/T5N5Qoa0Rec3P9b2EiwC5eNIwfEMjR5Fvc/W";
|
private static string p = "fNZG8bO+b8lbajxNUCPCIRNBap4/T5N5Qoa0Rec3P9b2EiwC5eNIwfEMjR5Fvc/W";
|
||||||
private static string s = "KYgjkRVn0edFDca2GbZq/A=="; // "d0cRVbko84WkycpOfE30db5kQvnIprtdeNhhB6BtCdg="; new server
|
private static string s = "d0cRVbko84WkycpOfE30db5kQvnIprtdeNhhB6BtCdg="; // "KYgjkRVn0edFDca2GbZq/A=="; old server
|
||||||
private static string uSSL = "miSRZrFLxAAWlzRLx9B6Ww==";
|
private static string uSSL = "miSRZrFLxAAWlzRLx9B6Ww==";
|
||||||
private static string d = "xWb4X9gPEzwe76zqpysF3w==";
|
private static string d = "xWb4X9gPEzwe76zqpysF3w==";
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
@ -130,7 +130,7 @@ namespace ZKuP
|
|||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(ip))
|
if (string.IsNullOrWhiteSpace(ip))
|
||||||
{
|
{
|
||||||
ip = Crypto.Decrypt(Crypto.GetHashKey("866D137B10C95A4E8D5091B0CC0EFB8F"), s); // new Hash "534939882ECA063C7F8B15E10DCBE3D5"
|
ip = Crypto.Decrypt(Crypto.GetHashKey("534939882ECA063C7F8B15E10DCBE3D5"), s); // old Hash "866D137B10C95A4E8D5091B0CC0EFB8F"
|
||||||
return ip;
|
return ip;
|
||||||
}
|
}
|
||||||
else return ip;
|
else return ip;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user