diff --git a/App.config b/App.config index bc525b2..f713250 100644 --- a/App.config +++ b/App.config @@ -1,44 +1,46 @@  - - -
- - - - - - - - - - - - - - - - - - - + + +
+ + + + + + + + + + + + + + + + + + + + + - + - + - + - + @@ -54,7 +56,7 @@ - + @@ -72,6 +74,10 @@ + + + + @@ -80,7 +86,7 @@ - + 1, 53, 101 @@ -132,4 +138,19 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Artikel.cs b/Artikel.cs new file mode 100644 index 0000000..2c15f5a --- /dev/null +++ b/Artikel.cs @@ -0,0 +1,187 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using BrightIdeasSoftware; +using System.Runtime.CompilerServices; +using System.Windows.Forms; + +namespace DatenDB +{ + public enum ArtikelKategorie + { + Unbekannt = 0, + Frottee = 1, + Grossteile = 2, + Kleinteile = 3, + Spannleintuch = 4 + } + + public class Artikel + { + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 + public const string COLUMNS = "artikel_id, nummer, bezeichnung, short, nachwaesche, muellwaesche, last_reset, kategorie"; + private const string TABLE = "kundenverwaltung.artikel"; + + public Artikel() { } + + public Artikel(string row, int nr) + { + if (nr == 0) return; //ERSTE ZEILE IGNORIEREN. + string[] zeileData = row.Split(';'); + + this.Nummer = Convert.ToInt32(zeileData[1]); + this.Bezeichnung = zeileData[3]; + this.Short = zeileData[4]; + } + + + public static Artikel GetArtikel(int? artikelNr) + { + DatenbankConnection.GetConnection().Open(); + Artikel result = new Artikel(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where nummer = {artikelNr}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Artikel(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetArtikelList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE}"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Artikel(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + + + public static int SaveList(List artlist) + { + DatenbankConnection.GetConnection().Open(); + int result = 0; + foreach (Artikel art in artlist) + { + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (art.ArtikelID.HasValue & art.ArtikelID != 0) + { + command.CommandText = $"update {TABLE} set nummer = :p1, bezeichnung = :p2, short = :p3, nachwaesche = :p4, muellwaesche = :p5, last_reset = :p6, kategorie = :p7 where artikel_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.artikel_seq')"; + art.ArtikelID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7)"; + } + command.Parameters.AddWithValue("p0", art.ArtikelID); + command.Parameters.AddWithValue("p1", art.Nummer); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(art.Bezeichnung) ? (object)DBNull.Value : art.Bezeichnung); + command.Parameters.AddWithValue("p3", string.IsNullOrEmpty(art.Short) ? (object)DBNull.Value : art.Short); + command.Parameters.AddWithValue("p4", art.Nachwaesche); + command.Parameters.AddWithValue("p5", art.Muellwaesche); + command.Parameters.AddWithValue("p6", art.LastReset.HasValue ? art.LastReset.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p7", (int)art.Kategorie); + command.ExecuteNonQuery(); + result++; + } + //result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + int result = 0; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.ArtikelID.HasValue & this.ArtikelID != 0) + { + command.CommandText = $"update {TABLE} set nummer = :p1, bezeichnung = :p2, short = :p3, nachwaesche = :p4, muellwaesche = :p5, last_reset = :p6, kategorie = :p7 where artikel_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.artikel_seq')"; + this.ArtikelID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7)"; + } + command.Parameters.AddWithValue("p0", this.ArtikelID); + command.Parameters.AddWithValue("p1", this.Nummer); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(this.Bezeichnung) ? (object)DBNull.Value : this.Bezeichnung); + command.Parameters.AddWithValue("p3", string.IsNullOrEmpty(this.Short) ? (object)DBNull.Value : this.Short); + command.Parameters.AddWithValue("p4", this.Nachwaesche); + command.Parameters.AddWithValue("p5", this.Muellwaesche); + command.Parameters.AddWithValue("p6", this.LastReset.HasValue ? this.LastReset.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p7", (int)this.Kategorie); + + result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + + public Artikel(NpgsqlDataReader reader) + { + this.ArtikelID = reader.GetInt32(0); + this.Nummer = reader.GetInt32(1); + this.Bezeichnung = reader.IsDBNull(2) ? string.Empty : reader.GetString(2); + this.Short = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.Nachwaesche = reader.GetInt32(4); + this.Muellwaesche = reader.GetInt32(5); + this.LastReset = reader.IsDBNull(6) ? null : (DateTime?)reader.GetDateTime(6); + this.Kategorie = (ArtikelKategorie)reader.GetInt16(7); + } + + + [OLVIgnore] + public int? ArtikelID { get; set; } + + [OLVColumn("ArtNr.", DisplayIndex = 0, TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public int Nummer { get; set; } + + [OLVColumn("Bezeichnung", DisplayIndex = 1)] + public string Bezeichnung { get; set; } + + [OLVColumn("Abkürzung", DisplayIndex = 2)] + public string Short { get; set; } + + [OLVColumn("Nachwäsche", DisplayIndex = 3, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int Nachwaesche { get; set; } + + [OLVColumn("Müll", DisplayIndex = 4, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int Muellwaesche { get; set; } + + [OLVColumn("Letzter Reset", DisplayIndex = 5, AspectToStringFormat = "{0:d}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public DateTime? LastReset { get; set; } + + [OLVColumn("Kategorie", DisplayIndex = 6)] + public ArtikelKategorie Kategorie { get; set; } + + private string _reset; + [OLVColumn("Reset", DisplayIndex = 7)] + public string Reset + { + get + { + if (Nachwaesche > 0) + return _reset = "Reset"; + else + return _reset = string.Empty; // Alternativwert, wenn Bedingung nicht erfüllt + } + set { } + } + } +} diff --git a/Aufgabe.cs b/Aufgabe.cs new file mode 100644 index 0000000..3aa173d --- /dev/null +++ b/Aufgabe.cs @@ -0,0 +1,123 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.Profile; +using System.Windows.Forms.PropertyGridInternal; + +namespace DatenDB +{ + public enum Kategorie + { + Allgemein = 0, + Fahrer = 1, + Intern = 2, + Waschstrasse = 3 + } + public class Aufgabe + { + //AUFGABE TABLE IN DB INTEGRIEREN + private static string TABLE = "kundenverwaltung.aufgabe"; + public static string COLUMNS = "aufgabe_id, bezeichnung, beschreibung, kategorie, farbe"; + public Aufgabe() + { + } + public static Aufgabe GetAufgabe(string bezeichnung, int? id) + { + DatenbankConnection.GetConnection().Open(); + Aufgabe result = new Aufgabe(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (!string.IsNullOrEmpty(bezeichnung)) command.CommandText = $"select {COLUMNS} from {TABLE} where bezeichnung = '{bezeichnung}'"; + if (id != null) command.CommandText = $"select {COLUMNS} from {TABLE} where aufgabe_id = {id}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Aufgabe(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static int GetAufgabeID(string text) + { + DatenbankConnection.GetConnection().Open(); + int result = 0; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select aufgabe_id from {TABLE} where bezeichnung = '{text}'"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt32(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetList(int? aufgabekat) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if(aufgabekat != null) command.CommandText = $"select {COLUMNS} from {TABLE} where kategorie = {aufgabekat} order by aufgabe_id"; + else command.CommandText = $"select {COLUMNS} from {TABLE} order by aufgabe_id"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Aufgabe(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.AufgabeID.HasValue & this.AufgabeID != 0) + { + command.CommandText = $"update {TABLE} set bezeichnung = :p1, beschreibung = :p2, kategorie = :p3, farbe = :p4 WHERE aufgabe_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.aufgabe_seq')"; + this.AufgabeID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4)"; + } + + command.Parameters.AddWithValue("p0", this.AufgabeID); + command.Parameters.AddWithValue("p1", string.IsNullOrEmpty(this.Bezeichnung) ? (object)DBNull.Value : this.Bezeichnung); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(this.Beschreibung) ? (object)DBNull.Value : this.Beschreibung); + command.Parameters.AddWithValue("p3", (int)this.Kategorie); + command.Parameters.AddWithValue("p4", (string)HexConverter(this.Farbe, string.Empty)); + + + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public Aufgabe(NpgsqlDataReader reader) + { + this.AufgabeID = reader.GetInt32(0); + this.Bezeichnung = reader.IsDBNull(1) ? string.Empty : reader.GetString(1); + this.Beschreibung = reader.IsDBNull(2) ? string.Empty : reader.GetString(2); + this.Kategorie = reader.IsDBNull(3) ? Kategorie.Fahrer : (Kategorie)reader.GetInt16(3); + this.Farbe = reader.IsDBNull(4) ? Color.FromArgb(1, 53, 101) : (Color)HexConverter(Color.FromArgb(1, 53, 101), reader.GetString(4)); + } + public int? AufgabeID { get; set; } + public string Bezeichnung { get; set; } + public string Beschreibung { get; set; } + public Kategorie Kategorie { get; set; } + public Color Farbe { get; set; } + + private static object HexConverter(Color c, string s) + { + ColorConverter cc = new ColorConverter(); + if (string.IsNullOrEmpty(s)) { s = "#" + c.R.ToString("X2") + c.G.ToString("X2") + c.B.ToString("X2"); return s; } + else { c = (Color)cc.ConvertFromString(s); return c; } + + + } + } +} diff --git a/Auftrag.cs b/Auftrag.cs new file mode 100644 index 0000000..0e55478 --- /dev/null +++ b/Auftrag.cs @@ -0,0 +1,402 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public enum AuftragStatus + { + Abgeholt = 0, + Aufgelegt = 1, + Finisching = 2, + Herrichten = 3, + Vorbereitet = 4, + Fertig = 7, + Ausgeliefert = 8, + AufAbruf = 9 + } + public enum AuftragTyp + { + Unbekannt = 0, + Standart = 1, + Sonder = 2 + } + + + public class Auftrag + { + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 + public const string COLUMNS = "auftrag_id, benutzer_id, aufgabe_id, kunde_id, zusatz, liefertag, gedruckt, gedruckt_von, erledigt, erledigt_von, erstellt, erstellt_von, status, tour_id, container_dirt, maschine_id, container_clean, typ"; + private const string TABLE = "kundenverwaltung.auftrag"; + public const string ASPECTS = "FahrerID,AufgabeID,KundeID,ZusatzInfo,Wann,Gedruckt,Erledigt,Erstellt von,Erstellt Am"; + public Auftrag() + { + } + + public static List GetAuftragList(string s, Auftrag auftrag) + { + int? aID = null; + int? mID = null; + //Get MaschineID und AuftragID für Aufträge vor und nach Auftrag + if (auftrag != null) + { + mID = auftrag.MaschineID; + aID = auftrag.AuftragID; + } + //Get AufgabeID für Anzeige von Standerhöhungen + if (s == "STH") aID = (int)Aufgabe.GetAufgabe(s, null).AufgabeID; + + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (s == "Expedit") command.CommandText = $"select {COLUMNS} from {TABLE} where status = 3 order by liefertag asc"; + if (s == string.Empty) command.CommandText = $"select {COLUMNS} from {TABLE} where gedruckt is null and erledigt is null"; + if (s == "davor") command.CommandText = $"select {COLUMNS} from {TABLE} where maschine_id = {mID} and auftrag_id < {aID} order by liefertag asc limit 3"; + if (s == "danach") command.CommandText = $"select {COLUMNS} from {TABLE} where maschine_id = {mID} and auftrag_id > {aID} order by liefertag asc limit 3"; + if (s == "STH") command.CommandText = $"select {COLUMNS} from {TABLE} where status = 3 and aufgabe_id = {aID} order by liefertag"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Auftrag(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static List GetAuftragListToday(DateTime produktion) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE} where typ = 1 and erstellt::date = '{produktion.Date}' or typ = 1 and status < 7 order by liefertag asc"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Auftrag(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static List GetAuftragStatsListToday(DateTime produktion) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE} where typ = 1 and erstellt::date = '{produktion.Date}' order by liefertag asc"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Auftrag(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + + public static List GetExpeditLists(int? typ) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (typ == null) command.CommandText = $"select {COLUMNS} from {TABLE} where status <= 7 order by status desc, liefertag asc"; + else if (typ <= 2) command.CommandText = $"select {COLUMNS} from {TABLE} where typ = {typ} and status < 7 order by status desc, liefertag asc"; + else command.CommandText = $"select {COLUMNS} from {TABLE} where status = {typ} order by status desc, liefertag asc"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Auftrag(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static Auftrag GetAuftrag(int? auftragID) + { + DatenbankConnection.GetConnection().Open(); + Auftrag result = new Auftrag(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where auftrag_id = {auftragID}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Auftrag(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static Auftrag GetLastAuftrag(int? benutzerID) + { + DatenbankConnection.GetConnection().Open(); + Auftrag result = new Auftrag(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where erstellt_von = {benutzerID} order by erstellt desc limit 1"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Auftrag(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + + } + public bool FindeAuftrag(Auftrag auftrag) + { + int result = 0; + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select auftrag_id from {TABLE} where kunde_id = {auftrag.KundeID} and erstellt::date = '{auftrag.Erstellt.Value.Date}' and liefertag = '{auftrag.Liefertag}'"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt16(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + + if(result > 0) return true; + else return false; + } + + public Auftrag(NpgsqlDataReader reader) + { + this.AuftragID = reader.GetInt32(0); + this.ArbeiterID = reader.IsDBNull(1) ? null : (int?)reader.GetInt32(1); + this.AufgabeID = reader.IsDBNull(2) ? null : (int?)reader.GetInt32(2); + this.KundeID = reader.GetInt32(3); + this.ZusatzInfo = reader.IsDBNull(4) ? string.Empty : reader.GetString(4); + this.Liefertag = reader.GetDateTime(5); + this.Gedruckt = reader.IsDBNull(6) ? null : (DateTime?)reader.GetDateTime(6); + this.GedrucktVon = reader.IsDBNull(7) ? null : (int?)reader.GetInt32(7); + this.Erledigt = reader.IsDBNull(8) ? null : (DateTime?)reader.GetDateTime(8); + this.ErledigtVon = reader.IsDBNull(9) ? null : (int?)reader.GetInt32(9); + this.Erstellt = reader.IsDBNull(10) ? null : (DateTime?)reader.GetDateTime(10); + this.ErstelltVon = reader.GetInt32(11); + this.Status = (AuftragStatus)reader.GetInt32(12); + this.TourID = reader.IsDBNull(13) ? null : (int?)reader.GetInt32(13); + this.Container = reader.IsDBNull(14) ? 0 : reader.GetInt32(14); + this.MaschineID = reader.IsDBNull(15) ? null : (int?)reader.GetInt32(15); + this.ContainerClean = reader.IsDBNull(16) ? 0 : reader.GetInt32(16); + this.Typ =reader.IsDBNull(17) ? AuftragTyp.Unbekannt : (AuftragTyp)reader.GetInt32(17); + + + } + + + /// + /// CheckBoxen zur Auftragsauswahl als erste Spalte. + /// + [OLVColumn("Auswählen", CheckBoxes = true, DisplayIndex = 0)] + public bool IsChecked { get; set; } + + /// + /// Liefertag mit ausgeschriebenen Tag als zweite Spalte. + /// + [OLVColumn("Liefertag", DisplayIndex = 2, AspectToStringFormat = "{0:ddd dd.MM.}")] + public DateTime Liefertag { get; set; } + + /// + /// Die Aufgabe (STV, STH, INV) wird angezeigt wenn vorhanden. + /// + private string _auftragaufgabe; + [OLVColumn("Aufgabe", DisplayIndex = 6, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string AuftragAufgabe + { + get + { + if (this.Typ == AuftragTyp.Sonder) return _auftragaufgabe = Aufgabe.GetAufgabe(null, AufgabeID).Bezeichnung; + else return null; + + } + + } + + /// + /// Der Status wird angezeigt. + /// + [OLVColumn("Status", DisplayIndex = 5)] + public AuftragStatus Status { get; set; } + + /// + /// Der Kundename wird angezeigt + /// + private string _kundename; + [OLVColumn("Kunde", DisplayIndex = 1)] + public string Kundename + { + get + { + if (string.IsNullOrWhiteSpace(Kunde.GetKunde(null, KundeID, null).Suchtext)) return _kundename = Kunde.GetKunde(null, KundeID, null).KundeName; + else return _kundename = Kunde.GetKunde(null, KundeID, null).Suchtext; + } + set { } + } + + /// + /// Containeranzahl schmutzig + /// + [OLVColumn("schmutzig", DisplayIndex = 3, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int Container { get; set; } + + /// + /// Containeranzahl sauber + /// + [OLVColumn("sauber", DisplayIndex = 4, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int ContainerClean { get; set; } + + /// + /// Die "Erstellt von" Spalte mit Datum wird erstellt + /// + private string _auftragerstellt; + [OLVColumn("Erstellt", DisplayIndex = 7)] + public string AuftragErstellt + { + get + { + if (this.Erstellt != null) return _auftragerstellt = Benutzer.GetBenutzer(null, this.ErstelltVon).BenutzerName + " von " + this.Erstellt.ToString(); + else return null; + } + } + + /// + /// Die "Gedruckt von" Spalte mit Datum wird erstellt + /// + private string _auftraggedruckt; + [OLVColumn("Gedruckt", DisplayIndex = 8)] + public string AuftragGedruckt + { + get + { + if(this.Gedruckt != null) return _auftraggedruckt = Benutzer.GetBenutzer(null, this.GedrucktVon).BenutzerName + " von " + this.Gedruckt.ToString(); + else return null; + } + } + + /// + /// Die "Erledigt von" Spalte mit Datum wird erstellt + /// + private string _auftragerledigt; + [OLVColumn("Erledigt", DisplayIndex = 9)] + public string AuftragErledigt + { + get + { + if (this.Erledigt != null) return _auftragerledigt = Benutzer.GetBenutzer(null, this.ErledigtVon).BenutzerName + " von " + this.Erledigt.ToString(); + else return null; + + } + } + + private string _fertig; + [OLVColumn("Abschließen", DisplayIndex = 10)] + public string Fertig + { + get + { + if(Typ == AuftragTyp.Sonder) + { + if (Status >= AuftragStatus.Fertig) return _fertig = string.Empty; + else return _fertig = "Auftrag abschließen"; + } + else + { + if (Status == AuftragStatus.Vorbereitet) return _fertig = "Auftrag abschließen"; + else + { + return _fertig = string.Empty; ; + } + } + } + } + + /// + /// Zusatz und Typ Properties werden ausgeblendet. + /// + [OLVColumn("Zusatz", IsVisible = false)] + public string ZusatzInfo { get; set; } + + [OLVColumn("Typ", IsVisible = false)] + public AuftragTyp Typ { get; set; } + + /// + /// Properties von ObjectListView ignoriert. + /// + [OLVIgnore] + public int? AuftragID { get; set; } + [OLVIgnore] + public int? GedrucktVon { get; set; } + [OLVIgnore] + public DateTime? Gedruckt { get; set; } + [OLVIgnore] + public DateTime? Erledigt { get; set; } + [OLVIgnore] + public int? ErledigtVon { get; set; } + [OLVIgnore] + public DateTime? Erstellt { get; set; } + [OLVIgnore] + public int ErstelltVon { get; set; } + [OLVIgnore] + public int? MaschineID { get; set; } + [OLVIgnore] + public int KundeID { get; set; } + [OLVIgnore] + public int? TourID { get; set; } + /// + /// BenutzerID des ausführenden Users + /// + [OLVIgnore] + public int? ArbeiterID { get; set; } + [OLVIgnore] + public int? AufgabeID { get; set; } + + + + + + public int[] Save() + { + DatenbankConnection.GetConnection().Open(); + int[] result = new int[2]; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.AuftragID.HasValue & this.AuftragID != 0) + { + command.CommandText = $"update {TABLE} set benutzer_id = :p1, aufgabe_id = :p2, kunde_id = :p3, zusatz = :p4, liefertag = :p5, gedruckt = :p6, gedruckt_von = :p7, erledigt = :p8, erledigt_von = :p9, erstellt = :p10, erstellt_von = :p11, status = :p12, tour_id = :p13, container_dirt = :p14, maschine_id = :p15, container_clean = :p16, typ = :p17 WHERE auftrag_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.auftrag_seq')"; + this.AuftragID = result[1] = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16, :p17)"; + } + + command.Parameters.AddWithValue("p0", this.AuftragID); + command.Parameters.AddWithValue("p1", this.ArbeiterID.HasValue ? this.ArbeiterID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p2", this.AufgabeID.HasValue ? this.AufgabeID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p3", this.KundeID); + command.Parameters.AddWithValue("p4", string.IsNullOrEmpty(this.ZusatzInfo) ? (object)DBNull.Value : this.ZusatzInfo); + command.Parameters.AddWithValue("p5", this.Liefertag); + command.Parameters.AddWithValue("p6", this.Gedruckt.HasValue ? this.Gedruckt.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p7", this.GedrucktVon.HasValue ? this.GedrucktVon.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p8", this.Erledigt.HasValue ? this.Erledigt.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p9", this.ErledigtVon.HasValue ? this.ErledigtVon.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p10", this.Erstellt); + command.Parameters.AddWithValue("p11", this.ErstelltVon); + command.Parameters.AddWithValue("p12", (int)this.Status); + command.Parameters.AddWithValue("p13", this.TourID.HasValue ? this.TourID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p14", this.Container); + command.Parameters.AddWithValue("p15", this.MaschineID.HasValue ? this.MaschineID.Value : 0); + command.Parameters.AddWithValue("p16", this.ContainerClean); + command.Parameters.AddWithValue("p17", (int)this.Typ); + + result[0] = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + + } +} diff --git a/AuftragArtikel.cs b/AuftragArtikel.cs new file mode 100644 index 0000000..bbdda21 --- /dev/null +++ b/AuftragArtikel.cs @@ -0,0 +1,111 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace DatenDB +{ + public class AuftragArtikel + { + private static string TABLE = "kundenverwaltung.auftrag_artikel"; + private static string COLUMNS = "auftrag_artikel_id, auftrag_id, artikel_nr, artikel_name, anzahl, erledigt"; + public Kunde kunde; + + public AuftragArtikel() + { + } + + public static List GetList(string auftragnr) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where auftrag_id = {auftragnr}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new AuftragArtikel(reader, 1)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + + public static AuftragArtikel GetArtikel(int aufartid) + { + DatenbankConnection.GetConnection().Open(); + AuftragArtikel result = new AuftragArtikel(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"SELECT * from {TABLE} where auftrag_artikel_id = {aufartid}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new AuftragArtikel(reader, 1); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + + public int Save() + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if(this.AuftragArtikelID.HasValue & this.AuftragArtikelID != 0) + { + command.CommandText = $"update {TABLE} set auftrag_id = :p1, artikel_nr = :p2, artikel_name = :p3, anzahl = :p4, erledigt = :p5 WHERE auftrag_artikel_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.auftrag_artikel_seq')"; + this.AuftragArtikelID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5)"; + } + + command.Parameters.AddWithValue("p0", this.AuftragArtikelID.Value); + command.Parameters.AddWithValue("p1", this.AuftragID); + command.Parameters.AddWithValue("p2", this.ArtikelNR); + command.Parameters.AddWithValue("p3", string.IsNullOrWhiteSpace(this.ArtikelName) ? (object)DBNull.Value : this.ArtikelName); + command.Parameters.AddWithValue("p4", this.Anzahl); + command.Parameters.AddWithValue("p5", this.Erledigt); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + + } + + public AuftragArtikel(NpgsqlDataReader reader, int i) + { + if (i == 1) + { + this.AuftragArtikelID = reader.GetInt32(0); + this.AuftragID = reader.GetInt32(1); + this.ArtikelNR = reader.GetInt32(2); + this.ArtikelName = reader.GetString(3); + this.Anzahl = reader.GetInt32(4); + this.Erledigt = reader.GetBoolean(5); + } + if (i == 2) + { + kunde = new Kunde(); + + this.ArtikelName = reader.GetString(0); + this.Anzahl = reader.GetInt32(1); + this.kunde.Suchtext = reader.GetString(2); + } + + } + + public int? AuftragArtikelID { get; set; } + public int? AuftragID { get; set; } + public int ArtikelNR { get; set; } + public string ArtikelName { get; set; } + public int Anzahl { get; set; } + public bool Erledigt { get; set; } + + + } +} diff --git a/Benutzer.cs b/Benutzer.cs new file mode 100644 index 0000000..09b0909 --- /dev/null +++ b/Benutzer.cs @@ -0,0 +1,211 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace DatenDB +{ + public enum BenutzerRolle + { + Verwaltung = 0, + Fahrer = 1, + Admin = 2, + Waschstrasse = 3, + Master = 4, + Expedit = 5, + Frottee = 6, + Flach = 7 + } + + public class Benutzer + { + // 0 1 2 3 4 5 6 7 8 + public const string COLUMNS = "benutzer_id, rolle, passwort, vorname, nachname, schein, gueltig_bis, ist_aktiv, benutzer_name"; + private const string TABLE = "kundenverwaltung.benutzer"; + + public Benutzer() + { + } + public static List GetList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Benutzer(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + + } + public static List GetFahrerList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where rolle = 'Fahrer' and ist_aktiv is true order by benutzer_id asc"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Benutzer(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static List GetArbeiterList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where ist_aktiv is true and rolle = 'Fahrer' or rolle = 'Verwaltung' or rolle = 'Expedit' order by benutzer_id asc"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Benutzer(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + + public static Benutzer GetBenutzer(string benutzerName, int? benID) + { + DatenbankConnection.GetConnection().Open(); + Benutzer benutzer = new Benutzer(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if(!string.IsNullOrEmpty(benutzerName)) command.CommandText = $"select {COLUMNS} from {TABLE} where benutzer_name = '{benutzerName}'"; + if(benID != null) command.CommandText = $"select {COLUMNS} from {TABLE} where benutzer_id = {benID}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) benutzer = new Benutzer(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return benutzer; + } + + /// + /// Benutzer ID + /// + + [OLVIgnore] + public int? BenutzerID { get; set; } + + /// + /// Rolle des Benutzers + /// + [OLVColumn("Rolle", DisplayIndex = 4)] + public BenutzerRolle Rolle { get; set; } = BenutzerRolle.Waschstrasse; + + /// + /// Passwort wird von OLV ignoriert + /// + [OLVIgnore] + public string Passwort { get; set; } + + /// + /// Vorname & Nachname des Benutzers + /// + [OLVColumn("Vorname", DisplayIndex = 1)] + public string Vorname { get; set; } + [OLVColumn("Name", DisplayIndex = 2)] + public string Nachname { get; set; } + + /// + /// Führerscheinnummer und Ablaufdatum + /// + [OLVColumn("FührerscheinNr", DisplayIndex = 6, IsVisible = false)] + public int? Schein { get; set; } + [OLVColumn("Ablaufdatum", DisplayIndex = 7, IsVisible = false)] + public DateTime? GueltigBis { get; set; } + + /// + /// Status des Benutzers. + /// + [OLVColumn("Aktiv", DisplayIndex = 5, CheckBoxes = true)] + public bool Aktiv { get; set; } = true; + + /// + /// Benutzername wird automatisch generiert (Vorname + Nachname in Kleinbuchstaben ohne Leerzeichen) + /// + [OLVColumn("Benutzername", DisplayIndex = 3)] + public string BenutzerName { get; set; } + + + public static Benutzer Get(string benutzerName, string passwort) + { + try + { + DatenbankConnection.GetConnection().Open(); + } + catch (NpgsqlException) + { + throw new LoginException("Datenbank ist nicht verbunden", -4); + } + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where lower(benutzer_name) = :ben"; + command.Parameters.AddWithValue(":ben", benutzerName.ToLower()); + + NpgsqlDataReader reader = command.ExecuteReader(); + Benutzer person = null; + if (reader.Read()) person = new Benutzer(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + if (person == null) throw new LoginException("Benutzer nicht gefunden!", -1); + else if (string.IsNullOrEmpty(person.Passwort)) throw new LoginException("Benutzer gefunden, Passwort bestätigen", -3); + if (person.Passwort != passwort) throw new LoginException("Passwort ist falsch!", -2); + + return person; + } //FEHLERMELDUNG DYNAMISCH GENERIEREN... + public Benutzer(NpgsqlDataReader reader) + { + this.BenutzerID = reader.GetInt32(0); + this.Rolle = reader.IsDBNull(1) ? BenutzerRolle.Verwaltung : (BenutzerRolle)Enum.Parse(typeof(BenutzerRolle), reader.GetString(1)); + this.Passwort = reader.IsDBNull(2) ? string.Empty : reader.GetString(2); + this.Vorname = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.Nachname = reader.IsDBNull(4) ? string.Empty : reader.GetString(4); + this.Schein = reader.IsDBNull(5) ? null : (int?)reader.GetInt32(5); + this.GueltigBis = reader.IsDBNull(6) ? null : (DateTime?)reader.GetDateTime(6); + this.Aktiv = reader.IsDBNull(7) ? true : reader.GetBoolean(7); + this.BenutzerName = reader.IsDBNull(8) ? string.Empty : reader.GetString(8); + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.BenutzerID.HasValue & this.BenutzerID != 0) + { + command.CommandText = $"update {TABLE} set rolle = :p1, passwort = :p2, vorname = :p3, nachname = :p4, schein = :p5, gueltig_bis = :p6, ist_aktiv = :p7, benutzer_name = :p8 where benutzer_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.benutzer_seq')"; + this.BenutzerID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8)"; + } + + command.Parameters.AddWithValue("p0", this.BenutzerID); + command.Parameters.AddWithValue("p1", this.Rolle.ToString()); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(this.Passwort) ? (object)DBNull.Value : this.Passwort); + command.Parameters.AddWithValue("p3", string.IsNullOrEmpty(this.Vorname) ? (object)DBNull.Value : this.Vorname); + command.Parameters.AddWithValue("p4", string.IsNullOrEmpty(this.Nachname) ? (object)DBNull.Value : this.Nachname); + command.Parameters.AddWithValue("p5", this.Schein.HasValue ? this.Schein.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p6", this.Rolle == BenutzerRolle.Fahrer ? this.GueltigBis.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p7", this.Aktiv); + command.Parameters.AddWithValue("p8", string.IsNullOrEmpty(this.BenutzerName) ? (object)DBNull.Value : this.BenutzerName); + + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + } +} diff --git a/Berechnungen.cs b/Berechnungen.cs new file mode 100644 index 0000000..b5fdcc6 --- /dev/null +++ b/Berechnungen.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class Berechnungen + { + public Berechnungen() + { + } + + public static double[] GetBewertung(double kndums, int betten, double gesamtumsatz, double variablekosten, double[] kosten, bool istmiete) + { + double[] bewertung = new double[5]; + + bewertung[0] = kndums / gesamtumsatz; //UMSATZANTEIL + bewertung[1] = variablekosten * -1 * bewertung[0] / betten; //KOSTENANTEIL + bewertung[2] = kndums / betten; //UMSATZ/GAST + bewertung[3] = bewertung[2] - bewertung[1]; //BEWERTUNG IN EURO + + if (istmiete) bewertung[4] = bewertung[3] / kosten[2]; + else bewertung[4] = bewertung[3] / kosten[1]; + + return bewertung; + } + public static double[] Differenz_berechnen(double zahl1, double zahl2) + { + double[] diff = new double[2]; + diff[0] = zahl1 - zahl2; //DIFFERENZ IN EUR + if (zahl2 != 0) diff[1] = diff[0] / zahl2; + else diff[1] = 1.00; //DIFFERENZ IN % + return diff; + } + public static double[] Kostensummen(List kostenliste) + { + double[] results = new double[4]; + + foreach(Kosten kosten in kostenliste) + { + if (kosten.Kategorie == KostenKat.FixLohn) results[0] += (double)kosten.Betrag; + if (kosten.Kategorie == KostenKat.FixMiete) results[1] += (double)kosten.Betrag; + if (kosten.Kategorie == KostenKat.Variabel) results[2] += (double)kosten.Betrag; + if (kosten.Kategorie == KostenKat.Rest) results[3] += (double)kosten.Betrag; + } + + for (int i = 0; i < results.Length; i++) + { + results[i] = results[i] * -1; + } + + return results; + } + + public static DateTime GetNextWeekday(int liefertag) + { + DateTime dt; + if ((int)DateTime.Today.DayOfWeek == liefertag) { dt = DateTime.Today.AddDays(1); } + else { dt = DateTime.Today; } + int daysUntilLiefertag = ((int)liefertag - (int)dt.DayOfWeek + 7) % 7; + + return dt.AddDays(daysUntilLiefertag); + } + } +} diff --git a/ClassChart.cs b/ClassChart.cs new file mode 100644 index 0000000..84169a9 --- /dev/null +++ b/ClassChart.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Policy; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class ClassChart + { + public ClassChart() + { + } + + public static ClassChart FillChart(int? kndid) + { + ClassChart chart = new ClassChart(); + + return chart; + } + } +} diff --git a/DatenbankConnection.cs b/DatenbankConnection.cs new file mode 100644 index 0000000..a6080e1 --- /dev/null +++ b/DatenbankConnection.cs @@ -0,0 +1,27 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Management; + +namespace DatenDB +{ + static class DatenbankConnection + { + private static NpgsqlConnection connection = null; + + public static NpgsqlConnection GetConnection() + { + if (connection == null) + { + connection = new NpgsqlConnection(ConfigurationManager.AppSettings["ConnectionString"]); + } + + return connection; + } + + } +} diff --git a/Deckungsbeitrag.csproj b/Deckungsbeitrag.csproj index e567df2..85d9d6d 100644 --- a/Deckungsbeitrag.csproj +++ b/Deckungsbeitrag.csproj @@ -12,6 +12,23 @@ 512 true true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + AnyCPU @@ -32,22 +49,87 @@ prompt 4 + + Deckungsbeitrag.Program + + + packages\AForge.2.2.5\lib\AForge.dll + + + packages\AForge.Video.2.2.5\lib\AForge.Video.dll + + + packages\AForge.Video.DirectShow.2.2.5\lib\AForge.Video.DirectShow.dll + + + packages\HarfBuzzSharp.8.3.0.1\lib\net462\HarfBuzzSharp.dll + False bin\Debug\ListViewPrinter.dll + + packages\Microsoft.Bcl.AsyncInterfaces.9.0.0\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll + + + packages\Microsoft.Bcl.HashCode.6.0.0\lib\net462\Microsoft.Bcl.HashCode.dll + + + packages\Microsoft.Extensions.Logging.Abstractions.6.0.0\lib\net461\Microsoft.Extensions.Logging.Abstractions.dll + + + packages\Npgsql.4.1.14\lib\net461\Npgsql.dll + packages\ObjectListView.Updated.2.9.3\lib\net40\ObjectListView.dll - - packages\Spire.Barcode.7.3.5\lib\net48\Spire.Barcode.dll + + packages\Spire.Barcode.7.4.1\lib\net48\Spire.Barcode.dll + + packages\System.Buffers.4.6.1\lib\net462\System.Buffers.dll + + + packages\System.Collections.Immutable.9.0.0\lib\net462\System.Collections.Immutable.dll + + + packages\System.Diagnostics.DiagnosticSource.9.0.0\lib\net462\System.Diagnostics.DiagnosticSource.dll + + + packages\System.IO.Pipelines.9.0.0\lib\net462\System.IO.Pipelines.dll + + + packages\System.Memory.4.6.3\lib\net462\System.Memory.dll + + + + packages\System.Numerics.Vectors.4.6.1\lib\net462\System.Numerics.Vectors.dll + + + packages\System.Runtime.CompilerServices.Unsafe.6.1.2\lib\net462\System.Runtime.CompilerServices.Unsafe.dll + + + packages\System.Text.Encodings.Web.9.0.0\lib\net462\System.Text.Encodings.Web.dll + + + packages\System.Text.Json.9.0.0\lib\net462\System.Text.Json.dll + + + packages\System.Threading.Channels.9.0.0\lib\net462\System.Threading.Channels.dll + + + packages\System.Threading.Tasks.Extensions.4.6.3\lib\net462\System.Threading.Tasks.Extensions.dll + + + packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll + + @@ -62,20 +144,67 @@ ..\..\..\Users\kilia\Downloads\USB-Barcode-Scanner.dll - - packages\ZXing.Net.0.16.9\lib\net48\zxing.dll + + packages\ZXing.Net.0.16.11\lib\net48\zxing.dll - - packages\ZXing.Net.0.16.9\lib\net48\zxing.presentation.dll + + packages\ZXing.Net.0.16.11\lib\net48\zxing.presentation.dll + + + + + + + + + + + + + Form + + + FormArtikelVW.cs + + + Form + + + FormAufgabeVW.cs + Form FormAuftragDetail.cs + + Form + + + FormBenutzerVW.cs + + + Form + + + FormFehlmengeCount.cs + + + Form + + + FormHelp.cs + + + Form + + + FormKamera.cs + Form @@ -160,13 +289,19 @@ FormProgrammauswahl.cs - + Form - - FormWaschverlauf.cs + + FromAuftragVW.cs + + + + + + Form @@ -180,21 +315,26 @@ FormNeuDeckungsbeitrag.cs - + Form - - Import.cs + + FormImport.cs + + - + Form - - KundeDaten.cs + + FormKundeVW.cs + + + UserControl @@ -207,9 +347,30 @@ UCAuftrag.cs + + + + + FormArtikelVW.cs + + + FormAufgabeVW.cs + FormAuftragDetail.cs + + FormBenutzerVW.cs + + + FormFehlmengeCount.cs + + + FormHelp.cs + + + FormKamera.cs + FormMSAuswahl.cs @@ -258,11 +419,11 @@ FormProgrammauswahl.cs - - FormWaschverlauf.cs + + FromAuftragVW.cs - - Import.cs + + FormImport.cs ResXFileCodeGenerator @@ -274,8 +435,8 @@ Resources.resx True - - KundeDaten.cs + + FormKundeVW.cs UCArtikel.cs @@ -297,12 +458,6 @@ - - - {be2d4605-a60c-4cc5-a423-edd9cda63f2a} - DatenDB - - @@ -310,7 +465,29 @@ + + + + + + + False + Microsoft .NET Framework 4.8 %28x86 und x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + + Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". + + + \ No newline at end of file diff --git a/Deckungsbeitrag.sln b/Deckungsbeitrag.sln index ed8cda2..33d1ca8 100644 --- a/Deckungsbeitrag.sln +++ b/Deckungsbeitrag.sln @@ -5,8 +5,6 @@ VisualStudioVersion = 17.3.32922.545 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deckungsbeitrag", "Deckungsbeitrag.csproj", "{1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DatenDB", "..\DatenDB\DatenDB.csproj", "{BE2D4605-A60C-4CC5-A423-EDD9CDA63F2A}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -17,10 +15,6 @@ Global {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Debug|Any CPU.Build.0 = Debug|Any CPU {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.ActiveCfg = Release|Any CPU {1CDFBC6A-240A-4D59-9F9E-35041D9ACCC6}.Release|Any CPU.Build.0 = Release|Any CPU - {BE2D4605-A60C-4CC5-A423-EDD9CDA63F2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {BE2D4605-A60C-4CC5-A423-EDD9CDA63F2A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {BE2D4605-A60C-4CC5-A423-EDD9CDA63F2A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {BE2D4605-A60C-4CC5-A423-EDD9CDA63F2A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Fach.cs b/Fach.cs new file mode 100644 index 0000000..e711e2a --- /dev/null +++ b/Fach.cs @@ -0,0 +1,166 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + + public enum Liefertag + { + SO = 0, + MO = 1, + DI = 2, + MI = 3, + DO = 4, + FR = 5, + SA = 6, + STV = 7 + } + public class Fach + { + private const string COLUMNS = "fach_id, maschine_id, kunde_id, wprogramm_id, gewicht, extra, gewaschen, extrakunde_id, liefertag, auftrag_id, extraauftrag_id, tischsummary, containersummary"; + private const string TABLE = "kundenverwaltung.fach"; + + public static List GetVerlauf(int? mID) + { + DatenbankConnection.GetConnection().Open(); + List resultlist = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE} where maschine_id = {mID}"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(new Fach(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultlist; + } + + public static List GetTischSummary(int? mID) + { + DatenbankConnection.GetConnection().Open(); + List resultlist = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select distinct(auftrag_id) from {TABLE} where maschine_id = {mID} and fach_id > (select max(fach_id) from {TABLE} where tischsummary = true) order by auftrag_id asc"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(reader.GetInt32(0)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultlist; + } + + public static List GetInhalt(int? mID, int fachzahl) + { + DatenbankConnection.GetConnection().Open(); + List resultlist = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE} where maschine_id = {mID} order by gewaschen desc Limit {fachzahl}"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(new Fach(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultlist; + } + public static Fach GetFach(int? ms, int fach) + { + DatenbankConnection.GetConnection().Open(); + Fach result = new Fach(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (ms == 1) command.CommandText = $"select fach_id, maschine_id, kunde_id, wprogramm_id, gewicht, extra, gewaschen, extrakunde_id, liefertag, auftrag_id, extraauftrag_id from kundenverwaltung.inhalt_ws1 where row_number = {fach}"; + if (ms == 2) command.CommandText = $"select fach_id, maschine_id, kunde_id, wprogramm_id, gewicht, extra, gewaschen, extrakunde_id, liefertag, auftrag_id, extraauftrag_id from kundenverwaltung.inhalt_ws2 where row_number = {fach}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Fach(reader); + reader.Close(); + } + DatenbankConnection.GetConnection().Close(); + + return result; + } + public int? FachID { get; set; } + public int MaschineID { get; set; } + public int KundeID { get; set; } + public int WProgrammID { get; set; } + public double? Gewicht { get; set; } + public DateTime Gewaschen { get; set; } + public int? Extra { get; set; } + public Liefertag Liefertag { get; set; } = Liefertag.MO; + public int? ExtraKundeID { get; set; } + public DateTime? Lieferdatum { get; set; } + public int? AuftragID { get; set; } + public int? ExtraAuftragID { get; set; } + public bool TischSummary { get; set; } + public bool ContainerSummary { get; set; } + + + public Fach(NpgsqlDataReader reader) + { + this.FachID = reader.GetInt32(0); + this.MaschineID = reader.GetInt32(1); + this.KundeID = reader.GetInt32(2); + this.WProgrammID = reader.GetInt32(3); + this.Gewicht = reader.IsDBNull(4) ? null : (double?)reader.GetDouble(4); + this.Extra = reader.IsDBNull(5) ? null : (int?)reader.GetInt16(5); + this.Gewaschen = reader.GetDateTime(6); + this.ExtraKundeID = reader.IsDBNull(7) ? (int?)null : reader.GetInt32(7); + this.Lieferdatum = reader.IsDBNull(8) ? (DateTime?)null : reader.GetDateTime(8); + this.AuftragID = reader.IsDBNull(9) ? (int?)null : reader.GetInt32(9); + this.ExtraAuftragID = reader.IsDBNull(10) ? (int?)null : reader.GetInt32(10); + if(reader.FieldCount > 11) + { + this.TischSummary = reader.IsDBNull(11) ? false : reader.GetBoolean(11); + this.ContainerSummary = reader.IsDBNull(12) ? false : reader.GetBoolean(12); + } + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.FachID.HasValue & this.FachID != 0) + { + command.CommandText = $"update {TABLE} set maschine_id = :p1, kunde_id = :p2, wprogramm_id = :p3, gewicht = :p4, extra = :p5, gewaschen = :p6, extrakunde_id = :p7, liefertag = :p8, auftrag_id = :p9, extraauftrag_id = :p10, tischsummary = :p11, containersummary = :p12 where fach_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.fach_seq')"; + this.FachID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12)"; + } + command.Parameters.AddWithValue("p0", this.FachID); + command.Parameters.AddWithValue("p1", this.MaschineID); + command.Parameters.AddWithValue("p2", this.KundeID); + command.Parameters.AddWithValue("p3", this.WProgrammID); + command.Parameters.AddWithValue("p4", this.Gewicht.HasValue ? this.Gewicht.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p5", this.Extra.HasValue ? this.Extra.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p6", this.Gewaschen); + command.Parameters.AddWithValue("p7", this.ExtraKundeID.HasValue ? this.ExtraKundeID : (object)DBNull.Value); + command.Parameters.AddWithValue("p8", this.Lieferdatum.HasValue ? this.Lieferdatum : (object)DBNull.Value); + command.Parameters.AddWithValue("p9", this.AuftragID.HasValue ? this.AuftragID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p10", this.ExtraAuftragID.HasValue ? this.ExtraAuftragID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p11", this.TischSummary); + command.Parameters.AddWithValue("p12", this.ContainerSummary); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + + public Fach() + { + } + + } +} diff --git a/FahrerAuftrag.cs b/FahrerAuftrag.cs new file mode 100644 index 0000000..d169fa9 --- /dev/null +++ b/FahrerAuftrag.cs @@ -0,0 +1,81 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class FahrerAuftrag + { + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 + private const string COLUMNS = "auftrag_id, fahrer_id, wann, zusatz, kndnr, kndname, aufgabe, beschreibung, gedruckt, gedruckt_von, erledigt, erledigt_von, erstellt, erstellt_von"; + private const string TABLE = "kundenverwaltung.fahrer_auftrag"; + public const string ASPECTS = "AuftragID,Fahrer,Wann,KundeNummer,Kunde,Aufgabe,Zusatz,Beschreibung,Gedruckt,Erledigt,Erstellt,Am"; + + public FahrerAuftrag() + { + } + public static List GetAuftragList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE}"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new FahrerAuftrag(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + foreach(FahrerAuftrag fahrerAuftrag in resultList) + { + fahrerAuftrag.Fahrer = get_fahrer(fahrerAuftrag.FahrerID); + } + return resultList; + } + + public FahrerAuftrag(NpgsqlDataReader reader) + { + this.AuftragID = reader.GetInt32(0); + this.FahrerID = reader.IsDBNull(1) ? null : (int?)reader.GetInt32(1); + this.Wann = reader.GetDateTime(2); + this.Zusatz = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.KundeNummer = reader.GetString(4); + this.Kunde = reader.GetString(5); + this.Aufgabe = reader.GetString(6); + this.Beschreibung = reader.GetString(7); + this.Gedruckt = reader.IsDBNull(8) ? null : (DateTime?)reader.GetDateTime(8); + this.GedrucktVon = reader.IsDBNull(9) ? null : (int?)reader.GetInt32(9); + this.Erledigt = reader.IsDBNull(10) ? null : (DateTime?)reader.GetDateTime(10); + this.ErledigtVon = reader.IsDBNull(11) ? null : (int?)reader.GetInt32(11); + this.Erstellt = reader.IsDBNull(12) ? null : (DateTime?)reader.GetDateTime(12); + this.ErstelltVon = reader.GetInt32(13); + + } + public int AuftragID { get; set; } + public string Fahrer { get; set; } + public int? FahrerID { get; set; } + public string KundeNummer { get; set; } + public string Kunde { get; set; } + public string Aufgabe { get; set; } + public string Beschreibung { get; set; } + public DateTime Wann { get; set; } + public string Zusatz { get; set; } + public DateTime? Gedruckt { get; set; } + public int? GedrucktVon { get; set; } + public DateTime? Erledigt { get; set; } + public int? ErledigtVon { get; set; } + public DateTime? Erstellt { get; set; } + public int ErstelltVon { get; set; } + private static string get_fahrer(int? fahrerid) + { + string fahrer = Benutzer.GetBenutzer(null, fahrerid).Vorname + " " + Benutzer.GetBenutzer(null, fahrerid).Nachname; + + return fahrer; + } + } +} diff --git a/Fehlermeldungen.cs b/Fehlermeldungen.cs new file mode 100644 index 0000000..253a8e2 --- /dev/null +++ b/Fehlermeldungen.cs @@ -0,0 +1,230 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ZXing; + +namespace DatenDB +{ + public class Fehlermeldungen + { + + public Fehlermeldungen() + { + + } + public string NoExtraKunde() + { + string s = "Extra Kunde kann nicht gewählt werden. Um Extra Kunden hinzuzugüfen wähle im vorigen Fenster +Kunde."; + return s; + } + /// + /// FUNKTIONEN GEBEN DIALOG RESULT RETUR. + /// + /// DialogResult + public DialogResult NoCleanContainer() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Der Auftrag kann nicht abgeschlossen werden. Bitte korrigiere die Anzahl der sauberen Container."; + string caption = "ACHTUNG"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Warning; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + } + public DialogResult DifferentCleanContainer() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Die Anzahl der sauberen Container wurde verändert. Möchtest du die Etiketten neu drucken?"; + string caption = "FRAGE"; + MessageBoxButtons buttons = MessageBoxButtons.YesNoCancel; + MessageBoxIcon icon = MessageBoxIcon.Question; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + } + public DialogResult NoAufgabe() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Der Auftrag kann nicht gespeichert werden. Bitte wähl eine Aufgabe aus."; + string caption = "ACHTUNG"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Exclamation; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + + } + public DialogResult AuftragAusgeliefert() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Wurde der Auftrag erfolgreich ausgeliefert?"; + string caption = "FRAGE"; + MessageBoxButtons buttons = MessageBoxButtons.YesNo; + MessageBoxIcon icon = MessageBoxIcon.Question; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + } + public DialogResult AuftragAufAbruf() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Ist der Auftrag wirklich Auf Abruf?"; + string caption = "FRAGE"; + MessageBoxButtons buttons = MessageBoxButtons.YesNo; + MessageBoxIcon icon = MessageBoxIcon.Question; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + } + public DialogResult AuftragVorhanden(Auftrag auftrag) + { + DialogResult result = DialogResult.Cancel; + + string s = $"Der Auftrag {Kunde.GetKunde(null, auftrag.KundeID, null).Suchtext} Liefertag {auftrag.Liefertag.ToShortDateString()} erstellt am {auftrag.Erstellt.Value.ToShortDateString()} ist bereits vorhanden. Trotzdem neu erstellen?"; + string caption = "FRAGE"; + MessageBoxButtons buttons = MessageBoxButtons.YesNo; + MessageBoxIcon icon = MessageBoxIcon.Question; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + } + + /// + /// Der Auftrag wurde bereits fertig gestellt. Kein Bearbeiten mehr möglich. + /// + public void AuftragFertig() + { + string s = $"Der Auftrag ist bereits fertig und kann nicht mehr bearbeitet werden."; + string caption = "HINWEIS"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Information; + MessageBox.Show(s, caption, buttons, icon); + } + + /// + /// Keine Aufträge gefunden. + /// + public void KeineAufträge() + { + string s = $"KEINE Aufträge zum Anzeigen gefunden. Versuch es mit einem anderen Status."; + string caption = "HINWEIS"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Information; + MessageBox.Show(s, caption, buttons, icon); + } + + /// + /// Es kann nur ein Auftrag verarbeitet werden. + /// + public void NurEinAuftrag() + { + string s = $"Es kann nur ein Auftrag verarbeitet werden."; + string caption = "HINWEIS"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Information; + MessageBox.Show(s, caption, buttons, icon); + } + + /// + /// Speichern der Liste erfolgreich. + /// + public void Gespeichert() + { + string s = $"Es wurden alle Einträge gespeichert."; + string caption = "HINWEIS"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Information; + MessageBox.Show(s, caption, buttons, icon); + } + + /// + /// Speichern der Liste fehlgeschlagen. + /// + public void Speicherfehler() + { + string s = $"Es konnten nicht alle Einträge gespeichert werden."; + string caption = "FEHLER"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Error; + MessageBox.Show(s, caption, buttons, icon); + } + + public void FehlmengeCount() + { + string s = $"Fehlmenge konnte nicht gespeichert werden. VORARBEITER RUFEN!!"; + string caption = "FEHLER"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Error; + MessageBox.Show(s, caption, buttons, icon); + } + + /// + /// Updating der Artikel wird durchgeführt und die DB-Verbindung ist offen. + /// + /// + public void IsUpdating(Exception ex) + { + string s = $"Update wird gerade durchgeführt. Versuch es später nocheinmal. {Environment.NewLine} Fehler: {ex.Message}"; + string caption = "FEHLER"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Error; + MessageBox.Show(s, caption, buttons, icon); + + } + + public void Eingabefehler() + { + string s = $"Die Eingabe war nicht korrekt. Bitte tragen sie hier nur Zahlen ein."; + string caption = "FEHLER"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Error; + MessageBox.Show(s, caption, buttons, icon); + } + + public DialogResult SonderNoCleanContainer() + { + DialogResult result = DialogResult.Cancel; + + string s = $"Sonderauftrag ohne sauberen Container abschließen? Es wird KEIN Etikett gedruckt."; + string caption = "INFO"; + MessageBoxButtons buttons = MessageBoxButtons.YesNo; + MessageBoxIcon icon = MessageBoxIcon.Exclamation; + + result = MessageBox.Show(s, caption, buttons, icon); + return result; + + } + + public void VerarbeiteteDaten(int saved, int anzahlkunden, int artvorhanden) + { + string s = $"Es wurden {anzahlkunden} Kunden gefunden und {saved} Artikel gespeichert. {artvorhanden} Artikel waren bereits vorhanden."; + string caption = "HINWEIS"; + MessageBoxButtons buttons = MessageBoxButtons.OK; + MessageBoxIcon icon = MessageBoxIcon.Information; + MessageBox.Show(s, caption, buttons, icon); + } + + public bool HandEingabe() + { + bool result; + string s = $"Kunde Handeingabe?"; + string caption = "FRAGE"; + MessageBoxButtons buttons = MessageBoxButtons.YesNo; + MessageBoxIcon icon = MessageBoxIcon.Question; + + if (MessageBox.Show(s, caption, buttons, icon) == DialogResult.Yes) result = true; + else result = false; + + return result; + } + } +} diff --git a/FormArtikelVW.Designer.cs b/FormArtikelVW.Designer.cs new file mode 100644 index 0000000..ced8d80 --- /dev/null +++ b/FormArtikelVW.Designer.cs @@ -0,0 +1,79 @@ +namespace Deckungsbeitrag +{ + partial class FormArtikelVW + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormArtikelVW)); + this.objectListViewArtikel = new BrightIdeasSoftware.ObjectListView(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewArtikel)).BeginInit(); + this.SuspendLayout(); + // + // objectListViewArtikel + // + this.objectListViewArtikel.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; + this.objectListViewArtikel.CellEditUseWholeCell = false; + this.objectListViewArtikel.Cursor = System.Windows.Forms.Cursors.Default; + this.objectListViewArtikel.Dock = System.Windows.Forms.DockStyle.Fill; + this.objectListViewArtikel.FullRowSelect = true; + this.objectListViewArtikel.GridLines = true; + this.objectListViewArtikel.HideSelection = false; + this.objectListViewArtikel.Location = new System.Drawing.Point(0, 0); + this.objectListViewArtikel.MultiSelect = false; + this.objectListViewArtikel.Name = "objectListViewArtikel"; + this.objectListViewArtikel.SelectColumnsOnRightClick = false; + this.objectListViewArtikel.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.None; + this.objectListViewArtikel.Size = new System.Drawing.Size(860, 496); + this.objectListViewArtikel.TabIndex = 0; + this.objectListViewArtikel.UseAlternatingBackColors = true; + this.objectListViewArtikel.UseCompatibleStateImageBehavior = false; + this.objectListViewArtikel.UseFiltering = true; + this.objectListViewArtikel.View = System.Windows.Forms.View.Details; + this.objectListViewArtikel.AfterCreatingGroups += new System.EventHandler(this.objectListViewArtikel_AfterCreatingGroups); + this.objectListViewArtikel.ButtonClick += new System.EventHandler(this.objectListViewArtikel_ButtonClick); + // + // FormArtikelVW + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(860, 496); + this.Controls.Add(this.objectListViewArtikel); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormArtikelVW"; + this.Text = "ARTIKELVERWALTUNG"; + this.Load += new System.EventHandler(this.FormArtikelVW_Load); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewArtikel)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private BrightIdeasSoftware.ObjectListView objectListViewArtikel; + } +} \ No newline at end of file diff --git a/FormArtikelVW.cs b/FormArtikelVW.cs new file mode 100644 index 0000000..232ee08 --- /dev/null +++ b/FormArtikelVW.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Runtime.InteropServices; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using BrightIdeasSoftware; +using DatenDB; + +namespace Deckungsbeitrag +{ + public partial class FormArtikelVW : Form + { + public FormArtikelVW() + { + InitializeComponent(); + } + + private void FormArtikelVW_Load(object sender, EventArgs e) + { + OLV_Load(); + + } + + private void OLV_GroupCount() + { + foreach (OLVGroup group in this.objectListViewArtikel.OLVGroups) + { + int sum = 0; + + foreach (OLVListItem item in group.Items) + { + Artikel art = (Artikel)item.RowObject; + sum += art.Nachwaesche; + } + group.Header = $"{group.Header} (Anzahl: {sum.ToString()})"; + } + + } + + private void OLV_Load() + { + Generator.GenerateColumns(this.objectListViewArtikel, typeof(Artikel), true); + this.objectListViewArtikel.SetObjects(Artikel.GetArtikelList()); + OLVColumn sortColumn = new OLVColumn(); + sortColumn = (OLVColumn)this.objectListViewArtikel.Columns[6]; + this.objectListViewArtikel.Sort(sortColumn); + OLV_GroupCount(); + OLVColumn buttonColumn = new OLVColumn(); + buttonColumn = (OLVColumn)this.objectListViewArtikel.Columns[7]; + buttonColumn.IsButton = true; + buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; + Funktionen.Columns_Resize(this.objectListViewArtikel); + + this.objectListViewArtikel.FilterMenuBuildStrategy = new MeinFilterMenu(); + + } + + private void objectListViewArtikel_ButtonClick(object sender, CellClickEventArgs e) + { + Artikel artikel = (Artikel)e.Model; + artikel.Nachwaesche = 0; + artikel.LastReset = DateTime.Now; + if(artikel.Save() == 1) this.objectListViewArtikel.RefreshObject(e.Model); + } + + private void objectListViewArtikel_AfterCreatingGroups(object sender, CreateGroupsEventArgs e) + { + foreach (OLVGroup group in this.objectListViewArtikel.OLVGroups) + { + int sum = 0; + + foreach (OLVListItem item in group.Items) + { + Artikel art = (Artikel)item.RowObject; + sum += art.Nachwaesche; + } + group.Header = $"{group.Header} (Anzahl: {sum.ToString()})"; + } + + } + } +} diff --git a/FormArtikelVW.resx b/FormArtikelVW.resx new file mode 100644 index 0000000..4b0fe78 --- /dev/null +++ b/FormArtikelVW.resx @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAAB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abeVW.Designer.cs b/FormAufgabeVW.Designer.cs new file mode 100644 index 0000000..3b92f16 --- /dev/null +++ b/FormAufgabeVW.Designer.cs @@ -0,0 +1,252 @@ +namespace Deckungsbeitrag +{ + partial class FormAufgabeVW + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAufgabeVW)); + this.listViewAufgabeVW = new System.Windows.Forms.ListView(); + this.groupBoxNeueAufgabe = new System.Windows.Forms.GroupBox(); + this.buttonFarbe = new System.Windows.Forms.Button(); + this.label11 = new System.Windows.Forms.Label(); + this.comboBoxAufgabeKat = new System.Windows.Forms.ComboBox(); + this.label2 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.textBoxBeschreibung = new System.Windows.Forms.TextBox(); + this.textBoxBezeichnung = new System.Windows.Forms.TextBox(); + this.buttonAbbrechenAufgabe = new System.Windows.Forms.Button(); + this.buttonSpeichernAufgabe = new System.Windows.Forms.Button(); + this.buttonNewUser = new System.Windows.Forms.Button(); + this.groupBoxNeueAufgabe.SuspendLayout(); + this.SuspendLayout(); + // + // listViewAufgabeVW + // + this.listViewAufgabeVW.AllowColumnReorder = true; + this.listViewAufgabeVW.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.listViewAufgabeVW.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.listViewAufgabeVW.FullRowSelect = true; + this.listViewAufgabeVW.GridLines = true; + this.listViewAufgabeVW.HideSelection = false; + this.listViewAufgabeVW.Location = new System.Drawing.Point(11, 11); + this.listViewAufgabeVW.Margin = new System.Windows.Forms.Padding(2); + this.listViewAufgabeVW.Name = "listViewAufgabeVW"; + this.listViewAufgabeVW.Size = new System.Drawing.Size(778, 314); + this.listViewAufgabeVW.TabIndex = 34; + this.listViewAufgabeVW.UseCompatibleStateImageBehavior = false; + this.listViewAufgabeVW.View = System.Windows.Forms.View.Details; + this.listViewAufgabeVW.MouseClick += new System.Windows.Forms.MouseEventHandler(this.listViewAufgabeVW_MouseClick); + // + // groupBoxNeueAufgabe + // + this.groupBoxNeueAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxNeueAufgabe.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.groupBoxNeueAufgabe.Controls.Add(this.buttonFarbe); + this.groupBoxNeueAufgabe.Controls.Add(this.label11); + this.groupBoxNeueAufgabe.Controls.Add(this.comboBoxAufgabeKat); + this.groupBoxNeueAufgabe.Controls.Add(this.label2); + this.groupBoxNeueAufgabe.Controls.Add(this.label1); + this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBeschreibung); + this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBezeichnung); + this.groupBoxNeueAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBoxNeueAufgabe.ForeColor = System.Drawing.Color.White; + this.groupBoxNeueAufgabe.Location = new System.Drawing.Point(11, 333); + this.groupBoxNeueAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.groupBoxNeueAufgabe.Name = "groupBoxNeueAufgabe"; + this.groupBoxNeueAufgabe.Padding = new System.Windows.Forms.Padding(2); + this.groupBoxNeueAufgabe.Size = new System.Drawing.Size(778, 87); + this.groupBoxNeueAufgabe.TabIndex = 35; + this.groupBoxNeueAufgabe.TabStop = false; + this.groupBoxNeueAufgabe.Text = "Aufgabe"; + // + // buttonFarbe + // + this.buttonFarbe.FlatAppearance.BorderColor = System.Drawing.Color.White; + this.buttonFarbe.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonFarbe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonFarbe.ForeColor = System.Drawing.Color.White; + this.buttonFarbe.Location = new System.Drawing.Point(694, 45); + this.buttonFarbe.Margin = new System.Windows.Forms.Padding(2); + this.buttonFarbe.Name = "buttonFarbe"; + this.buttonFarbe.Size = new System.Drawing.Size(72, 22); + this.buttonFarbe.TabIndex = 47; + this.buttonFarbe.Text = "Farbe"; + this.buttonFarbe.UseVisualStyleBackColor = true; + this.buttonFarbe.Visible = false; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label11.Location = new System.Drawing.Point(554, 28); + this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(52, 13); + this.label11.TabIndex = 46; + this.label11.Text = "Kategorie"; + // + // comboBoxAufgabeKat + // + this.comboBoxAufgabeKat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.comboBoxAufgabeKat.FormattingEnabled = true; + this.comboBoxAufgabeKat.Location = new System.Drawing.Point(557, 43); + this.comboBoxAufgabeKat.Margin = new System.Windows.Forms.Padding(2); + this.comboBoxAufgabeKat.Name = "comboBoxAufgabeKat"; + this.comboBoxAufgabeKat.Size = new System.Drawing.Size(133, 25); + this.comboBoxAufgabeKat.TabIndex = 45; + this.comboBoxAufgabeKat.SelectedValueChanged += new System.EventHandler(this.comboBoxAufgabeKat_SelectedValueChanged); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.Location = new System.Drawing.Point(279, 30); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(72, 13); + this.label2.TabIndex = 23; + this.label2.Text = "Beschreibung"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.Location = new System.Drawing.Point(6, 28); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(47, 13); + this.label1.TabIndex = 22; + this.label1.Text = "Aufgabe"; + // + // textBoxBeschreibung + // + this.textBoxBeschreibung.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxBeschreibung.Location = new System.Drawing.Point(281, 45); + this.textBoxBeschreibung.Margin = new System.Windows.Forms.Padding(2); + this.textBoxBeschreibung.Name = "textBoxBeschreibung"; + this.textBoxBeschreibung.Size = new System.Drawing.Size(272, 23); + this.textBoxBeschreibung.TabIndex = 19; + // + // textBoxBezeichnung + // + this.textBoxBezeichnung.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Append; + this.textBoxBezeichnung.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; + this.textBoxBezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxBezeichnung.Location = new System.Drawing.Point(9, 45); + this.textBoxBezeichnung.Margin = new System.Windows.Forms.Padding(2); + this.textBoxBezeichnung.Name = "textBoxBezeichnung"; + this.textBoxBezeichnung.Size = new System.Drawing.Size(269, 23); + this.textBoxBezeichnung.TabIndex = 18; + // + // buttonAbbrechenAufgabe + // + this.buttonAbbrechenAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonAbbrechenAufgabe.BackColor = System.Drawing.Color.Red; + this.buttonAbbrechenAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAbbrechenAufgabe.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechenAufgabe.Image"))); + this.buttonAbbrechenAufgabe.Location = new System.Drawing.Point(759, 430); + this.buttonAbbrechenAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.buttonAbbrechenAufgabe.Name = "buttonAbbrechenAufgabe"; + this.buttonAbbrechenAufgabe.Size = new System.Drawing.Size(30, 32); + this.buttonAbbrechenAufgabe.TabIndex = 41; + this.buttonAbbrechenAufgabe.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonAbbrechenAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonAbbrechenAufgabe.UseVisualStyleBackColor = false; + this.buttonAbbrechenAufgabe.Click += new System.EventHandler(this.buttonAbbrechenAufgabe_Click); + // + // buttonSpeichernAufgabe + // + this.buttonSpeichernAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonSpeichernAufgabe.BackColor = System.Drawing.Color.Lime; + this.buttonSpeichernAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSpeichernAufgabe.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichernAufgabe.Image"))); + this.buttonSpeichernAufgabe.Location = new System.Drawing.Point(725, 430); + this.buttonSpeichernAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.buttonSpeichernAufgabe.Name = "buttonSpeichernAufgabe"; + this.buttonSpeichernAufgabe.Size = new System.Drawing.Size(30, 32); + this.buttonSpeichernAufgabe.TabIndex = 40; + this.buttonSpeichernAufgabe.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonSpeichernAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonSpeichernAufgabe.UseVisualStyleBackColor = false; + this.buttonSpeichernAufgabe.Click += new System.EventHandler(this.buttonSpeichern_Click); + // + // buttonNewUser + // + this.buttonNewUser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonNewUser.BackColor = System.Drawing.Color.Yellow; + this.buttonNewUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNewUser.Image = ((System.Drawing.Image)(resources.GetObject("buttonNewUser.Image"))); + this.buttonNewUser.Location = new System.Drawing.Point(11, 430); + this.buttonNewUser.Margin = new System.Windows.Forms.Padding(2); + this.buttonNewUser.Name = "buttonNewUser"; + this.buttonNewUser.Size = new System.Drawing.Size(135, 32); + this.buttonNewUser.TabIndex = 46; + this.buttonNewUser.Text = "Neue Aufgabe"; + this.buttonNewUser.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonNewUser.UseVisualStyleBackColor = false; + this.buttonNewUser.Click += new System.EventHandler(this.buttonNewUser_Click); + // + // FormAufgabeVW + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(800, 473); + this.Controls.Add(this.buttonNewUser); + this.Controls.Add(this.groupBoxNeueAufgabe); + this.Controls.Add(this.listViewAufgabeVW); + this.Controls.Add(this.buttonAbbrechenAufgabe); + this.Controls.Add(this.buttonSpeichernAufgabe); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormAufgabeVW"; + this.Text = "Aufgabeverwaltung"; + this.Load += new System.EventHandler(this.FormAufgabeVW_Load); + this.groupBoxNeueAufgabe.ResumeLayout(false); + this.groupBoxNeueAufgabe.PerformLayout(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.ListView listViewAufgabeVW; + private System.Windows.Forms.GroupBox groupBoxNeueAufgabe; + private System.Windows.Forms.Button buttonFarbe; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Button buttonAbbrechenAufgabe; + private System.Windows.Forms.ComboBox comboBoxAufgabeKat; + private System.Windows.Forms.Button buttonSpeichernAufgabe; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.TextBox textBoxBeschreibung; + private System.Windows.Forms.TextBox textBoxBezeichnung; + private System.Windows.Forms.Button buttonNewUser; + } +} \ No newline at end of file diff --git a/FormAufgabeVW.cs b/FormAufgabeVW.cs new file mode 100644 index 0000000..6a93f3a --- /dev/null +++ b/FormAufgabeVW.cs @@ -0,0 +1,114 @@ +using DatenDB; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Xml.Serialization; + +namespace Deckungsbeitrag +{ + public partial class FormAufgabeVW : Form + { + Aufgabe aufgabe; + public FormAufgabeVW() + { + InitializeComponent(); + } + + private void FormAufgabeVW_Load(object sender, EventArgs e) + { + GroupBox_Visibility_State(this.groupBoxNeueAufgabe); + List list = new List(Aufgabe.GetList(null)); + this.listViewAufgabeVW = Funktionen.ListView_Load(this.listViewAufgabeVW, Aufgabe.COLUMNS, list); + + } + private void Clear_controls() + { + foreach (Control ctr in this.groupBoxNeueAufgabe.Controls) + { + if (ctr.GetType() == typeof(TextBox)) + { + TextBox tb = (TextBox)ctr; + tb.Clear(); + } + if (ctr.GetType() == typeof(CheckBox)) + { + CheckBox cb = (CheckBox)ctr; + cb.Checked = true; + } + } + + } + private void Load_comboBoxAufgabeKat() + { + this.comboBoxAufgabeKat.DataSource = Enum.GetValues(typeof(Kategorie)); + } + private void listViewAufgabeVW_MouseClick(object sender, MouseEventArgs e) + { + ListViewItem item = this.listViewAufgabeVW.GetItemAt(e.X, e.Y); + if (item != null) + { + this.aufgabe = (Aufgabe)item.Tag; + this.groupBoxNeueAufgabe.Text = "Aufgabe bearbeiten"; + this.textBoxBezeichnung.Text = this.aufgabe.Bezeichnung; + this.textBoxBeschreibung.Text = this.aufgabe.Beschreibung; + Load_comboBoxAufgabeKat(); + this.comboBoxAufgabeKat.SelectedItem = this.aufgabe.Kategorie; + comboBoxAufgabeKat_SelectedValueChanged(this, EventArgs.Empty); + if (this.aufgabe.Kategorie == Kategorie.Waschstrasse) + { + this.buttonFarbe.BackColor = this.aufgabe.Farbe; + this.buttonFarbe.Visible = true; + } + } + if(!this.groupBoxNeueAufgabe.Visible) GroupBox_Visibility_State(this.groupBoxNeueAufgabe); + } + private void comboBoxAufgabeKat_SelectedValueChanged(object sender, EventArgs e) + { + if (comboBoxAufgabeKat.SelectedValue.ToString() == "Waschstrasse") + { + this.buttonFarbe.Visible = true; + } + else this.buttonFarbe.Visible = false; + + } + private void GroupBox_Visibility_State(GroupBox gb) + { + if(gb.Visible) gb.Visible = false; + else gb.Visible = true; + } + + /// + /// BUTTON CLICK EVENTS + /// + /// + /// + private void buttonNewUser_Click(object sender, EventArgs e) + { + GroupBox_Visibility_State(this.groupBoxNeueAufgabe); + this.buttonNewUser.BackColor = Color.Gray; + this.groupBoxNeueAufgabe.Text = "Neue Aufgabe"; + Load_comboBoxAufgabeKat(); + Clear_controls(); + } + private void buttonSpeichern_Click(object sender, EventArgs e) + { + if (this.aufgabe == null) this.aufgabe = new Aufgabe(); + this.aufgabe.Bezeichnung = this.textBoxBezeichnung.Text; + this.aufgabe.Beschreibung = this.textBoxBeschreibung.Text; + this.aufgabe.Kategorie = (Kategorie)this.comboBoxAufgabeKat.SelectedItem; + this.aufgabe.Farbe = this.buttonFarbe.BackColor; + + if (this.aufgabe.Save() == 1) { Clear_controls(); FormAufgabeVW_Load(this, e); } + } + private void buttonAbbrechenAufgabe_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/FormAufgabeVW.resx b/FormAufgabeVW.resx new file mode 100644 index 0000000..eed575b --- /dev/null +++ b/FormAufgabeVW.resx @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAKhJREFUOE9jYEAC3759M0DmYwM41Xz79q3i27dv/799+5aJLgcDIDmomgp0iYpX + N6/+3xbp/v/t/TtYDQGJgeS2hDj8f37xLMIQkJNApoI0L1Tj/b/WWRfDEJhmkBxIDcgQqEsg3kFXgGwI + PjmE+/AYgk0MQzMMYDOEaM0wgG4ISZpBgCID0DWT5AVsmokORFyaiYpGaiUk8pMykgLyMxMM4MyqSABd + DQCo07laP2majgAAAABJRU5ErkJggg== + +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L+uMajvB2wSViQ89CQLHiDpqsGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/FormAufleger.cs b/FormAufleger.cs index 7a2f67c..27b1744 100644 --- a/FormAufleger.cs +++ b/FormAufleger.cs @@ -497,13 +497,13 @@ namespace Deckungsbeitrag private void PrintDocument_PrintPage_Begleitzettel(object sender, System.Drawing.Printing.PrintPageEventArgs e) { auftrag = Auftrag.GetAuftrag(fachliste.Last().AuftragID); - Image etikett = Funktionen.Etikett_Entwurf(auftrag); + Image etikett = Funktionen.Etikett_Entwurf(this, auftrag, false); //etikett.RotateFlip(RotateFlipType.Rotate180FlipNone); e.Graphics.DrawImage(etikett, e.PageBounds); } private void PrintDocument_PrintPage_Tischsummary(object sender, System.Drawing.Printing.PrintPageEventArgs e) { - Image etikett = Funktionen.Etikett_Entwurf(auftragsummary); + Image etikett = Funktionen.Etikett_Entwurf(this, auftragsummary, false); //etikett.RotateFlip(RotateFlipType.Rotate180FlipNone); e.Graphics.DrawImage(etikett, e.PageBounds); } diff --git a/FormAuftragDetail.Designer.cs b/FormAuftragDetail.Designer.cs index b6a119e..15c87a6 100644 --- a/FormAuftragDetail.Designer.cs +++ b/FormAuftragDetail.Designer.cs @@ -90,7 +90,7 @@ // buttonFertig // this.buttonFertig.Anchor = System.Windows.Forms.AnchorStyles.Bottom; - this.buttonFertig.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonFertig.BackColor = System.Drawing.Color.Turquoise; this.buttonFertig.FlatAppearance.BorderSize = 0; this.buttonFertig.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -353,7 +353,7 @@ // buttonSWS // this.buttonSWS.Anchor = System.Windows.Forms.AnchorStyles.Bottom; - this.buttonSWS.BackColor = System.Drawing.Color.Turquoise; + this.buttonSWS.BackColor = System.Drawing.Color.Yellow; this.buttonSWS.FlatAppearance.BorderSize = 0; this.buttonSWS.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSWS.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -387,7 +387,7 @@ // buttonSpeichern // this.buttonSpeichern.Anchor = System.Windows.Forms.AnchorStyles.Bottom; - this.buttonSpeichern.BackColor = System.Drawing.Color.Yellow; + this.buttonSpeichern.BackColor = System.Drawing.Color.Lime; this.buttonSpeichern.FlatAppearance.BorderSize = 0; this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -399,6 +399,7 @@ this.buttonSpeichern.TabIndex = 36; this.buttonSpeichern.Text = "Änderungen speichern"; this.buttonSpeichern.UseVisualStyleBackColor = false; + this.buttonSpeichern.Visible = false; this.buttonSpeichern.Click += new System.EventHandler(this.buttonSpeichern_Click); // // FormAuftragDetail diff --git a/FormAuftragDetail.cs b/FormAuftragDetail.cs index 9cb5033..3460996 100644 --- a/FormAuftragDetail.cs +++ b/FormAuftragDetail.cs @@ -1,5 +1,4 @@ -using DatenDB; -using System; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; @@ -11,6 +10,7 @@ using System.Text; using System.Threading.Tasks; using System.Web; using System.Windows.Forms; +using DatenDB; namespace Deckungsbeitrag { @@ -57,7 +57,7 @@ namespace Deckungsbeitrag public FormAuftragDetail() { InitializeComponent(); - this.BackColor = Properties.Settings.Default.Wirlblau; + //this.BackColor = Properties.Settings.Default.Wirlblau; labelContainer_TextChanged(this.labelContainer, EventArgs.Empty); //SPEICHERN UND ABSCHLIESSEN BUTTONS WERDEN FUNKTIONSLOS UND GRAU @@ -78,7 +78,7 @@ namespace Deckungsbeitrag this.labelRegion.Text = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty).Region; this.labelContainer.Text = auftrag.ContainerClean.ToString(); this.labelContDirt.Text = auftrag.Container.ToString(); - this.textBoxZusatz.Text = auftrag.ZusatzInfo; + //this.textBoxZusatz.Text = auftrag.ZusatzInfo; //WENN STATUS 3(HERRICHTEN) oder HÖHER(FERTIG, AUSGELIEFERT) DANN KEINE VORHER NACHHER LISTEN if (auftrag.Status <= AuftragStatus.Finisching) @@ -141,6 +141,8 @@ namespace Deckungsbeitrag Funktionen.Columns_Resize(this.listViewArtikel); } + //WENN STATUS VORBEREITET BUTTON FERTIG ENABLEN + if (auftrag.Status == AuftragStatus.Vorbereitet) { buttonFertig.Enabled = true; buttonFertig.BackColor = Color.FromArgb(0, 192, 0); toclose = true; } } private void labelContainer_TextChanged(object sender, EventArgs e) { @@ -249,12 +251,59 @@ namespace Deckungsbeitrag { if (toclose) { - if(int.Parse(this.labelContainer.Text) == 0) if (meldung.NoCleanContainer() == DialogResult.OK) return; + if (int.Parse(this.labelContainer.Text) == 0) if (meldung.NoCleanContainer() == DialogResult.OK) return; + if (int.Parse(this.labelContainer.Text) != auftrag.ContainerClean) + { + switch (meldung.DifferentCleanContainer()) + { + case DialogResult.Cancel: + break; + case DialogResult.Yes: + { + auftrag.ContainerClean = int.Parse(this.labelContainer.Text); + auftrag.Liefertag = dTPLiefertag.Value; + //WENN BEARBEITET UND AUSGEDRUCKT WIRD GEDRUCKT VERÄNDERT UND ERSTELLT IST URSPRUNGSDATUM + auftrag.Gedruckt = DateTime.Now; + auftrag.GedrucktVon = benutzer.BenutzerID; + auftrag.Status = AuftragStatus.Fertig; + + bool nocont = false; + if (MessageBox.Show("Möchtest du die Containeranzahl am Etikett anzeigen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) + { + nocont = true; + } + else nocont = false; - auftrag.Erledigt = DateTime.Now; - auftrag.ErledigtVon = benutzer.BenutzerID; + DialogResult result = Funktionen.Etikett_Drucken(auftrag, nocont); + if (result == DialogResult.OK) + { + this.auftrag.Save(); + this.Close(); + } + } + break; + case DialogResult.No: + { + auftrag.ContainerClean = int.Parse(this.labelContainer.Text); + auftrag.Liefertag = dTPLiefertag.Value; + //WENN BEARBEITET UND NICHT GEDRUCKT WIRD ERSTELLT VERÄNDERT UND GEDRUCKT IST URSPRUNGSDATUM + auftrag.Erstellt = DateTime.Now; + auftrag.ErstelltVon = (int)benutzer.BenutzerID; + auftrag.Status = AuftragStatus.Fertig; - auftrag.Save(); + this.auftrag.Save(); + this.Close(); + } + break; + default: + break; + } + } + else + { + auftrag.Status = AuftragStatus.Fertig; + auftrag.Save(); + } } this.DialogResult = DialogResult.OK; @@ -265,7 +314,7 @@ namespace Deckungsbeitrag //SCHMUTZWÄSCHESCHEIN DRUCKEN private void buttonSWS_Click(object sender, EventArgs e) { - Funktionen.SWS_Drucken(auftrag, null); + Funktionen.SWS_Drucken(auftrag, null, this); //PrintDialog dialog = new PrintDialog(); //foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(ConfigurationManager.AppSettings["PrinterName"])) dialog.PrinterSettings.PrinterName = printer; diff --git a/FormBenutzerVW.Designer.cs b/FormBenutzerVW.Designer.cs new file mode 100644 index 0000000..6c2631c --- /dev/null +++ b/FormBenutzerVW.Designer.cs @@ -0,0 +1,141 @@ +namespace Deckungsbeitrag +{ + partial class FormBenutzerVW + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormBenutzerVW)); + this.buttonNewUser = new System.Windows.Forms.Button(); + this.buttonAbbrechen = new System.Windows.Forms.Button(); + this.buttonSpeichern = new System.Windows.Forms.Button(); + this.objectListViewBenutzer = new BrightIdeasSoftware.ObjectListView(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewBenutzer)).BeginInit(); + this.SuspendLayout(); + // + // buttonNewUser + // + this.buttonNewUser.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonNewUser.BackColor = System.Drawing.Color.Yellow; + this.buttonNewUser.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNewUser.Image = ((System.Drawing.Image)(resources.GetObject("buttonNewUser.Image"))); + this.buttonNewUser.Location = new System.Drawing.Point(11, 406); + this.buttonNewUser.Margin = new System.Windows.Forms.Padding(2); + this.buttonNewUser.Name = "buttonNewUser"; + this.buttonNewUser.Size = new System.Drawing.Size(107, 32); + this.buttonNewUser.TabIndex = 45; + this.buttonNewUser.Text = "Neuer User"; + this.buttonNewUser.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonNewUser.UseVisualStyleBackColor = false; + this.buttonNewUser.Click += new System.EventHandler(this.buttonNewUser_Click); + // + // buttonAbbrechen + // + this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonAbbrechen.BackColor = System.Drawing.Color.Red; + this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechen.Image"))); + this.buttonAbbrechen.Location = new System.Drawing.Point(759, 406); + this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2); + this.buttonAbbrechen.Name = "buttonAbbrechen"; + this.buttonAbbrechen.Size = new System.Drawing.Size(30, 32); + this.buttonAbbrechen.TabIndex = 39; + this.buttonAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonAbbrechen.UseVisualStyleBackColor = false; + this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); + // + // buttonSpeichern + // + this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonSpeichern.BackColor = System.Drawing.Color.Lime; + this.buttonSpeichern.Enabled = false; + this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSpeichern.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichern.Image"))); + this.buttonSpeichern.Location = new System.Drawing.Point(725, 406); + this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2); + this.buttonSpeichern.Name = "buttonSpeichern"; + this.buttonSpeichern.Size = new System.Drawing.Size(30, 32); + this.buttonSpeichern.TabIndex = 38; + this.buttonSpeichern.TextAlign = System.Drawing.ContentAlignment.BottomCenter; + this.buttonSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.buttonSpeichern.UseVisualStyleBackColor = false; + this.buttonSpeichern.Visible = false; + // + // objectListViewBenutzer + // + this.objectListViewBenutzer.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; + this.objectListViewBenutzer.CellEditActivation = BrightIdeasSoftware.ObjectListView.CellEditActivateMode.DoubleClick; + this.objectListViewBenutzer.Cursor = System.Windows.Forms.Cursors.Default; + this.objectListViewBenutzer.Dock = System.Windows.Forms.DockStyle.Top; + this.objectListViewBenutzer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.objectListViewBenutzer.FullRowSelect = true; + this.objectListViewBenutzer.GridLines = true; + this.objectListViewBenutzer.HideSelection = false; + this.objectListViewBenutzer.Location = new System.Drawing.Point(0, 0); + this.objectListViewBenutzer.MultiSelect = false; + this.objectListViewBenutzer.Name = "objectListViewBenutzer"; + this.objectListViewBenutzer.SelectColumnsOnRightClick = false; + this.objectListViewBenutzer.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.None; + this.objectListViewBenutzer.ShowGroups = false; + this.objectListViewBenutzer.ShowSortIndicators = false; + this.objectListViewBenutzer.Size = new System.Drawing.Size(800, 396); + this.objectListViewBenutzer.TabIndex = 46; + this.objectListViewBenutzer.UseAlternatingBackColors = true; + this.objectListViewBenutzer.UseCompatibleStateImageBehavior = false; + this.objectListViewBenutzer.UseFiltering = true; + this.objectListViewBenutzer.View = System.Windows.Forms.View.Details; + this.objectListViewBenutzer.CellEditFinished += new BrightIdeasSoftware.CellEditEventHandler(this.objectListViewBenutzer_CellEditFinished); + this.objectListViewBenutzer.SubItemChecking += new System.EventHandler(this.objectListViewBenutzer_SubItemChecking); + this.objectListViewBenutzer.SelectedIndexChanged += new System.EventHandler(this.objectListViewBenutzer_SelectedIndexChanged); + // + // FormBenutzerVW + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(800, 446); + this.Controls.Add(this.objectListViewBenutzer); + this.Controls.Add(this.buttonNewUser); + this.Controls.Add(this.buttonAbbrechen); + this.Controls.Add(this.buttonSpeichern); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormBenutzerVW"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "Benutzerverwaltung"; + this.Load += new System.EventHandler(this.FormBenutzerVW_Load); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewBenutzer)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.Button buttonAbbrechen; + private System.Windows.Forms.Button buttonSpeichern; + private System.Windows.Forms.Button buttonNewUser; + private BrightIdeasSoftware.ObjectListView objectListViewBenutzer; + } +} \ No newline at end of file diff --git a/FormBenutzerVW.cs b/FormBenutzerVW.cs new file mode 100644 index 0000000..2e13a89 --- /dev/null +++ b/FormBenutzerVW.cs @@ -0,0 +1,109 @@ +using BrightIdeasSoftware; +using DatenDB; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.Security; +using System.Windows.Forms; + +namespace Deckungsbeitrag +{ + public partial class FormBenutzerVW : Form + { + public Fehlermeldungen meldung = new Fehlermeldungen(); + public Benutzer user; + + public FormBenutzerVW() + { + InitializeComponent(); + //Load_ListView(); + } + private void FormBenutzerVW_Load(object sender, EventArgs e) + { + List list = new List(); + try + { + list = new List(Benutzer.GetList()); + Load_OLV(list); + } + catch (Exception ex) + { + meldung.IsUpdating(ex); + this.Close(); + } + + + } + private void Load_OLV(List alist) + { + Generator.GenerateColumns(this.objectListViewBenutzer, typeof(Benutzer), true); + this.objectListViewBenutzer.SetObjects(alist); + OLVColumn sortcolumn = (OLVColumn)this.objectListViewBenutzer.Columns[1]; + this.objectListViewBenutzer.Sort(sortcolumn); + //OLVColumn buttonColumn = new OLVColumn(); + //buttonColumn = (OLVColumn)this.objectListViewBenutzer.Columns[10]; + //buttonColumn.IsButton = true; + //buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; + + this.objectListViewBenutzer.FilterMenuBuildStrategy = new MeinFilterMenu(); + + + + Funktionen.Columns_Resize(this.objectListViewBenutzer); + } + + + /// + /// BUTTON CLICK EVENTS + /// + /// + /// + private void buttonNewUser_Click(object sender, EventArgs e) + { + Benutzer benutzer = new Benutzer(); + this.objectListViewBenutzer.AddObject(benutzer); + + this.objectListViewBenutzer.RowFormatter = delegate (OLVListItem olvItem) { if (olvItem.Index == 0) olvItem.BackColor = Color.LightYellow; }; + this.objectListViewBenutzer.SelectedObject = benutzer; + this.objectListViewBenutzer.FocusedItem = this.objectListViewBenutzer.ModelToItem(benutzer); + this.objectListViewBenutzer.FocusedItem.Selected = true; + this.objectListViewBenutzer.FocusedItem.EnsureVisible(); + + int firstColumnIndex = 0; + this.objectListViewBenutzer.StartCellEdit((OLVListItem)this.objectListViewBenutzer.FocusedItem, firstColumnIndex); + } + private void buttonAbbrechen_Click(object sender, EventArgs e) + { + this.Close(); + } + private void objectListViewBenutzer_CellEditFinished(object sender, CellEditEventArgs e) + { + Benutzer benutzer = (Benutzer)e.RowObject; + if(!string.IsNullOrWhiteSpace(e.NewValue.ToString())) Save_Benutzer(benutzer, false); + } + private void objectListViewBenutzer_SubItemChecking(object sender, SubItemCheckingEventArgs e) + { + Benutzer benutzer = (Benutzer)e.RowObject; + if (benutzer.Aktiv) benutzer.Aktiv = false; + else benutzer.Aktiv = true; + + Save_Benutzer(benutzer, false); + } + private void Save_Benutzer(Benutzer benutzer, bool show) + { + if (benutzer.Save() == 1) if (show) meldung.Gespeichert(); + else if (show) meldung.Speicherfehler(); + + } + + private void objectListViewBenutzer_SelectedIndexChanged(object sender, EventArgs e) + { + + } + } +} diff --git a/FormBenutzerVW.resx b/FormBenutzerVW.resx new file mode 100644 index 0000000..ba0fc55 --- /dev/null +++ b/FormBenutzerVW.resx @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO + vAAADrwBlbxySQAAAJlJREFUOE/dUMkRgCAMtA6rsAYqoAj+VGAnVGMN/OXPP1+cMMKsQRS/MrOTA3az + YZrgEFEqOGtNRDv0OdfIaYjbOtc8xpistUkplcE59xoRJGJEMoqwk+70Aq4luSCEkFe8TEfimwDfDTkY + WgFdyPjwiUsjgC6wfsOtEFp2ztXHnHf/AkXk3t77DNkfFjDGZMj+sEAPfxb4ggOJrCeBgrTaGAAAAABJ + RU5ErkJggg== + + + + + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf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N1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/FormExpedit.Designer.cs b/FormExpedit.Designer.cs index c252552..1448508 100644 --- a/FormExpedit.Designer.cs +++ b/FormExpedit.Designer.cs @@ -29,27 +29,29 @@ private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormExpedit)); - this.textBoxQRCode = new System.Windows.Forms.TextBox(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this.label10 = new System.Windows.Forms.Label(); this.buttonDrucken = new System.Windows.Forms.Button(); - this.pictureBoxEntwurf = new System.Windows.Forms.PictureBox(); this.buttonAbbrechen = new System.Windows.Forms.Button(); this.groupBoxEtikett = new System.Windows.Forms.GroupBox(); + this.textBoxCont = new System.Windows.Forms.TextBox(); + this.label5 = new System.Windows.Forms.Label(); + this.cBNoCont = new System.Windows.Forms.CheckBox(); + this.rBDI = new System.Windows.Forms.RadioButton(); + this.rBMI = new System.Windows.Forms.RadioButton(); + this.rBDO = new System.Windows.Forms.RadioButton(); + this.rBFR = new System.Windows.Forms.RadioButton(); + this.rBMO = new System.Windows.Forms.RadioButton(); this.dTPLiefertag = new System.Windows.Forms.DateTimePicker(); - this.buttonKundeNr = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.pictureBoxMinus = new System.Windows.Forms.PictureBox(); this.pictureBoxPlus = new System.Windows.Forms.PictureBox(); - this.labelContainer = new System.Windows.Forms.Label(); - this.listViewLieferungen = new System.Windows.Forms.ListView(); - this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.pictureBoxEntwurf = new System.Windows.Forms.PictureBox(); + this.buttonKundeNr = new System.Windows.Forms.Button(); this.tabControlAuftragList = new System.Windows.Forms.TabControl(); this.tabPageAll = new System.Windows.Forms.TabPage(); + this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView(); this.tabPageStandart = new System.Windows.Forms.TabPage(); this.listViewStandart = new System.Windows.Forms.ListView(); this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -59,50 +61,47 @@ this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.tabPageSonder = new System.Windows.Forms.TabPage(); - this.listViewSonder = new System.Windows.Forms.ListView(); - this.columnHeader13 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader14 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader15 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader16 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader17 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); - this.columnHeader18 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); + this.objectListViewSonder = new BrightIdeasSoftware.ObjectListView(); this.tabPageSTH = new System.Windows.Forms.TabPage(); this.listViewSTH = new System.Windows.Forms.ListView(); - this.buttonStatusSpeichern = new System.Windows.Forms.Button(); this.buttonSWS_Drucken = new System.Windows.Forms.Button(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).BeginInit(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.labelauftragtag = new System.Windows.Forms.Label(); + this.labelcontainertag = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.buttonNeuerAuftrag = new System.Windows.Forms.Button(); + this.dGArtikel = new System.Windows.Forms.DataGridView(); + this.KundeArtikelID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KundeID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelNR = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Stand = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Fehlmenge = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Korrektur = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.StandBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.FehlmengeBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KorrekturBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBoxEtikett.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).BeginInit(); this.tabControlAuftragList.SuspendLayout(); this.tabPageAll.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit(); this.tabPageStandart.SuspendLayout(); this.tabPageSonder.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).BeginInit(); this.tabPageSTH.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit(); this.SuspendLayout(); // - // textBoxQRCode - // - this.textBoxQRCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.textBoxQRCode.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxQRCode.Location = new System.Drawing.Point(9, 42); - this.textBoxQRCode.Margin = new System.Windows.Forms.Padding(2); - this.textBoxQRCode.Name = "textBoxQRCode"; - this.textBoxQRCode.Size = new System.Drawing.Size(286, 32); - this.textBoxQRCode.TabIndex = 0; - this.textBoxQRCode.Text = "Kundennummer eingeben"; - this.textBoxQRCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.textBoxQRCode.Visible = false; - this.textBoxQRCode.Enter += new System.EventHandler(this.textBoxQRCode_Enter); - this.textBoxQRCode.Leave += new System.EventHandler(this.textBoxQRCode_Leave); - this.textBoxQRCode.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.textBoxQRCode_PreviewKeyDown); - // // label10 // - this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.label10.Anchor = System.Windows.Forms.AnchorStyles.Top; this.label10.AutoSize = true; this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label10.Location = new System.Drawing.Point(14, 138); + this.label10.Location = new System.Drawing.Point(10, 196); this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(157, 16); @@ -116,8 +115,8 @@ this.buttonDrucken.FlatAppearance.BorderSize = 0; this.buttonDrucken.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonDrucken.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonDrucken.Location = new System.Drawing.Point(9, 263); - this.buttonDrucken.Margin = new System.Windows.Forms.Padding(2); + this.buttonDrucken.Location = new System.Drawing.Point(9, 362); + this.buttonDrucken.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.buttonDrucken.Name = "buttonDrucken"; this.buttonDrucken.Size = new System.Drawing.Size(286, 41); this.buttonDrucken.TabIndex = 13; @@ -125,18 +124,6 @@ this.buttonDrucken.UseVisualStyleBackColor = false; this.buttonDrucken.Click += new System.EventHandler(this.buttonDrucken_Click); // - // pictureBoxEntwurf - // - this.pictureBoxEntwurf.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.pictureBoxEntwurf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBoxEntwurf.Location = new System.Drawing.Point(9, 176); - this.pictureBoxEntwurf.Margin = new System.Windows.Forms.Padding(2); - this.pictureBoxEntwurf.Name = "pictureBoxEntwurf"; - this.pictureBoxEntwurf.Size = new System.Drawing.Size(286, 80); - this.pictureBoxEntwurf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBoxEntwurf.TabIndex = 15; - this.pictureBoxEntwurf.TabStop = false; - // // buttonAbbrechen // this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -144,8 +131,8 @@ this.buttonAbbrechen.FlatAppearance.BorderSize = 0; this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAbbrechen.Location = new System.Drawing.Point(1272, 585); - this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2); + this.buttonAbbrechen.Location = new System.Drawing.Point(1272, 726); + this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.buttonAbbrechen.Name = "buttonAbbrechen"; this.buttonAbbrechen.Size = new System.Drawing.Size(200, 41); this.buttonAbbrechen.TabIndex = 1; @@ -156,59 +143,194 @@ // groupBoxEtikett // this.groupBoxEtikett.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxEtikett.Controls.Add(this.textBoxCont); + this.groupBoxEtikett.Controls.Add(this.label5); + this.groupBoxEtikett.Controls.Add(this.cBNoCont); + this.groupBoxEtikett.Controls.Add(this.rBDI); + this.groupBoxEtikett.Controls.Add(this.rBMI); + this.groupBoxEtikett.Controls.Add(this.rBDO); + this.groupBoxEtikett.Controls.Add(this.rBFR); + this.groupBoxEtikett.Controls.Add(this.rBMO); this.groupBoxEtikett.Controls.Add(this.dTPLiefertag); - this.groupBoxEtikett.Controls.Add(this.buttonKundeNr); this.groupBoxEtikett.Controls.Add(this.label1); this.groupBoxEtikett.Controls.Add(this.pictureBoxMinus); this.groupBoxEtikett.Controls.Add(this.pictureBoxPlus); - this.groupBoxEtikett.Controls.Add(this.labelContainer); this.groupBoxEtikett.Controls.Add(this.buttonDrucken); - this.groupBoxEtikett.Controls.Add(this.textBoxQRCode); this.groupBoxEtikett.Controls.Add(this.pictureBoxEntwurf); this.groupBoxEtikett.Controls.Add(this.label10); + this.groupBoxEtikett.Controls.Add(this.buttonKundeNr); this.groupBoxEtikett.ForeColor = System.Drawing.Color.White; - this.groupBoxEtikett.Location = new System.Drawing.Point(1170, 257); - this.groupBoxEtikett.Margin = new System.Windows.Forms.Padding(2); + this.groupBoxEtikett.Location = new System.Drawing.Point(1170, 310); + this.groupBoxEtikett.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.groupBoxEtikett.Name = "groupBoxEtikett"; - this.groupBoxEtikett.Padding = new System.Windows.Forms.Padding(2); - this.groupBoxEtikett.Size = new System.Drawing.Size(302, 313); + this.groupBoxEtikett.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.groupBoxEtikett.Size = new System.Drawing.Size(302, 412); this.groupBoxEtikett.TabIndex = 2; this.groupBoxEtikett.TabStop = false; this.groupBoxEtikett.Text = "Etikett-Druck"; // + // textBoxCont + // + this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxCont.Location = new System.Drawing.Point(218, 181); + this.textBoxCont.MaxLength = 2; + this.textBoxCont.Name = "textBoxCont"; + this.textBoxCont.Size = new System.Drawing.Size(39, 40); + this.textBoxCont.TabIndex = 45; + this.textBoxCont.Text = "0"; + this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBoxCont.TextChanged += new System.EventHandler(this.textBoxCont_TextChanged); + // + // label5 + // + this.label5.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.label5.AutoSize = true; + this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label5.Location = new System.Drawing.Point(136, 318); + this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(138, 16); + this.label5.TabIndex = 44; + this.label5.Text = "Container ausblenden"; + // + // cBNoCont + // + this.cBNoCont.AutoSize = true; + this.cBNoCont.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.cBNoCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.cBNoCont.Location = new System.Drawing.Point(138, 317); + this.cBNoCont.Name = "cBNoCont"; + this.cBNoCont.Size = new System.Drawing.Size(157, 20); + this.cBNoCont.TabIndex = 42; + this.cBNoCont.Text = "Container ausblenden"; + this.cBNoCont.UseVisualStyleBackColor = true; + this.cBNoCont.CheckedChanged += new System.EventHandler(this.cBNoCont_CheckedChanged); + this.cBNoCont.Click += new System.EventHandler(this.cBNoCont_Click); + // + // rBDI + // + this.rBDI.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.rBDI.Appearance = System.Windows.Forms.Appearance.Button; + this.rBDI.BackColor = System.Drawing.SystemColors.ButtonFace; + this.rBDI.FlatAppearance.BorderSize = 0; + this.rBDI.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.rBDI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBDI.ForeColor = System.Drawing.Color.Black; + this.rBDI.Location = new System.Drawing.Point(72, 89); + this.rBDI.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.rBDI.Name = "rBDI"; + this.rBDI.Size = new System.Drawing.Size(45, 45); + this.rBDI.TabIndex = 38; + this.rBDI.TabStop = true; + this.rBDI.Text = "DI"; + this.rBDI.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.rBDI.UseVisualStyleBackColor = false; + this.rBDI.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); + this.rBDI.Click += new System.EventHandler(this.Liefertag_rB_Click); + // + // rBMI + // + this.rBMI.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.rBMI.Appearance = System.Windows.Forms.Appearance.Button; + this.rBMI.BackColor = System.Drawing.SystemColors.ButtonFace; + this.rBMI.FlatAppearance.BorderSize = 0; + this.rBMI.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.rBMI.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBMI.ForeColor = System.Drawing.Color.Black; + this.rBMI.Location = new System.Drawing.Point(131, 89); + this.rBMI.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.rBMI.Name = "rBMI"; + this.rBMI.Size = new System.Drawing.Size(45, 45); + this.rBMI.TabIndex = 39; + this.rBMI.TabStop = true; + this.rBMI.Text = "MI"; + this.rBMI.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.rBMI.UseVisualStyleBackColor = false; + this.rBMI.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); + this.rBMI.Click += new System.EventHandler(this.Liefertag_rB_Click); + // + // rBDO + // + this.rBDO.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.rBDO.Appearance = System.Windows.Forms.Appearance.Button; + this.rBDO.BackColor = System.Drawing.SystemColors.ButtonFace; + this.rBDO.FlatAppearance.BorderSize = 0; + this.rBDO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.rBDO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBDO.ForeColor = System.Drawing.Color.Black; + this.rBDO.Location = new System.Drawing.Point(188, 89); + this.rBDO.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.rBDO.Name = "rBDO"; + this.rBDO.Size = new System.Drawing.Size(45, 45); + this.rBDO.TabIndex = 40; + this.rBDO.TabStop = true; + this.rBDO.Text = "DO"; + this.rBDO.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.rBDO.UseVisualStyleBackColor = false; + this.rBDO.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); + this.rBDO.Click += new System.EventHandler(this.Liefertag_rB_Click); + // + // rBFR + // + this.rBFR.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.rBFR.Appearance = System.Windows.Forms.Appearance.Button; + this.rBFR.BackColor = System.Drawing.SystemColors.ButtonFace; + this.rBFR.FlatAppearance.BorderSize = 0; + this.rBFR.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.rBFR.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBFR.ForeColor = System.Drawing.Color.Black; + this.rBFR.Location = new System.Drawing.Point(245, 89); + this.rBFR.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.rBFR.Name = "rBFR"; + this.rBFR.Size = new System.Drawing.Size(45, 45); + this.rBFR.TabIndex = 41; + this.rBFR.TabStop = true; + this.rBFR.Text = "FR"; + this.rBFR.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.rBFR.UseVisualStyleBackColor = false; + this.rBFR.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); + this.rBFR.Click += new System.EventHandler(this.Liefertag_rB_Click); + // + // rBMO + // + this.rBMO.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.rBMO.Appearance = System.Windows.Forms.Appearance.Button; + this.rBMO.BackColor = System.Drawing.SystemColors.ButtonFace; + this.rBMO.FlatAppearance.BorderSize = 0; + this.rBMO.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.rBMO.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBMO.ForeColor = System.Drawing.Color.Black; + this.rBMO.Location = new System.Drawing.Point(13, 89); + this.rBMO.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.rBMO.Name = "rBMO"; + this.rBMO.Size = new System.Drawing.Size(45, 45); + this.rBMO.TabIndex = 37; + this.rBMO.TabStop = true; + this.rBMO.Tag = ""; + this.rBMO.Text = "MO"; + this.rBMO.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.rBMO.UseVisualStyleBackColor = false; + this.rBMO.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); + this.rBMO.Click += new System.EventHandler(this.Liefertag_rB_Click); + // // dTPLiefertag // + this.dTPLiefertag.Anchor = System.Windows.Forms.AnchorStyles.Top; this.dTPLiefertag.CalendarFont = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dTPLiefertag.Cursor = System.Windows.Forms.Cursors.Default; this.dTPLiefertag.CustomFormat = ""; this.dTPLiefertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.dTPLiefertag.Format = System.Windows.Forms.DateTimePickerFormat.Short; - this.dTPLiefertag.Location = new System.Drawing.Point(163, 87); + this.dTPLiefertag.Location = new System.Drawing.Point(163, 143); this.dTPLiefertag.Name = "dTPLiefertag"; this.dTPLiefertag.Size = new System.Drawing.Size(132, 26); this.dTPLiefertag.TabIndex = 36; this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged); - // - // buttonKundeNr - // - this.buttonKundeNr.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonKundeNr.BackColor = System.Drawing.Color.White; - this.buttonKundeNr.FlatAppearance.BorderSize = 0; - this.buttonKundeNr.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonKundeNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonKundeNr.ForeColor = System.Drawing.Color.Black; - this.buttonKundeNr.Location = new System.Drawing.Point(9, 37); - this.buttonKundeNr.Margin = new System.Windows.Forms.Padding(2); - this.buttonKundeNr.Name = "buttonKundeNr"; - this.buttonKundeNr.Size = new System.Drawing.Size(286, 41); - this.buttonKundeNr.TabIndex = 35; - this.buttonKundeNr.Text = "Kundennummer eingeben"; - this.buttonKundeNr.UseVisualStyleBackColor = false; - this.buttonKundeNr.Click += new System.EventHandler(this.buttonKundeNr_Click); + this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave); // // label1 // - this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(14, 17); @@ -220,14 +342,13 @@ // // pictureBoxMinus // - this.pictureBoxMinus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.pictureBoxMinus.BackColor = System.Drawing.Color.Red; - this.pictureBoxMinus.Enabled = false; + this.pictureBoxMinus.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.pictureBoxMinus.BackColor = System.Drawing.Color.Gray; this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image"))); - this.pictureBoxMinus.Location = new System.Drawing.Point(182, 125); - this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(2); + this.pictureBoxMinus.Location = new System.Drawing.Point(181, 181); + this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.pictureBoxMinus.Name = "pictureBoxMinus"; - this.pictureBoxMinus.Size = new System.Drawing.Size(38, 41); + this.pictureBoxMinus.Size = new System.Drawing.Size(38, 40); this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxMinus.TabIndex = 33; this.pictureBoxMinus.TabStop = false; @@ -235,90 +356,48 @@ // // pictureBoxPlus // - this.pictureBoxPlus.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.pictureBoxPlus.Anchor = System.Windows.Forms.AnchorStyles.Top; this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.pictureBoxPlus.Enabled = false; this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image"))); - this.pictureBoxPlus.Location = new System.Drawing.Point(257, 125); - this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(2); + this.pictureBoxPlus.Location = new System.Drawing.Point(257, 181); + this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.pictureBoxPlus.Name = "pictureBoxPlus"; - this.pictureBoxPlus.Size = new System.Drawing.Size(38, 41); + this.pictureBoxPlus.Size = new System.Drawing.Size(38, 40); this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxPlus.TabIndex = 32; this.pictureBoxPlus.TabStop = false; this.pictureBoxPlus.Click += new System.EventHandler(this.Container_Click); // - // labelContainer + // pictureBoxEntwurf // - this.labelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.labelContainer.BackColor = System.Drawing.Color.White; - this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelContainer.ForeColor = System.Drawing.Color.Black; - this.labelContainer.Location = new System.Drawing.Point(219, 125); - this.labelContainer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelContainer.Name = "labelContainer"; - this.labelContainer.Size = new System.Drawing.Size(38, 41); - this.labelContainer.TabIndex = 31; - this.labelContainer.Text = "0"; - this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + this.pictureBoxEntwurf.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.pictureBoxEntwurf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.pictureBoxEntwurf.Location = new System.Drawing.Point(9, 232); + this.pictureBoxEntwurf.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.pictureBoxEntwurf.Name = "pictureBoxEntwurf"; + this.pictureBoxEntwurf.Size = new System.Drawing.Size(286, 80); + this.pictureBoxEntwurf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBoxEntwurf.TabIndex = 15; + this.pictureBoxEntwurf.TabStop = false; // - // listViewLieferungen + // buttonKundeNr // - this.listViewLieferungen.BackColor = System.Drawing.Color.WhiteSmoke; - this.listViewLieferungen.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader6, - this.columnHeader3, - this.columnHeader1, - this.columnHeader2, - this.columnHeader4, - this.columnHeader5}); - this.listViewLieferungen.Dock = System.Windows.Forms.DockStyle.Fill; - this.listViewLieferungen.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.listViewLieferungen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.listViewLieferungen.FullRowSelect = true; - this.listViewLieferungen.GridLines = true; - this.listViewLieferungen.HideSelection = false; - this.listViewLieferungen.Location = new System.Drawing.Point(3, 3); - this.listViewLieferungen.Margin = new System.Windows.Forms.Padding(2); - this.listViewLieferungen.MultiSelect = false; - this.listViewLieferungen.Name = "listViewLieferungen"; - this.listViewLieferungen.Size = new System.Drawing.Size(1148, 514); - this.listViewLieferungen.TabIndex = 0; - this.listViewLieferungen.UseCompatibleStateImageBehavior = false; - this.listViewLieferungen.View = System.Windows.Forms.View.Details; - this.listViewLieferungen.SelectedIndexChanged += new System.EventHandler(this.listViewLieferungen_SelectedIndexChanged); - this.listViewLieferungen.MouseClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseClick); - this.listViewLieferungen.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseDoubleClick); - // - // columnHeader6 - // - this.columnHeader6.Width = 0; - // - // columnHeader3 - // - this.columnHeader3.Text = "Liefertag"; - this.columnHeader3.Width = 150; - // - // columnHeader1 - // - this.columnHeader1.Text = "Kunde Name"; - this.columnHeader1.Width = 200; - // - // columnHeader2 - // - this.columnHeader2.Text = "Region"; - this.columnHeader2.Width = 150; - // - // columnHeader4 - // - this.columnHeader4.Text = "Cont"; - this.columnHeader4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.columnHeader4.Width = 150; - // - // columnHeader5 - // - this.columnHeader5.Text = "Auftragsart"; - this.columnHeader5.Width = 265; + this.buttonKundeNr.Anchor = System.Windows.Forms.AnchorStyles.Top; + this.buttonKundeNr.BackColor = System.Drawing.Color.White; + this.buttonKundeNr.Enabled = false; + this.buttonKundeNr.FlatAppearance.BorderSize = 0; + this.buttonKundeNr.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonKundeNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonKundeNr.ForeColor = System.Drawing.Color.Black; + this.buttonKundeNr.Location = new System.Drawing.Point(9, 37); + this.buttonKundeNr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.buttonKundeNr.Name = "buttonKundeNr"; + this.buttonKundeNr.Size = new System.Drawing.Size(286, 41); + this.buttonKundeNr.TabIndex = 35; + this.buttonKundeNr.Text = "Auftrag in der Liste wählen"; + this.buttonKundeNr.UseVisualStyleBackColor = false; + this.buttonKundeNr.Click += new System.EventHandler(this.buttonKundeNr_Click); // // tabControlAuftragList // @@ -330,32 +409,51 @@ this.tabControlAuftragList.Controls.Add(this.tabPageSonder); this.tabControlAuftragList.Controls.Add(this.tabPageSTH); this.tabControlAuftragList.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tabControlAuftragList.Location = new System.Drawing.Point(3, 12); + this.tabControlAuftragList.Location = new System.Drawing.Point(4, 9); this.tabControlAuftragList.Name = "tabControlAuftragList"; this.tabControlAuftragList.SelectedIndex = 0; - this.tabControlAuftragList.Size = new System.Drawing.Size(1162, 558); + this.tabControlAuftragList.Size = new System.Drawing.Size(625, 713); this.tabControlAuftragList.TabIndex = 0; this.tabControlAuftragList.Visible = false; + this.tabControlAuftragList.SelectedIndexChanged += new System.EventHandler(this.tabControlAuftragList_SelectedIndexChanged); this.tabControlAuftragList.Selected += new System.Windows.Forms.TabControlEventHandler(this.tabControlAuftragList_Selected); // // tabPageAll // - this.tabPageAll.Controls.Add(this.listViewLieferungen); + this.tabPageAll.Controls.Add(this.objectListViewAuftrag); this.tabPageAll.Location = new System.Drawing.Point(4, 34); this.tabPageAll.Name = "tabPageAll"; - this.tabPageAll.Padding = new System.Windows.Forms.Padding(3); - this.tabPageAll.Size = new System.Drawing.Size(1154, 520); + this.tabPageAll.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); + this.tabPageAll.Size = new System.Drawing.Size(617, 675); this.tabPageAll.TabIndex = 0; - this.tabPageAll.Text = "Alle Aufträge"; + this.tabPageAll.Text = "Aufträge heute"; this.tabPageAll.UseVisualStyleBackColor = true; // + // objectListViewAuftrag + // + this.objectListViewAuftrag.CellEditUseWholeCell = false; + this.objectListViewAuftrag.Cursor = System.Windows.Forms.Cursors.Default; + this.objectListViewAuftrag.Dock = System.Windows.Forms.DockStyle.Fill; + this.objectListViewAuftrag.FullRowSelect = true; + this.objectListViewAuftrag.GridLines = true; + this.objectListViewAuftrag.HideSelection = false; + this.objectListViewAuftrag.Location = new System.Drawing.Point(3, 3); + this.objectListViewAuftrag.Name = "objectListViewAuftrag"; + this.objectListViewAuftrag.Size = new System.Drawing.Size(611, 669); + this.objectListViewAuftrag.TabIndex = 1; + this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false; + this.objectListViewAuftrag.UseHotControls = false; + this.objectListViewAuftrag.View = System.Windows.Forms.View.Details; + this.objectListViewAuftrag.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick); + this.objectListViewAuftrag.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick); + // // tabPageStandart // this.tabPageStandart.Controls.Add(this.listViewStandart); this.tabPageStandart.Location = new System.Drawing.Point(4, 34); this.tabPageStandart.Name = "tabPageStandart"; - this.tabPageStandart.Padding = new System.Windows.Forms.Padding(3); - this.tabPageStandart.Size = new System.Drawing.Size(1154, 520); + this.tabPageStandart.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); + this.tabPageStandart.Size = new System.Drawing.Size(617, 515); this.tabPageStandart.TabIndex = 2; this.tabPageStandart.Text = "Standartaufträge"; this.tabPageStandart.UseVisualStyleBackColor = true; @@ -377,15 +475,13 @@ this.listViewStandart.GridLines = true; this.listViewStandart.HideSelection = false; this.listViewStandart.Location = new System.Drawing.Point(3, 3); - this.listViewStandart.Margin = new System.Windows.Forms.Padding(2); + this.listViewStandart.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.listViewStandart.MultiSelect = false; this.listViewStandart.Name = "listViewStandart"; - this.listViewStandart.Size = new System.Drawing.Size(1148, 514); + this.listViewStandart.Size = new System.Drawing.Size(611, 509); this.listViewStandart.TabIndex = 1; this.listViewStandart.UseCompatibleStateImageBehavior = false; this.listViewStandart.View = System.Windows.Forms.View.Details; - this.listViewStandart.MouseClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseClick); - this.listViewStandart.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseDoubleClick); // // columnHeader7 // @@ -419,78 +515,39 @@ // // tabPageSonder // - this.tabPageSonder.Controls.Add(this.listViewSonder); + this.tabPageSonder.Controls.Add(this.objectListViewSonder); this.tabPageSonder.Location = new System.Drawing.Point(4, 34); this.tabPageSonder.Name = "tabPageSonder"; - this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3); - this.tabPageSonder.Size = new System.Drawing.Size(1154, 520); + this.tabPageSonder.Padding = new System.Windows.Forms.Padding(3, 3, 3, 3); + this.tabPageSonder.Size = new System.Drawing.Size(617, 515); this.tabPageSonder.TabIndex = 1; this.tabPageSonder.Text = "Sonderaufträge"; this.tabPageSonder.UseVisualStyleBackColor = true; // - // listViewSonder + // objectListViewSonder // - this.listViewSonder.BackColor = System.Drawing.Color.WhiteSmoke; - this.listViewSonder.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { - this.columnHeader13, - this.columnHeader14, - this.columnHeader15, - this.columnHeader16, - this.columnHeader17, - this.columnHeader18}); - this.listViewSonder.Dock = System.Windows.Forms.DockStyle.Fill; - this.listViewSonder.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.listViewSonder.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.listViewSonder.FullRowSelect = true; - this.listViewSonder.GridLines = true; - this.listViewSonder.HideSelection = false; - this.listViewSonder.Location = new System.Drawing.Point(3, 3); - this.listViewSonder.Margin = new System.Windows.Forms.Padding(2); - this.listViewSonder.MultiSelect = false; - this.listViewSonder.Name = "listViewSonder"; - this.listViewSonder.Size = new System.Drawing.Size(1148, 514); - this.listViewSonder.TabIndex = 1; - this.listViewSonder.UseCompatibleStateImageBehavior = false; - this.listViewSonder.View = System.Windows.Forms.View.Details; - this.listViewSonder.MouseClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseClick); - this.listViewSonder.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseDoubleClick); - // - // columnHeader13 - // - this.columnHeader13.Width = 0; - // - // columnHeader14 - // - this.columnHeader14.Text = "Liefertag"; - this.columnHeader14.Width = 150; - // - // columnHeader15 - // - this.columnHeader15.Text = "Kunde Name"; - this.columnHeader15.Width = 200; - // - // columnHeader16 - // - this.columnHeader16.Text = "Region"; - this.columnHeader16.Width = 150; - // - // columnHeader17 - // - this.columnHeader17.Text = "Cont"; - this.columnHeader17.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; - this.columnHeader17.Width = 150; - // - // columnHeader18 - // - this.columnHeader18.Text = "Auftragsart"; - this.columnHeader18.Width = 265; + this.objectListViewSonder.CellEditUseWholeCell = false; + this.objectListViewSonder.Cursor = System.Windows.Forms.Cursors.Default; + this.objectListViewSonder.Dock = System.Windows.Forms.DockStyle.Fill; + this.objectListViewSonder.FullRowSelect = true; + this.objectListViewSonder.GridLines = true; + this.objectListViewSonder.HideSelection = false; + this.objectListViewSonder.Location = new System.Drawing.Point(3, 3); + this.objectListViewSonder.Name = "objectListViewSonder"; + this.objectListViewSonder.Size = new System.Drawing.Size(611, 509); + this.objectListViewSonder.TabIndex = 2; + this.objectListViewSonder.UseCompatibleStateImageBehavior = false; + this.objectListViewSonder.UseHotControls = false; + this.objectListViewSonder.View = System.Windows.Forms.View.Details; + this.objectListViewSonder.ButtonClick += new System.EventHandler(this.objectListViewAuftrag_ButtonClick); + this.objectListViewSonder.CellClick += new System.EventHandler(this.objectListViewAuftrag_CellClick); // // tabPageSTH // this.tabPageSTH.Controls.Add(this.listViewSTH); this.tabPageSTH.Location = new System.Drawing.Point(4, 34); this.tabPageSTH.Name = "tabPageSTH"; - this.tabPageSTH.Size = new System.Drawing.Size(1154, 520); + this.tabPageSTH.Size = new System.Drawing.Size(617, 515); this.tabPageSTH.TabIndex = 3; this.tabPageSTH.Text = "Standerhöhungen"; this.tabPageSTH.UseVisualStyleBackColor = true; @@ -504,30 +561,12 @@ this.listViewSTH.HideSelection = false; this.listViewSTH.Location = new System.Drawing.Point(0, 0); this.listViewSTH.Name = "listViewSTH"; - this.listViewSTH.Size = new System.Drawing.Size(1154, 520); + this.listViewSTH.Size = new System.Drawing.Size(617, 515); this.listViewSTH.TabIndex = 0; this.listViewSTH.UseCompatibleStateImageBehavior = false; this.listViewSTH.View = System.Windows.Forms.View.Details; this.listViewSTH.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.listViewSonder_ItemChecked); // - // buttonStatusSpeichern - // - this.buttonStatusSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonStatusSpeichern.BackColor = System.Drawing.Color.Gray; - this.buttonStatusSpeichern.Enabled = false; - this.buttonStatusSpeichern.FlatAppearance.BorderSize = 0; - this.buttonStatusSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonStatusSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonStatusSpeichern.Location = new System.Drawing.Point(1068, 585); - this.buttonStatusSpeichern.Margin = new System.Windows.Forms.Padding(2); - this.buttonStatusSpeichern.Name = "buttonStatusSpeichern"; - this.buttonStatusSpeichern.Size = new System.Drawing.Size(200, 41); - this.buttonStatusSpeichern.TabIndex = 35; - this.buttonStatusSpeichern.Text = "Status speichern"; - this.buttonStatusSpeichern.UseVisualStyleBackColor = false; - this.buttonStatusSpeichern.Visible = false; - this.buttonStatusSpeichern.Click += new System.EventHandler(this.buttonStatusSpeichern_Click); - // // buttonSWS_Drucken // this.buttonSWS_Drucken.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -535,70 +574,268 @@ this.buttonSWS_Drucken.FlatAppearance.BorderSize = 0; this.buttonSWS_Drucken.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSWS_Drucken.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSWS_Drucken.Location = new System.Drawing.Point(1179, 212); - this.buttonSWS_Drucken.Margin = new System.Windows.Forms.Padding(2); + this.buttonSWS_Drucken.Location = new System.Drawing.Point(1068, 727); + this.buttonSWS_Drucken.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.buttonSWS_Drucken.Name = "buttonSWS_Drucken"; - this.buttonSWS_Drucken.Size = new System.Drawing.Size(286, 41); + this.buttonSWS_Drucken.Size = new System.Drawing.Size(200, 41); this.buttonSWS_Drucken.TabIndex = 35; this.buttonSWS_Drucken.Text = "SWS-Drucken"; this.buttonSWS_Drucken.UseVisualStyleBackColor = false; this.buttonSWS_Drucken.Click += new System.EventHandler(this.buttonSWS_Drucken_Click); // + // label2 + // + this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.White; + this.label2.Location = new System.Drawing.Point(6, 743); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(209, 25); + this.label2.TabIndex = 36; + this.label2.Text = "AUFTRÄGE HEUTE:"; + // + // label3 + // + this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.label3.AutoSize = true; + this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label3.ForeColor = System.Drawing.Color.White; + this.label3.Location = new System.Drawing.Point(320, 743); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(309, 25); + this.label3.TabIndex = 37; + this.label3.Text = "CONTAINER SAUBER HEUTE:"; + // + // labelauftragtag + // + this.labelauftragtag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.labelauftragtag.AutoSize = true; + this.labelauftragtag.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelauftragtag.ForeColor = System.Drawing.Color.White; + this.labelauftragtag.Location = new System.Drawing.Point(235, 736); + this.labelauftragtag.Name = "labelauftragtag"; + this.labelauftragtag.Size = new System.Drawing.Size(47, 33); + this.labelauftragtag.TabIndex = 38; + this.labelauftragtag.Text = "00"; + // + // labelcontainertag + // + this.labelcontainertag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.labelcontainertag.AutoSize = true; + this.labelcontainertag.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelcontainertag.ForeColor = System.Drawing.Color.White; + this.labelcontainertag.Location = new System.Drawing.Point(650, 736); + this.labelcontainertag.Name = "labelcontainertag"; + this.labelcontainertag.Size = new System.Drawing.Size(47, 33); + this.labelcontainertag.TabIndex = 39; + this.labelcontainertag.Text = "00"; + // + // label4 + // + this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label4.ForeColor = System.Drawing.Color.White; + this.label4.Location = new System.Drawing.Point(634, 9); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(172, 31); + this.label4.TabIndex = 41; + this.label4.Text = "Artikelstände"; + // + // buttonNeuerAuftrag + // + this.buttonNeuerAuftrag.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonNeuerAuftrag.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; + this.buttonNeuerAuftrag.BackColor = System.Drawing.Color.Turquoise; + this.buttonNeuerAuftrag.FlatAppearance.BorderSize = 0; + this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNeuerAuftrag.ForeColor = System.Drawing.Color.Black; + this.buttonNeuerAuftrag.Location = new System.Drawing.Point(1179, 264); + this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; + this.buttonNeuerAuftrag.Size = new System.Drawing.Size(286, 41); + this.buttonNeuerAuftrag.TabIndex = 43; + this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; + this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; + this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click); + // + // dGArtikel + // + this.dGArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Right))); + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle3; + this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.KundeArtikelID, + this.KundeID, + this.ArtikelNR, + this.ArtikelName, + this.Stand, + this.Fehlmenge, + this.Korrektur, + this.StandBearbeitet, + this.FehlmengeBearbeitet, + this.KorrekturBearbeitet}); + dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle4; + this.dGArtikel.Location = new System.Drawing.Point(631, 43); + this.dGArtikel.Name = "dGArtikel"; + this.dGArtikel.RowHeadersWidth = 62; + this.dGArtikel.Size = new System.Drawing.Size(527, 679); + this.dGArtikel.TabIndex = 44; + this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dGArtikel_CellBeginEdit); + this.dGArtikel.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellEndEdit); + this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating); + // + // KundeArtikelID + // + this.KundeArtikelID.HeaderText = "KundeArtikelID"; + this.KundeArtikelID.MinimumWidth = 8; + this.KundeArtikelID.Name = "KundeArtikelID"; + this.KundeArtikelID.ReadOnly = true; + this.KundeArtikelID.Visible = false; + this.KundeArtikelID.Width = 150; + // + // KundeID + // + this.KundeID.HeaderText = "KundeID"; + this.KundeID.MinimumWidth = 8; + this.KundeID.Name = "KundeID"; + this.KundeID.ReadOnly = true; + this.KundeID.Visible = false; + this.KundeID.Width = 150; + // + // ArtikelNR + // + this.ArtikelNR.HeaderText = "Art. Nr."; + this.ArtikelNR.MinimumWidth = 8; + this.ArtikelNR.Name = "ArtikelNR"; + this.ArtikelNR.ReadOnly = true; + this.ArtikelNR.Width = 150; + // + // ArtikelName + // + this.ArtikelName.HeaderText = "Art. Name"; + this.ArtikelName.MinimumWidth = 8; + this.ArtikelName.Name = "ArtikelName"; + this.ArtikelName.ReadOnly = true; + this.ArtikelName.Width = 150; + // + // Stand + // + this.Stand.HeaderText = "Stand"; + this.Stand.MinimumWidth = 8; + this.Stand.Name = "Stand"; + this.Stand.ReadOnly = true; + this.Stand.Width = 150; + // + // Fehlmenge + // + this.Fehlmenge.HeaderText = "Fehlmenge"; + this.Fehlmenge.MinimumWidth = 8; + this.Fehlmenge.Name = "Fehlmenge"; + this.Fehlmenge.Width = 150; + // + // Korrektur + // + this.Korrektur.HeaderText = "Korrektur"; + this.Korrektur.MinimumWidth = 8; + this.Korrektur.Name = "Korrektur"; + this.Korrektur.Width = 150; + // + // StandBearbeitet + // + this.StandBearbeitet.HeaderText = "Stand Bearbeitet"; + this.StandBearbeitet.MinimumWidth = 8; + this.StandBearbeitet.Name = "StandBearbeitet"; + this.StandBearbeitet.Width = 150; + // + // FehlmengeBearbeitet + // + this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet"; + this.FehlmengeBearbeitet.MinimumWidth = 8; + this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet"; + this.FehlmengeBearbeitet.Width = 150; + // + // KorrekturBearbeitet + // + this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet"; + this.KorrekturBearbeitet.MinimumWidth = 8; + this.KorrekturBearbeitet.Name = "KorrekturBearbeitet"; + this.KorrekturBearbeitet.Width = 150; + // // FormExpedit // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(1481, 637); + this.ClientSize = new System.Drawing.Size(1481, 777); + this.Controls.Add(this.dGArtikel); + this.Controls.Add(this.buttonNeuerAuftrag); + this.Controls.Add(this.label4); + this.Controls.Add(this.labelcontainertag); + this.Controls.Add(this.labelauftragtag); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); this.Controls.Add(this.buttonSWS_Drucken); - this.Controls.Add(this.groupBoxEtikett); - this.Controls.Add(this.buttonStatusSpeichern); this.Controls.Add(this.tabControlAuftragList); this.Controls.Add(this.buttonAbbrechen); + this.Controls.Add(this.groupBoxEtikett); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2); + this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); this.MinimizeBox = false; this.Name = "FormExpedit"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Text = "Expedit"; + this.Text = "EXPEDIT"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormExpedit_HelpButtonClicked); this.Load += new System.EventHandler(this.FormExpedit_Load); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).EndInit(); this.groupBoxEtikett.ResumeLayout(false); this.groupBoxEtikett.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).EndInit(); this.tabControlAuftragList.ResumeLayout(false); this.tabPageAll.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit(); this.tabPageStandart.ResumeLayout(false); this.tabPageSonder.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewSonder)).EndInit(); this.tabPageSTH.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit(); this.ResumeLayout(false); + this.PerformLayout(); } #endregion - - private System.Windows.Forms.TextBox textBoxQRCode; private System.Windows.Forms.Label label10; private System.Windows.Forms.Button buttonDrucken; private System.Windows.Forms.PictureBox pictureBoxEntwurf; private System.Windows.Forms.Button buttonAbbrechen; private System.Windows.Forms.GroupBox groupBoxEtikett; - private System.Windows.Forms.ListView listViewLieferungen; - private System.Windows.Forms.ColumnHeader columnHeader3; - private System.Windows.Forms.ColumnHeader columnHeader1; - private System.Windows.Forms.ColumnHeader columnHeader2; - private System.Windows.Forms.ColumnHeader columnHeader4; - private System.Windows.Forms.ColumnHeader columnHeader5; private System.Windows.Forms.PictureBox pictureBoxMinus; private System.Windows.Forms.PictureBox pictureBoxPlus; - private System.Windows.Forms.Label labelContainer; - private System.Windows.Forms.ColumnHeader columnHeader6; private System.Windows.Forms.TabControl tabControlAuftragList; private System.Windows.Forms.TabPage tabPageAll; private System.Windows.Forms.TabPage tabPageSonder; - private System.Windows.Forms.Button buttonStatusSpeichern; private System.Windows.Forms.TabPage tabPageStandart; private System.Windows.Forms.TabPage tabPageSTH; private System.Windows.Forms.ListView listViewSTH; @@ -609,16 +846,36 @@ private System.Windows.Forms.ColumnHeader columnHeader10; private System.Windows.Forms.ColumnHeader columnHeader11; private System.Windows.Forms.ColumnHeader columnHeader12; - private System.Windows.Forms.ListView listViewSonder; - private System.Windows.Forms.ColumnHeader columnHeader13; - private System.Windows.Forms.ColumnHeader columnHeader14; - private System.Windows.Forms.ColumnHeader columnHeader15; - private System.Windows.Forms.ColumnHeader columnHeader16; - private System.Windows.Forms.ColumnHeader columnHeader17; - private System.Windows.Forms.ColumnHeader columnHeader18; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button buttonSWS_Drucken; private System.Windows.Forms.Button buttonKundeNr; private System.Windows.Forms.DateTimePicker dTPLiefertag; + private System.Windows.Forms.RadioButton rBDI; + private System.Windows.Forms.RadioButton rBMI; + private System.Windows.Forms.RadioButton rBDO; + private System.Windows.Forms.RadioButton rBFR; + private System.Windows.Forms.RadioButton rBMO; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Label labelauftragtag; + private System.Windows.Forms.Label labelcontainertag; + private System.Windows.Forms.CheckBox cBNoCont; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button buttonNeuerAuftrag; + private System.Windows.Forms.DataGridView dGArtikel; + private System.Windows.Forms.Label label5; + private BrightIdeasSoftware.ObjectListView objectListViewAuftrag; + private System.Windows.Forms.TextBox textBoxCont; + private BrightIdeasSoftware.ObjectListView objectListViewSonder; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeID; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelNR; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelName; + private System.Windows.Forms.DataGridViewTextBoxColumn Stand; + private System.Windows.Forms.DataGridViewTextBoxColumn Fehlmenge; + private System.Windows.Forms.DataGridViewTextBoxColumn Korrektur; + private System.Windows.Forms.DataGridViewTextBoxColumn StandBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn FehlmengeBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn KorrekturBearbeitet; } } \ No newline at end of file diff --git a/FormExpedit.cs b/FormExpedit.cs index c35db5e..c3c0446 100644 --- a/FormExpedit.cs +++ b/FormExpedit.cs @@ -1,512 +1,663 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Configuration; -using System.Data; -using System.Diagnostics.Eventing.Reader; -using System.Drawing; -using System.Drawing.Printing; -using System.Linq; -using System.Runtime.ConstrainedExecution; -using System.Text; -using System.Threading.Tasks; -using System.Web; -using System.Windows.Forms; -using System.Windows.Forms.DataVisualization.Charting; -using System.Xml.Serialization; +using BrightIdeasSoftware; using DatenDB; -using Deckungsbeitrag.Properties; -using ZXing; -using ZXing.QrCode.Internal; -using static System.Windows.Forms.VisualStyles.VisualStyleElement.Window; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Windows.Forms; +using System.Xml.Resolvers; namespace Deckungsbeitrag { public partial class FormExpedit : Form { - + public Fehlermeldungen fehlermeldung = new Fehlermeldungen(); public Image etikett = null; public Auftrag auftrag; + public Auftrag NeuerAuftrag; //NEU FÜR UPDATE public AuftragArtikel auftragArtikel; public Benutzer benutzer; public Kunde kunde; + DateTime? letzterLiefertag = null; + bool nocont = false; + bool nocontclicked = false; + Fehlermeldungen meldung = new Fehlermeldungen(); + public List artikelListe; + public List auftraglist; + public List sonderlist; + int beforeedit = 0; + int? neuecontclean = null; + int? altecontclean = null; + Timer timer1 = new Timer(); + private Screen[] screens; + public FormExpedit(Benutzer benutzer) { InitializeComponent(); this.benutzer = benutzer; - //this.groupBoxEtikett.MouseDoubleClick += new MouseEventHandler(GroupBox_DoubleClick); - //this.groupBoxEtikett.MouseClick += new MouseEventHandler(GroupBox_Click); - this.Width = groupBoxEtikett.Width + 35; - this.Height = 470; this.StartPosition = FormStartPosition.CenterScreen; - this.tabControlAuftragList.Visible = false; - this.buttonStatusSpeichern.Visible = false; + this.tabControlAuftragList.Visible = true; + + //Timer für Autorefresh + timer1.Interval = 10000; // 10 Sekunden + timer1.Tick += Timer1_Tick; + timer1.Start(); + } + + public FormExpedit(Benutzer benutzer, Screen[] screens) : this(benutzer) + { + this.screens = screens; + foreach(Screen screen in screens) + { + if (screen.Primary) + { + if (screens[0].WorkingArea.Width < 1500) { this.objectListViewAuftrag.Font = new Font(this.objectListViewAuftrag.Font.FontFamily, 10); } + } + } + } + private void FormExpedit_Load(object sender, EventArgs e) { + Cursor.Current = Cursors.WaitCursor; + this.SuspendLayout(); - //LADEN DER AUFTRAGSLISTEN FUNKTIONIERT DERZEIT NICHT NOTWENDIG. + //Andere Tab Pages ausblenden. + this.tabControlAuftragList.TabPages.Remove(tabPageStandart); + this.tabControlAuftragList.TabPages.Remove(tabPageSTH); - //this.Cursor = Cursors.WaitCursor; - //Funktionen.HideControls(this.Controls); + //Auftragslisten erstellen und in ObjectListViews laden. + GetLists(); - //List alllist = Auftrag.GetExpeditLists(null); - //List sonderlist = Auftrag.GetExpeditLists((int)AuftragTyp.Sonder); - //List standartlist = Auftrag.GetExpeditLists((int)AuftragTyp.Standart); - //if (standartlist.Count == 0) this.tabPageStandart.Visible = false; - //if (sonderlist.Count == 0) { this.tabPageSonder.Visible = false; } + Load_Etikett_GroupBox(); + + if (letzterLiefertag != null) this.dTPLiefertag.Value = (DateTime)letzterLiefertag; + else this.dTPLiefertag.Value = DateTime.Today.AddDays(1); + Get_RadioButtons(); - //ListView_Load(alllist, this.listViewLieferungen); - //ListView_Load(sonderlist, this.listViewSonder); - //ListView_Load(standartlist, this.listViewStandart); - //Sonderauftrag_Load(); + this.ResumeLayout(); + Cursor.Current = Cursors.Default; + WindowState = FormWindowState.Maximized; + } - //Funktionen.ShowControls(this.Controls); - //this.Cursor = Cursors.Default; + /// + /// Auftragslisten erstellen und in ObjectListViews laden. + /// + private void GetLists() + { + // Lade die ListView für Aufträge vom aktuellen Tag. + auftraglist = Auftrag.GetAuftragListToday(DateTime.Today); + OLV_Load(this.objectListViewAuftrag, auftraglist); - this.buttonDrucken.Enabled = false; - this.buttonDrucken.BackColor = Color.Gray; - this.pictureBoxMinus.BackColor = Color.Gray; - this.pictureBoxPlus.BackColor = Color.Gray; - this.dTPLiefertag.Value = DateTime.Today; - this.dTPLiefertag.Enabled = false; + // Lade die ListView für Sonderaufträge wie STV, STH, oder INVENTUR + sonderlist = Auftrag.GetExpeditLists((int)AuftragTyp.Sonder); + if (sonderlist.Count == 0) { this.tabControlAuftragList.TabPages.Remove(tabPageSonder); } + else { OLV_Load(this.objectListViewSonder, sonderlist); if(this.tabControlAuftragList.TabPages.Count < 2) this.tabControlAuftragList.TabPages.Insert(1, tabPageSonder); } + + // Lade die Artikel eines Kunden. + //if (kunde!= null) this.artikelListe = KundeArtikel.GetList(kunde.KundeID.ToString()); } + + /// + /// Wenn Timer abgelaufen Funktion für Autorefresh. + /// + /// + /// + private void Timer1_Tick(object sender, EventArgs e) + { + Cursor.Current = Cursors.WaitCursor; + + if(auftrag != null) + { + Auftrag _auftrag = Auftrag.GetAuftrag(auftrag.AuftragID); + Load_Gridview(_auftrag); + } + + Cursor.Current = Cursors.Default; + } + + /// + /// Laden Events (GroupBox_Etikett und GridView) + /// + private void Load_Etikett_GroupBox() + { + if (this.auftrag == null) + { + this.buttonKundeNr.Text = "Auftrag in der Liste wählen"; + this.pictureBoxEntwurf.Image = null; + this.textBoxCont.Text = "0"; + this.pictureBoxMinus.Enabled = this.pictureBoxPlus.Enabled = this.buttonDrucken.Enabled = false; + this.buttonDrucken.BackColor = Color.Gray; + this.pictureBoxMinus.BackColor = Color.Gray; + this.pictureBoxPlus.BackColor = Color.Gray; + foreach (Control ctr in this.groupBoxEtikett.Controls) + { + if (ctr.GetType() == typeof(Label)) ctr.Enabled = true; + else if (ctr.Enabled == true) ctr.Enabled = false; + } + this.dTPLiefertag.Enabled = true; + + } + else + { + //Kunde holen und Name anzeigen + this.kunde = Kunde.GetKunde(null, this.auftrag.KundeID, null); + this.buttonKundeNr.Text = kunde.Suchtext; + + //Containeranzahl und Liefertag anzeigen + if (neuecontclean != null) this.textBoxCont.Text = neuecontclean.ToString(); + else this.textBoxCont.Text = this.auftrag.ContainerClean.ToString(); + this.dTPLiefertag.Value = this.auftrag.Liefertag; + this.dTPLiefertag.Enabled = false; + + //Buttons Enablen und BackColor wechsel + this.buttonDrucken.BackColor = Color.FromArgb(0, 192, 0); + this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); + this.buttonDrucken.Enabled = this.pictureBoxPlus.Enabled = true; + + this.auftrag.ContainerClean = int.Parse(this.textBoxCont.Text); + etikett = Funktionen.Etikett_Entwurf(this, this.auftrag, nocont); + this.pictureBoxEntwurf.Image = etikett; + } + } + private void Load_Gridview(Auftrag auftrag) + { + //Alle Einträge der DataGridView entfernen. Davor muss die DataSource entfernt werden. + this.dGArtikel.DataSource = null; + this.dGArtikel.Rows.Clear(); + + if (auftrag != null) + { + Aufgabe auf; + if (auftrag.AufgabeID.HasValue) auf = Aufgabe.GetAufgabe(null, auftrag.AufgabeID); + else auf = new Aufgabe(); + + this.dGArtikel.AutoGenerateColumns = false; + + foreach (DataGridViewColumn col in this.dGArtikel.Columns) + { + col.DataPropertyName = col.Name; + if (col.Name.Contains("Bearbeitet")) col.Visible = false; + if (col.Name == "Fehlmenge") + { + if (auf.Bezeichnung == null || auf.Bezeichnung == "STA") col.Visible = true; + else col.Visible = false; + } + if (col.Name == "Korrektur") + { + if (auf.Bezeichnung != null && auf.Bezeichnung != "STA") col.Visible = true; + else col.Visible = false; + } + } + + // DataGridView mit ArtikelStand Liste verbinden und Columns automatisch generieren. + artikelListe = KundeArtikel.GetList(auftrag.KundeID.ToString()); + this.dGArtikel.DataSource = artikelListe; + + this.dGArtikel.ClearSelection(); + //this.dGArtikel.CurrentCell = this.dGArtikel.Rows[0].Cells[3]; + + // Alle Spaltenbreiten an den Zellinhalt anpassen + this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + // Alle Zeilenhöhen an Zellinhalt anpassen + this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; + + } + + + } + + /// + /// Containeranzahl bearbeiten und Funktion wenn Text geändert wird. + /// + /// + /// private void Container_Click(object sender, EventArgs e) { - PictureBox pb = (PictureBox)sender; - int cont = int.Parse(this.labelContainer.Text); - if (pb.Name.ToString().Contains("Plus")) cont++; + int cont = int.Parse(this.textBoxCont.Text); + if (pb.Name.ToString().Contains("Plus")) { cont++; } if (pb.Name.ToString().Contains("Minus")) { if (cont > 0) { cont--; - pb.BackColor = Color.Red; - pb.Enabled = true; - } - else { pb.BackColor = Color.Gray; pb.Enabled = false; } + //else { pb.BackColor = Color.Gray; pb.Enabled = false; } + } + this.textBoxCont.Text = cont.ToString(); + //Load_Etikett_GroupBox(); + } + private void textBoxCont_TextChanged(object sender, EventArgs e) + { + if(int.TryParse(this.textBoxCont.Text, out int result)) + { + if (this.auftrag != null) { neuecontclean = result; altecontclean = this.auftrag.ContainerClean; } + + if (result == 0) { this.pictureBoxMinus.Enabled = false; this.pictureBoxMinus.BackColor = Color.Gray; } + else { this.pictureBoxMinus.Enabled = true; this.pictureBoxMinus.BackColor = Color.Red; } + + if (!nocontclicked) + { + if (result >= 10) { nocont = true; cBNoCont.Checked = true; } + else { nocont = false; cBNoCont.Checked = false; } + } + Load_Etikett_GroupBox(); + } + else + { + meldung.Eingabefehler(); + this.textBoxCont.Text = "0"; + this.textBoxCont.Focus(); + } + } + private void cBNoCont_CheckedChanged(object sender, EventArgs e) + { + if (cBNoCont.Checked) nocont = true; + else nocont = false; + + if (kunde != null) Load_Etikett_GroupBox(); + } + private void cBNoCont_Click(object sender, EventArgs e) + { + if (cBNoCont.Checked) nocont = nocontclicked = true; + else { nocont = false; nocontclicked = true; } + } + + /// + /// Button Events (SWS-Drucken, Etikette-Drucken, Kundeauswahl, Abbrechen) + /// + /// + /// + private void buttonDrucken_Click(object sender, EventArgs e) + { + //AUFTRAG UPDATE + this.auftrag.ContainerClean = int.Parse(this.textBoxCont.Text); + letzterLiefertag = this.auftrag.Liefertag = this.dTPLiefertag.Value; + + //ETIKETT DRUCKEN + DialogResult result = Funktionen.Etikett_Drucken(auftrag, nocont); + if(result == DialogResult.OK) + { + this.auftrag.Gedruckt = this.auftrag.Erstellt = DateTime.Now; + this.auftrag.GedrucktVon = this.auftrag.ErstelltVon = (int)this.benutzer.BenutzerID; + this.auftrag.Status = AuftragStatus.Vorbereitet; + this.auftrag.Save(); + this.auftrag = null; + FormExpedit_Load(this, e); + this.dGArtikel.DataSource = null; + this.dGArtikel.Rows.Clear(); } - this.labelContainer.Text = cont.ToString(); - labelContainer_TextChanged(this, e); - + //AUFTRAG SPEICHERN } - private void Load_Etikett_GroupBox(Auftrag auftrag) + private void buttonKundeNr_Click(object sender, EventArgs e) { - //if (auftrag != null) this.textBoxQRCode.Text = auftrag.AuftragID + " " + Kunde.GetKunde(null, auftrag.KundeID, null).Suchtext; - this.labelContainer.Text = auftrag.ContainerClean.ToString(); - - etikett = Funktionen.Etikett_Entwurf(auftrag); - - this.pictureBoxEntwurf.Image = etikett; - this.buttonDrucken.Enabled = true; - this.buttonDrucken.BackColor = Color.FromArgb(0, 192, 0); + //Open_List(); + if (kunde != null) + { + if (string.IsNullOrWhiteSpace(kunde.Suchtext)) this.buttonKundeNr.Text = kunde.KundeName; + else this.buttonKundeNr.Text = kunde.Suchtext; + this.dTPLiefertag.Enabled = true; + this.pictureBoxPlus.Enabled = true; + this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); + Get_RadioButtons(); + } } - private void labelContainer_TextChanged(object sender, EventArgs e) + private void buttonNeuerAuftrag_Click(object sender, EventArgs e) { - if (this.labelContainer.Text == "0") { this.pictureBoxMinus.Enabled = false; this.pictureBoxMinus.BackColor = Color.Gray; } - else { this.pictureBoxMinus.Enabled = true; this.pictureBoxMinus.BackColor = Color.Red; } - - auftrag.ContainerClean = int.Parse(this.labelContainer.Text); - Load_Etikett_GroupBox(auftrag); + FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(benutzer, this.letzterLiefertag); + if (neuerAuftrag.ShowDialog() == DialogResult.OK) + { + this.letzterLiefertag = neuerAuftrag.letzterLiefertag; + List auftraglist = Auftrag.GetAuftragListToday(DateTime.Today); + OLV_Load(this.objectListViewAuftrag, auftraglist); + } + } + private void buttonSWS_Drucken_Click(object sender, EventArgs e) + { + Kunde knd = Funktionen.KundenAuswahl(); + if(knd != null) Funktionen.SWS_Drucken(null, knd, this); } private void buttonAbbrechen_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; this.Close(); } - private void textBoxQRCode_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) - { - if (e.KeyCode == Keys.Menu) - { - textBoxQRCode_Leave(this, null); - } - - //Console.WriteLine(textBoxQRCode.Text); - - } - private void textBoxQRCode_Enter(object sender, EventArgs e) - { - //BEI VERWENDUNG DER TABS WIRD DER AUFTRAG GESUCHT - //foreach (ListViewItem item in this.listViewLieferungen.Items) item.Selected = false; - } - private void buttonDrucken_Click(object sender, EventArgs e) - { - Funktionen.Etikett_Drucken(auftrag); - } - private void buttonKundeNr_Click(object sender, EventArgs e) - { - Open_List(); - - if (kunde != null) - { - this.buttonKundeNr.Text = kunde.Suchtext; - auftrag = new Auftrag(); - auftrag.KundeID = (int)kunde.KundeID; - auftrag.ZusatzInfo = kunde.Suchtext; - auftrag.Liefertag = dTPLiefertag.Value; - this.dTPLiefertag.Enabled = true; - this.pictureBoxPlus.Enabled = true; - this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); - - } - } - private void buttonSWS_Drucken_Click(object sender, EventArgs e) - { - Open_List(); - if(kunde != null) Funktionen.SWS_Drucken(null, this.kunde); - } - private void Open_List() - { - FormListe liste = new FormListe(null, true); - if (liste.ShowDialog() == DialogResult.OK) - { - this.kunde = liste.kunde; - } - } - private void textBoxQRCode_Leave(object sender, EventArgs e) - { - //this.tabControlAuftragList.SelectedIndex = 0; - FormExpedit ex; - ListView listView = null; - - if (string.IsNullOrWhiteSpace(textBoxQRCode.Text)) textBoxQRCode.Text = "Kundennummer eingeben"; - else - { - if (tabControlAuftragList.Visible == true) - { - if (sender.GetType() == typeof(FormExpedit)) - { - ex = (FormExpedit)sender; - listView = (ListView)ex.ActiveControl; - } - else - { - foreach (Control c in this.tabControlAuftragList.SelectedTab.Controls) - { - if (c.GetType() == typeof(ListView)) { listView = (ListView)c; } - } - } - if (!string.IsNullOrWhiteSpace(textBoxQRCode.Text)) - { - - if (int.TryParse(textBoxQRCode.Text, out int value)) - { - auftrag = Auftrag.GetAuftrag(value); - } - - //Kunde kunde = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty); - foreach (ListViewItem item in listView.Items) - { - Auftrag auftrag = item.Tag as Auftrag; - if (auftrag.AuftragID.ToString() == textBoxQRCode.Text) - { - item.Selected = true; - } - } - - } - - } - - if (auftrag != null) - { - Load_Etikett_GroupBox(auftrag); - - buttonDrucken.Enabled = true; - buttonDrucken.BackColor = Color.FromArgb(0, 192, 0); - this.labelContainer.Text = auftrag.ContainerClean.ToString(); - } - - } - this.buttonAbbrechen.Focus(); - } - private void dTPLiefertag_ValueChanged(object sender, EventArgs e) - { - if(auftrag != null) auftrag.Liefertag = dTPLiefertag.Value; - } /// - /// FUNKTIONEN MIT LISTVIEW + /// ObjectListView Funktionen /// - - //GLEICHE FUNKTIONEN ABER ONE CLICK ODER DOUBLE CLICK (LISTVIEW) - private void GroupBox_Click(object sender, MouseEventArgs e) + private void objectListViewAuftrag_CellClick(object sender, CellClickEventArgs e) { - Control ctr = this.groupBoxEtikett.GetChildAtPoint(e.Location); - - if(auftrag != null) + if(e.Model == null) return; + ObjectListView olv = (ObjectListView)sender; + Auftrag _auftrag = (Auftrag)e.Model; + if (_auftrag.Status != AuftragStatus.Fertig) { - if (this.listViewLieferungen.SelectedItems.Count == 0 && this.textBoxQRCode.Text.Contains("scannen")) + this.auftrag = _auftrag; + this.neuecontclean = null; + Load_Etikett_GroupBox(); + this.artikelListe = KundeArtikel.GetList(kunde.KundeID.ToString()); + Load_Gridview(this.auftrag); + } + else + { + fehlermeldung.AuftragFertig(); + } + foreach (Control ctr in this.groupBoxEtikett.Controls) if (ctr.Enabled == false) ctr.Enabled = true; + this.buttonKundeNr.Enabled = false; + olv.Focus(); + + } + private void objectListViewAuftrag_ButtonClick(object sender, CellClickEventArgs e) + { + Cursor.Current = Cursors.WaitCursor; + + ObjectListView olv = (ObjectListView)sender; + Auftrag _auftrag = (Auftrag)e.Model; + if (this.auftrag != _auftrag) neuecontclean = null; + + this.auftrag = _auftrag; + //Load_Etikett_GroupBox(); + + if (this.auftrag.ContainerClean == 0) + { + switch (this.auftrag.Typ) { - MessageBox.Show("Containeranzahl ändern NICHT MÖGLICH. Du hast noch keinen Auftrag ausgewählt.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Stop); + case AuftragTyp.Unbekannt: + break; + case AuftragTyp.Standart: + if (meldung.NoCleanContainer() == DialogResult.OK) return; + break; + case AuftragTyp.Sonder: + if (meldung.SonderNoCleanContainer() == DialogResult.Yes) + { + this.auftrag.Status = AuftragStatus.Fertig; + this.auftrag.Save(); + this.auftrag = null; + Load_Etikett_GroupBox(); + } + else return; + break; + default: + break; + } + } + else + { + if (neuecontclean != null && neuecontclean != altecontclean) + { + switch (meldung.DifferentCleanContainer()) + { + case DialogResult.Cancel: + break; + case DialogResult.Yes: + { + this.auftrag.ContainerClean = (int)neuecontclean; + neuecontclean = null; + //this.auftrag.Liefertag = dTPLiefertag.Value; + //WENN BEARBEITET UND AUSGEDRUCKT WIRD GEDRUCKT VERÄNDERT UND ERSTELLT IST URSPRUNGSDATUM + this.auftrag.Gedruckt = DateTime.Now; + this.auftrag.GedrucktVon = benutzer.BenutzerID; + this.auftrag.Status = AuftragStatus.Fertig; + + bool nocont = false; + if (MessageBox.Show("Möchtest du die Containeranzahl am Etikett anzeigen?", "FRAGE", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) + { + nocont = true; + } + else nocont = false; + + DialogResult result = Funktionen.Etikett_Drucken(auftrag, nocont); + if (result == DialogResult.OK) + { + this.auftrag.Save(); + this.auftrag = null; + } + } + break; + case DialogResult.No: + { + this.auftrag.ContainerClean = (int)neuecontclean; + neuecontclean = null; + //this.auftrag.Liefertag = dTPLiefertag.Value; + //WENN BEARBEITET UND NICHT GEDRUCKT WIRD ERSTELLT VERÄNDERT UND GEDRUCKT IST URSPRUNGSDATUM + this.auftrag.Erstellt = DateTime.Now; + this.auftrag.ErstelltVon = (int)benutzer.BenutzerID; + this.auftrag.Status = AuftragStatus.Fertig; + + this.auftrag.Save(); + this.auftrag = null; + } + break; + default: + break; + } } else { - if (ctr != null && ctr.Name.Contains("Minus")) - { - if (int.Parse(this.labelContainer.Text) == 0) { MessageBox.Show($"Containeranzahl kleiner als 0 ist nicht möglich.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } - else - { - if (MessageBox.Show("Möchtest du die Containeranzahl händisch verändern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - this.pictureBoxMinus.Enabled = this.pictureBoxPlus.Enabled = true; - this.pictureBoxMinus.BackColor = Color.Red; - this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); - labelContainer_TextChanged(this, e); - } - else return; - } - - } - - if (ctr != null && ctr.Name.Contains("Plus")) - { - if (MessageBox.Show("Möchtest du die Containeranzahl händisch verändern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - this.pictureBoxMinus.Enabled = this.pictureBoxPlus.Enabled = true; - this.pictureBoxMinus.BackColor = Color.Red; - this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); - labelContainer_TextChanged(this, e); - } - else return; - } + this.auftrag.Status = AuftragStatus.Fertig; + this.auftrag.Save(); + this.auftrag = null; + Load_Etikett_GroupBox(); } } - else MessageBox.Show("Containeranzahl ändern NICHT MÖGLICH. Du hast noch keinen Kunden gewählt.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Stop); + olv.RefreshObject(e); + GetLists(); + if (olv.Name.Contains("Sonder")) OLV_Load(olv, this.sonderlist); + else OLV_Load(olv, this.auftraglist); + Load_Gridview(this.auftrag); + Cursor.Current = Cursors.Default; } - private void GroupBox_DoubleClick(object sender, MouseEventArgs e) + private void OLV_Load(ObjectListView olv, List auftraglist) { - Control ctr = this.groupBoxEtikett.GetChildAtPoint(e.Location); - if (this.listViewLieferungen.SelectedItems.Count == 0 && this.textBoxQRCode.Text.Contains("scannen")) + Cursor.Current = Cursors.WaitCursor; + olv.SuspendLayout(); + olv.BeginUpdate(); + + Generator.GenerateColumns(olv, typeof(Auftrag), true); + olv.SetObjects(auftraglist); + OLVColumn sortcolumn = (OLVColumn)olv.Columns[5]; + olv.Sort(sortcolumn); + OLVColumn buttonColumn = new OLVColumn(); + buttonColumn = (OLVColumn)olv.Columns[10]; + buttonColumn.IsButton = true; + buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; + + + + olv.CheckedAspectName = "IsChecked"; + Funktionen.Columns_Resize(olv); + olv.Columns[0].Width = 0; + olv.Columns[7].Width = 0; + olv.Columns[8].Width = 0; + olv.Columns[9].Width = 0; + + if (olv.Name.Contains("Auftrag")) { - MessageBox.Show("Containeranzahl ändern NICHT MÖGLICH. Du hast noch keinen Auftrag ausgewählt.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Stop); - } - else - { - if (ctr.Name.Contains("Minus")) + this.labelauftragtag.Text = olv.Items.Count.ToString(); + int summe = 0; + foreach(var obj in olv.Objects) { - if (int.Parse(this.labelContainer.Text) == 0) MessageBox.Show($"Containeranzahl kleiner als 0 ist nicht möglich.", "ACHTUNG", MessageBoxButtons.OK, MessageBoxIcon.Warning); - else - { - if (MessageBox.Show("Möchtest du die Containeranzahl händisch verändern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - this.pictureBoxMinus.Enabled = this.pictureBoxPlus.Enabled = true; - this.pictureBoxMinus.BackColor = Color.Red; - this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); - labelContainer_TextChanged(this, e); - } - } - } - if (ctr.Name.Contains("Plus")) - { - if (MessageBox.Show("Möchtest du die Containeranzahl händisch verändern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - this.pictureBoxMinus.Enabled = this.pictureBoxPlus.Enabled = true; - this.pictureBoxMinus.BackColor = Color.Red; - this.pictureBoxPlus.BackColor = Color.FromArgb(0, 192, 0); - labelContainer_TextChanged(this, e); - } + Auftrag auf = (Auftrag)obj; + if(auf.Erstellt.Value.Date == DateTime.Now.Date) summe += auf.ContainerClean; } + this.labelcontainertag.Text = summe.ToString(); } + + + olv.EndUpdate(); + olv.ResumeLayout(); + Cursor.Current = Cursors.Default; } - //LISTVIEW STANDERHÖHUNG WENN ITEM CHECKED WIRD BUTTON SPEICHERN VERFÜGBAR + //Ursprünglich war der Zugang zu AuftragDetails über DoubleClick möglich. Womöglich nicht notwendig. + private void objectListViewAuftrag_MouseDoubleClick(object sender, MouseEventArgs e) + { + + } + + /// + /// Get_RadioButtons bearbeitet die Tagesauswahlbuttons. + /// Liefertag wird ermittelt und in Day of Week umgerechnet. + /// + private void Get_RadioButtons() + { + if (kunde != null) + { + foreach (RadioButton rb in this.groupBoxEtikett.Controls.OfType()) + { + if (rb.Name.Contains("MO")) rb.Tag = Liefertag.MO; + if (rb.Name.Contains("Di")) rb.Tag = Liefertag.DI; + if (rb.Name.Contains("MI")) rb.Tag = Liefertag.MI; + if (rb.Name.Contains("DO")) rb.Tag = Liefertag.DO; + if (rb.Name.Contains("FR")) rb.Tag = Liefertag.FR; + + rb.Enabled = true; + } + } + else foreach (RadioButton rb in this.groupBoxEtikett.Controls.OfType()) rb.Enabled = false; + + } + private void dTPLiefertag_Leave(object sender, EventArgs e) + { + foreach (RadioButton liefertag in this.groupBoxEtikett.Controls.OfType()) + { + if (liefertag.Name.Contains(((Liefertag)dTPLiefertag.Value.DayOfWeek).ToString())) liefertag.Checked = true; + } + } + private void Liefertag_rB_Checked(object sender, EventArgs e) + { + foreach (RadioButton radioButton in this.groupBoxEtikett.Controls.OfType()) + { + if (radioButton.Checked) radioButton.BackColor = Color.Yellow; + else { radioButton.BackColor = Color.Gray; } + } + } + private void Liefertag_rB_Click(object sender, EventArgs e) + { + RadioButton radioButton = (RadioButton)sender; + foreach (Liefertag tag in Enum.GetValues(typeof(Liefertag))) + { + if (radioButton.Name.Contains(tag.ToString())) this.dTPLiefertag.Value = Berechnungen.GetNextWeekday((int)tag); + } + this.dTPLiefertag.Enabled = false; + } + private void dTPLiefertag_ValueChanged(object sender, EventArgs e) + { + dTPLiefertag_Leave(sender, e); + + if (this.auftrag != null) + { + this.auftrag.Liefertag = this.dTPLiefertag.Value; + Load_Etikett_GroupBox(); + } + } private void listViewSonder_ItemChecked(object sender, ItemCheckedEventArgs e) { ListView lv = (ListView)sender; - if (lv.CheckedItems.Count > 0) { this.buttonStatusSpeichern.Enabled = this.buttonStatusSpeichern.Visible = true; this.buttonStatusSpeichern.BackColor = Color.Yellow; } - } - - //BUTTON SPEICHERN - private void buttonStatusSpeichern_Click(object sender, EventArgs e) - { - foreach (ListViewItem item in this.listViewSTH.CheckedItems) - { - foreach (ListViewItem.ListViewSubItem subItem in item.SubItems) - { - if (subItem.Tag != null) - { - auftragArtikel = AuftragArtikel.GetArtikel(((Views)subItem.Tag).AuftragArtikelID); - if (auftragArtikel.Erledigt) auftragArtikel.Erledigt = false; - else auftragArtikel.Erledigt = true; - auftragArtikel.Save(); - } - } - } } //WENN TAB GEWECHSELT ANZEIGE AKTUALISIEREN private void tabControlAuftragList_Selected(object sender, TabControlEventArgs e) { TabControl tabControl = (TabControl)sender; - if(tabControl.SelectedIndex < 3) { this.groupBoxEtikett.Visible = true; this.buttonStatusSpeichern.Visible = this.buttonStatusSpeichern.Enabled = false; } - if(tabControl.SelectedIndex == 3) { this.groupBoxEtikett.Visible = false; this.buttonStatusSpeichern.Visible = true; } + if(tabControl.SelectedIndex < 3) { this.groupBoxEtikett.Visible = true; } + if(tabControl.SelectedIndex == 3) { this.groupBoxEtikett.Visible = false; } } - //TAB CONTROL LISTVIEWS MOUSECLICK EVENTS - private void listView_MouseClick(object sender, MouseEventArgs e) - { - ListView listView = (ListView)sender; - ListViewItem item = listView.GetItemAt(e.X, e.Y); - if (listView.SelectedItems.Count == 1) - { - auftrag = item.Tag as Auftrag; - buttonDrucken.Enabled = true; - buttonDrucken.BackColor = Color.FromArgb(0, 192, 0); - this.textBoxQRCode.Text = auftrag.AuftragID.ToString(); - this.labelContainer.Text = auftrag.ContainerClean.ToString(); - textBoxQRCode_Leave(this, e); - this.textBoxQRCode.Enabled = false; - } - listView.Focus(); - } - private void listView_MouseDoubleClick(object sender, MouseEventArgs e) - { - ListView lv = (ListView)sender; - ListViewItem item1 = lv.GetItemAt(e.X, e.Y); - auftrag = item1.Tag as Auftrag; - FormAuftragDetail detail = new FormAuftragDetail(auftrag, benutzer); - if(detail.ShowDialog() == DialogResult.OK) - { - this.auftrag = detail.auftrag; - Load_Etikett_GroupBox(this.auftrag); - } - } - private void listViewLieferungen_SelectedIndexChanged(object sender, EventArgs e) + /// + /// Vor Beginn der Editierung wird Wert gespeichert um nach der Editierung vergleichen und eventuell speichern zu können. + /// + /// + /// + private void dGArtikel_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { - ListView l = (ListView)sender; - if (l.SelectedItems.Count == 0) this.textBoxQRCode.Enabled = true; + DataGridView dataGrid = sender as DataGridView; + beforeedit = int.Parse(dataGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()); } - private void ListView_Load(List auftraglist, ListView lv) + private void dGArtikel_CellEndEdit(object sender, DataGridViewCellEventArgs e) { - - lv.Items.Clear(); - foreach (Auftrag auftrag in auftraglist) + DataGridView dgV = (DataGridView)sender; + // Aktuelle Zeile holen + var row = dgV.Rows[e.RowIndex]; + var cell = row.Cells[e.ColumnIndex]; + // Werte aus der Zeile auslesen + KundeArtikel stand = KundeArtikel.GetItem((int)row.Cells[0].Value); + if (cell.ColumnIndex == 4) { stand.Stand = int.Parse(row.Cells[4].Value.ToString()); stand.StandBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); } + if (cell.ColumnIndex == 5) { stand.Fehlmenge = int.Parse(row.Cells[5].Value.ToString()); stand.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); } + if (cell.ColumnIndex == 6) { - Kunde kunde = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty); - ListViewItem item = new ListViewItem(); - item.Tag = auftrag; - item.Text = ""; - item.SubItems.Add(auftrag.Liefertag.ToString("dddd dd.MM")); - if (kunde.KundeNummer == "0") item.SubItems.Add(auftrag.ZusatzInfo); - else item.SubItems.Add(kunde.Suchtext); - item.SubItems.Add(kunde.Region); - item.SubItems.Add(auftrag.Container.ToString()); - if ((int)auftrag.Status == 3) item.SubItems.Add(auftrag.Status.ToString() + " " + Aufgabe.GetAufgabe(string.Empty, auftrag.AuftragID).Bezeichnung); - else item.SubItems.Add(auftrag.Status.ToString()); - - if (auftrag.Liefertag <= DateTime.Today.AddDays(1)) + if (int.Parse(row.Cells[6].Value.ToString()) == 0) { - if (auftrag.Liefertag < DateTime.Today) { item.BackColor = (Color)Settings.Default["AuftAbgel"]; } - else - { - item.BackColor = (Color)Settings.Default["AuftBald"]; - item.ForeColor = Color.Black; - } + stand.Stand = stand.Stand + beforeedit; + stand.Korrektur = int.Parse(row.Cells[6].Value.ToString()); + stand.StandBearbeitet = stand.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); } - lv.Items.Add(item); } - Funktionen.Columns_Resize(lv); - lv.Columns[0].Width = 0; - lv.Columns[1].Width = lv.Columns[1].Width + 50; + // Hier kannst du die Werte speichern, z.B. in Datenbank oder Liste + if (stand.Save() != 1) meldung.Speicherfehler(); + else Load_Gridview(this.auftrag); } - private void Sonderauftrag_Load() + private void dGArtikel_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) { - //this.buttonSTH.Enabled = this.buttonSTH.Visible = false; - //this.listViewLieferungen.Visible = false; - //this.listViewSTH.Visible = true; - this.listViewSTH.Columns.Clear(); - this.listViewSTH.Items.Clear(); - - List artikel = Views.GetArtikel_sthList(); - - var groups = artikel.GroupBy(a => new { a.ArtikelName, a.KundeName, a.Anzahl }); - - - //Spalten in die ListView einfügen. Pro Kund mit STH wird eine Spalte erstellt. - this.listViewSTH.Columns.Add("ARTIKEL"); - foreach (var col in groups.GroupBy(g => g.Key.KundeName)) + if (e.ColumnIndex >= 5) { - this.listViewSTH.Columns.Add(col.Key.ToString()); - } - this.listViewSTH.Columns.Add("GESAMT"); - - //Zeilen in die ListView einfügen. Pro Artikel mit STH wird eine Zeile erstellt. - //Subitems für jede Spalte erstellen - foreach (var row in groups.GroupBy(g => g.Key.ArtikelName)) - { - ListViewItem item = new ListViewItem(); - item.Tag = row; - item.Text = row.Key.ToString(); - - //Subitems getrennt formatierbar machen - item.UseItemStyleForSubItems = false; - - //Subitems für jede Spalte erstellen - for (int i = 0; i <= this.listViewSTH.Columns.Count; i++) + DataGridView dgv = (DataGridView)sender; + DataGridViewCell dgc = dgv.CurrentCell; + if (!int.TryParse(dgc.EditedFormattedValue.ToString(), out int i)) { - item.SubItems.Add(string.Empty); - } - this.listViewSTH.Items.Add(item); - } - - //Übereinstimmend mit Spalten(Kunde) und Zeile(Artikel) wird die Anzahl der Stück eingefügt - //Letzte Spalte Artikelsumme berechnen und eintragen - //SubItem "GESAMT" Schriftfarbe und Dicke ändern - foreach (Views view in artikel) - { - foreach (ListViewItem item in this.listViewSTH.Items) - { - if (item.Text == view.ArtikelName) - { - foreach (ColumnHeader ch in this.listViewSTH.Columns) - { - - if (ch.Text == view.KundeName) { item.SubItems[ch.Index].Text = view.Anzahl.ToString(); item.SubItems[ch.Index].Tag = view; } - - //Letzte Spalte Artikelsumme berechnen und eintragen. - if (ch.Text == "GESAMT") - { - int ges = 0; - for (int i = 0; i < this.listViewSTH.Columns.Count - 1; i++) - { - if (int.TryParse(item.SubItems[i].Text, out int value)) ges += value; - } - item.SubItems[ch.Index].Text = ges.ToString(); - - //SubItem "GESAMT" Schriftfarbe und Dicke ändern - item.SubItems[ch.Index].ForeColor = Color.Red; - item.SubItems[ch.Index].Font = new Font(item.Font, FontStyle.Bold); - } - } - } + meldung.Eingabefehler(); + e.Cancel = true; } } + } - //Spaltenbreite der ListView wird automatisch optimiert. - Funktionen.Columns_Resize(this.listViewSTH); - //Umreihen der Spalten in der Listview wird - Funktionen.Columns_Reorder(this.listViewSTH); - - //GESAMT-Spalte wird als 2.Spalte angezeigt. - foreach (ColumnHeader ch in this.listViewSTH.Columns) if (ch.Text == "GESAMT") { ch.DisplayIndex = 1; } - - + /// + /// Beim Wechsel der Tabs wird die DataGridView geleert. + /// + /// + /// + private void tabControlAuftragList_SelectedIndexChanged(object sender, EventArgs e) + { + this.dGArtikel.DataSource = null; + this.dGArtikel.Rows.Clear(); } + private void FormExpedit_HelpButtonClicked(object sender, System.ComponentModel.CancelEventArgs e) + { + string[] keys = { + "Aufgelegt", + "Hergerichtet", + "Fertig" }; + + string[] keytext = { + "Auftrag wurde erstellt aber noch nicht ferig hergerichtet", + "Auftrag wurde fertig hergerichtet aber nicht abgeschlossen. Containeranzahl kann noch bearbeitet werden.", + "Auftrag wurde abgeschlossen und kann nichtmehr bearbeitet werden."}; + + FormHelp help = new FormHelp(keys, keytext); + help.ShowDialog(); + e.Cancel = true; + } + + + + + + + //TODO: Zweites Auftrag-Tab für vergangene Aufträge. Möglichkeit zur Kontrolle und diese als "ausgeliefert" zu markieren. } } diff --git a/FormExpedit.resx b/FormExpedit.resx index a51a865..1d9ef7c 100644 --- a/FormExpedit.resx +++ b/FormExpedit.resx @@ -132,21 +132,132 @@ maW0xzyEBCLixQroqxpo9vljoC/u/BcYrTD+RA0o1wEXCBcIFwiXB07Nzd/k/DvRAAAAAElFTkSuQmCC + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + - AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8A//////////////////////////////////////////////////////////////////////// - ////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P//// - //zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/ - //////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM - zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP - zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8 - zMzP//zMzMz//8zMzM////zM/////8zP/////Mz///////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC \ No newline at end of file diff --git a/FormFachBearbeiten.cs b/FormFachBearbeiten.cs index 7a1a91d..543bc84 100644 --- a/FormFachBearbeiten.cs +++ b/FormFachBearbeiten.cs @@ -157,7 +157,7 @@ namespace Deckungsbeitrag case Keys.F10: break; case Keys.F5: - FormListe liste = new FormListe(null, true); + FormListe liste = new FormListe(null, 0); if (liste.ShowDialog() == DialogResult.OK) { kunde = liste.kunde; diff --git a/FormFehlmengeCount.Designer.cs b/FormFehlmengeCount.Designer.cs new file mode 100644 index 0000000..cea05cd --- /dev/null +++ b/FormFehlmengeCount.Designer.cs @@ -0,0 +1,293 @@ +namespace Deckungsbeitrag +{ + partial class FormFehlmengeCount + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFehlmengeCount)); + this.textBoxScann = new System.Windows.Forms.TextBox(); + this.labelSuchtext = new System.Windows.Forms.Label(); + this.buttonFertig = new System.Windows.Forms.Button(); + this.labelName = new System.Windows.Forms.Label(); + this.buttonArt1 = new System.Windows.Forms.Button(); + this.buttonArt2 = new System.Windows.Forms.Button(); + this.buttonArt4 = new System.Windows.Forms.Button(); + this.buttonArt3 = new System.Windows.Forms.Button(); + this.buttonArt7 = new System.Windows.Forms.Button(); + this.buttonArt8 = new System.Windows.Forms.Button(); + this.buttonArt6 = new System.Windows.Forms.Button(); + this.buttonArt5 = new System.Windows.Forms.Button(); + this.groupBoxArtikel = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanelArtikel = new System.Windows.Forms.TableLayoutPanel(); + this.groupBoxArtikel.SuspendLayout(); + this.tableLayoutPanelArtikel.SuspendLayout(); + this.SuspendLayout(); + // + // textBoxScann + // + this.textBoxScann.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxScann.Location = new System.Drawing.Point(12, 12); + this.textBoxScann.Name = "textBoxScann"; + this.textBoxScann.Size = new System.Drawing.Size(80, 31); + this.textBoxScann.TabIndex = 1; + this.textBoxScann.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxScann_KeyDown); + this.textBoxScann.Leave += new System.EventHandler(this.textBoxScann_Leave); + // + // labelSuchtext + // + this.labelSuchtext.AutoSize = true; + this.labelSuchtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelSuchtext.ForeColor = System.Drawing.Color.White; + this.labelSuchtext.Location = new System.Drawing.Point(12, 55); + this.labelSuchtext.Name = "labelSuchtext"; + this.labelSuchtext.Size = new System.Drawing.Size(195, 37); + this.labelSuchtext.TabIndex = 2; + this.labelSuchtext.Text = "KundeName"; + // + // buttonFertig + // + this.buttonFertig.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); + this.buttonFertig.BackColor = System.Drawing.Color.Lime; + this.buttonFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonFertig.Location = new System.Drawing.Point(1098, 12); + this.buttonFertig.Name = "buttonFertig"; + this.buttonFertig.Size = new System.Drawing.Size(156, 142); + this.buttonFertig.TabIndex = 3; + this.buttonFertig.Text = "Kunde Fertig"; + this.buttonFertig.UseVisualStyleBackColor = false; + this.buttonFertig.Click += new System.EventHandler(this.buttonFertig_Click); + // + // labelName + // + this.labelName.AutoSize = true; + this.labelName.Font = new System.Drawing.Font("Microsoft Sans Serif", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelName.ForeColor = System.Drawing.Color.White; + this.labelName.Location = new System.Drawing.Point(12, 92); + this.labelName.Name = "labelName"; + this.labelName.Size = new System.Drawing.Size(148, 29); + this.labelName.TabIndex = 4; + this.labelName.Text = "KundeName"; + // + // buttonArt1 + // + this.buttonArt1.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt1.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt1.ForeColor = System.Drawing.Color.Black; + this.buttonArt1.Location = new System.Drawing.Point(3, 3); + this.buttonArt1.Name = "buttonArt1"; + this.buttonArt1.Size = new System.Drawing.Size(303, 243); + this.buttonArt1.TabIndex = 0; + this.buttonArt1.Text = "Artikel1"; + this.buttonArt1.UseVisualStyleBackColor = false; + this.buttonArt1.Click += new System.EventHandler(this.Button_Click); + this.buttonArt1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt2 + // + this.buttonArt2.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt2.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt2.ForeColor = System.Drawing.Color.Black; + this.buttonArt2.Location = new System.Drawing.Point(312, 3); + this.buttonArt2.Name = "buttonArt2"; + this.buttonArt2.Size = new System.Drawing.Size(303, 243); + this.buttonArt2.TabIndex = 1; + this.buttonArt2.Text = "Artikel2"; + this.buttonArt2.UseVisualStyleBackColor = false; + this.buttonArt2.Click += new System.EventHandler(this.Button_Click); + this.buttonArt2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt4 + // + this.buttonArt4.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt4.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt4.ForeColor = System.Drawing.Color.Black; + this.buttonArt4.Location = new System.Drawing.Point(930, 3); + this.buttonArt4.Name = "buttonArt4"; + this.buttonArt4.Size = new System.Drawing.Size(303, 243); + this.buttonArt4.TabIndex = 2; + this.buttonArt4.Text = "Artikel4"; + this.buttonArt4.UseVisualStyleBackColor = false; + this.buttonArt4.Click += new System.EventHandler(this.Button_Click); + this.buttonArt4.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt4.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt3 + // + this.buttonArt3.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt3.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt3.ForeColor = System.Drawing.Color.Black; + this.buttonArt3.Location = new System.Drawing.Point(621, 3); + this.buttonArt3.Name = "buttonArt3"; + this.buttonArt3.Size = new System.Drawing.Size(303, 243); + this.buttonArt3.TabIndex = 3; + this.buttonArt3.Text = "Artikel3"; + this.buttonArt3.UseVisualStyleBackColor = false; + this.buttonArt3.Click += new System.EventHandler(this.Button_Click); + this.buttonArt3.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt3.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt7 + // + this.buttonArt7.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt7.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt7.ForeColor = System.Drawing.Color.Black; + this.buttonArt7.Location = new System.Drawing.Point(621, 252); + this.buttonArt7.Name = "buttonArt7"; + this.buttonArt7.Size = new System.Drawing.Size(303, 244); + this.buttonArt7.TabIndex = 4; + this.buttonArt7.Text = "Artikel7"; + this.buttonArt7.UseVisualStyleBackColor = false; + this.buttonArt7.Click += new System.EventHandler(this.Button_Click); + this.buttonArt7.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt7.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt8 + // + this.buttonArt8.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt8.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt8.ForeColor = System.Drawing.Color.Black; + this.buttonArt8.Location = new System.Drawing.Point(930, 252); + this.buttonArt8.Name = "buttonArt8"; + this.buttonArt8.Size = new System.Drawing.Size(303, 244); + this.buttonArt8.TabIndex = 5; + this.buttonArt8.Text = "Artikel8"; + this.buttonArt8.UseVisualStyleBackColor = false; + this.buttonArt8.Click += new System.EventHandler(this.Button_Click); + this.buttonArt8.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt8.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt6 + // + this.buttonArt6.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt6.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt6.ForeColor = System.Drawing.Color.Black; + this.buttonArt6.Location = new System.Drawing.Point(312, 252); + this.buttonArt6.Name = "buttonArt6"; + this.buttonArt6.Size = new System.Drawing.Size(303, 244); + this.buttonArt6.TabIndex = 6; + this.buttonArt6.Text = "Artikel6"; + this.buttonArt6.UseVisualStyleBackColor = false; + this.buttonArt6.Click += new System.EventHandler(this.Button_Click); + this.buttonArt6.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt6.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // buttonArt5 + // + this.buttonArt5.BackColor = System.Drawing.Color.Turquoise; + this.buttonArt5.Dock = System.Windows.Forms.DockStyle.Fill; + this.buttonArt5.ForeColor = System.Drawing.Color.Black; + this.buttonArt5.Location = new System.Drawing.Point(3, 252); + this.buttonArt5.Name = "buttonArt5"; + this.buttonArt5.Size = new System.Drawing.Size(303, 244); + this.buttonArt5.TabIndex = 7; + this.buttonArt5.Text = "Artikel5"; + this.buttonArt5.UseVisualStyleBackColor = false; + this.buttonArt5.Click += new System.EventHandler(this.Button_Click); + this.buttonArt5.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Button_MouseDown); + this.buttonArt5.MouseUp += new System.Windows.Forms.MouseEventHandler(this.Button_MouseUp); + // + // groupBoxArtikel + // + this.groupBoxArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxArtikel.Controls.Add(this.tableLayoutPanelArtikel); + this.groupBoxArtikel.ForeColor = System.Drawing.Color.White; + this.groupBoxArtikel.Location = new System.Drawing.Point(12, 160); + this.groupBoxArtikel.Name = "groupBoxArtikel"; + this.groupBoxArtikel.Size = new System.Drawing.Size(1242, 518); + this.groupBoxArtikel.TabIndex = 0; + this.groupBoxArtikel.TabStop = false; + this.groupBoxArtikel.Text = "Kundenartikel"; + // + // tableLayoutPanelArtikel + // + this.tableLayoutPanelArtikel.BackColor = System.Drawing.Color.Transparent; + this.tableLayoutPanelArtikel.ColumnCount = 4; + this.tableLayoutPanelArtikel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanelArtikel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanelArtikel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanelArtikel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt1, 0, 0); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt8, 3, 1); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt6, 1, 1); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt7, 2, 1); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt5, 0, 1); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt2, 1, 0); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt3, 2, 0); + this.tableLayoutPanelArtikel.Controls.Add(this.buttonArt4, 3, 0); + this.tableLayoutPanelArtikel.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanelArtikel.Location = new System.Drawing.Point(3, 16); + this.tableLayoutPanelArtikel.Name = "tableLayoutPanelArtikel"; + this.tableLayoutPanelArtikel.RowCount = 2; + this.tableLayoutPanelArtikel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanelArtikel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanelArtikel.Size = new System.Drawing.Size(1236, 499); + this.tableLayoutPanelArtikel.TabIndex = 8; + // + // FormFehlmengeCount + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(1266, 690); + this.Controls.Add(this.labelName); + this.Controls.Add(this.buttonFertig); + this.Controls.Add(this.labelSuchtext); + this.Controls.Add(this.textBoxScann); + this.Controls.Add(this.groupBoxArtikel); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormFehlmengeCount"; + this.Text = "FEHLMENGEN-ERFASSUNG"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.FormFehlmengeCount_Load); + this.groupBoxArtikel.ResumeLayout(false); + this.tableLayoutPanelArtikel.ResumeLayout(false); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + private System.Windows.Forms.TextBox textBoxScann; + private System.Windows.Forms.Label labelSuchtext; + private System.Windows.Forms.Button buttonFertig; + private System.Windows.Forms.Label labelName; + private System.Windows.Forms.Button buttonArt1; + private System.Windows.Forms.Button buttonArt2; + private System.Windows.Forms.Button buttonArt4; + private System.Windows.Forms.Button buttonArt3; + private System.Windows.Forms.Button buttonArt7; + private System.Windows.Forms.Button buttonArt8; + private System.Windows.Forms.Button buttonArt6; + private System.Windows.Forms.Button buttonArt5; + private System.Windows.Forms.GroupBox groupBoxArtikel; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanelArtikel; + } +} \ No newline at end of file diff --git a/FormFehlmengeCount.cs b/FormFehlmengeCount.cs new file mode 100644 index 0000000..c816efe --- /dev/null +++ b/FormFehlmengeCount.cs @@ -0,0 +1,376 @@ +using AForge.Video.DirectShow; +using DatenDB; +using System; +using System.CodeDom; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls.WebParts; +using System.Windows.Forms; + +namespace Deckungsbeitrag +{ + public partial class FormFehlmengeCount : Form + { + private FilterInfoCollection videoDevices; + Kunde kunde; + List artikelListe; + Fehlermeldungen meldung = new Fehlermeldungen(); + //Benutzer benutzer; + string userid; + public FormFehlmengeCount() + { + InitializeComponent(); + + this.groupBoxArtikel.Visible = false; + //this.textBoxScann.Focus(); + } + public FormFehlmengeCount(Benutzer ben) : this() + { + //benutzer = ben; + } + public FormFehlmengeCount(string uid) : this() + { + this.userid = uid; + } + + private void FormFehlmengeCount_Load(object sender, EventArgs e) + { + videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); + + ControlLaden(); + + //Kunde wird durch Scan oder Handeingabe Ausgewählt. + this.kunde = Funktionen.KundenAuswahl(); + + CloseKeyboard(); + } + private void CloseKeyboard() + { + // Alle gestarteten Instanzen von TabTip.exe (Touch Tastatur) schließen + foreach (var process in Process.GetProcessesByName("TabTip")) + { + try + { + process.Close(); + } + catch (Exception es) + { + // Fehlerbehandlung falls Prozess nicht beendet werden kann + MessageBox.Show($"Fehler beim Schließen: " + es.Message); + } + } + + } + private void ControlLaden() + { + // Nachdem die textboxScann verlassen wird und ein Kunde gefunden wurde wird Form_Load ausgelöst. + if (kunde != null) + { + this.labelSuchtext.Text = kunde.Suchtext; + this.labelName.Text = kunde.KundeName; + this.labelName.Visible = this.labelSuchtext.Visible = true; + //this.textBoxScann.Clear(); + this.artikelListe = KundeArtikel.GetList(kunde.KundeID.ToString()); + this.textBoxScann.Text = this.kunde.KundeNummer; + this.textBoxScann.Enabled = false; + GroupBox_Load(); + } + + CloseKeyboard(); + } + + /// + /// Die GroupBox mit den Artikel-Buttons wird geladen + /// + private void GroupBox_Load() + { + + foreach (Button btn in this.tableLayoutPanelArtikel.Controls) btn.Tag = btn.Text = null; + this.groupBoxArtikel.Visible = true; + + //TODO: Nach Test und Rücksprache eventuell wieder umbauen. Benutzer.Rolle etc. + // Buttons werden den Artikeln aus der Artikelliste zugewiesen. Unterschied zwischen Frotteewäsche, Spannleintüchern, Großteilen und Kleinteilen + foreach (KundeArtikel artikel in artikelListe) + { + // Unterschied zwischen Maschine oder Person. + if(this.userid.StartsWith("ms")) + { + // Wird bei Frottee verarbeitet + if (this.userid.Contains("frottee")) + { + // Wird bei FROTTEE verarbeitet. + switch (artikel.ArtikelNR) + { + case var nr when nr.ToString().StartsWith("6311"): //HANDTUCH + this.buttonArt1.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6312") & nr.ToString().EndsWith("0"): //DUSCHTUCH WEISS + this.buttonArt2.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6314"): //BADEVORLEGER + this.buttonArt3.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6313"): //BADETUCH + this.buttonArt4.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6316"): //BADEMANTEL + this.buttonArt5.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6324"): //SAUNATUCH + this.buttonArt6.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6312") & nr.ToString().EndsWith("1"): //DUSCHTUCH BLAU + this.buttonArt7.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("6354"): //GESICHTSTUCH + this.buttonArt8.Tag = artikel; + break; + default: + break; + } + } + + // Wird bei Großteile verarbeitet + if (this.userid.Contains("großteile")) + { + // Wird bei Großteilen verarbeitet + switch (artikel.ArtikelNR) + { + case var nr when nr.ToString().StartsWith("6112"): //DECKENBEZUG + this.buttonArt1.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61110"): //LEINTUCH SINGLE + this.buttonArt2.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61112"): //DOPPELLEINTUCH + this.buttonArt3.Tag = artikel; + break; + //case var nr when nr.ToString().StartsWith(""): + // this.buttonArt4.Tag = artikel; + // break; + //case var nr when nr.ToString().StartsWith(""): + // this.buttonArt5.Tag = artikel; + // break; + //case var nr when nr.ToString().StartsWith(""): + // this.buttonArt6.Tag = artikel; + // break; + //case var nr when nr.ToString().StartsWith(""): + // this.buttonArt7.Tag = artikel; + // break; + //case var nr when nr.ToString().StartsWith(""): + // this.buttonArt8.Tag = artikel; + // break; + default: + break; + } + } + + // Wird bei Kleinteile verarbeitet + if (this.userid.Contains("kleinteile")) + { + // Wird bei Kleinteilen verarbeitet + switch (artikel.ArtikelNR) + { + case var nr when nr.ToString().StartsWith("61210"): //POLSTERBEZUG 60x80 + this.buttonArt1.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61211") & nr.ToString().EndsWith("0"): //POLSTERBEZUG 40x40 + this.buttonArt2.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61211") & nr.ToString().EndsWith("1"): //POLSTERBEZUG 40x50 + this.buttonArt3.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61211") & nr.ToString().EndsWith("2"): //POLSTERBEZUG 40x60 + this.buttonArt4.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61211") & nr.ToString().EndsWith("3"): //POLSTERBEZUG 40x70 + this.buttonArt5.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61221"): //MUNDSERVIETTE + this.buttonArt6.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61222"): //DECKSERVIETTE + this.buttonArt7.Tag = artikel; + break; + default: + break; + } + } + } + else // UserID Contains "ps" für Person + { + // Wird bei Spannleintuch verarbeitet. + if (this.userid.Contains("spannleintuch")) + { + switch (artikel.ArtikelNR) + { + case var nr when nr.ToString().StartsWith("61115") & (nr.ToString().EndsWith("00") || nr.ToString().EndsWith("30")): //SPANNLEINTUCH SINGLE + this.buttonArt1.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61115") & nr.ToString().EndsWith("10"): //SPANNLEINTUCH SINGLE GELB + this.buttonArt2.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61115") & nr.ToString().EndsWith("20"): //SPANNLEINTUCH SINGLE WEISS + this.buttonArt3.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61115") & (nr.ToString().EndsWith("30") || nr.ToString().EndsWith("40")): //SPANNLEINTUCH QUEEN BLAU GELB + this.buttonArt4.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61116") & nr.ToString().EndsWith("00"): //SPANNLEINTUCH DOUBLE + this.buttonArt5.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61116") & (nr.ToString().EndsWith("10") || nr.ToString().EndsWith("40")): //SPANNLEINTUCH LILA ITALO + this.buttonArt6.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61116") & (nr.ToString().EndsWith("20") || nr.ToString().EndsWith("21")): //SPANNLEINTUCH DOUBLE WEISS GRAU + this.buttonArt7.Tag = artikel; + break; + case var nr when nr.ToString().StartsWith("61116") & nr.ToString().EndsWith("30"): //SPANNLEINTUCH DOUBLE ROT + this.buttonArt8.Tag = artikel; + break; + default: + break; + } + + } + + } + } + + // Button mit Tag bearbeiten. Buttons ohne Tag werden deaktiviert. + foreach(Button btn in this.tableLayoutPanelArtikel.Controls) + { + if (btn.Tag == null) { btn.Enabled = false; btn.BackColor = Color.Gray; btn.Text = ""; } + else + { + KundeArtikel art = (KundeArtikel)btn.Tag; + int index = art.ArtikelName.IndexOf(" "); + btn.Text = art.ArtikelName; + btn.Font = new Font(btn.Font.Name, 18); + btn.BackColor = Color.Turquoise; + btn.Enabled = true; + } + } + } + + /// + /// Wenn der Kunde Fertig gemacht wurde, werden Controls deaktiviert und ausgeblendet bis neuer Kunde gewählt + /// + /// + /// + private void buttonFertig_Click(object sender, EventArgs e) + { + // Controls werden durchgegangen und ausgeblendet oder der Text entfernt. + foreach(Control ctr in this.Controls) + { + switch (ctr) + { + case Label lbl: + lbl.Text = string.Empty; + //lbl.Visible = false; + break; + case GroupBox gb: + gb.Visible = false; + break; + case TextBox txt: + txt.Clear(); + txt.Enabled = true; + break; + default: + break; + } + } + + // Focus auf TextBox damit Kundennummer eingegeben oder gescannt werden kann + //this.textBoxScann.Focus(); + + //Kunde wird durch Scan oder Handeingabe Ausgewählt. + this.kunde = Funktionen.KundenAuswahl(); + ControlLaden(); + } + + /// + /// TextBox Scann Events + /// Beim Verlassen der TextBox wird Kunde aus DB geholt + /// Wenn Enter gedrückt wird, wird TextBox verlassen + /// + /// + /// + private void textBoxScann_Leave(object sender, EventArgs e) + { + //TODO: Wenn Nachwäsche oder Müllwäsche alle Artikel anzeigen. + // Kundennummer wird ausgelesen und Kunde aus DB geholt. Form_Load wird danach ausgelöst + if (this.kunde == null) + { + this.kunde = Kunde.GetKunde(this.textBoxScann.Text, null, null); + ControlLaden(); + } + } + private void textBoxScann_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.Enter) + { + // Leave-Ereignis manuell ausführen + textBoxScann_Leave(sender, EventArgs.Empty); + + // Fokus auf das nächste Steuerelement verschieben + //this.SelectNextControl((Control)sender, true, true, true, true); + + // Standardverhalten (Beep) unterdrücken + e.SuppressKeyPress = true; + } + } + + /// + /// FehlmengeCount Button Events + /// Mouse Up & Down Event für Button Farbwechsel + /// + /// + /// + private void Button_MouseUp(object sender, MouseEventArgs e) + { + Button btn = sender as Button; + if (btn != null) + { + btn.BackColor = Color.Turquoise; // Gewünschte Farbe beim MouseUp + } + } + private void Button_MouseDown(object sender, MouseEventArgs e) + { + Button btn = sender as Button; + if (btn != null) + { + btn.BackColor = Color.LightSeaGreen; // Gewünschte Farbe beim MouseDown + } + } + private void Button_Click(object sender, EventArgs e) + { + // Beim geklickten Artikel wird Fehlmenge erhöht + Button btn = (Button)sender; + KundeArtikel artstand = (KundeArtikel)btn.Tag; + artstand.Fehlmenge++; + + // Wenn speichern nicht möglich, wird darauf hingewiesen. + if (artstand.Save() != 1) meldung.FehlmengeCount(); + else + { + Artikel artikel = Artikel.GetArtikel(artstand.ArtikelNR); + artikel.Nachwaesche++; + artikel.Save(); + } + + } + + private void textBoxScann_Enter(object sender, EventArgs e) + { + //GetKunde(); + } + + } +} diff --git a/FormFehlmengeCount.resx b/FormFehlmengeCount.resx new file mode 100644 index 0000000..4b0fe78 --- /dev/null +++ b/FormFehlmengeCount.resx @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSW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5CXZcXV0fsKTlJklyXM/PcZRtqZPcNv1Mnt6Ccg48 + wkled9wPrWBphh1bJs5xfQnV2xI48bVT8vfsxIKJD1068ZwEOe5SO9JLfDcYX0L17YTYT0uVtUPyKG9r + LyY+dOXAw6yIpt5n0Rd5m1Im3XF9CdXr6mw/baqxwCl0Rl6PVR+iZrRPsTLaenSf0QdL9qxXZr9KNty7 + TgnVYlONyd6OyEx8iOrAW4keqnEH35vtybI+aXZaz5sLP6yh/dbkL+uMajvB2wSViQ89CQLHiDpqsGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/FormHelp.Designer.cs b/FormHelp.Designer.cs new file mode 100644 index 0000000..f39762c --- /dev/null +++ b/FormHelp.Designer.cs @@ -0,0 +1,83 @@ +namespace Deckungsbeitrag +{ + partial class FormHelp + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHelp)); + this.buttonOK = new System.Windows.Forms.Button(); + this.pictureBoxImage = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).BeginInit(); + this.SuspendLayout(); + // + // buttonOK + // + this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonOK.Location = new System.Drawing.Point(713, 119); + this.buttonOK.Name = "buttonOK"; + this.buttonOK.Size = new System.Drawing.Size(75, 23); + this.buttonOK.TabIndex = 4; + this.buttonOK.Text = "OK"; + this.buttonOK.UseVisualStyleBackColor = true; + this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); + // + // pictureBoxImage + // + this.pictureBoxImage.Dock = System.Windows.Forms.DockStyle.Left; + this.pictureBoxImage.Image = global::Deckungsbeitrag.Properties.Resources.question_sign_icon_icons_com_73445; + this.pictureBoxImage.Location = new System.Drawing.Point(0, 0); + this.pictureBoxImage.Name = "pictureBoxImage"; + this.pictureBoxImage.Size = new System.Drawing.Size(100, 154); + this.pictureBoxImage.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBoxImage.TabIndex = 5; + this.pictureBoxImage.TabStop = false; + // + // FormHelp + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.LightYellow; + this.ClientSize = new System.Drawing.Size(800, 154); + this.Controls.Add(this.pictureBoxImage); + this.Controls.Add(this.buttonOK); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormHelp"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "Hilfe"; + this.TopMost = true; + this.Load += new System.EventHandler(this.FormHelp_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxImage)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + private System.Windows.Forms.Button buttonOK; + private System.Windows.Forms.PictureBox pictureBoxImage; + } +} \ No newline at end of file diff --git a/FormHelp.cs b/FormHelp.cs new file mode 100644 index 0000000..918cd19 --- /dev/null +++ b/FormHelp.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Deckungsbeitrag +{ + public partial class FormHelp : Form + { + string[] Keys; + string[] KeyBesch; + int abstandSeite = 100; + int abstand = 20; + int abstandZwischen = 5; + + public FormHelp() + { + InitializeComponent(); + } + + /// + /// Übergeben von string[] KeyWord und string[] Beschreibung + /// + /// + /// + public FormHelp(string[] keys, string[] keytext) : this() + { + this.Keys = keys; + this.KeyBesch = keytext; + } + + private void FormHelp_Load(object sender, EventArgs e) + { + Size longestkey = new Size(0, 0); + Point location = new Point(0, 0); + + // KeyWords verarbeiten und als Label einblenden + for (int i = 0; i < Keys.Length; i++) + { + Label lbl = new Label(); + lbl.Name = $"lblKey{i + 1}"; + lbl.Text = Keys[i]; + lbl.Tag = Keys[i]; + lbl.Font = new Font(lbl.Font.FontFamily, 12, FontStyle.Bold); + lbl.Size = TextRenderer.MeasureText(lbl.Text, lbl.Font); + if (i == 0) lbl.Location = new Point(abstandSeite, abstand); + else lbl.Location = new Point(abstandSeite, abstand + (lbl.Height + abstandZwischen) * i); + + if(lbl.Width > longestkey.Width) longestkey.Width = lbl.Width; + this.Controls.Add(lbl); + } + + // KeyBeschreibung verarbeiten und als label einblenden. + for (int i = 0; i < KeyBesch.Length; i++) + { + Label lbl = new Label(); + lbl.Name = $"lblBesch{i + 1}"; + lbl.Text = KeyBesch[i]; + lbl.Tag = KeyBesch[i]; + lbl.Font = new Font(lbl.Font.FontFamily, 12); + lbl.Size = TextRenderer.MeasureText(lbl.Text, lbl.Font); + if (i == 0) lbl.Location = new Point(abstandSeite + longestkey.Width + 10, abstand); + else lbl.Location = new Point((abstandSeite + longestkey.Width + 10), abstand + (lbl.Height + abstandZwischen) * i); + + if(lbl.Right > location.X) location.X = lbl.Right; + if(lbl.Bottom > location.Y) location.Y = lbl.Bottom; + this.Controls.Add(lbl); + } + + // Größe des Fensters bestimmen. + this.Width = location.X + abstandSeite; + this.Height = location.Y + buttonOK.Height + 50; + } + + private void buttonOK_Click(object sender, EventArgs e) + { + this.Close(); + } + } +} diff --git a/FormHelp.resx b/FormHelp.resx new file mode 100644 index 0000000..4b0fe78 --- /dev/null +++ b/FormHelp.resx @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4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e5SO9JLfDcYX0L17YTYT0uVtUPyKG9r + LyY+dOXAw6yIpt5n0Rd5m1Im3XF9CdXr6mw/baqxwCl0Rl6PVR+iZrRPsTLaenSf0QdL9qxXZr9KNty7 + TgnVYlONyd6OyEx8iOrAW4keqnEH35vtybI+aXZaz5sLP6yh/dbkL+uMajvB2wSViQ89CQLHiDpqsGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/Import.Designer.cs b/FormImport.Designer.cs similarity index 99% rename from Import.Designer.cs rename to FormImport.Designer.cs index 76dd789..106a4dc 100644 --- a/Import.Designer.cs +++ b/FormImport.Designer.cs @@ -1,7 +1,7 @@  namespace Deckungsbeitrag { - partial class Import + partial class FormImport { /// /// Required designer variable. @@ -30,7 +30,7 @@ namespace Deckungsbeitrag private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Import)); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormImport)); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.tSBAbbrechen = new System.Windows.Forms.ToolStripButton(); this.toolStripOpen = new System.Windows.Forms.ToolStripButton(); diff --git a/Import.cs b/FormImport.cs similarity index 99% rename from Import.cs rename to FormImport.cs index e3a97f3..01901fd 100644 --- a/Import.cs +++ b/FormImport.cs @@ -15,7 +15,7 @@ using System.Windows.Forms; namespace Deckungsbeitrag { - public partial class Import : Form + public partial class FormImport : Form { public Umsatz umsatz = new Umsatz(); public Kunde kunde = new Kunde(); @@ -31,7 +31,7 @@ namespace Deckungsbeitrag int[] fixlohn = ConfigurationManager.AppSettings["FixLohn"].Split(',').Select(int.Parse).ToArray(); int[] fixmiet = ConfigurationManager.AppSettings["FixMiete"].Split(',').Select(int.Parse).ToArray(); Thread t; - public Import() + public FormImport() { InitializeComponent(); diff --git a/Import.resx b/FormImport.resx similarity index 100% rename from Import.resx rename to FormImport.resx diff --git a/FormKamera.Designer.cs b/FormKamera.Designer.cs new file mode 100644 index 0000000..befd8cb --- /dev/null +++ b/FormKamera.Designer.cs @@ -0,0 +1,87 @@ +namespace Deckungsbeitrag +{ + partial class FormKamera + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKamera)); + this.pictureBoxKamera = new System.Windows.Forms.PictureBox(); + this.buttonHand = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxKamera)).BeginInit(); + this.SuspendLayout(); + // + // pictureBoxKamera + // + this.pictureBoxKamera.Dock = System.Windows.Forms.DockStyle.Top; + this.pictureBoxKamera.Location = new System.Drawing.Point(0, 0); + this.pictureBoxKamera.Name = "pictureBoxKamera"; + this.pictureBoxKamera.Size = new System.Drawing.Size(584, 316); + this.pictureBoxKamera.TabIndex = 0; + this.pictureBoxKamera.TabStop = false; + // + // buttonHand + // + this.buttonHand.BackColor = System.Drawing.Color.Yellow; + this.buttonHand.Dock = System.Windows.Forms.DockStyle.Bottom; + this.buttonHand.FlatAppearance.BorderSize = 0; + this.buttonHand.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonHand.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonHand.ForeColor = System.Drawing.SystemColors.ControlText; + this.buttonHand.Location = new System.Drawing.Point(0, 321); + this.buttonHand.Margin = new System.Windows.Forms.Padding(2); + this.buttonHand.Name = "buttonHand"; + this.buttonHand.Size = new System.Drawing.Size(584, 41); + this.buttonHand.TabIndex = 16; + this.buttonHand.Text = "Handeingabe starten"; + this.buttonHand.UseVisualStyleBackColor = false; + this.buttonHand.Click += new System.EventHandler(this.buttonHand_Click); + // + // FormKamera + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.SystemColors.Control; + this.ClientSize = new System.Drawing.Size(584, 362); + this.Controls.Add(this.buttonHand); + this.Controls.Add(this.pictureBoxKamera); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FormKamera"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "KAMERA"; + this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormKamera_FormClosing); + this.Load += new System.EventHandler(this.FormKamera_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxKamera)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBoxKamera; + private System.Windows.Forms.Button buttonHand; + } +} \ No newline at end of file diff --git a/FormKamera.cs b/FormKamera.cs new file mode 100644 index 0000000..60841a7 --- /dev/null +++ b/FormKamera.cs @@ -0,0 +1,127 @@ +using AForge.Video; +using AForge.Video.DirectShow; +using DatenDB; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using ZXing; + + +namespace Deckungsbeitrag +{ + public partial class FormKamera : Form + { + public Kunde kunde; + //QR-Code Scan mit integrierter Kamera + private VideoCaptureDevice videoSource; + private FilterInfoCollection videoDevices; + private BarcodeReader barcodeReader; + private bool isScanning = false; + + public FormKamera() + { + InitializeComponent(); + } + + public FormKamera(FilterInfoCollection videoDevices) : this() + { + this.videoDevices = videoDevices; + } + + private void FormKamera_Load(object sender, EventArgs e) + { + barcodeReader = new BarcodeReader(); + + videoSource = new VideoCaptureDevice(videoDevices[0].MonikerString); + videoSource.NewFrame += VideoSource_NewFrame; + videoSource.Start(); + isScanning = true; + } + + /// + /// PictureBox mit Live Bild der Kamera laden und anzeigen. + /// + /// + /// + private void VideoSource_NewFrame(object sender, NewFrameEventArgs eventArgs) + { + using (Bitmap unflippedbitmap = (Bitmap)eventArgs.Frame.Clone()) + { + Bitmap bitmap = FlipHorizontal(unflippedbitmap); + pictureBoxKamera.Image?.Dispose(); + pictureBoxKamera.Image = (Bitmap)bitmap.Clone(); + + var result = barcodeReader.Decode(bitmap); + if (result != null && result.BarcodeFormat == BarcodeFormat.QR_CODE) + { + this.Invoke(new Action(() => { + this.kunde = Kunde.GetKunde(result.Text, null, null); // Direkt in TextBox schreiben + pictureBoxKamera.Image?.Dispose(); + + StopScanning(); + + System.Media.SystemSounds.Asterisk.Play(); + this.DialogResult = DialogResult.OK; + this.Close(); + })); + } + + } + + } + + /// + /// Die Bitmap wir Horizontal geflippt damit die Orientierung beim QR-Scann besser ist. + /// + /// + /// + private Bitmap FlipHorizontal(Bitmap source) + { + Bitmap flipped = (Bitmap)source.Clone(); + flipped.RotateFlip(RotateFlipType.RotateNoneFlipX); // ✅ Funktioniert! + return flipped; + } + + /// + /// Scannen wird hier gestoppt. + /// + private void StopScanning() + { + if (videoSource != null) + { + videoSource.SignalToStop(); + videoSource = null; + isScanning = false; + } + + } + + /// + /// Wenn QR-Code scannen nicht möglich ist, kann händische Eingabe gewählt werden. + /// + /// + /// + private void buttonHand_Click(object sender, EventArgs e) + { + StopScanning(); + this.DialogResult = DialogResult.No; + this.Close(); + } + + /// + /// Scanning beenden falls Form geschlossen wird. + /// + /// + /// + private void FormKamera_FormClosing(object sender, FormClosingEventArgs e) + { + if (isScanning) { StopScanning(); this.DialogResult = DialogResult.Cancel; } + } + } +} diff --git a/FormKamera.resx b/FormKamera.resx new file mode 100644 index 0000000..4b0fe78 --- /dev/null +++ b/FormKamera.resx @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4Zc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SO9JLfDcYX0L17YTYT0uVtUPyKG9r + LyY+dOXAw6yIpt5n0Rd5m1Im3XF9CdXr6mw/baqxwCl0Rl6PVR+iZrRPsTLaenSf0QdL9qxXZr9KNty7 + TgnVYlONyd6OyEx8iOrAW4keqnEH35vtybI+aXZaz5sLP6yh/dbkL+uMajvB2wSViQ89CQLHiDpqsGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/FormKundeVW.cs b/FormKundeVW.cs new file mode 100644 index 0000000..f9bb8a1 --- /dev/null +++ b/FormKundeVW.cs @@ -0,0 +1,449 @@ +using AForge.Video.DirectShow; +using BrightIdeasSoftware; +using DatenDB; +using Spire.Barcode; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Configuration; +using System.Data; +using System.Data.SqlClient; +using System.Drawing; +using System.Drawing.Printing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using ZXing; + +namespace Deckungsbeitrag +{ + public partial class FormKundeVW : Form + { + private FilterInfoCollection videoDevices; + List sortimentListe = null; + List resultList = null; + List standListe = null; + Sortiment result = null; + Kunde kunde = null; + Bitmap bitmap = null; + Image qrcode = null; + Fehlermeldungen meldung = new Fehlermeldungen(); + Benutzer benutzer; + int beforeedit = 0; + int[] saveindex = null; + + public FormKundeVW() + { + InitializeComponent(); + } + public FormKundeVW(Kunde kunde) :this() + { + this.kunde = kunde; + } + public FormKundeVW(Benutzer benutzer) : this() + { + this.benutzer = benutzer; + } + private void KundeDaten_Load(object sender, EventArgs e) + { + videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); + + //Sortiment Liste erstellen. + sortimentListe = Funktionen.SortimentLesen("Liste"); + + //Alle TextBoxen deaktivieren. + TextBoxes_Unable(); + + this.tabControlKunde.Location = new Point(this.textBoxSuchtext.Right + 10, 11); + + //Aufgaben Liste erstellen und mit ComboBox verknüpfen. + List aufgabenlist1 = Aufgabe.GetList(2); + this.comboBoxAufgabe.DataSource = aufgabenlist1; + this.comboBoxAufgabe.DisplayMember = "Bezeichnung"; + this.comboBoxAufgabe.SelectedIndex = -1; + this.comboBoxAufgabe.Enabled = false; + + this.kunde = Funktionen.KundenAuswahl(); + if (this.kunde != null) DatenLesen(); + } + + private void DatenLesen() + { + //TextBoxen deaktivieren. + TextBoxes_Unable(); + + //Alle Einträge der DataGridView entfernen. Davor muss die DataSource entfernt werden. + this.dGArtikel.DataSource = null; + this.dGArtikel.Rows.Clear(); + + //ComboBox für Sonderaufgaben wie "In Säcke Verpacken". + this.comboBoxAufgabe.Enabled = true; + + //Properties für Standliste. + //sortNr ist falls noch kein Stand hinterlegt wurde + string sortNr = string.Empty; + //kundeid ist falls bereits ein Stand existiert und die Artikel gespeichert wurden. + string kundeid = this.kunde.KundeID.ToString(); + + // Wenn bereits ein Stand gespeichert ist, kommt er aus der DB. Wenn kein Stand gespeichert kommt Liste aus Sortiment. + if (KundeArtikel.GetList(kundeid).Count > 0) + { + this.standListe = KundeArtikel.GetList(kundeid); + Load_Gridview(this.standListe); + + } + else + { + //Jedes Innsbrucker Soziale Dienste Sortiment ist gleich. + if (this.kunde.KundeNummer == "010069" | this.kunde.KundeNummer == "010071") sortNr = "010068"; + else sortNr = this.kunde.KundeNummer; + + //Sortiment holen und Standliste filtern. + standListe = new List(); + foreach(Sortiment sort in sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == sortNr)) + { + KundeArtikel item = new KundeArtikel(); + item.ArtikelNR = sort.ArtNr; + item.ArtikelName = sort.ArtName; + item.KundeID = Kunde.GetKundeID(sort.KundeNummer, null); + standListe.Add(item); + } + + //GridView mit der jeweiligen Liste füllen. + Load_Gridview(this.standListe); + } + + // QR-Code wird erstellt + BarcodeWriter code = new BarcodeWriter(); + code.Format = BarcodeFormat.QR_CODE; + qrcode = code.Write(this.kunde.KundeNummer); + this.pictureBoxQRCode.Image = qrcode; + this.pictureBoxQRCode.SizeMode = PictureBoxSizeMode.Zoom; + + // SWS-Entwurf wird erstellt und angezeigt + this.pictureBoxEntwurf.Image = Funktionen.SWS_Entwurf(null, this.kunde); + this.pictureBoxEntwurf.Visible = true; + + // Restliche TextBoxen werden befüllt + this.textBoxKndNr.Text = this.kunde.KundeNummer; + this.textBoxKundeName.Text = this.kunde.KundeName; + this.textBoxKndName2.Text = this.kunde.KundeName2; + this.textBoxStraße.Text = this.kunde.Strasse; + this.textBoxPLZ.Text = this.kunde.PLZ.ToString(); + this.textBoxOrt.Text = this.kunde.Ort; + this.textBoxSuchtext.Text = this.kunde.Suchtext; + + // ComboBox für Aufgabe wird geladen + foreach (Aufgabe auf in comboBoxAufgabe.Items) if (auf.AufgabeID == this.kunde.Aufgabe) this.comboBoxAufgabe.SelectedItem = auf; + if (this.comboBoxAufgabe.SelectedItem != null) this.buttonAufgEnt.Enabled = true; + + // Wird noch nicht verwendet + this.buttonProgramm.Text = "WP 01"; + + //Buttons und ähnliches aktivieren. + this.buttonProgramm.Enabled = true; + this.buttonBewertung.Enabled = true; + this.tabControlKunde.Enabled = true; + + OLV_Load(); + Chart_Load(); + } + + /// + /// TextBox Events + /// + private void TextBoxes_Unable() + { + foreach (Control ctr in this.Controls) if (ctr is TextBox) { ctr.Enabled = false; } + } + private void TextBoxKndNr_Leave(object sender, EventArgs e) + { + + } + + + private void TSBBeenden_Click(object sender, EventArgs e) + { + this.DialogResult = DialogResult.Cancel; + this.Close(); + } + private void ButtonDrucken_Click(object sender, EventArgs e) + { + Funktionen.SWS_Drucken(null, this.kunde, this); + } + private void TSBNext_Click(object sender, EventArgs e) + { + // Kundenliste öffnen und Kunde auswählen. + this.kunde = Funktionen.KundenAuswahl(); + if (kunde != null) DatenLesen(); + } + private void ButtonProgramm_Click(object sender, EventArgs e) + { + FormProgrammauswahl auswahl = new FormProgrammauswahl(); + if (auswahl.ShowDialog() == DialogResult.OK) + { + DatenLesen(); + } + } + private void buttonAufgEnt_Click(object sender, EventArgs e) + { + + if (MessageBox.Show("Möchtest du die Aufgabe wirklich löschen?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + this.comboBoxAufgabe.SelectedIndex = -1; + this.kunde.Aufgabe = null; + this.kunde.Save(); + + } + + + + } + + + private void OLV_Load() + { + foreach(ObjectListView olv in this.Controls.OfType()) + { + olv.HeaderFormatStyle = Funktionen.GetHeader(); + olv.OwnerDraw = true; + Generator.GenerateColumns(olv, typeof(OLVKundenumsatz), true); + + if (olv.Name.Contains("Jahresumsatz")) + { + foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Jahr"; + olv.SetObjects(OLVKundenumsatz.GetJahresumsatz(this.kunde.KundeID)); + } + if (olv.Name.Contains("Quartalsumsatz")) + { + foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Quartal"; + olv.SetObjects(OLVKundenumsatz.GetQuartalsumsatz(this.kunde.KundeID)); + } + if (olv.Name.Contains("Monatsumsatz")) + { + foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Monat"; + olv.SetObjects(OLVKundenumsatz.GetMonatsumsatz(this.kunde.KundeID)); + } + } + + + + } + private void Chart_Load() + { + foreach (Chart chart in this.Controls.OfType()) chart.Visible = true; + //IMPLEMENTIEREN + ClassChart ch = ClassChart.FillChart(this.kunde.KundeID); + //Chart Jahresumsatz + List olv = OLVKundenumsatz.GetJahresumsatz(this.kunde.KundeID); + string[] x = new string[olv.Count()]; + double[] y = new double[olv.Count()]; + for (int i = 0; i < y.Length; i++) + { + y[i] = olv[i].Umsatz; + x[i] = olv[i].Zeitraum; + } + this.chartJahresumsatz.Series[0].LegendText = "Umsatz"; + this.chartJahresumsatz.Series[0].ChartType = SeriesChartType.Column; + this.chartJahresumsatz.Series[0].IsValueShownAsLabel = true; + this.chartJahresumsatz.Series[0].Points.DataBindXY(x, y); + //Chart Quartalsumsatz + List olvq = OLVKundenumsatz.GetQuartalsumsatz(this.kunde.KundeID); + string[] xq = new string[olvq.Count()]; + double[] yq = new double[olvq.Count()]; + for (int i = 0; i < olvq.Count(); i++) + { + yq[i] = olvq[i].Umsatz; + xq[i] = olvq[i].Zeitraum; + } + this.chartQuartalsumsatz.Series[0].LegendText = "Umsatz"; + this.chartQuartalsumsatz.Series[0].ChartType = SeriesChartType.Bar; + this.chartQuartalsumsatz.Series[0].IsValueShownAsLabel = true; + this.chartQuartalsumsatz.Series[0].Points.DataBindXY(xq, yq); + } + private void comboBoxAufgabe_DropDownClosed(object sender, EventArgs e) + { + if (MessageBox.Show("Möchtest du die Aufgabe speichern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + if (this.comboBoxAufgabe.SelectedItem == null) this.kunde.Aufgabe = null; + else this.kunde.Aufgabe = ((Aufgabe)this.comboBoxAufgabe.SelectedItem).AufgabeID; + + this.kunde.Save(); + } + } + private void KundeDaten_KeyDown(object sender, KeyEventArgs e) + { + if (e.KeyCode == Keys.End) TSBNext_Click(this, e); + } + + /// + /// Events für ShortCut zu "Nächster Kunde" + /// + /// + /// + private void nextToolStripMenuItem_Click(object sender, EventArgs e) + { + TSBNext_Click(this, e); + } + private void nächsterKundeToolStripMenuItem_Click(object sender, EventArgs e) + { + TSBNext_Click(this, e); + } + + /// + /// Laden der DataGridView zur Stand und Fehlmengenverwaltung. + /// + /// + private void Load_Gridview(List objectListe) + { + + this.dGArtikel.AutoGenerateColumns = false; + foreach (DataGridViewColumn col in this.dGArtikel.Columns) + { + col.DataPropertyName = col.Name; + } + + + // DataGridView mit ArtikelStand Liste verbinden und Columns automatisch generieren. + this.dGArtikel.DataSource = objectListe; + + this.dGArtikel.ClearSelection(); + this.dGArtikel.CurrentCell = this.dGArtikel.Rows[0].Cells[3]; + + // Alle Spaltenbreiten an den Zellinhalt anpassen + this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + // Alle Zeilenhöhen an Zellinhalt anpassen + this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; + + } + + /// + /// Speichern von Stand und Fehlmengenänderungen. + /// + /// + /// + private void standSpeichernToolStripMenuItem_Click(object sender, EventArgs e) + { + int tosave = 0; + int toupdate = 0; + int saved = 0; + + this.dGArtikel.EndEdit(); + + // Speichern der Zeilen aus der DataGridView + foreach(DataGridViewRow row in this.dGArtikel.Rows) + { + KundeArtikel item = KundeArtikel.GetItemIfAvailable(int.Parse(row.Cells[1].Value.ToString()), int.Parse(row.Cells[2].Value.ToString())); + + if(item != null) + { + ++toupdate; + + if (int.Parse(row.Cells[4].Value.ToString()) != 0) + { + item.Stand = int.Parse(row.Cells[4].Value.ToString()); + item.StandBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (int.Parse(row.Cells[5].Value.ToString()) != 0) + { + item.Fehlmenge = int.Parse(row.Cells[5].Value.ToString()); + item.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (int.Parse(row.Cells[6].Value.ToString()) != 0) + { + item.Korrektur = int.Parse(row.Cells[6].Value.ToString()); + item.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (item.Save() == 1) saved++; + + } + else + { + ++tosave; + + item.KundeArtikelID = null; + item.KundeID = int.Parse(row.Cells[1].Value.ToString()); + item.ArtikelNR = int.Parse(row.Cells[2].Value.ToString()); + item.ArtikelName = row.Cells[3].Value.ToString(); + + if (int.Parse(row.Cells[4].Value.ToString()) != 0) + { + item.Stand = int.Parse(row.Cells[4].Value.ToString()); + item.StandBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (int.Parse(row.Cells[5].Value.ToString()) != 0) + { + item.Fehlmenge = int.Parse(row.Cells[5].Value.ToString()); + item.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (int.Parse(row.Cells[6].Value.ToString()) != 0) + { + item.Korrektur = int.Parse(row.Cells[6].Value.ToString()); + item.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (item.Save() == 1) saved++; + + } + } + + // Überprüfung ob alle Zeilen gespeichert wurden. + if ((toupdate + tosave) == saved) meldung.Gespeichert(); + else meldung.Speicherfehler(); + + Load_Gridview(this.standListe); + } + private void dGArtikel_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) + { + DataGridView dataGrid = sender as DataGridView; + beforeedit = int.Parse(dataGrid.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()); + } + + private void dGArtikel_CellValueChanged(object sender, DataGridViewCellEventArgs e) + { + if (e.RowIndex >= 0) + { + DataGridView dg = sender as DataGridView; + DataGridViewRow row = dg.Rows[e.RowIndex]; + DataGridViewCell cell = dg.Rows[e.RowIndex].Cells[e.ColumnIndex]; + if (cell != null) + { + // Wenn der Zellenwert sich geändert hat, wird die entsprechende Zahl in der DB upgedatet. + if (beforeedit != int.Parse(cell.Value.ToString())) + { + + if (row.Cells[0].Value != null) + { + KundeArtikel item = KundeArtikel.GetItem(int.Parse(row.Cells[0].Value.ToString())); + + item.KundeArtikelID = int.Parse(row.Cells[0].Value.ToString()); + if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Stand") + { + item.Stand = int.Parse(row.Cells[e.ColumnIndex].Value.ToString()); + item.StandBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Fehlmenge") + { + item.Fehlmenge = int.Parse(row.Cells[e.ColumnIndex].Value.ToString()); + item.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (row.Cells[e.ColumnIndex].OwningColumn.Name == "Korrektur") + { + item.Korrektur = int.Parse(row.Cells[e.ColumnIndex].Value.ToString()); + item.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (item.Save() != 1) meldung.Speicherfehler(); + } + + + } + } + + } + } + + } +} diff --git a/KundeDaten.designer.cs b/FormKundeVW.designer.cs similarity index 51% rename from KundeDaten.designer.cs rename to FormKundeVW.designer.cs index c80f207..dfc9b23 100644 --- a/KundeDaten.designer.cs +++ b/FormKundeVW.designer.cs @@ -1,7 +1,7 @@  namespace Deckungsbeitrag { - partial class KundeDaten + partial class FormKundeVW { /// /// Erforderliche Designervariable. @@ -30,20 +30,19 @@ namespace Deckungsbeitrag private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(KundeDaten)); - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea40 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend40 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series40 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea41 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend41 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series41 = new System.Windows.Forms.DataVisualization.Charting.Series(); - System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea42 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); - System.Windows.Forms.DataVisualization.Charting.Legend legend42 = new System.Windows.Forms.DataVisualization.Charting.Legend(); - System.Windows.Forms.DataVisualization.Charting.Series series42 = new System.Windows.Forms.DataVisualization.Charting.Series(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.tSBBeenden = new System.Windows.Forms.ToolStripButton(); - this.tSBDrucken = new System.Windows.Forms.ToolStripButton(); - this.tSBNext = new System.Windows.Forms.ToolStripButton(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea3 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); + System.Windows.Forms.DataVisualization.Charting.Legend legend3 = new System.Windows.Forms.DataVisualization.Charting.Legend(); + System.Windows.Forms.DataVisualization.Charting.Series series3 = new System.Windows.Forms.DataVisualization.Charting.Series(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormKundeVW)); this.textBoxKndNr = new System.Windows.Forms.TextBox(); this.labelKundeNummer = new System.Windows.Forms.Label(); this.labelKundeName = new System.Windows.Forms.Label(); @@ -55,256 +54,217 @@ namespace Deckungsbeitrag this.textBoxOrt = new System.Windows.Forms.TextBox(); this.labelOrt = new System.Windows.Forms.Label(); this.pictureBoxEntwurf = new System.Windows.Forms.PictureBox(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.tSSLabelArtikel = new System.Windows.Forms.ToolStripStatusLabel(); - this.tSSLabelArtikelAnz = new System.Windows.Forms.ToolStripStatusLabel(); this.labelKdnName2 = new System.Windows.Forms.Label(); this.textBoxKndName2 = new System.Windows.Forms.TextBox(); this.buttonBewertung = new System.Windows.Forms.Button(); this.pictureBoxQRCode = new System.Windows.Forms.PictureBox(); this.buttonProgramm = new System.Windows.Forms.Button(); - this.olvJahresumsatz = new BrightIdeasSoftware.ObjectListView(); - this.chartJahresumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); - this.labelJahresumsatz = new System.Windows.Forms.Label(); - this.labelQuartalsumsatz = new System.Windows.Forms.Label(); - this.chartQuartalsumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); - this.olvQuartalsumsatz = new BrightIdeasSoftware.ObjectListView(); - this.labelMonatsumsatz = new System.Windows.Forms.Label(); - this.chartMonatsumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); - this.olvMonatsumsatz = new BrightIdeasSoftware.ObjectListView(); this.textBoxSuchtext = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.comboBoxAufgabe = new System.Windows.Forms.ComboBox(); this.label2 = new System.Windows.Forms.Label(); this.buttonAufgEnt = new System.Windows.Forms.Button(); - this.toolStripDropDownNext = new System.Windows.Forms.ToolStripDropDownButton(); - this.nextToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.nächsterKundeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.toolStrip1.SuspendLayout(); + this.tabControlKunde = new System.Windows.Forms.TabControl(); + this.tabPageVorschau = new System.Windows.Forms.TabPage(); + this.tabPageUmsatz = new System.Windows.Forms.TabPage(); + this.labelMonatsumsatz = new System.Windows.Forms.Label(); + this.chartMonatsumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); + this.olvMonatsumsatz = new BrightIdeasSoftware.ObjectListView(); + this.labelQuartalsumsatz = new System.Windows.Forms.Label(); + this.chartQuartalsumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); + this.olvQuartalsumsatz = new BrightIdeasSoftware.ObjectListView(); + this.labelJahresumsatz = new System.Windows.Forms.Label(); + this.chartJahresumsatz = new System.Windows.Forms.DataVisualization.Charting.Chart(); + this.olvJahresumsatz = new BrightIdeasSoftware.ObjectListView(); + this.tabPageArtikel = new System.Windows.Forms.TabPage(); + this.dGArtikel = new System.Windows.Forms.DataGridView(); + this.KundeArtikelID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KundeID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelNR = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Stand = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Fehlmenge = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Korrektur = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.StandBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.FehlmengeBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KorrekturBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.buttonSWS_Drucken = new System.Windows.Forms.Button(); + this.buttonSpeichern = new System.Windows.Forms.Button(); + this.buttonNextKunde = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).BeginInit(); - this.statusStrip1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQRCode)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.chartJahresumsatz)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.chartQuartalsumsatz)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.olvQuartalsumsatz)).BeginInit(); + this.contextMenuStrip1.SuspendLayout(); + this.tabControlKunde.SuspendLayout(); + this.tabPageVorschau.SuspendLayout(); + this.tabPageUmsatz.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.chartMonatsumsatz)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.olvMonatsumsatz)).BeginInit(); - this.contextMenuStrip1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.chartQuartalsumsatz)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.olvQuartalsumsatz)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.chartJahresumsatz)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).BeginInit(); + this.tabPageArtikel.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit(); this.SuspendLayout(); // - // toolStrip1 - // - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tSBBeenden, - this.tSBDrucken, - this.tSBNext, - this.toolStripDropDownNext}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(936, 27); - this.toolStrip1.TabIndex = 0; - this.toolStrip1.Text = "toolStrip1"; - // - // tSBBeenden - // - this.tSBBeenden.Image = ((System.Drawing.Image)(resources.GetObject("tSBBeenden.Image"))); - this.tSBBeenden.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBBeenden.Name = "tSBBeenden"; - this.tSBBeenden.Size = new System.Drawing.Size(77, 24); - this.tSBBeenden.Text = "Beenden"; - this.tSBBeenden.Click += new System.EventHandler(this.TSBBeenden_Click); - // - // tSBDrucken - // - this.tSBDrucken.Image = ((System.Drawing.Image)(resources.GetObject("tSBDrucken.Image"))); - this.tSBDrucken.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBDrucken.Name = "tSBDrucken"; - this.tSBDrucken.Size = new System.Drawing.Size(135, 24); - this.tSBDrucken.Text = "Zählschein Drucken"; - this.tSBDrucken.Click += new System.EventHandler(this.ButtonDrucken_Click); - // - // tSBNext - // - this.tSBNext.Image = ((System.Drawing.Image)(resources.GetObject("tSBNext.Image"))); - this.tSBNext.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBNext.Name = "tSBNext"; - this.tSBNext.Size = new System.Drawing.Size(138, 24); - this.tSBNext.Text = "Nächster Kunde [F9]"; - this.tSBNext.Click += new System.EventHandler(this.TSBNext_Click); - // // textBoxKndNr // this.textBoxKndNr.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; this.textBoxKndNr.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; this.textBoxKndNr.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxKndNr.Location = new System.Drawing.Point(10, 60); - this.textBoxKndNr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxKndNr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxKndNr.Location = new System.Drawing.Point(10, 92); + this.textBoxKndNr.Margin = new System.Windows.Forms.Padding(2); this.textBoxKndNr.Name = "textBoxKndNr"; - this.textBoxKndNr.Size = new System.Drawing.Size(51, 20); + this.textBoxKndNr.Size = new System.Drawing.Size(69, 26); this.textBoxKndNr.TabIndex = 0; - this.textBoxKndNr.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxSuchtext_KeyDown); - this.textBoxKndNr.Leave += new System.EventHandler(this.TextBoxKndNr_Leave); // // labelKundeNummer // this.labelKundeNummer.AutoSize = true; - this.labelKundeNummer.Location = new System.Drawing.Point(9, 44); + this.labelKundeNummer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelKundeNummer.ForeColor = System.Drawing.Color.White; + this.labelKundeNummer.Location = new System.Drawing.Point(6, 70); this.labelKundeNummer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelKundeNummer.Name = "labelKundeNummer"; - this.labelKundeNummer.Size = new System.Drawing.Size(49, 13); + this.labelKundeNummer.Size = new System.Drawing.Size(69, 20); this.labelKundeNummer.TabIndex = 2; this.labelKundeNummer.Text = "KND NR"; // // labelKundeName // this.labelKundeName.AutoSize = true; - this.labelKundeName.Location = new System.Drawing.Point(9, 82); + this.labelKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelKundeName.ForeColor = System.Drawing.Color.White; + this.labelKundeName.Location = new System.Drawing.Point(6, 120); this.labelKundeName.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelKundeName.Name = "labelKundeName"; - this.labelKundeName.Size = new System.Drawing.Size(35, 13); + this.labelKundeName.Size = new System.Drawing.Size(51, 20); this.labelKundeName.TabIndex = 3; this.labelKundeName.Text = "Name"; // // textBoxKundeName // this.textBoxKundeName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxKundeName.Location = new System.Drawing.Point(10, 98); - this.textBoxKundeName.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxKundeName.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxKundeName.Location = new System.Drawing.Point(10, 142); + this.textBoxKundeName.Margin = new System.Windows.Forms.Padding(2); this.textBoxKundeName.Name = "textBoxKundeName"; - this.textBoxKundeName.Size = new System.Drawing.Size(238, 20); + this.textBoxKundeName.Size = new System.Drawing.Size(281, 26); this.textBoxKundeName.TabIndex = 4; // // textBoxStraße // this.textBoxStraße.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxStraße.Location = new System.Drawing.Point(10, 180); - this.textBoxStraße.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxStraße.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxStraße.Location = new System.Drawing.Point(10, 242); + this.textBoxStraße.Margin = new System.Windows.Forms.Padding(2); this.textBoxStraße.Name = "textBoxStraße"; - this.textBoxStraße.Size = new System.Drawing.Size(238, 20); + this.textBoxStraße.Size = new System.Drawing.Size(281, 26); this.textBoxStraße.TabIndex = 5; // // labelStraße // this.labelStraße.AutoSize = true; - this.labelStraße.Location = new System.Drawing.Point(8, 163); + this.labelStraße.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStraße.ForeColor = System.Drawing.Color.White; + this.labelStraße.Location = new System.Drawing.Point(6, 220); this.labelStraße.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelStraße.Name = "labelStraße"; - this.labelStraße.Size = new System.Drawing.Size(65, 13); + this.labelStraße.Size = new System.Drawing.Size(94, 20); this.labelStraße.TabIndex = 6; this.labelStraße.Text = "Straße/HNr."; // // textBoxPLZ // this.textBoxPLZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxPLZ.Location = new System.Drawing.Point(10, 216); - this.textBoxPLZ.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxPLZ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxPLZ.Location = new System.Drawing.Point(10, 292); + this.textBoxPLZ.Margin = new System.Windows.Forms.Padding(2); this.textBoxPLZ.Name = "textBoxPLZ"; - this.textBoxPLZ.Size = new System.Drawing.Size(54, 20); + this.textBoxPLZ.Size = new System.Drawing.Size(69, 26); this.textBoxPLZ.TabIndex = 9; // // labelPLZ // this.labelPLZ.AutoSize = true; - this.labelPLZ.Location = new System.Drawing.Point(8, 200); + this.labelPLZ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelPLZ.ForeColor = System.Drawing.Color.White; + this.labelPLZ.Location = new System.Drawing.Point(6, 270); this.labelPLZ.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelPLZ.Name = "labelPLZ"; - this.labelPLZ.Size = new System.Drawing.Size(27, 13); + this.labelPLZ.Size = new System.Drawing.Size(38, 20); this.labelPLZ.TabIndex = 10; this.labelPLZ.Text = "PLZ"; // // textBoxOrt // this.textBoxOrt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxOrt.Location = new System.Drawing.Point(69, 215); - this.textBoxOrt.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxOrt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxOrt.Location = new System.Drawing.Point(83, 292); + this.textBoxOrt.Margin = new System.Windows.Forms.Padding(2); this.textBoxOrt.Name = "textBoxOrt"; - this.textBoxOrt.Size = new System.Drawing.Size(179, 20); + this.textBoxOrt.Size = new System.Drawing.Size(208, 26); this.textBoxOrt.TabIndex = 11; // // labelOrt // this.labelOrt.AutoSize = true; - this.labelOrt.Location = new System.Drawing.Point(69, 200); + this.labelOrt.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelOrt.ForeColor = System.Drawing.Color.White; + this.labelOrt.Location = new System.Drawing.Point(79, 270); this.labelOrt.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelOrt.Name = "labelOrt"; - this.labelOrt.Size = new System.Drawing.Size(21, 13); + this.labelOrt.Size = new System.Drawing.Size(31, 20); this.labelOrt.TabIndex = 12; this.labelOrt.Text = "Ort"; // // pictureBoxEntwurf // - this.pictureBoxEntwurf.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.pictureBoxEntwurf.BackColor = System.Drawing.Color.Transparent; + this.pictureBoxEntwurf.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.pictureBoxEntwurf.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.pictureBoxEntwurf.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBoxEntwurf.Location = new System.Drawing.Point(14, 353); - this.pictureBoxEntwurf.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.pictureBoxEntwurf.Location = new System.Drawing.Point(0, 0); + this.pictureBoxEntwurf.Margin = new System.Windows.Forms.Padding(2); this.pictureBoxEntwurf.Name = "pictureBoxEntwurf"; - this.pictureBoxEntwurf.Size = new System.Drawing.Size(234, 195); + this.pictureBoxEntwurf.Size = new System.Drawing.Size(911, 631); this.pictureBoxEntwurf.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxEntwurf.TabIndex = 16; this.pictureBoxEntwurf.TabStop = false; // - // statusStrip1 - // - this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tSSLabelArtikel, - this.tSSLabelArtikelAnz}); - this.statusStrip1.Location = new System.Drawing.Point(0, 548); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 10, 0); - this.statusStrip1.Size = new System.Drawing.Size(936, 24); - this.statusStrip1.TabIndex = 24; - this.statusStrip1.Text = "statusStrip1"; - // - // tSSLabelArtikel - // - this.tSSLabelArtikel.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.tSSLabelArtikel.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.tSSLabelArtikel.Name = "tSSLabelArtikel"; - this.tSSLabelArtikel.Size = new System.Drawing.Size(48, 19); - this.tSSLabelArtikel.Text = "Artikel:"; - // - // tSSLabelArtikelAnz - // - this.tSSLabelArtikelAnz.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Top | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.tSSLabelArtikelAnz.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.tSSLabelArtikelAnz.Name = "tSSLabelArtikelAnz"; - this.tSSLabelArtikelAnz.Size = new System.Drawing.Size(23, 19); - this.tSSLabelArtikelAnz.Text = "00"; - // // labelKdnName2 // this.labelKdnName2.AutoSize = true; - this.labelKdnName2.Location = new System.Drawing.Point(8, 121); + this.labelKdnName2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelKdnName2.ForeColor = System.Drawing.Color.White; + this.labelKdnName2.Location = new System.Drawing.Point(6, 170); this.labelKdnName2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelKdnName2.Name = "labelKdnName2"; - this.labelKdnName2.Size = new System.Drawing.Size(67, 13); + this.labelKdnName2.Size = new System.Drawing.Size(100, 20); this.labelKdnName2.TabIndex = 25; this.labelKdnName2.Text = "NameZusatz"; // // textBoxKndName2 // this.textBoxKndName2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxKndName2.Location = new System.Drawing.Point(10, 137); - this.textBoxKndName2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBoxKndName2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxKndName2.Location = new System.Drawing.Point(10, 192); + this.textBoxKndName2.Margin = new System.Windows.Forms.Padding(2); this.textBoxKndName2.Name = "textBoxKndName2"; - this.textBoxKndName2.Size = new System.Drawing.Size(238, 20); + this.textBoxKndName2.Size = new System.Drawing.Size(281, 26); this.textBoxKndName2.TabIndex = 26; // // buttonBewertung // this.buttonBewertung.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonBewertung.Location = new System.Drawing.Point(10, 308); - this.buttonBewertung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.buttonBewertung.Location = new System.Drawing.Point(10, 419); + this.buttonBewertung.Margin = new System.Windows.Forms.Padding(2); this.buttonBewertung.Name = "buttonBewertung"; - this.buttonBewertung.Size = new System.Drawing.Size(158, 28); + this.buttonBewertung.Size = new System.Drawing.Size(160, 41); this.buttonBewertung.TabIndex = 1; this.buttonBewertung.Text = "Bewertung"; this.buttonBewertung.UseVisualStyleBackColor = true; @@ -313,173 +273,173 @@ namespace Deckungsbeitrag // this.pictureBoxQRCode.BackColor = System.Drawing.Color.Transparent; this.pictureBoxQRCode.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.pictureBoxQRCode.Location = new System.Drawing.Point(172, 250); - this.pictureBoxQRCode.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.pictureBoxQRCode.Location = new System.Drawing.Point(174, 342); + this.pictureBoxQRCode.Margin = new System.Windows.Forms.Padding(2); this.pictureBoxQRCode.Name = "pictureBoxQRCode"; - this.pictureBoxQRCode.Size = new System.Drawing.Size(76, 86); + this.pictureBoxQRCode.Size = new System.Drawing.Size(117, 117); this.pictureBoxQRCode.TabIndex = 27; this.pictureBoxQRCode.TabStop = false; // // buttonProgramm // this.buttonProgramm.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonProgramm.Location = new System.Drawing.Point(10, 279); - this.buttonProgramm.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.buttonProgramm.Location = new System.Drawing.Point(10, 374); + this.buttonProgramm.Margin = new System.Windows.Forms.Padding(2); this.buttonProgramm.Name = "buttonProgramm"; - this.buttonProgramm.Size = new System.Drawing.Size(157, 28); + this.buttonProgramm.Size = new System.Drawing.Size(160, 41); this.buttonProgramm.TabIndex = 28; this.buttonProgramm.Text = "PR 01"; this.buttonProgramm.UseVisualStyleBackColor = true; this.buttonProgramm.Click += new System.EventHandler(this.ButtonProgramm_Click); // - // olvJahresumsatz + // textBoxSuchtext // - this.olvJahresumsatz.AllowColumnReorder = true; - this.olvJahresumsatz.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; - this.olvJahresumsatz.BackColor = System.Drawing.SystemColors.Window; - this.olvJahresumsatz.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.olvJahresumsatz.CellEditUseWholeCell = false; - this.olvJahresumsatz.Cursor = System.Windows.Forms.Cursors.Default; - this.olvJahresumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.olvJahresumsatz.FullRowSelect = true; - this.olvJahresumsatz.GridLines = true; - this.olvJahresumsatz.HideSelection = false; - this.olvJahresumsatz.Location = new System.Drawing.Point(262, 60); - this.olvJahresumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.olvJahresumsatz.MenuLabelColumns = "Spalten"; - this.olvJahresumsatz.Name = "olvJahresumsatz"; - this.olvJahresumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; - this.olvJahresumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); - this.olvJahresumsatz.ShowGroups = false; - this.olvJahresumsatz.ShowItemToolTips = true; - this.olvJahresumsatz.Size = new System.Drawing.Size(263, 136); - this.olvJahresumsatz.TabIndex = 29; - this.olvJahresumsatz.TintSortColumn = true; - this.olvJahresumsatz.UseAlternatingBackColors = true; - this.olvJahresumsatz.UseCellFormatEvents = true; - this.olvJahresumsatz.UseCompatibleStateImageBehavior = false; - this.olvJahresumsatz.UseFiltering = true; - this.olvJahresumsatz.UseHotControls = false; - this.olvJahresumsatz.View = System.Windows.Forms.View.Details; + this.textBoxSuchtext.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; + this.textBoxSuchtext.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; + this.textBoxSuchtext.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.textBoxSuchtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxSuchtext.Location = new System.Drawing.Point(83, 92); + this.textBoxSuchtext.Margin = new System.Windows.Forms.Padding(2); + this.textBoxSuchtext.Name = "textBoxSuchtext"; + this.textBoxSuchtext.Size = new System.Drawing.Size(208, 26); + this.textBoxSuchtext.TabIndex = 38; // - // chartJahresumsatz + // label1 // - this.chartJahresumsatz.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - chartArea40.Name = "ChartArea1"; - this.chartJahresumsatz.ChartAreas.Add(chartArea40); - legend40.Name = "Legend1"; - this.chartJahresumsatz.Legends.Add(legend40); - this.chartJahresumsatz.Location = new System.Drawing.Point(262, 207); - this.chartJahresumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.chartJahresumsatz.Name = "chartJahresumsatz"; - series40.ChartArea = "ChartArea1"; - series40.Legend = "Legend1"; - series40.Name = "Series1"; - this.chartJahresumsatz.Series.Add(series40); - this.chartJahresumsatz.Size = new System.Drawing.Size(262, 202); - this.chartJahresumsatz.TabIndex = 30; - this.chartJahresumsatz.Text = "chart1"; + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(79, 70); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(95, 20); + this.label1.TabIndex = 39; + this.label1.Text = "SUCHTEXT"; // - // labelJahresumsatz + // comboBoxAufgabe // - this.labelJahresumsatz.AutoSize = true; - this.labelJahresumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelJahresumsatz.Location = new System.Drawing.Point(332, 25); - this.labelJahresumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelJahresumsatz.Name = "labelJahresumsatz"; - this.labelJahresumsatz.Size = new System.Drawing.Size(131, 20); - this.labelJahresumsatz.TabIndex = 31; - this.labelJahresumsatz.Text = "Jahresumsätze"; + this.comboBoxAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.comboBoxAufgabe.FormattingEnabled = true; + this.comboBoxAufgabe.Location = new System.Drawing.Point(10, 342); + this.comboBoxAufgabe.Margin = new System.Windows.Forms.Padding(2); + this.comboBoxAufgabe.Name = "comboBoxAufgabe"; + this.comboBoxAufgabe.Size = new System.Drawing.Size(128, 28); + this.comboBoxAufgabe.TabIndex = 41; + this.comboBoxAufgabe.DropDownClosed += new System.EventHandler(this.comboBoxAufgabe_DropDownClosed); // - // labelQuartalsumsatz + // label2 // - this.labelQuartalsumsatz.AutoSize = true; - this.labelQuartalsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelQuartalsumsatz.Location = new System.Drawing.Point(592, 25); - this.labelQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelQuartalsumsatz.Name = "labelQuartalsumsatz"; - this.labelQuartalsumsatz.Size = new System.Drawing.Size(145, 20); - this.labelQuartalsumsatz.TabIndex = 34; - this.labelQuartalsumsatz.Text = "Quartalsumsätze"; + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.White; + this.label2.Location = new System.Drawing.Point(6, 320); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(120, 20); + this.label2.TabIndex = 42; + this.label2.Text = "Sonderaufgabe"; // - // chartQuartalsumsatz + // buttonAufgEnt // - this.chartQuartalsumsatz.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - chartArea41.Name = "ChartArea1"; - this.chartQuartalsumsatz.ChartAreas.Add(chartArea41); - legend41.Name = "Legend1"; - this.chartQuartalsumsatz.Legends.Add(legend41); - this.chartQuartalsumsatz.Location = new System.Drawing.Point(530, 207); - this.chartQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.chartQuartalsumsatz.Name = "chartQuartalsumsatz"; - series41.ChartArea = "ChartArea1"; - series41.Legend = "Legend1"; - series41.Name = "Series1"; - this.chartQuartalsumsatz.Series.Add(series41); - this.chartQuartalsumsatz.Size = new System.Drawing.Size(262, 202); - this.chartQuartalsumsatz.TabIndex = 33; - this.chartQuartalsumsatz.Text = "chart1"; + this.buttonAufgEnt.Image = global::Deckungsbeitrag.Properties.Resources.Close_red_16x; + this.buttonAufgEnt.Location = new System.Drawing.Point(142, 342); + this.buttonAufgEnt.Margin = new System.Windows.Forms.Padding(2); + this.buttonAufgEnt.Name = "buttonAufgEnt"; + this.buttonAufgEnt.Size = new System.Drawing.Size(28, 28); + this.buttonAufgEnt.TabIndex = 43; + this.buttonAufgEnt.UseVisualStyleBackColor = true; + this.buttonAufgEnt.Click += new System.EventHandler(this.buttonAufgEnt_Click); // - // olvQuartalsumsatz + // contextMenuStrip1 // - this.olvQuartalsumsatz.AllowColumnReorder = true; - this.olvQuartalsumsatz.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; - this.olvQuartalsumsatz.BackColor = System.Drawing.SystemColors.Window; - this.olvQuartalsumsatz.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.olvQuartalsumsatz.CellEditUseWholeCell = false; - this.olvQuartalsumsatz.Cursor = System.Windows.Forms.Cursors.Default; - this.olvQuartalsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.olvQuartalsumsatz.FullRowSelect = true; - this.olvQuartalsumsatz.GridLines = true; - this.olvQuartalsumsatz.HideSelection = false; - this.olvQuartalsumsatz.Location = new System.Drawing.Point(530, 60); - this.olvQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.olvQuartalsumsatz.MenuLabelColumns = "Spalten"; - this.olvQuartalsumsatz.Name = "olvQuartalsumsatz"; - this.olvQuartalsumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; - this.olvQuartalsumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); - this.olvQuartalsumsatz.ShowGroups = false; - this.olvQuartalsumsatz.ShowItemToolTips = true; - this.olvQuartalsumsatz.Size = new System.Drawing.Size(263, 136); - this.olvQuartalsumsatz.TabIndex = 32; - this.olvQuartalsumsatz.TintSortColumn = true; - this.olvQuartalsumsatz.UseAlternatingBackColors = true; - this.olvQuartalsumsatz.UseCellFormatEvents = true; - this.olvQuartalsumsatz.UseCompatibleStateImageBehavior = false; - this.olvQuartalsumsatz.UseFiltering = true; - this.olvQuartalsumsatz.UseHotControls = false; - this.olvQuartalsumsatz.View = System.Windows.Forms.View.Details; + this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.nächsterKundeToolStripMenuItem}); + this.contextMenuStrip1.Name = "contextMenuStrip1"; + this.contextMenuStrip1.Size = new System.Drawing.Size(186, 26); + // + // nächsterKundeToolStripMenuItem + // + this.nächsterKundeToolStripMenuItem.Name = "nächsterKundeToolStripMenuItem"; + this.nächsterKundeToolStripMenuItem.ShortcutKeyDisplayString = "[F9]"; + this.nächsterKundeToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9; + this.nächsterKundeToolStripMenuItem.Size = new System.Drawing.Size(185, 22); + this.nächsterKundeToolStripMenuItem.Text = "Nächster Kunde"; + this.nächsterKundeToolStripMenuItem.Click += new System.EventHandler(this.nächsterKundeToolStripMenuItem_Click); + // + // tabControlKunde + // + this.tabControlKunde.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.tabControlKunde.Controls.Add(this.tabPageVorschau); + this.tabControlKunde.Controls.Add(this.tabPageUmsatz); + this.tabControlKunde.Controls.Add(this.tabPageArtikel); + this.tabControlKunde.Enabled = false; + this.tabControlKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tabControlKunde.Location = new System.Drawing.Point(309, 11); + this.tabControlKunde.Name = "tabControlKunde"; + this.tabControlKunde.SelectedIndex = 0; + this.tabControlKunde.Size = new System.Drawing.Size(915, 711); + this.tabControlKunde.TabIndex = 44; + // + // tabPageVorschau + // + this.tabPageVorschau.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tabPageVorschau.Controls.Add(this.buttonSWS_Drucken); + this.tabPageVorschau.Controls.Add(this.pictureBoxEntwurf); + this.tabPageVorschau.Location = new System.Drawing.Point(4, 29); + this.tabPageVorschau.Margin = new System.Windows.Forms.Padding(2); + this.tabPageVorschau.Name = "tabPageVorschau"; + this.tabPageVorschau.Size = new System.Drawing.Size(907, 678); + this.tabPageVorschau.TabIndex = 2; + this.tabPageVorschau.Text = "SWS-Vorschau"; + // + // tabPageUmsatz + // + this.tabPageUmsatz.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tabPageUmsatz.Controls.Add(this.labelMonatsumsatz); + this.tabPageUmsatz.Controls.Add(this.chartMonatsumsatz); + this.tabPageUmsatz.Controls.Add(this.olvMonatsumsatz); + this.tabPageUmsatz.Controls.Add(this.labelQuartalsumsatz); + this.tabPageUmsatz.Controls.Add(this.chartQuartalsumsatz); + this.tabPageUmsatz.Controls.Add(this.olvQuartalsumsatz); + this.tabPageUmsatz.Controls.Add(this.labelJahresumsatz); + this.tabPageUmsatz.Controls.Add(this.chartJahresumsatz); + this.tabPageUmsatz.Controls.Add(this.olvJahresumsatz); + this.tabPageUmsatz.Location = new System.Drawing.Point(4, 29); + this.tabPageUmsatz.Name = "tabPageUmsatz"; + this.tabPageUmsatz.Padding = new System.Windows.Forms.Padding(3); + this.tabPageUmsatz.Size = new System.Drawing.Size(920, 665); + this.tabPageUmsatz.TabIndex = 0; + this.tabPageUmsatz.Text = "Umsatz"; // // labelMonatsumsatz // this.labelMonatsumsatz.AutoSize = true; this.labelMonatsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelMonatsumsatz.Location = new System.Drawing.Point(848, 25); + this.labelMonatsumsatz.ForeColor = System.Drawing.Color.White; + this.labelMonatsumsatz.Location = new System.Drawing.Point(672, 19); this.labelMonatsumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelMonatsumsatz.Name = "labelMonatsumsatz"; this.labelMonatsumsatz.Size = new System.Drawing.Size(136, 20); - this.labelMonatsumsatz.TabIndex = 37; + this.labelMonatsumsatz.TabIndex = 46; this.labelMonatsumsatz.Text = "Monatsumsätze"; // // chartMonatsumsatz // - this.chartMonatsumsatz.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - chartArea42.Name = "ChartArea1"; - this.chartMonatsumsatz.ChartAreas.Add(chartArea42); - legend42.Name = "Legend1"; - this.chartMonatsumsatz.Legends.Add(legend42); - this.chartMonatsumsatz.Location = new System.Drawing.Point(796, 207); - this.chartMonatsumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + chartArea1.Name = "ChartArea1"; + this.chartMonatsumsatz.ChartAreas.Add(chartArea1); + legend1.Name = "Legend1"; + this.chartMonatsumsatz.Legends.Add(legend1); + this.chartMonatsumsatz.Location = new System.Drawing.Point(620, 201); + this.chartMonatsumsatz.Margin = new System.Windows.Forms.Padding(2); this.chartMonatsumsatz.Name = "chartMonatsumsatz"; - series42.ChartArea = "ChartArea1"; - series42.Legend = "Legend1"; - series42.Name = "Series1"; - this.chartMonatsumsatz.Series.Add(series42); - this.chartMonatsumsatz.Size = new System.Drawing.Size(262, 202); - this.chartMonatsumsatz.TabIndex = 36; + series1.ChartArea = "ChartArea1"; + series1.Legend = "Legend1"; + series1.Name = "Series1"; + this.chartMonatsumsatz.Series.Add(series1); + this.chartMonatsumsatz.Size = new System.Drawing.Size(262, 203); + this.chartMonatsumsatz.TabIndex = 45; this.chartMonatsumsatz.Text = "chart1"; // // olvMonatsumsatz @@ -494,8 +454,8 @@ namespace Deckungsbeitrag this.olvMonatsumsatz.FullRowSelect = true; this.olvMonatsumsatz.GridLines = true; this.olvMonatsumsatz.HideSelection = false; - this.olvMonatsumsatz.Location = new System.Drawing.Point(796, 60); - this.olvMonatsumsatz.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.olvMonatsumsatz.Location = new System.Drawing.Point(620, 54); + this.olvMonatsumsatz.Margin = new System.Windows.Forms.Padding(2); this.olvMonatsumsatz.MenuLabelColumns = "Spalten"; this.olvMonatsumsatz.Name = "olvMonatsumsatz"; this.olvMonatsumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; @@ -503,7 +463,7 @@ namespace Deckungsbeitrag this.olvMonatsumsatz.ShowGroups = false; this.olvMonatsumsatz.ShowItemToolTips = true; this.olvMonatsumsatz.Size = new System.Drawing.Size(263, 136); - this.olvMonatsumsatz.TabIndex = 35; + this.olvMonatsumsatz.TabIndex = 44; this.olvMonatsumsatz.TintSortColumn = true; this.olvMonatsumsatz.UseAlternatingBackColors = true; this.olvMonatsumsatz.UseCellFormatEvents = true; @@ -512,131 +472,306 @@ namespace Deckungsbeitrag this.olvMonatsumsatz.UseHotControls = false; this.olvMonatsumsatz.View = System.Windows.Forms.View.Details; // - // textBoxSuchtext + // labelQuartalsumsatz // - this.textBoxSuchtext.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend; - this.textBoxSuchtext.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; - this.textBoxSuchtext.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.textBoxSuchtext.Location = new System.Drawing.Point(64, 60); - this.textBoxSuchtext.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxSuchtext.Name = "textBoxSuchtext"; - this.textBoxSuchtext.Size = new System.Drawing.Size(184, 20); - this.textBoxSuchtext.TabIndex = 38; - this.textBoxSuchtext.TextChanged += new System.EventHandler(this.textBoxSuchtext_TextChanged); - this.textBoxSuchtext.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxSuchtext_KeyDown); - this.textBoxSuchtext.Leave += new System.EventHandler(this.TextBoxSuchtext_Leave); + this.labelQuartalsumsatz.AutoSize = true; + this.labelQuartalsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelQuartalsumsatz.ForeColor = System.Drawing.Color.White; + this.labelQuartalsumsatz.Location = new System.Drawing.Point(416, 19); + this.labelQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelQuartalsumsatz.Name = "labelQuartalsumsatz"; + this.labelQuartalsumsatz.Size = new System.Drawing.Size(145, 20); + this.labelQuartalsumsatz.TabIndex = 43; + this.labelQuartalsumsatz.Text = "Quartalsumsätze"; // - // label1 + // chartQuartalsumsatz // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(62, 45); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(65, 13); - this.label1.TabIndex = 39; - this.label1.Text = "SUCHTEXT"; + chartArea2.Name = "ChartArea1"; + this.chartQuartalsumsatz.ChartAreas.Add(chartArea2); + legend2.Name = "Legend1"; + this.chartQuartalsumsatz.Legends.Add(legend2); + this.chartQuartalsumsatz.Location = new System.Drawing.Point(354, 201); + this.chartQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.chartQuartalsumsatz.Name = "chartQuartalsumsatz"; + series2.ChartArea = "ChartArea1"; + series2.Legend = "Legend1"; + series2.Name = "Series1"; + this.chartQuartalsumsatz.Series.Add(series2); + this.chartQuartalsumsatz.Size = new System.Drawing.Size(262, 203); + this.chartQuartalsumsatz.TabIndex = 42; + this.chartQuartalsumsatz.Text = "chart1"; // - // comboBoxAufgabe + // olvQuartalsumsatz // - this.comboBoxAufgabe.FormattingEnabled = true; - this.comboBoxAufgabe.Location = new System.Drawing.Point(10, 253); - this.comboBoxAufgabe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.comboBoxAufgabe.Name = "comboBoxAufgabe"; - this.comboBoxAufgabe.Size = new System.Drawing.Size(128, 21); - this.comboBoxAufgabe.TabIndex = 41; - this.comboBoxAufgabe.DropDownClosed += new System.EventHandler(this.comboBoxAufgabe_DropDownClosed); + this.olvQuartalsumsatz.AllowColumnReorder = true; + this.olvQuartalsumsatz.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; + this.olvQuartalsumsatz.BackColor = System.Drawing.SystemColors.Window; + this.olvQuartalsumsatz.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.olvQuartalsumsatz.CellEditUseWholeCell = false; + this.olvQuartalsumsatz.Cursor = System.Windows.Forms.Cursors.Default; + this.olvQuartalsumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.olvQuartalsumsatz.FullRowSelect = true; + this.olvQuartalsumsatz.GridLines = true; + this.olvQuartalsumsatz.HideSelection = false; + this.olvQuartalsumsatz.Location = new System.Drawing.Point(354, 54); + this.olvQuartalsumsatz.Margin = new System.Windows.Forms.Padding(2); + this.olvQuartalsumsatz.MenuLabelColumns = "Spalten"; + this.olvQuartalsumsatz.Name = "olvQuartalsumsatz"; + this.olvQuartalsumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; + this.olvQuartalsumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); + this.olvQuartalsumsatz.ShowGroups = false; + this.olvQuartalsumsatz.ShowItemToolTips = true; + this.olvQuartalsumsatz.Size = new System.Drawing.Size(263, 136); + this.olvQuartalsumsatz.TabIndex = 41; + this.olvQuartalsumsatz.TintSortColumn = true; + this.olvQuartalsumsatz.UseAlternatingBackColors = true; + this.olvQuartalsumsatz.UseCellFormatEvents = true; + this.olvQuartalsumsatz.UseCompatibleStateImageBehavior = false; + this.olvQuartalsumsatz.UseFiltering = true; + this.olvQuartalsumsatz.UseHotControls = false; + this.olvQuartalsumsatz.View = System.Windows.Forms.View.Details; // - // label2 + // labelJahresumsatz // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(9, 236); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(80, 13); - this.label2.TabIndex = 42; - this.label2.Text = "Sonderaufgabe"; + this.labelJahresumsatz.AutoSize = true; + this.labelJahresumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelJahresumsatz.ForeColor = System.Drawing.Color.White; + this.labelJahresumsatz.Location = new System.Drawing.Point(156, 19); + this.labelJahresumsatz.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelJahresumsatz.Name = "labelJahresumsatz"; + this.labelJahresumsatz.Size = new System.Drawing.Size(131, 20); + this.labelJahresumsatz.TabIndex = 40; + this.labelJahresumsatz.Text = "Jahresumsätze"; // - // buttonAufgEnt + // chartJahresumsatz // - this.buttonAufgEnt.Image = global::Deckungsbeitrag.Properties.Resources.Close_red_16x; - this.buttonAufgEnt.Location = new System.Drawing.Point(142, 252); - this.buttonAufgEnt.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonAufgEnt.Name = "buttonAufgEnt"; - this.buttonAufgEnt.Size = new System.Drawing.Size(26, 22); - this.buttonAufgEnt.TabIndex = 43; - this.buttonAufgEnt.UseVisualStyleBackColor = true; - this.buttonAufgEnt.Click += new System.EventHandler(this.buttonAufgEnt_Click); + chartArea3.Name = "ChartArea1"; + this.chartJahresumsatz.ChartAreas.Add(chartArea3); + legend3.Name = "Legend1"; + this.chartJahresumsatz.Legends.Add(legend3); + this.chartJahresumsatz.Location = new System.Drawing.Point(86, 201); + this.chartJahresumsatz.Margin = new System.Windows.Forms.Padding(2); + this.chartJahresumsatz.Name = "chartJahresumsatz"; + series3.ChartArea = "ChartArea1"; + series3.Legend = "Legend1"; + series3.Name = "Series1"; + this.chartJahresumsatz.Series.Add(series3); + this.chartJahresumsatz.Size = new System.Drawing.Size(262, 203); + this.chartJahresumsatz.TabIndex = 39; + this.chartJahresumsatz.Text = "chart1"; // - // toolStripDropDownNext + // olvJahresumsatz // - this.toolStripDropDownNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripDropDownNext.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.nextToolStripMenuItem}); - this.toolStripDropDownNext.Image = ((System.Drawing.Image)(resources.GetObject("toolStripDropDownNext.Image"))); - this.toolStripDropDownNext.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; - this.toolStripDropDownNext.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripDropDownNext.Name = "toolStripDropDownNext"; - this.toolStripDropDownNext.ShowDropDownArrow = false; - this.toolStripDropDownNext.Size = new System.Drawing.Size(24, 24); - this.toolStripDropDownNext.Text = "Nächster Kunde"; - this.toolStripDropDownNext.TextDirection = System.Windows.Forms.ToolStripTextDirection.Horizontal; - this.toolStripDropDownNext.Visible = false; + this.olvJahresumsatz.AllowColumnReorder = true; + this.olvJahresumsatz.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; + this.olvJahresumsatz.BackColor = System.Drawing.SystemColors.Window; + this.olvJahresumsatz.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.olvJahresumsatz.CellEditUseWholeCell = false; + this.olvJahresumsatz.Cursor = System.Windows.Forms.Cursors.Default; + this.olvJahresumsatz.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.olvJahresumsatz.FullRowSelect = true; + this.olvJahresumsatz.GridLines = true; + this.olvJahresumsatz.HideSelection = false; + this.olvJahresumsatz.Location = new System.Drawing.Point(86, 54); + this.olvJahresumsatz.Margin = new System.Windows.Forms.Padding(2); + this.olvJahresumsatz.MenuLabelColumns = "Spalten"; + this.olvJahresumsatz.Name = "olvJahresumsatz"; + this.olvJahresumsatz.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; + this.olvJahresumsatz.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); + this.olvJahresumsatz.ShowGroups = false; + this.olvJahresumsatz.ShowItemToolTips = true; + this.olvJahresumsatz.Size = new System.Drawing.Size(263, 136); + this.olvJahresumsatz.TabIndex = 38; + this.olvJahresumsatz.TintSortColumn = true; + this.olvJahresumsatz.UseAlternatingBackColors = true; + this.olvJahresumsatz.UseCellFormatEvents = true; + this.olvJahresumsatz.UseCompatibleStateImageBehavior = false; + this.olvJahresumsatz.UseFiltering = true; + this.olvJahresumsatz.UseHotControls = false; + this.olvJahresumsatz.View = System.Windows.Forms.View.Details; // - // nextToolStripMenuItem + // tabPageArtikel // - this.nextToolStripMenuItem.Name = "nextToolStripMenuItem"; - this.nextToolStripMenuItem.ShortcutKeyDisplayString = "[F9]"; - this.nextToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9; - this.nextToolStripMenuItem.Size = new System.Drawing.Size(180, 22); - this.nextToolStripMenuItem.Text = "Next"; - this.nextToolStripMenuItem.Click += new System.EventHandler(this.nextToolStripMenuItem_Click); + this.tabPageArtikel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tabPageArtikel.Controls.Add(this.buttonSpeichern); + this.tabPageArtikel.Controls.Add(this.dGArtikel); + this.tabPageArtikel.Location = new System.Drawing.Point(4, 29); + this.tabPageArtikel.Name = "tabPageArtikel"; + this.tabPageArtikel.Padding = new System.Windows.Forms.Padding(3); + this.tabPageArtikel.Size = new System.Drawing.Size(907, 678); + this.tabPageArtikel.TabIndex = 1; + this.tabPageArtikel.Text = "Artikelliste"; // - // contextMenuStrip1 + // dGArtikel // - this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.nächsterKundeToolStripMenuItem}); - this.contextMenuStrip1.Name = "contextMenuStrip1"; - this.contextMenuStrip1.Size = new System.Drawing.Size(186, 48); + this.dGArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dGArtikel.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.KundeArtikelID, + this.KundeID, + this.ArtikelNR, + this.ArtikelName, + this.Stand, + this.Fehlmenge, + this.Korrektur, + this.StandBearbeitet, + this.FehlmengeBearbeitet, + this.KorrekturBearbeitet}); + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dGArtikel.DefaultCellStyle = dataGridViewCellStyle2; + this.dGArtikel.Location = new System.Drawing.Point(3, 3); + this.dGArtikel.Name = "dGArtikel"; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dGArtikel.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; + this.dGArtikel.Size = new System.Drawing.Size(901, 630); + this.dGArtikel.TabIndex = 11; + this.dGArtikel.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dGArtikel_CellBeginEdit); + this.dGArtikel.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dGArtikel_CellValueChanged); // - // nächsterKundeToolStripMenuItem + // KundeArtikelID // - this.nächsterKundeToolStripMenuItem.Name = "nächsterKundeToolStripMenuItem"; - this.nächsterKundeToolStripMenuItem.ShortcutKeyDisplayString = "[F9]"; - this.nächsterKundeToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F9; - this.nächsterKundeToolStripMenuItem.Size = new System.Drawing.Size(185, 22); - this.nächsterKundeToolStripMenuItem.Text = "Nächster Kunde"; - this.nächsterKundeToolStripMenuItem.Click += new System.EventHandler(this.nächsterKundeToolStripMenuItem_Click); + this.KundeArtikelID.HeaderText = "KundeArtikelID"; + this.KundeArtikelID.Name = "KundeArtikelID"; + this.KundeArtikelID.Visible = false; // - // KundeDaten + // KundeID + // + this.KundeID.HeaderText = "KundeID"; + this.KundeID.Name = "KundeID"; + this.KundeID.Visible = false; + // + // ArtikelNR + // + this.ArtikelNR.HeaderText = "Art. Nr."; + this.ArtikelNR.Name = "ArtikelNR"; + // + // ArtikelName + // + this.ArtikelName.HeaderText = "Art. Name"; + this.ArtikelName.Name = "ArtikelName"; + // + // Stand + // + this.Stand.HeaderText = "Stand"; + this.Stand.Name = "Stand"; + // + // Fehlmenge + // + this.Fehlmenge.HeaderText = "Fehlmenge"; + this.Fehlmenge.Name = "Fehlmenge"; + // + // Korrektur + // + this.Korrektur.HeaderText = "Korrektur"; + this.Korrektur.Name = "Korrektur"; + // + // StandBearbeitet + // + this.StandBearbeitet.HeaderText = "Stand Bearbeitet"; + this.StandBearbeitet.Name = "StandBearbeitet"; + // + // FehlmengeBearbeitet + // + this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet"; + this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet"; + // + // KorrekturBearbeitet + // + this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet"; + this.KorrekturBearbeitet.Name = "KorrekturBearbeitet"; + // + // buttonSWS_Drucken + // + this.buttonSWS_Drucken.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSWS_Drucken.BackColor = System.Drawing.Color.Yellow; + this.buttonSWS_Drucken.FlatAppearance.BorderSize = 0; + this.buttonSWS_Drucken.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonSWS_Drucken.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSWS_Drucken.Location = new System.Drawing.Point(2, 635); + this.buttonSWS_Drucken.Margin = new System.Windows.Forms.Padding(2); + this.buttonSWS_Drucken.Name = "buttonSWS_Drucken"; + this.buttonSWS_Drucken.Size = new System.Drawing.Size(281, 41); + this.buttonSWS_Drucken.TabIndex = 36; + this.buttonSWS_Drucken.Text = "SWS-Drucken"; + this.buttonSWS_Drucken.UseVisualStyleBackColor = false; + this.buttonSWS_Drucken.Click += new System.EventHandler(this.ButtonDrucken_Click); + // + // buttonSpeichern + // + this.buttonSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonSpeichern.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonSpeichern.FlatAppearance.BorderSize = 0; + this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSpeichern.ForeColor = System.Drawing.Color.White; + this.buttonSpeichern.Location = new System.Drawing.Point(2, 635); + this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2); + this.buttonSpeichern.Name = "buttonSpeichern"; + this.buttonSpeichern.Size = new System.Drawing.Size(281, 41); + this.buttonSpeichern.TabIndex = 37; + this.buttonSpeichern.Text = "Stand speichern"; + this.buttonSpeichern.UseVisualStyleBackColor = false; + this.buttonSpeichern.Click += new System.EventHandler(this.standSpeichernToolStripMenuItem_Click); + // + // buttonNextKunde + // + this.buttonNextKunde.BackColor = System.Drawing.Color.Turquoise; + this.buttonNextKunde.FlatAppearance.BorderSize = 0; + this.buttonNextKunde.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonNextKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNextKunde.ForeColor = System.Drawing.SystemColors.ControlText; + this.buttonNextKunde.Location = new System.Drawing.Point(10, 11); + this.buttonNextKunde.Margin = new System.Windows.Forms.Padding(2); + this.buttonNextKunde.Name = "buttonNextKunde"; + this.buttonNextKunde.Size = new System.Drawing.Size(281, 41); + this.buttonNextKunde.TabIndex = 45; + this.buttonNextKunde.Text = "Nächster Kunde"; + this.buttonNextKunde.UseVisualStyleBackColor = false; + this.buttonNextKunde.Click += new System.EventHandler(this.TSBNext_Click); + // + // FormKundeVW // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(936, 572); + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(1224, 725); + this.Controls.Add(this.buttonNextKunde); + this.Controls.Add(this.tabControlKunde); this.Controls.Add(this.buttonAufgEnt); this.Controls.Add(this.label2); this.Controls.Add(this.comboBoxAufgabe); this.Controls.Add(this.label1); this.Controls.Add(this.textBoxSuchtext); - this.Controls.Add(this.labelMonatsumsatz); - this.Controls.Add(this.chartMonatsumsatz); - this.Controls.Add(this.olvMonatsumsatz); - this.Controls.Add(this.labelQuartalsumsatz); - this.Controls.Add(this.chartQuartalsumsatz); - this.Controls.Add(this.olvQuartalsumsatz); - this.Controls.Add(this.labelJahresumsatz); - this.Controls.Add(this.chartJahresumsatz); - this.Controls.Add(this.olvJahresumsatz); this.Controls.Add(this.buttonProgramm); this.Controls.Add(this.pictureBoxQRCode); this.Controls.Add(this.buttonBewertung); this.Controls.Add(this.labelKdnName2); this.Controls.Add(this.textBoxKndName2); - this.Controls.Add(this.statusStrip1); this.Controls.Add(this.labelOrt); this.Controls.Add(this.textBoxOrt); - this.Controls.Add(this.pictureBoxEntwurf); this.Controls.Add(this.labelPLZ); - this.Controls.Add(this.toolStrip1); this.Controls.Add(this.textBoxPLZ); this.Controls.Add(this.textBoxStraße); this.Controls.Add(this.textBoxKndNr); @@ -644,37 +779,36 @@ namespace Deckungsbeitrag this.Controls.Add(this.labelStraße); this.Controls.Add(this.labelKundeName); this.Controls.Add(this.textBoxKundeName); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.Margin = new System.Windows.Forms.Padding(2); this.MinimumSize = new System.Drawing.Size(647, 615); - this.Name = "KundeDaten"; + this.Name = "FormKundeVW"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Wolfgang Wirl Gmbh - KUNDEDATEN"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Text = "KUNDENVERWALTUNG"; + this.Load += new System.EventHandler(this.KundeDaten_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KundeDaten_KeyDown); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxEntwurf)).EndInit(); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxQRCode)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.chartJahresumsatz)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.chartQuartalsumsatz)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.olvQuartalsumsatz)).EndInit(); + this.contextMenuStrip1.ResumeLayout(false); + this.tabControlKunde.ResumeLayout(false); + this.tabPageVorschau.ResumeLayout(false); + this.tabPageUmsatz.ResumeLayout(false); + this.tabPageUmsatz.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.chartMonatsumsatz)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.olvMonatsumsatz)).EndInit(); - this.contextMenuStrip1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.chartQuartalsumsatz)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.olvQuartalsumsatz)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.chartJahresumsatz)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.olvJahresumsatz)).EndInit(); + this.tabPageArtikel.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); } #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tSBBeenden; private System.Windows.Forms.TextBox textBoxKndNr; private System.Windows.Forms.Label labelKundeNummer; private System.Windows.Forms.Label labelKundeName; @@ -685,35 +819,46 @@ namespace Deckungsbeitrag private System.Windows.Forms.Label labelPLZ; private System.Windows.Forms.TextBox textBoxOrt; private System.Windows.Forms.Label labelOrt; - private System.Windows.Forms.ToolStripButton tSBDrucken; private System.Windows.Forms.PictureBox pictureBoxEntwurf; - private System.Windows.Forms.ToolStripButton tSBNext; - private System.Windows.Forms.StatusStrip statusStrip1; private System.Windows.Forms.Label labelKdnName2; private System.Windows.Forms.TextBox textBoxKndName2; private System.Windows.Forms.Button buttonBewertung; private System.Windows.Forms.PictureBox pictureBoxQRCode; private System.Windows.Forms.Button buttonProgramm; - private BrightIdeasSoftware.ObjectListView olvJahresumsatz; - private System.Windows.Forms.DataVisualization.Charting.Chart chartJahresumsatz; - private System.Windows.Forms.Label labelJahresumsatz; - private System.Windows.Forms.Label labelQuartalsumsatz; - private System.Windows.Forms.DataVisualization.Charting.Chart chartQuartalsumsatz; - private BrightIdeasSoftware.ObjectListView olvQuartalsumsatz; - private System.Windows.Forms.Label labelMonatsumsatz; - private System.Windows.Forms.DataVisualization.Charting.Chart chartMonatsumsatz; - private BrightIdeasSoftware.ObjectListView olvMonatsumsatz; - private System.Windows.Forms.ToolStripStatusLabel tSSLabelArtikel; - private System.Windows.Forms.ToolStripStatusLabel tSSLabelArtikelAnz; private System.Windows.Forms.TextBox textBoxSuchtext; private System.Windows.Forms.Label label1; private System.Windows.Forms.ComboBox comboBoxAufgabe; private System.Windows.Forms.Label label2; private System.Windows.Forms.Button buttonAufgEnt; - private System.Windows.Forms.ToolStripDropDownButton toolStripDropDownNext; - private System.Windows.Forms.ToolStripMenuItem nextToolStripMenuItem; private System.Windows.Forms.ContextMenuStrip contextMenuStrip1; private System.Windows.Forms.ToolStripMenuItem nächsterKundeToolStripMenuItem; + private System.Windows.Forms.TabControl tabControlKunde; + private System.Windows.Forms.TabPage tabPageUmsatz; + private System.Windows.Forms.Label labelMonatsumsatz; + private System.Windows.Forms.DataVisualization.Charting.Chart chartMonatsumsatz; + private BrightIdeasSoftware.ObjectListView olvMonatsumsatz; + private System.Windows.Forms.Label labelQuartalsumsatz; + private System.Windows.Forms.DataVisualization.Charting.Chart chartQuartalsumsatz; + private BrightIdeasSoftware.ObjectListView olvQuartalsumsatz; + private System.Windows.Forms.Label labelJahresumsatz; + private System.Windows.Forms.DataVisualization.Charting.Chart chartJahresumsatz; + private BrightIdeasSoftware.ObjectListView olvJahresumsatz; + private System.Windows.Forms.TabPage tabPageArtikel; + private System.Windows.Forms.DataGridView dGArtikel; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeID; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelNR; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelName; + private System.Windows.Forms.DataGridViewTextBoxColumn Stand; + private System.Windows.Forms.DataGridViewTextBoxColumn Fehlmenge; + private System.Windows.Forms.DataGridViewTextBoxColumn Korrektur; + private System.Windows.Forms.DataGridViewTextBoxColumn StandBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn FehlmengeBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn KorrekturBearbeitet; + private System.Windows.Forms.TabPage tabPageVorschau; + private System.Windows.Forms.Button buttonSWS_Drucken; + private System.Windows.Forms.Button buttonSpeichern; + private System.Windows.Forms.Button buttonNextKunde; } } diff --git a/FormKundeVW.resx b/FormKundeVW.resx new file mode 100644 index 0000000..dabbaf3 --- /dev/null +++ b/FormKundeVW.resx @@ -0,0 +1,255 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 430, 17 + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + 38 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4Zc8wx5xpzzDmamgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgTpxRbYECgIxNeoJBQgcBsGFM9tpEtKdo + quhc0VzRaaJPiwZjw9oNxEDRSNF40SdFO4k2ZABC26+faGezndpwD9EW2K+svdQ2x4vuEv2faI1orUfv + ih4XzRBtjP/FNxDqtOeJHhG9Keow4/9NdJvoy35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nYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/FormLaden.Designer.cs b/FormLaden.Designer.cs index a659c3d..fdc3fb0 100644 --- a/FormLaden.Designer.cs +++ b/FormLaden.Designer.cs @@ -31,6 +31,8 @@ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormLaden)); this.pictureBoxWalli = new System.Windows.Forms.PictureBox(); this.labelLaden = new System.Windows.Forms.Label(); + this.buttonAbbrechen = new System.Windows.Forms.Button(); + this.progressBar1 = new System.Windows.Forms.ProgressBar(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWalli)).BeginInit(); this.SuspendLayout(); // @@ -40,9 +42,10 @@ this.pictureBoxWalli.BackColor = System.Drawing.Color.White; this.pictureBoxWalli.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.pictureBoxWalli.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxWalli.Image"))); - this.pictureBoxWalli.Location = new System.Drawing.Point(0, 6); + this.pictureBoxWalli.Location = new System.Drawing.Point(138, 156); + this.pictureBoxWalli.Margin = new System.Windows.Forms.Padding(2); this.pictureBoxWalli.Name = "pictureBoxWalli"; - this.pictureBoxWalli.Size = new System.Drawing.Size(300, 138); + this.pictureBoxWalli.Size = new System.Drawing.Size(226, 140); this.pictureBoxWalli.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.pictureBoxWalli.TabIndex = 0; this.pictureBoxWalli.TabStop = false; @@ -55,26 +58,47 @@ this.labelLaden.BackColor = System.Drawing.Color.White; this.labelLaden.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.labelLaden.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelLaden.Location = new System.Drawing.Point(0, 144); + this.labelLaden.Location = new System.Drawing.Point(138, 295); + this.labelLaden.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.labelLaden.Name = "labelLaden"; - this.labelLaden.Size = new System.Drawing.Size(300, 71); + this.labelLaden.Size = new System.Drawing.Size(226, 58); this.labelLaden.TabIndex = 1; this.labelLaden.Text = "LÄDT..."; this.labelLaden.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.labelLaden.UseWaitCursor = true; // + // buttonAbbrechen + // + this.buttonAbbrechen.Location = new System.Drawing.Point(205, 397); + this.buttonAbbrechen.Name = "buttonAbbrechen"; + this.buttonAbbrechen.Size = new System.Drawing.Size(75, 23); + this.buttonAbbrechen.TabIndex = 2; + this.buttonAbbrechen.Text = "Abbrechen"; + this.buttonAbbrechen.UseVisualStyleBackColor = true; + this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); + // + // progressBar1 + // + this.progressBar1.Location = new System.Drawing.Point(138, 357); + this.progressBar1.Name = "progressBar1"; + this.progressBar1.Size = new System.Drawing.Size(226, 23); + this.progressBar1.TabIndex = 3; + // // FormLaden // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.Yellow; - this.ClientSize = new System.Drawing.Size(300, 244); + this.ClientSize = new System.Drawing.Size(500, 500); this.ControlBox = false; + this.Controls.Add(this.progressBar1); + this.Controls.Add(this.buttonAbbrechen); this.Controls.Add(this.labelLaden); this.Controls.Add(this.pictureBoxWalli); this.Cursor = System.Windows.Forms.Cursors.WaitCursor; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "FormLaden"; this.ShowIcon = false; this.ShowInTaskbar = false; @@ -82,7 +106,7 @@ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.TransparencyKey = System.Drawing.Color.Yellow; this.UseWaitCursor = true; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.FormLaden_Load); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWalli)).EndInit(); this.ResumeLayout(false); @@ -92,5 +116,7 @@ private System.Windows.Forms.PictureBox pictureBoxWalli; private System.Windows.Forms.Label labelLaden; - } + private System.Windows.Forms.Button buttonAbbrechen; + private System.Windows.Forms.ProgressBar progressBar1; + } } \ No newline at end of file diff --git a/FormLaden.cs b/FormLaden.cs index 0f350ae..c81e2cb 100644 --- a/FormLaden.cs +++ b/FormLaden.cs @@ -27,5 +27,15 @@ namespace Deckungsbeitrag { this.Close(); } + + private void FormLaden_Load(object sender, EventArgs e) + { + + } + + private void buttonAbbrechen_Click(object sender, EventArgs e) + { + this.Close(); + } } } diff --git a/FormListe.Designer.cs b/FormListe.Designer.cs index ece1b7a..bbe703c 100644 --- a/FormListe.Designer.cs +++ b/FormListe.Designer.cs @@ -1,34 +1,35 @@  namespace Deckungsbeitrag { - partial class FormListe - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; + partial class FormListe + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } - #region Windows Form Designer generated code + #region Windows Form Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormListe)); this.listViewKunde = new System.Windows.Forms.ListView(); this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); @@ -37,6 +38,7 @@ namespace Deckungsbeitrag this.textBoxKunde = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.buttonOK = new System.Windows.Forms.Button(); + this.buttonNeuerBenutzer = new System.Windows.Forms.Button(); this.SuspendLayout(); // // listViewKunde @@ -50,7 +52,7 @@ namespace Deckungsbeitrag this.columnHeader2, this.columnHeader3, this.columnHeader4}); - this.listViewKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.listViewKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.listViewKunde.FullRowSelect = true; this.listViewKunde.GridLines = true; this.listViewKunde.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable; @@ -61,7 +63,7 @@ namespace Deckungsbeitrag this.listViewKunde.Margin = new System.Windows.Forms.Padding(2); this.listViewKunde.MultiSelect = false; this.listViewKunde.Name = "listViewKunde"; - this.listViewKunde.Size = new System.Drawing.Size(396, 339); + this.listViewKunde.Size = new System.Drawing.Size(396, 303); this.listViewKunde.TabIndex = 1; this.listViewKunde.UseCompatibleStateImageBehavior = false; this.listViewKunde.View = System.Windows.Forms.View.Details; @@ -89,15 +91,16 @@ namespace Deckungsbeitrag // this.textBoxKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxKunde.ForeColor = System.Drawing.Color.Silver; - this.textBoxKunde.Location = new System.Drawing.Point(9, 14); + this.textBoxKunde.Location = new System.Drawing.Point(9, 13); this.textBoxKunde.Margin = new System.Windows.Forms.Padding(2); this.textBoxKunde.Name = "textBoxKunde"; this.textBoxKunde.Size = new System.Drawing.Size(120, 26); this.textBoxKunde.TabIndex = 0; this.textBoxKunde.Text = "Hier eingeben"; this.textBoxKunde.TextChanged += new System.EventHandler(this.textBoxKunde_TextChanged); - this.textBoxKunde.Enter += new System.EventHandler(this.textBoxKunde_Enter); + this.textBoxKunde.Enter += new System.EventHandler(this.TextBoxKunde_Enter); this.textBoxKunde.KeyDown += new System.Windows.Forms.KeyEventHandler(this.listViewKunde_KeyDown); + this.textBoxKunde.Leave += new System.EventHandler(this.textBoxKunde_Leave); // // label1 // @@ -126,39 +129,62 @@ namespace Deckungsbeitrag this.buttonOK.UseVisualStyleBackColor = false; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // + // buttonNeuerBenutzer + // + this.buttonNeuerBenutzer.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.buttonNeuerBenutzer.BackColor = System.Drawing.Color.Yellow; + this.buttonNeuerBenutzer.FlatAppearance.BorderSize = 0; + this.buttonNeuerBenutzer.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonNeuerBenutzer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNeuerBenutzer.Location = new System.Drawing.Point(115, 114); + this.buttonNeuerBenutzer.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeuerBenutzer.Name = "buttonNeuerBenutzer"; + this.buttonNeuerBenutzer.Size = new System.Drawing.Size(167, 34); + this.buttonNeuerBenutzer.TabIndex = 16; + this.buttonNeuerBenutzer.Text = "Neuer Benutzer"; + this.buttonNeuerBenutzer.UseVisualStyleBackColor = false; + this.buttonNeuerBenutzer.Visible = false; + this.buttonNeuerBenutzer.Click += new System.EventHandler(this.buttonNeuerBenutzer_Click); + // // FormListe // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(413, 390); + this.ClientSize = new System.Drawing.Size(413, 358); + this.Controls.Add(this.buttonNeuerBenutzer); this.Controls.Add(this.buttonOK); this.Controls.Add(this.label1); this.Controls.Add(this.textBoxKunde); this.Controls.Add(this.listViewKunde); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(2); + this.MaximizeBox = false; + this.MinimizeBox = false; this.MinimumSize = new System.Drawing.Size(429, 39); this.Name = "FormListe"; this.ShowInTaskbar = false; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "LISTE"; + this.TopMost = true; this.Load += new System.EventHandler(this.FormListe_Load); - this.Shown += new System.EventHandler(this.FormListe_Shown); this.ResumeLayout(false); this.PerformLayout(); - } + } - #endregion + #endregion - private System.Windows.Forms.ListView listViewKunde; - private System.Windows.Forms.ColumnHeader columnHeader1; - private System.Windows.Forms.ColumnHeader columnHeader2; - private System.Windows.Forms.ColumnHeader columnHeader3; - private System.Windows.Forms.ColumnHeader columnHeader4; - private System.Windows.Forms.TextBox textBoxKunde; + private System.Windows.Forms.ListView listViewKunde; + private System.Windows.Forms.ColumnHeader columnHeader1; + private System.Windows.Forms.ColumnHeader columnHeader2; + private System.Windows.Forms.ColumnHeader columnHeader3; + private System.Windows.Forms.ColumnHeader columnHeader4; + private System.Windows.Forms.TextBox textBoxKunde; private System.Windows.Forms.Label label1; private System.Windows.Forms.Button buttonOK; + private System.Windows.Forms.Button buttonNeuerBenutzer; } } \ No newline at end of file diff --git a/FormListe.cs b/FormListe.cs index 3287a74..d0c0596 100644 --- a/FormListe.cs +++ b/FormListe.cs @@ -3,29 +3,50 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; +using System.Diagnostics; using System.Drawing; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; -using System.Diagnostics; +using AForge.Video; +using AForge.Video.DirectShow; +using ZXing; namespace Deckungsbeitrag { - public partial class FormListe : Form + public enum Listentyp + { + Kundenliste = 0, + Aufgabenliste = 1, + Benutzerliste = 2 + } + public partial class FormListe : Form { public Kunde kunde; + public Benutzer benutzer; public List Kundenliste; public List Aufgabenliste; + public List Benutzerliste; bool isKundenliste = false; bool isAufgabenliste = false; + bool isBenutzerliste = false; + int type_of_list; string path = "C:\\Windows\\WinSxS\\amd64_microsoft-windows-osk_31bf3856ad364e35_10.0.22621.3672_none_8a93c823d58f9d77\\osk.exe"; + string ben_col = "Vorname,Nachname,Benutzername,Rolle,Schein,Gueltig bis,Aktiv"; + string knd_col = "KundenNr,KundenName,PLZ,Ort"; + string auf_col = "Aufgabe,Beschreibung"; + string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink"; + string keyboardPath; + //QR-Code Scan mit integrierter Kamera + public FormListe() { InitializeComponent(); } - public FormListe(List kundenliste) :this() + public FormListe(List kundenliste) :this() { this.Kundenliste = kundenliste; isKundenliste = true; @@ -35,111 +56,115 @@ namespace Deckungsbeitrag isAufgabenliste = true; Aufgabenliste = Aufgabe.GetList(null); } - public FormListe(List kundenliste, bool v) : this() + public FormListe(List objliste, int listentyp) : this() { - this.isKundenliste = v; + this.type_of_list = listentyp; } private void FormListe_Load(object sender, EventArgs e) { this.buttonOK.Visible = this.buttonOK.Enabled = false; - get_Columns(); + listViewKunde_Load(); - //BILDSCHIRMTASTATUR POSITION AUF WS COMPUTER ANSCHAUEN - //Process.Start(path); + this.textBoxKunde.Focus(); - } - private void get_Columns() - { - this.listViewKunde.Columns.Clear(); - if (isKundenliste) - { - for (int i = 0; i < 4; i++) - { - ColumnHeader ch = new ColumnHeader(); - if (i == 0) ch.Text = "KndNr"; - if (i == 1) ch.Text = "KundeName"; - if (i == 2) ch.Text = "PLZ"; - if (i == 3) ch.Text = "Ort"; - - this.listViewKunde.Columns.Add(ch); - } - } - if (isAufgabenliste) - { - for (int i = 0; i < 2; i++) - { - ColumnHeader ch = new ColumnHeader(); - if (i == 0) ch.Text = "Aufgabe"; - if (i == 1) ch.Text = "Beschreibung"; - - this.listViewKunde.Columns.Add(ch); - } - } - - } + StartPosition = FormStartPosition.CenterScreen; + } private void listViewKunde_Load() { - this.listViewKunde.Items.Clear(); - if (isKundenliste) - { - this.Text = "KUNDE WÄHLEN"; - foreach (Kunde kunde in Kunde.GetTmpList(textBoxKunde.Text)) - { - ListViewItem item = new ListViewItem(); - item.Tag = kunde; - item.Text = kunde.KundeNummer; - item.SubItems.Add(kunde.KundeName); - item.SubItems.Add(kunde.PLZ.ToString()); - item.SubItems.Add(kunde.Ort); + //LISTE LEEREN + this.listViewKunde.Items.Clear(); + this.listViewKunde.Columns.Clear(); + + //SWITCH NACH LISTENTYP + switch (type_of_list) + { + case var kndliste when type_of_list == (int)Listentyp.Kundenliste: + { + //SPALTEN ERSTELLEN UND EINFÜGEN + string[] colname = knd_col.Split(','); + foreach (string s in colname) + { + ColumnHeader ch = new ColumnHeader(); + ch.Text = s; - this.listViewKunde.Items.Add(item); - } - if (listViewKunde.Items.Count == 1) kunde = (Kunde)listViewKunde.Items[0].Tag; - } - if (isAufgabenliste) - { - //Aufgaben TABLE in DB speichern - //foreach(Aufgabe aufgabe in this.Aufgabenliste) - //{ - // ListViewItem item = new ListViewItem(); - // item.Tag = aufgabe; - // item.Text = aufgabe.Bezeichnung; - // item.SubItems.Add(aufgabe.Beschreibung); + this.listViewKunde.Columns.Add(ch); + } + //KUNDEN LADEN + this.Text = "KUNDE WÄHLEN"; + foreach (Kunde kunde in Kunde.GetTmpList(textBoxKunde.Text)) + { + ListViewItem item = new ListViewItem(); + item.Tag = kunde; + item.Text = kunde.KundeNummer; + item.SubItems.Add(kunde.KundeName); + item.SubItems.Add(kunde.PLZ.ToString()); + item.SubItems.Add(kunde.Ort); - // this.listViewKunde.Items.Add(item); - //} - for (int i = 0; i < 3; i++) - { - ListViewItem item = new ListViewItem(); - if (i == 0) - { - item.Text = "Liefern"; - item.SubItems.Add("Vorhandene Wäsche ausliefern"); - } - if (i == 1) - { - item.Text = "Holen"; - item.SubItems.Add("Schmutzwäsche abholen"); - } - if (i == 2) - { - item.Text = "Holen/Liefern"; - item.SubItems.Add("Schmutzwäsche abholen und Vorhandene Wäsche ausliefern"); - } - this.listViewKunde.Items.Add(item); - } - } + this.listViewKunde.Items.Add(item); + } + if (listViewKunde.Items.Count == 1) kunde = (Kunde)listViewKunde.Items[0].Tag; + + } + break; + case var aufliste when type_of_list == (int)Listentyp.Aufgabenliste: + { + string[] colname = auf_col.Split(','); + foreach (string s in colname) + { + ColumnHeader ch = new ColumnHeader(); + ch.Text = s; + + this.listViewKunde.Columns.Add(ch); + } + } + break; + case var benliste when type_of_list == (int)Listentyp.Benutzerliste: + { + this.textBoxKunde.Visible = this.label1.Visible = false; + this.buttonNeuerBenutzer.Visible = true; + string[] colname = ben_col.Split(','); + foreach (string s in colname) + { + ColumnHeader ch = new ColumnHeader(); + ch.Text = s; + + this.listViewKunde.Columns.Add(ch); + } + + this.Text = "BENUTZER WÄHLEN"; + foreach(Benutzer b in Benutzer.GetList()) + { + ListViewItem item = new ListViewItem(); + item.Tag = b; + item.Text = b.Vorname; + item.SubItems.Add(b.Nachname); + item.SubItems.Add(b.BenutzerName); + item.SubItems.Add(b.Rolle.ToString()); + item.SubItems.Add(b.Schein.ToString()); + item.SubItems.Add(b.GueltigBis.HasValue ? b.GueltigBis.Value.ToShortDateString() : string.Empty); + item.SubItems.Add(b.Aktiv.ToString()); + + this.listViewKunde.Items.Add(item); + } + } + break; + default: + break; + } listViewKunde_Design(); - } - private void listViewKunde_Design() + //Funktionen.Columns_Resize(this.listViewKunde); + //this.Size = new Size(this.listViewKunde.Width + 70, this.Height); + + } + private void listViewKunde_Design() { int lvwWidth = 0; this.listViewKunde.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent); ListView.ColumnHeaderCollection cc = this.listViewKunde.Columns; for (int i = 0; i < cc.Count; i++) { - int colWidth = TextRenderer.MeasureText(cc[i].Text, listViewKunde.Font).Width + 10; + int colWidth = TextRenderer.MeasureText(cc[i].Text, listViewKunde.Font).Width + 30; if (colWidth > cc[i].Width) { lvwWidth += cc[i].Width = colWidth; @@ -153,16 +178,27 @@ namespace Deckungsbeitrag { if (isAufgabenliste) { - FormNeueAufgabe aufgabe = new FormNeueAufgabe(); - aufgabe.ShowDialog(); + //FormNeueAufgabe aufgabe = new FormNeueAufgabe(); + //aufgabe.ShowDialog(); } FormListe_Load(this, null); } - private void textBoxKunde_Enter(object sender, EventArgs e) + private void TextBoxKunde_Enter(object sender, EventArgs e) { - this.textBoxKunde.ForeColor = Color.Black; - } - private void textBoxKunde_TextChanged(object sender, EventArgs e) + this.textBoxKunde.ForeColor = Color.Black; + + GetKeyboard(); + } + + private void GetKeyboard() + { + // Pfad zur Touch-Tastatur + keyboardPath = System.IO.Path.Combine(progFiles, "TabTip.exe"); + + // Bildschirmtastatur starten + Process.Start(keyboardPath); + } + private void textBoxKunde_TextChanged(object sender, EventArgs e) { if (!textBoxKunde.Text.StartsWith("?") && textBoxKunde.TextLength > 3) { @@ -179,11 +215,20 @@ namespace Deckungsbeitrag } private void listViewKunde_MouseClick(object sender, MouseEventArgs e) { - ListViewItem item = this.listViewKunde.GetItemAt(e.X, e.Y); - kunde = (Kunde)item.Tag; + ListViewItem item = this.listViewKunde.GetItemAt(e.X, e.Y); - this.DialogResult = DialogResult.OK; - this.Close(); + switch (type_of_list) + { + case var _ when type_of_list == (int)Listentyp.Kundenliste: + { + kunde = (Kunde)item.Tag; + this.DialogResult = DialogResult.OK; + this.Close(); + } + break; + default: + break; + } } private void listViewKunde_KeyDown(object sender, KeyEventArgs e) { @@ -197,6 +242,7 @@ namespace Deckungsbeitrag else if (this.listViewKunde.SelectedItems.Count == 1) kunde = (Kunde)this.listViewKunde.SelectedItems[0].Tag; e.Handled = true; + textBoxKunde_Leave(this, e); this.DialogResult = DialogResult.OK; this.Close(); } @@ -207,7 +253,6 @@ namespace Deckungsbeitrag } } - private void buttonOK_Click(object sender, EventArgs e) { this.kunde = Kunde.GetKunde("2320000", null, null); @@ -217,5 +262,28 @@ namespace Deckungsbeitrag this.DialogResult = DialogResult.OK; this.Close(); } + private void buttonNeuerBenutzer_Click(object sender, EventArgs e) + { + //FormBenutzerDetail benutzerdetail = new FormBenutzerDetail(); + //benutzerdetail.ShowDialog(); + this.Close(); + } + private void textBoxKunde_Leave(object sender, EventArgs e) + { + + // Alle gestarteten Instanzen von TabTip.exe (Touch Tastatur) schließen + foreach (var process in Process.GetProcessesByName("TabTip")) + { + try + { + process.Close(); + } + catch (Exception es) + { + // Fehlerbehandlung falls Prozess nicht beendet werden kann + MessageBox.Show($"Fehler beim Schließen: " + es.Message); + } + } + } } } diff --git a/FormListe.resx b/FormListe.resx index 1af7de1..4b0fe78 100644 --- a/FormListe.resx +++ b/FormListe.resx @@ -117,4 +117,103 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4Zc8wx5xpzzDmamgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgTpxRbYECgIxNeoJBQgcBsGFM9tpEtKdo + quhc0VzRaaJPiwZjw9oNxEDRSNF40SdFO4k2ZABC26+faGezndpwD9EW2K+svdQ2x4vuEv2faI1orUfv + ih4XzRBtjP/FNxDqtOeJHhG9Keow4/9NdJvoy35Hxn4l2ko03Rz5NbNdh9nyQdHpoo9l2X4+e20kOkJ0 + r+jfvkkfpNWiy0Sb4X/VddyhonNESysMgA7S7aJWnLhEm1lwfEj0QQUbPiWaImrOiv0C7NVbNE40X7Qy + xMT3SncHZ4scgkDPB2KQbaueiDgI+vdbsjYAAfbbQPQZ0e9spQ9rP90RHJOFIBpgs91EPxatiOhzXr3i + XYSge8mWL4geCLFilZM6/YAsDEKA/dYTjRXdIPpXN+33kmhMI9rPGT4hyGYfFc0WvdiDie/VlaL1CQLR + HLevaKLoN6L3ejgA+j02s9FXMZ/9HEvoXdLDFayoG2wX0TD2C/A5XSRO7MYus5LeEh1AAAg3EPrNtY/o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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + \ No newline at end of file diff --git a/FormLogin.cs b/FormLogin.cs index 0a9add1..5baaca0 100644 --- a/FormLogin.cs +++ b/FormLogin.cs @@ -10,29 +10,26 @@ using System.Windows.Forms; using System.Security.Cryptography; using DatenDB; using System.Threading; +using System.Diagnostics; namespace Deckungsbeitrag { public partial class FormLogin : Form { - public Thread t; + string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink"; + string keyboardPath; + public FormLogin() { InitializeComponent(); - this.groupBox1.Height = 110; - this.labelPwdWh.Visible = false; - this.textBoxPwdWh.Visible = false; - this.buttonRegistrieren.Visible = false; } private void buttonAnmelden_Click(object sender, EventArgs e) { - + if(string.IsNullOrWhiteSpace(this.textBoxPasswort.Text)) textBoxBenutzer_Leave(sender, e); try { - //t = new Thread(new ThreadStart(Splash)); - //t.Start(); MD5 md5 = MD5.Create(); byte[] md5hash = md5.ComputeHash(Encoding.UTF8.GetBytes(this.textBoxPasswort.Text)); string pwdHash = string.Empty; @@ -41,13 +38,11 @@ namespace Deckungsbeitrag this.Person = Benutzer.Get(this.textBoxBenutzer.Text, pwdHash); this.Person.Save(); - //t.Abort(); this.DialogResult = DialogResult.OK; this.Close(); } catch (LoginException lex) { - //t.Abort(); switch (lex.ErrorCode) { case -1: @@ -62,7 +57,8 @@ namespace Deckungsbeitrag MessageBox.Show(lex.Message, "Registrieren", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); this.buttonRegistrieren.Visible = true; this.buttonAnmelden.Enabled = false; - this.groupBox1.Height = this.groupBox1.Height + 35; + this.groupBox1.Height = 146; + this.Height = 265; this.labelPwdWh.Visible = true; this.textBoxPwdWh.Visible = true; break; @@ -78,12 +74,24 @@ namespace Deckungsbeitrag { MessageBox.Show(ex.Message, "Fehler", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } - } - private void Splash() - { - //Open a splash screen form - FormLaden frm = new FormLaden(); - Application.Run(frm); + + CloseKeyboard(); + } + private void CloseKeyboard() + { + foreach (var process in Process.GetProcessesByName("TabTip")) + { + try + { + process.Close(); + } + catch (Exception es) + { + // Fehlerbehandlung falls Prozess nicht beendet werden kann + MessageBox.Show($"Fehler beim Schließen: " + es.Message); + } + } + } private void buttonAbbrechen_Click(object sender, EventArgs e) { @@ -107,6 +115,7 @@ namespace Deckungsbeitrag if (person.Save() == 1) { this.groupBox1.Height = 100; + this.Height = 222; this.labelPwdWh.Visible = false; this.textBoxPwdWh.Visible = false; this.buttonRegistrieren.Visible = false; @@ -116,5 +125,55 @@ namespace Deckungsbeitrag } } } - } + + private void textBoxBenutzer_Leave(object sender, EventArgs e) + { + if (textBoxBenutzer.Text.Contains(";")) + { + this.textBoxPasswort.Text = this.textBoxBenutzer.Text.Substring(this.textBoxBenutzer.Text.IndexOf(";") + 1); + this.textBoxBenutzer.Text = this.textBoxBenutzer.Text.Substring(0, this.textBoxBenutzer.Text.IndexOf(";")); + } + } + + + private void FormLogin_Load(object sender, EventArgs e) + { + this.groupBox1.Height = 110; + this.labelPwdWh.Visible = false; + this.textBoxPwdWh.Visible = false; + this.buttonRegistrieren.Visible = false; + + this.textBoxBenutzer.Focus(); + + WindowState = FormWindowState.Normal; + StartPosition = FormStartPosition.CenterScreen; + } + + private void FormLogin_Shown(object sender, EventArgs e) + { + StartPosition = FormStartPosition.CenterScreen; + } + + private void textBoxBenutzer_Enter(object sender, EventArgs e) + { + // Pfad zur Touch-Tastatur + keyboardPath = System.IO.Path.Combine(progFiles, "TabTip.exe"); + + // Bildschirmtastatur starten + Process.Start(keyboardPath); + } + + private void textBoxPasswort_Enter(object sender, EventArgs e) + { + // Pfad zur Touch-Tastatur + keyboardPath = System.IO.Path.Combine(progFiles, "TabTip.exe"); + + // Bildschirmtastatur starten + Process.Start(keyboardPath); + } + private void textBox_Leave(object sender, EventArgs e) + { + CloseKeyboard(); + } + } } diff --git a/FormLogin.designer.cs b/FormLogin.designer.cs index dae13a2..cd1b3d1 100644 --- a/FormLogin.designer.cs +++ b/FormLogin.designer.cs @@ -51,121 +51,151 @@ namespace Deckungsbeitrag this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.textBoxBenutzer); this.groupBox1.Controls.Add(this.label1); - this.groupBox1.Location = new System.Drawing.Point(29, 26); - this.groupBox1.Margin = new System.Windows.Forms.Padding(4); + this.groupBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.groupBox1.ForeColor = System.Drawing.Color.White; + this.groupBox1.Location = new System.Drawing.Point(18, 21); this.groupBox1.Name = "groupBox1"; - this.groupBox1.Padding = new System.Windows.Forms.Padding(4); - this.groupBox1.Size = new System.Drawing.Size(607, 146); + this.groupBox1.Size = new System.Drawing.Size(463, 100); this.groupBox1.TabIndex = 0; this.groupBox1.TabStop = false; - this.groupBox1.Text = "Geben Sie Benutzer/Passwort an"; + this.groupBox1.Text = "Login-Daten"; // // textBoxPwdWh // - this.textBoxPwdWh.Location = new System.Drawing.Point(199, 106); - this.textBoxPwdWh.Margin = new System.Windows.Forms.Padding(4); + this.textBoxPwdWh.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxPwdWh.Location = new System.Drawing.Point(185, 110); this.textBoxPwdWh.Name = "textBoxPwdWh"; - this.textBoxPwdWh.Size = new System.Drawing.Size(350, 22); + this.textBoxPwdWh.Size = new System.Drawing.Size(264, 26); this.textBoxPwdWh.TabIndex = 5; this.textBoxPwdWh.UseSystemPasswordChar = true; // // labelPwdWh // this.labelPwdWh.AutoSize = true; - this.labelPwdWh.Location = new System.Drawing.Point(56, 110); - this.labelPwdWh.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.labelPwdWh.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelPwdWh.ForeColor = System.Drawing.Color.White; + this.labelPwdWh.Location = new System.Drawing.Point(26, 113); this.labelPwdWh.Name = "labelPwdWh"; - this.labelPwdWh.Size = new System.Drawing.Size(128, 16); + this.labelPwdWh.Size = new System.Drawing.Size(153, 20); this.labelPwdWh.TabIndex = 4; this.labelPwdWh.Text = "Passwort bestätigen"; // // textBoxPasswort // - this.textBoxPasswort.Location = new System.Drawing.Point(199, 74); - this.textBoxPasswort.Margin = new System.Windows.Forms.Padding(4); + this.textBoxPasswort.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxPasswort.Location = new System.Drawing.Point(185, 62); this.textBoxPasswort.Name = "textBoxPasswort"; - this.textBoxPasswort.Size = new System.Drawing.Size(350, 22); + this.textBoxPasswort.Size = new System.Drawing.Size(264, 26); this.textBoxPasswort.TabIndex = 3; this.textBoxPasswort.UseSystemPasswordChar = true; + this.textBoxPasswort.Enter += new System.EventHandler(this.textBoxPasswort_Enter); + this.textBoxPasswort.Leave += new System.EventHandler(this.textBox_Leave); // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(56, 78); - this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label2.ForeColor = System.Drawing.Color.White; + this.label2.Location = new System.Drawing.Point(105, 65); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(62, 16); + this.label2.Size = new System.Drawing.Size(74, 20); this.label2.TabIndex = 2; this.label2.Text = "Passwort"; // // textBoxBenutzer // - this.textBoxBenutzer.Location = new System.Drawing.Point(199, 37); - this.textBoxBenutzer.Margin = new System.Windows.Forms.Padding(4); + this.textBoxBenutzer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxBenutzer.Location = new System.Drawing.Point(185, 30); this.textBoxBenutzer.Name = "textBoxBenutzer"; - this.textBoxBenutzer.Size = new System.Drawing.Size(350, 22); + this.textBoxBenutzer.Size = new System.Drawing.Size(264, 26); this.textBoxBenutzer.TabIndex = 1; + this.textBoxBenutzer.Enter += new System.EventHandler(this.textBoxBenutzer_Enter); + this.textBoxBenutzer.Leave += new System.EventHandler(this.textBoxBenutzer_Leave); // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(56, 41); - this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(105, 33); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(59, 16); + this.label1.Size = new System.Drawing.Size(74, 20); this.label1.TabIndex = 0; this.label1.Text = "Benutzer"; // // buttonAnmelden // - this.buttonAnmelden.Location = new System.Drawing.Point(536, 180); - this.buttonAnmelden.Margin = new System.Windows.Forms.Padding(4); + this.buttonAnmelden.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonAnmelden.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonAnmelden.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonAnmelden.FlatAppearance.BorderSize = 0; + this.buttonAnmelden.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonAnmelden.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAnmelden.ForeColor = System.Drawing.Color.White; + this.buttonAnmelden.Location = new System.Drawing.Point(330, 138); this.buttonAnmelden.Name = "buttonAnmelden"; - this.buttonAnmelden.Size = new System.Drawing.Size(100, 28); + this.buttonAnmelden.Padding = new System.Windows.Forms.Padding(2); + this.buttonAnmelden.Size = new System.Drawing.Size(150, 41); this.buttonAnmelden.TabIndex = 1; this.buttonAnmelden.Text = "Anmelden"; - this.buttonAnmelden.UseVisualStyleBackColor = true; + this.buttonAnmelden.UseVisualStyleBackColor = false; this.buttonAnmelden.Click += new System.EventHandler(this.buttonAnmelden_Click); // // buttonAbbrechen // + this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.buttonAbbrechen.BackColor = System.Drawing.Color.Red; this.buttonAbbrechen.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.buttonAbbrechen.Location = new System.Drawing.Point(411, 180); - this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(4); + this.buttonAbbrechen.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.buttonAbbrechen.FlatAppearance.BorderSize = 0; + this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAbbrechen.ForeColor = System.Drawing.Color.White; + this.buttonAbbrechen.Location = new System.Drawing.Point(174, 138); this.buttonAbbrechen.Name = "buttonAbbrechen"; - this.buttonAbbrechen.Size = new System.Drawing.Size(100, 28); + this.buttonAbbrechen.Size = new System.Drawing.Size(150, 41); this.buttonAbbrechen.TabIndex = 2; this.buttonAbbrechen.Text = "Abbrechen"; - this.buttonAbbrechen.UseVisualStyleBackColor = true; + this.buttonAbbrechen.UseVisualStyleBackColor = false; this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); // // buttonRegistrieren // - this.buttonRegistrieren.Location = new System.Drawing.Point(29, 180); - this.buttonRegistrieren.Margin = new System.Windows.Forms.Padding(4); + this.buttonRegistrieren.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.buttonRegistrieren.BackColor = System.Drawing.Color.Yellow; + this.buttonRegistrieren.FlatAppearance.BorderColor = System.Drawing.Color.Yellow; + this.buttonRegistrieren.FlatAppearance.BorderSize = 0; + this.buttonRegistrieren.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonRegistrieren.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonRegistrieren.Location = new System.Drawing.Point(18, 139); this.buttonRegistrieren.Name = "buttonRegistrieren"; - this.buttonRegistrieren.Size = new System.Drawing.Size(100, 28); + this.buttonRegistrieren.Size = new System.Drawing.Size(150, 41); this.buttonRegistrieren.TabIndex = 3; this.buttonRegistrieren.Text = "Registrieren"; - this.buttonRegistrieren.UseVisualStyleBackColor = true; + this.buttonRegistrieren.UseVisualStyleBackColor = false; this.buttonRegistrieren.Click += new System.EventHandler(this.buttonRegistrieren_Click); // // FormLogin // this.AcceptButton = this.buttonAnmelden; - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.CancelButton = this.buttonAbbrechen; - this.ClientSize = new System.Drawing.Size(667, 225); + this.ClientSize = new System.Drawing.Size(492, 191); this.Controls.Add(this.buttonRegistrieren); this.Controls.Add(this.buttonAbbrechen); this.Controls.Add(this.buttonAnmelden); this.Controls.Add(this.groupBox1); + this.ForeColor = System.Drawing.SystemColors.ControlText; + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(4); + this.MaximizeBox = false; + this.MinimizeBox = false; this.Name = "FormLogin"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "WIRL-Login"; + this.Load += new System.EventHandler(this.FormLogin_Load); + this.Shown += new System.EventHandler(this.FormLogin_Shown); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); this.ResumeLayout(false); diff --git a/FormLogin.resx b/FormLogin.resx index afc19ce..4b0fe78 100644 --- a/FormLogin.resx +++ b/FormLogin.resx @@ -120,19 +120,100 @@ - AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8A//////////////////////////////////////////////////////////////////////// - ////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P//// - //zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/ - //////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM - zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP - zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8 - zMzP//zMzMz//8zMzM////zM/////8zP/////Mz///////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4Zc8wx5xpzzDmamgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgTpxRbYECgIxNeoJBQgcBsGFM9tpEtKdo + quhc0VzRaaJPiwZjw9oNxEDRSNF40SdFO4k2ZABC26+faGezndpwD9EW2K+svdQ2x4vuEv2faI1orUfv + ih4XzRBtjP/FNxDqtOeJHhG9Keow4/9NdJvoy35Hxn4l2ko03Rz5NbNdh9nyQdHpoo9l2X4+e20kOkJ0 + r+jfvkkfpNWiy0Sb4X/VddyhonNESysMgA7S7aJWnLhEm1lwfEj0QQUbPiWaImrOiv0C7NVbNE40X7Qy + xMT3SncHZ4scgkDPB2KQbaueiDgI+vdbsjYAAfbbQPQZ0e9spQ9rP90RHJOFIBpgs91EPxatiOhzXr3i + XYSge8mWL4geCLFilZM6/YAsDEKA/dYTjRXdIPpXN+33kmhMI9rPGT4hyGYfFc0WvdiDie/VlaL1CQLR + HLevaKLoN6L3ejgA+j02s9FXMZ/9HEvoXdLDFayoG2wX0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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC \ No newline at end of file diff --git a/FormMain.Designer.cs b/FormMain.Designer.cs index f5f3272..fcbeb15 100644 --- a/FormMain.Designer.cs +++ b/FormMain.Designer.cs @@ -31,87 +31,68 @@ namespace Deckungsbeitrag { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormMain)); this.toolStripMenu = new System.Windows.Forms.ToolStrip(); - this.toolStripBeenden = new System.Windows.Forms.ToolStripButton(); + this.tSBBenutzerVW = new System.Windows.Forms.ToolStripButton(); + this.tSBAuftragVW = new System.Windows.Forms.ToolStripButton(); + this.tSBAufgabeVW = new System.Windows.Forms.ToolStripButton(); + this.tSBArtikelVW = new System.Windows.Forms.ToolStripButton(); this.toolStripZaehlscheine = new System.Windows.Forms.ToolStripButton(); + this.tSBExpedit = new System.Windows.Forms.ToolStripButton(); this.toolStripDB = new System.Windows.Forms.ToolStripButton(); this.tSBKosten = new System.Windows.Forms.ToolStripButton(); - this.tSBFahrerAuftrag = new System.Windows.Forms.ToolStripButton(); this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); - this.tSBWaschverlauf = new System.Windows.Forms.ToolStripButton(); + this.tSBScannTest = new System.Windows.Forms.ToolStripButton(); + this.tSBHilfe = new System.Windows.Forms.ToolStripButton(); this.toolStripButtonImport = new System.Windows.Forms.ToolStripButton(); - this.tSBExpeditDrucken = new System.Windows.Forms.ToolStripButton(); this.tSBEinstellung = new System.Windows.Forms.ToolStripButton(); - this.statusStrip1 = new System.Windows.Forms.StatusStrip(); - this.toolStripStatusLabel3 = new System.Windows.Forms.ToolStripStatusLabel(); - this.statusStripUser = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabel2 = new System.Windows.Forms.ToolStripStatusLabel(); - this.statusStripSortiment = new System.Windows.Forms.ToolStripStatusLabel(); - this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel(); - this.statusStripDatum = new System.Windows.Forms.ToolStripStatusLabel(); - this.buttonNeueAufgabe = new System.Windows.Forms.Button(); - this.buttonNeuerAuftrag = new System.Windows.Forms.Button(); + this.toolStripBeenden = new System.Windows.Forms.ToolStripButton(); this.panelMain = new System.Windows.Forms.Panel(); - this.groupBoxNeueAufgabe = new System.Windows.Forms.GroupBox(); - this.buttonFarbe = new System.Windows.Forms.Button(); - this.label11 = new System.Windows.Forms.Label(); - this.buttonAbbrechenAufgabe = new System.Windows.Forms.Button(); - this.comboBoxAufgabeKat = new System.Windows.Forms.ComboBox(); - this.buttonSpeichernAufgabe = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.textBoxBeschreibung = new System.Windows.Forms.TextBox(); - this.textBoxBezeichnung = new System.Windows.Forms.TextBox(); - this.groupBoxMaschine = new System.Windows.Forms.GroupBox(); - this.listViewMaschine = new System.Windows.Forms.ListView(); - this.numUpDownFaecher = new System.Windows.Forms.NumericUpDown(); - this.label10 = new System.Windows.Forms.Label(); - this.textBoxMaschBezeich = new System.Windows.Forms.TextBox(); - this.label9 = new System.Windows.Forms.Label(); - this.buttonMaAbbrechen = new System.Windows.Forms.Button(); - this.buttonMaSpeichern = new System.Windows.Forms.Button(); - this.groupBoxWPr = new System.Windows.Forms.GroupBox(); - this.listViewProg = new System.Windows.Forms.ListView(); - this.numericUpDownWPr = new System.Windows.Forms.NumericUpDown(); - this.label12 = new System.Windows.Forms.Label(); - this.textBoxWPrBezeichnung = new System.Windows.Forms.TextBox(); - this.label13 = new System.Windows.Forms.Label(); - this.buttonWPrAbbrechen = new System.Windows.Forms.Button(); - this.buttonWPrSpeichern = new System.Windows.Forms.Button(); - this.pictureBoxBenutzerClose = new System.Windows.Forms.PictureBox(); - this.groupBoxBenutzer = new System.Windows.Forms.GroupBox(); - this.label8 = new System.Windows.Forms.Label(); - this.comboBoxRolle = new System.Windows.Forms.ComboBox(); - this.checkBoxAktiv = new System.Windows.Forms.CheckBox(); - this.label7 = new System.Windows.Forms.Label(); - this.textBoxBenutzername = new System.Windows.Forms.TextBox(); - this.buttonAbbrechen = new System.Windows.Forms.Button(); - this.buttonSpeichernFahrer = new System.Windows.Forms.Button(); - this.label6 = new System.Windows.Forms.Label(); - this.label5 = new System.Windows.Forms.Label(); - this.label4 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.dTPGueltigBis = new System.Windows.Forms.DateTimePicker(); - this.textBoxSchein = new System.Windows.Forms.TextBox(); - this.textBoxNachname = new System.Windows.Forms.TextBox(); - this.textBoxVorname = new System.Windows.Forms.TextBox(); - this.listView1 = new System.Windows.Forms.ListView(); - this.buttonNeueMaschine = new System.Windows.Forms.Button(); - this.buttonBenutzerverwaltung = new System.Windows.Forms.Button(); - this.buttonNeuerBenutzer = new System.Windows.Forms.Button(); - this.flowPanelButtons = new System.Windows.Forms.FlowLayoutPanel(); - this.buttonAufgabenverwaltung = new System.Windows.Forms.Button(); - this.buttonWPr = new System.Windows.Forms.Button(); + this.groupBoxStatistik = new System.Windows.Forms.GroupBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); + this.tableLayoutPanelStatistik = new System.Windows.Forms.TableLayoutPanel(); + this.labelZahl6 = new System.Windows.Forms.Label(); + this.labelStatistik6 = new System.Windows.Forms.Label(); + this.labelZahl5 = new System.Windows.Forms.Label(); + this.labelStatistik5 = new System.Windows.Forms.Label(); + this.labelZahl4 = new System.Windows.Forms.Label(); + this.labelStatistik4 = new System.Windows.Forms.Label(); + this.labelZahl3 = new System.Windows.Forms.Label(); + this.labelStatistik3 = new System.Windows.Forms.Label(); + this.labelZahl2 = new System.Windows.Forms.Label(); + this.labelStatistik2 = new System.Windows.Forms.Label(); + this.labelZahl1 = new System.Windows.Forms.Label(); + this.labelStatistik1 = new System.Windows.Forms.Label(); + this.groupBoxUpdate = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanelUpdate = new System.Windows.Forms.TableLayoutPanel(); + this.progressBarSortiment = new System.Windows.Forms.ProgressBar(); + this.buttonSortimentUpdate = new System.Windows.Forms.Button(); + this.buttonArtikelUpdate = new System.Windows.Forms.Button(); + this.progressBarArtikel = new System.Windows.Forms.ProgressBar(); + this.buttonAllUpdate = new System.Windows.Forms.Button(); + this.buttonNeuerAuftrag = new System.Windows.Forms.Button(); + this.groupBoxAuftrag = new System.Windows.Forms.GroupBox(); + this.objectListViewAuftrag = new BrightIdeasSoftware.ObjectListView(); + this.rBAufAbruf = new System.Windows.Forms.RadioButton(); + this.rBAusgeliefert = new System.Windows.Forms.RadioButton(); + this.rBFertig = new System.Windows.Forms.RadioButton(); + this.rBVorbereitet = new System.Windows.Forms.RadioButton(); + this.rBAlle = new System.Windows.Forms.RadioButton(); + this.buttonAufAbruf = new System.Windows.Forms.Button(); + this.buttonAusgeliefert = new System.Windows.Forms.Button(); + this.groupBoxScannTest = new System.Windows.Forms.GroupBox(); + this.pictureBoxScannTest = new System.Windows.Forms.PictureBox(); + this.textBoxScannTest = new System.Windows.Forms.TextBox(); + this.buttonScannTest = new System.Windows.Forms.Button(); + this.labelScannTest = new System.Windows.Forms.Label(); this.toolStripMenu.SuspendLayout(); - this.statusStrip1.SuspendLayout(); this.panelMain.SuspendLayout(); - this.groupBoxNeueAufgabe.SuspendLayout(); - this.groupBoxMaschine.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numUpDownFaecher)).BeginInit(); - this.groupBoxWPr.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWPr)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBenutzerClose)).BeginInit(); - this.groupBoxBenutzer.SuspendLayout(); - this.flowPanelButtons.SuspendLayout(); + this.groupBoxStatistik.SuspendLayout(); + this.tableLayoutPanelStatistik.SuspendLayout(); + this.groupBoxUpdate.SuspendLayout(); + this.tableLayoutPanelUpdate.SuspendLayout(); + this.groupBoxAuftrag.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).BeginInit(); + this.groupBoxScannTest.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxScannTest)).BeginInit(); this.SuspendLayout(); // // toolStripMenu @@ -122,42 +103,108 @@ namespace Deckungsbeitrag this.toolStripMenu.Dock = System.Windows.Forms.DockStyle.Left; this.toolStripMenu.ImageScalingSize = new System.Drawing.Size(20, 20); this.toolStripMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripBeenden, + this.tSBBenutzerVW, + this.tSBAuftragVW, + this.tSBAufgabeVW, + this.tSBArtikelVW, this.toolStripZaehlscheine, + this.tSBExpedit, this.toolStripDB, this.tSBKosten, - this.tSBFahrerAuftrag, this.toolStripButton1, - this.tSBWaschverlauf, + this.tSBScannTest, + this.tSBHilfe, this.toolStripButtonImport, - this.tSBExpeditDrucken, - this.tSBEinstellung}); + this.tSBEinstellung, + this.toolStripBeenden}); this.toolStripMenu.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow; this.toolStripMenu.Location = new System.Drawing.Point(0, 0); this.toolStripMenu.Name = "toolStripMenu"; - this.toolStripMenu.Size = new System.Drawing.Size(150, 689); + this.toolStripMenu.Size = new System.Drawing.Size(212, 689); this.toolStripMenu.TabIndex = 0; this.toolStripMenu.Text = "toolStripMenu"; // - // toolStripBeenden + // tSBBenutzerVW // - this.toolStripBeenden.AutoSize = false; - this.toolStripBeenden.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.toolStripBeenden.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.toolStripBeenden.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.toolStripBeenden.ForeColor = System.Drawing.Color.White; - this.toolStripBeenden.Image = ((System.Drawing.Image)(resources.GetObject("toolStripBeenden.Image"))); - this.toolStripBeenden.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.toolStripBeenden.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; - this.toolStripBeenden.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripBeenden.Name = "toolStripBeenden"; - this.toolStripBeenden.Size = new System.Drawing.Size(180, 40); - this.toolStripBeenden.Text = "BEENDEN"; - this.toolStripBeenden.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.toolStripBeenden.Click += new System.EventHandler(this.toolStripBeenden_Click); - this.toolStripBeenden.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); - this.toolStripBeenden.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); - this.toolStripBeenden.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + this.tSBBenutzerVW.AutoSize = false; + this.tSBBenutzerVW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBBenutzerVW.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBBenutzerVW.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBBenutzerVW.ForeColor = System.Drawing.Color.White; + this.tSBBenutzerVW.Image = ((System.Drawing.Image)(resources.GetObject("tSBBenutzerVW.Image"))); + this.tSBBenutzerVW.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBBenutzerVW.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBBenutzerVW.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBBenutzerVW.Name = "tSBBenutzerVW"; + this.tSBBenutzerVW.Size = new System.Drawing.Size(180, 40); + this.tSBBenutzerVW.Text = "BENUTZERVERWALTUNG"; + this.tSBBenutzerVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBBenutzerVW.Click += new System.EventHandler(this.tSBBenutzerVW_Click); + this.tSBBenutzerVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBBenutzerVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBBenutzerVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + // + // tSBAuftragVW + // + this.tSBAuftragVW.AutoSize = false; + this.tSBAuftragVW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBAuftragVW.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBAuftragVW.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBAuftragVW.ForeColor = System.Drawing.Color.White; + this.tSBAuftragVW.Image = ((System.Drawing.Image)(resources.GetObject("tSBAuftragVW.Image"))); + this.tSBAuftragVW.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBAuftragVW.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBAuftragVW.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBAuftragVW.Name = "tSBAuftragVW"; + this.tSBAuftragVW.Size = new System.Drawing.Size(180, 40); + this.tSBAuftragVW.Text = "AUFTRAGVERWALTUNG"; + this.tSBAuftragVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBAuftragVW.ToolTipText = "Auftragkontrolle und -bearbeitung"; + this.tSBAuftragVW.Click += new System.EventHandler(this.tSBAuftragVW_Click); + this.tSBAuftragVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBAuftragVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBAuftragVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + // + // tSBAufgabeVW + // + this.tSBAufgabeVW.AutoSize = false; + this.tSBAufgabeVW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBAufgabeVW.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBAufgabeVW.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBAufgabeVW.ForeColor = System.Drawing.Color.White; + this.tSBAufgabeVW.Image = ((System.Drawing.Image)(resources.GetObject("tSBAufgabeVW.Image"))); + this.tSBAufgabeVW.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBAufgabeVW.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBAufgabeVW.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBAufgabeVW.Name = "tSBAufgabeVW"; + this.tSBAufgabeVW.Size = new System.Drawing.Size(180, 40); + this.tSBAufgabeVW.Text = "AUFGABENVERWALTUNG"; + this.tSBAufgabeVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBAufgabeVW.Click += new System.EventHandler(this.tSBAufgabeVW_Click); + this.tSBAufgabeVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBAufgabeVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBAufgabeVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + // + // tSBArtikelVW + // + this.tSBArtikelVW.AutoSize = false; + this.tSBArtikelVW.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBArtikelVW.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBArtikelVW.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBArtikelVW.ForeColor = System.Drawing.Color.White; + this.tSBArtikelVW.Image = ((System.Drawing.Image)(resources.GetObject("tSBArtikelVW.Image"))); + this.tSBArtikelVW.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBArtikelVW.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBArtikelVW.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBArtikelVW.Name = "tSBArtikelVW"; + this.tSBArtikelVW.Size = new System.Drawing.Size(180, 40); + this.tSBArtikelVW.Text = "ARTIKELVERWALTUNG"; + this.tSBArtikelVW.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBArtikelVW.ToolTipText = "Artikel bearbeiten"; + this.tSBArtikelVW.Click += new System.EventHandler(this.tSBArtikelVW_Click); + this.tSBArtikelVW.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBArtikelVW.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBArtikelVW.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); // // toolStripZaehlscheine // @@ -172,13 +219,34 @@ namespace Deckungsbeitrag this.toolStripZaehlscheine.ImageTransparentColor = System.Drawing.Color.Magenta; this.toolStripZaehlscheine.Name = "toolStripZaehlscheine"; this.toolStripZaehlscheine.Size = new System.Drawing.Size(180, 40); - this.toolStripZaehlscheine.Text = "KUNDE (ZÄHLSCHEIN)"; + this.toolStripZaehlscheine.Text = "KUNDENVERWALTUNG"; this.toolStripZaehlscheine.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.toolStripZaehlscheine.ToolTipText = "Kunde bearbeiten"; this.toolStripZaehlscheine.Click += new System.EventHandler(this.toolStripZaehlscheine_Click); this.toolStripZaehlscheine.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); this.toolStripZaehlscheine.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); this.toolStripZaehlscheine.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); // + // tSBExpedit + // + this.tSBExpedit.AutoSize = false; + this.tSBExpedit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBExpedit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBExpedit.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBExpedit.ForeColor = System.Drawing.Color.White; + this.tSBExpedit.Image = ((System.Drawing.Image)(resources.GetObject("tSBExpedit.Image"))); + this.tSBExpedit.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBExpedit.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBExpedit.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBExpedit.Name = "tSBExpedit"; + this.tSBExpedit.Size = new System.Drawing.Size(180, 40); + this.tSBExpedit.Text = "EXPEDIT"; + this.tSBExpedit.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBExpedit.Click += new System.EventHandler(this.tSBExpedit_Click); + this.tSBExpedit.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBExpedit.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBExpedit.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + // // toolStripDB // this.toolStripDB.AutoSize = false; @@ -219,26 +287,6 @@ namespace Deckungsbeitrag this.tSBKosten.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); this.tSBKosten.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); // - // tSBFahrerAuftrag - // - this.tSBFahrerAuftrag.AutoSize = false; - this.tSBFahrerAuftrag.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.tSBFahrerAuftrag.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.tSBFahrerAuftrag.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tSBFahrerAuftrag.ForeColor = System.Drawing.Color.White; - this.tSBFahrerAuftrag.Image = ((System.Drawing.Image)(resources.GetObject("tSBFahrerAuftrag.Image"))); - this.tSBFahrerAuftrag.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBFahrerAuftrag.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; - this.tSBFahrerAuftrag.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBFahrerAuftrag.Name = "tSBFahrerAuftrag"; - this.tSBFahrerAuftrag.Size = new System.Drawing.Size(180, 40); - this.tSBFahrerAuftrag.Text = "FAHRER-SCREEN"; - this.tSBFahrerAuftrag.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBFahrerAuftrag.Click += new System.EventHandler(this.tSBFahrerAuftrag_Click); - this.tSBFahrerAuftrag.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); - this.tSBFahrerAuftrag.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); - this.tSBFahrerAuftrag.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); - // // toolStripButton1 // this.toolStripButton1.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; @@ -252,25 +300,43 @@ namespace Deckungsbeitrag this.toolStripButton1.Size = new System.Drawing.Size(180, 70); this.toolStripButton1.Text = "toolStripButton1"; // - // tSBWaschverlauf + // tSBScannTest // - this.tSBWaschverlauf.AutoSize = false; - this.tSBWaschverlauf.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.tSBWaschverlauf.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.tSBWaschverlauf.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tSBWaschverlauf.ForeColor = System.Drawing.Color.White; - this.tSBWaschverlauf.Image = ((System.Drawing.Image)(resources.GetObject("tSBWaschverlauf.Image"))); - this.tSBWaschverlauf.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBWaschverlauf.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; - this.tSBWaschverlauf.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBWaschverlauf.Name = "tSBWaschverlauf"; - this.tSBWaschverlauf.Size = new System.Drawing.Size(180, 40); - this.tSBWaschverlauf.Text = "WASCHVERLAUF"; - this.tSBWaschverlauf.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBWaschverlauf.Click += new System.EventHandler(this.tSBWaschverlauf_Click); - this.tSBWaschverlauf.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); - this.tSBWaschverlauf.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); - this.tSBWaschverlauf.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + this.tSBScannTest.AutoSize = false; + this.tSBScannTest.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBScannTest.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBScannTest.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBScannTest.ForeColor = System.Drawing.Color.White; + this.tSBScannTest.Image = ((System.Drawing.Image)(resources.GetObject("tSBScannTest.Image"))); + this.tSBScannTest.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBScannTest.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBScannTest.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBScannTest.Name = "tSBScannTest"; + this.tSBScannTest.Size = new System.Drawing.Size(180, 40); + this.tSBScannTest.Text = "SCANN TEST"; + this.tSBScannTest.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBScannTest.Click += new System.EventHandler(this.tSBScannTest_Click); + this.tSBScannTest.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.tSBScannTest.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.tSBScannTest.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); + // + // tSBHilfe + // + this.tSBHilfe.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.tSBHilfe.AutoSize = false; + this.tSBHilfe.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.tSBHilfe.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.tSBHilfe.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.tSBHilfe.ForeColor = System.Drawing.Color.White; + this.tSBHilfe.Image = ((System.Drawing.Image)(resources.GetObject("tSBHilfe.Image"))); + this.tSBHilfe.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBHilfe.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.tSBHilfe.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tSBHilfe.Name = "tSBHilfe"; + this.tSBHilfe.Size = new System.Drawing.Size(180, 40); + this.tSBHilfe.Text = "HILFE"; + this.tSBHilfe.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.tSBHilfe.Click += new System.EventHandler(this.tSBHilfe_Click); // // toolStripButtonImport // @@ -292,26 +358,6 @@ namespace Deckungsbeitrag this.toolStripButtonImport.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); this.toolStripButtonImport.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); // - // tSBExpeditDrucken - // - this.tSBExpeditDrucken.AutoSize = false; - this.tSBExpeditDrucken.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.tSBExpeditDrucken.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.tSBExpeditDrucken.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.tSBExpeditDrucken.ForeColor = System.Drawing.Color.White; - this.tSBExpeditDrucken.Image = ((System.Drawing.Image)(resources.GetObject("tSBExpeditDrucken.Image"))); - this.tSBExpeditDrucken.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBExpeditDrucken.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; - this.tSBExpeditDrucken.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tSBExpeditDrucken.Name = "tSBExpeditDrucken"; - this.tSBExpeditDrucken.Size = new System.Drawing.Size(180, 40); - this.tSBExpeditDrucken.Text = "EXPEDIT"; - this.tSBExpeditDrucken.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.tSBExpeditDrucken.Click += new System.EventHandler(this.tSBExpedit_Click); - this.tSBExpeditDrucken.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); - this.tSBExpeditDrucken.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); - this.tSBExpeditDrucken.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); - // // tSBEinstellung // this.tSBEinstellung.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; @@ -328,844 +374,579 @@ namespace Deckungsbeitrag this.tSBEinstellung.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.tSBEinstellung.Click += new System.EventHandler(this.tSBEinstellung_Click); // - // statusStrip1 + // toolStripBeenden // - this.statusStrip1.BackColor = System.Drawing.Color.White; - this.statusStrip1.ImageScalingSize = new System.Drawing.Size(20, 20); - this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripStatusLabel3, - this.statusStripUser, - this.toolStripStatusLabel2, - this.statusStripSortiment, - this.toolStripStatusLabel1, - this.statusStripDatum}); - this.statusStrip1.Location = new System.Drawing.Point(150, 660); - this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 10, 0); - this.statusStrip1.Size = new System.Drawing.Size(1006, 29); - this.statusStrip1.TabIndex = 1; - this.statusStrip1.Text = "statusStrip1"; - // - // toolStripStatusLabel3 - // - this.toolStripStatusLabel3.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.toolStripStatusLabel3.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.toolStripStatusLabel3.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.toolStripStatusLabel3.Name = "toolStripStatusLabel3"; - this.toolStripStatusLabel3.Size = new System.Drawing.Size(83, 24); - this.toolStripStatusLabel3.Text = "Angemeldet:"; - // - // statusStripUser - // - this.statusStripUser.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Top | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.statusStripUser.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.statusStripUser.Name = "statusStripUser"; - this.statusStripUser.Size = new System.Drawing.Size(64, 24); - this.statusStripUser.Text = "SomeUser"; - // - // toolStripStatusLabel2 - // - this.toolStripStatusLabel2.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.toolStripStatusLabel2.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.toolStripStatusLabel2.DoubleClickEnabled = true; - this.toolStripStatusLabel2.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.toolStripStatusLabel2.Name = "toolStripStatusLabel2"; - this.toolStripStatusLabel2.Size = new System.Drawing.Size(71, 24); - this.toolStripStatusLabel2.Text = "Sortiment:"; - this.toolStripStatusLabel2.DoubleClick += new System.EventHandler(this.toolStripStatusLabel2_DoubleClick); - // - // statusStripSortiment - // - this.statusStripSortiment.BackColor = System.Drawing.SystemColors.Control; - this.statusStripSortiment.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Top | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.statusStripSortiment.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.statusStripSortiment.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.statusStripSortiment.DoubleClickEnabled = true; - this.statusStripSortiment.Image = global::Deckungsbeitrag.Properties.Resources.Checkmark_blue_16x; - this.statusStripSortiment.Name = "statusStripSortiment"; - this.statusStripSortiment.Size = new System.Drawing.Size(24, 24); - this.statusStripSortiment.DoubleClick += new System.EventHandler(this.toolStripStatusLabel2_DoubleClick); - // - // toolStripStatusLabel1 - // - this.toolStripStatusLabel1.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Left | System.Windows.Forms.ToolStripStatusLabelBorderSides.Top) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.toolStripStatusLabel1.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.toolStripStatusLabel1.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.toolStripStatusLabel1.Name = "toolStripStatusLabel1"; - this.toolStripStatusLabel1.Size = new System.Drawing.Size(49, 24); - this.toolStripStatusLabel1.Text = "Heute:"; - // - // statusStripDatum - // - this.statusStripDatum.BorderSides = ((System.Windows.Forms.ToolStripStatusLabelBorderSides)(((System.Windows.Forms.ToolStripStatusLabelBorderSides.Top | System.Windows.Forms.ToolStripStatusLabelBorderSides.Right) - | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); - this.statusStripDatum.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; - this.statusStripDatum.Name = "statusStripDatum"; - this.statusStripDatum.Size = new System.Drawing.Size(47, 24); - this.statusStripDatum.Text = "Datum"; - // - // buttonNeueAufgabe - // - this.buttonNeueAufgabe.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonNeueAufgabe.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonNeueAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNeueAufgabe.ForeColor = System.Drawing.Color.White; - this.buttonNeueAufgabe.Location = new System.Drawing.Point(2, 134); - this.buttonNeueAufgabe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonNeueAufgabe.Name = "buttonNeueAufgabe"; - this.buttonNeueAufgabe.Size = new System.Drawing.Size(309, 40); - this.buttonNeueAufgabe.TabIndex = 3; - this.buttonNeueAufgabe.Text = "Neue Aufgabe"; - this.buttonNeueAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonNeueAufgabe.UseVisualStyleBackColor = false; - this.buttonNeueAufgabe.Visible = false; - this.buttonNeueAufgabe.Click += new System.EventHandler(this.PanelButtons_Click); - // - // buttonNeuerAuftrag - // - this.buttonNeuerAuftrag.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNeuerAuftrag.ForeColor = System.Drawing.Color.White; - this.buttonNeuerAuftrag.Location = new System.Drawing.Point(2, 178); - this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; - this.buttonNeuerAuftrag.Size = new System.Drawing.Size(309, 40); - this.buttonNeuerAuftrag.TabIndex = 2; - this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; - this.buttonNeuerAuftrag.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; - this.buttonNeuerAuftrag.Click += new System.EventHandler(this.PanelButtons_Click); + this.toolStripBeenden.AutoSize = false; + this.toolStripBeenden.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.toolStripBeenden.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.toolStripBeenden.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.toolStripBeenden.ForeColor = System.Drawing.Color.White; + this.toolStripBeenden.Image = ((System.Drawing.Image)(resources.GetObject("toolStripBeenden.Image"))); + this.toolStripBeenden.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.toolStripBeenden.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; + this.toolStripBeenden.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripBeenden.Name = "toolStripBeenden"; + this.toolStripBeenden.Size = new System.Drawing.Size(180, 40); + this.toolStripBeenden.Text = "BEENDEN"; + this.toolStripBeenden.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.toolStripBeenden.Click += new System.EventHandler(this.toolStripBeenden_Click); + this.toolStripBeenden.MouseEnter += new System.EventHandler(this.toolStrip_MouseEnter); + this.toolStripBeenden.MouseLeave += new System.EventHandler(this.toolStrip_MouseLeave); + this.toolStripBeenden.Paint += new System.Windows.Forms.PaintEventHandler(this.get_Border_Paint); // // panelMain // - this.panelMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); this.panelMain.BackColor = System.Drawing.Color.White; - this.panelMain.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; - this.panelMain.Controls.Add(this.groupBoxNeueAufgabe); - this.panelMain.Controls.Add(this.groupBoxMaschine); - this.panelMain.Controls.Add(this.groupBoxWPr); - this.panelMain.Controls.Add(this.pictureBoxBenutzerClose); - this.panelMain.Controls.Add(this.groupBoxBenutzer); - this.panelMain.Controls.Add(this.listView1); - this.panelMain.Location = new System.Drawing.Point(479, 10); - this.panelMain.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.panelMain.Controls.Add(this.groupBoxStatistik); + this.panelMain.Controls.Add(this.groupBoxUpdate); + this.panelMain.Controls.Add(this.buttonNeuerAuftrag); + this.panelMain.Controls.Add(this.groupBoxAuftrag); + this.panelMain.Controls.Add(this.groupBoxScannTest); + this.panelMain.Dock = System.Windows.Forms.DockStyle.Right; + this.panelMain.Location = new System.Drawing.Point(218, 0); + this.panelMain.Margin = new System.Windows.Forms.Padding(2); this.panelMain.Name = "panelMain"; - this.panelMain.Size = new System.Drawing.Size(669, 649); + this.panelMain.Size = new System.Drawing.Size(938, 689); this.panelMain.TabIndex = 5; + this.panelMain.Paint += new System.Windows.Forms.PaintEventHandler(this.panelMain_Paint); // - // groupBoxNeueAufgabe + // groupBoxStatistik // - this.groupBoxNeueAufgabe.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.groupBoxNeueAufgabe.Controls.Add(this.buttonFarbe); - this.groupBoxNeueAufgabe.Controls.Add(this.label11); - this.groupBoxNeueAufgabe.Controls.Add(this.buttonAbbrechenAufgabe); - this.groupBoxNeueAufgabe.Controls.Add(this.comboBoxAufgabeKat); - this.groupBoxNeueAufgabe.Controls.Add(this.buttonSpeichernAufgabe); - this.groupBoxNeueAufgabe.Controls.Add(this.label2); - this.groupBoxNeueAufgabe.Controls.Add(this.label1); - this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBeschreibung); - this.groupBoxNeueAufgabe.Controls.Add(this.textBoxBezeichnung); - this.groupBoxNeueAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBoxNeueAufgabe.ForeColor = System.Drawing.Color.White; - this.groupBoxNeueAufgabe.Location = new System.Drawing.Point(2, 12); - this.groupBoxNeueAufgabe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxNeueAufgabe.Name = "groupBoxNeueAufgabe"; - this.groupBoxNeueAufgabe.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxNeueAufgabe.Size = new System.Drawing.Size(660, 81); - this.groupBoxNeueAufgabe.TabIndex = 31; - this.groupBoxNeueAufgabe.TabStop = false; - this.groupBoxNeueAufgabe.Text = "Neue Aufgabe"; - this.groupBoxNeueAufgabe.Visible = false; + this.groupBoxStatistik.Controls.Add(this.dateTimePicker1); + this.groupBoxStatistik.Controls.Add(this.tableLayoutPanelStatistik); + this.groupBoxStatistik.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.groupBoxStatistik.Location = new System.Drawing.Point(8, 321); + this.groupBoxStatistik.Name = "groupBoxStatistik"; + this.groupBoxStatistik.Size = new System.Drawing.Size(279, 197); + this.groupBoxStatistik.TabIndex = 61; + this.groupBoxStatistik.TabStop = false; + this.groupBoxStatistik.Text = "STATISTIK"; + this.groupBoxStatistik.Paint += new System.Windows.Forms.PaintEventHandler(this.groupBox_Paint); // - // buttonFarbe + // dateTimePicker1 // - this.buttonFarbe.FlatAppearance.BorderColor = System.Drawing.Color.White; - this.buttonFarbe.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.buttonFarbe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonFarbe.ForeColor = System.Drawing.Color.White; - this.buttonFarbe.Location = new System.Drawing.Point(496, 44); - this.buttonFarbe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonFarbe.Name = "buttonFarbe"; - this.buttonFarbe.Size = new System.Drawing.Size(72, 22); - this.buttonFarbe.TabIndex = 47; - this.buttonFarbe.Text = "Farbe"; - this.buttonFarbe.UseVisualStyleBackColor = true; - this.buttonFarbe.Click += new System.EventHandler(this.buttonFarbe_Click); + this.dateTimePicker1.CustomFormat = "dddd dd.MM.yyyy"; + this.dateTimePicker1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(10, 19); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(224, 26); + this.dateTimePicker1.TabIndex = 1; + this.dateTimePicker1.CloseUp += new System.EventHandler(this.dateTimePicker1_CloseUp); // - // label11 + // tableLayoutPanelStatistik // - this.label11.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label11.Location = new System.Drawing.Point(414, 28); - this.label11.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(52, 13); - this.label11.TabIndex = 46; - this.label11.Text = "Kategorie"; + this.tableLayoutPanelStatistik.ColumnCount = 2; + this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanelStatistik.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle()); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl6, 1, 5); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik6, 0, 5); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl5, 1, 4); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik5, 0, 4); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl4, 1, 3); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik4, 0, 3); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl3, 1, 2); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik3, 0, 2); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl2, 1, 1); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik2, 0, 1); + this.tableLayoutPanelStatistik.Controls.Add(this.labelZahl1, 1, 0); + this.tableLayoutPanelStatistik.Controls.Add(this.labelStatistik1, 0, 0); + this.tableLayoutPanelStatistik.Dock = System.Windows.Forms.DockStyle.Bottom; + this.tableLayoutPanelStatistik.Location = new System.Drawing.Point(3, 51); + this.tableLayoutPanelStatistik.Name = "tableLayoutPanelStatistik"; + this.tableLayoutPanelStatistik.RowCount = 6; + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanelStatistik.Size = new System.Drawing.Size(273, 143); + this.tableLayoutPanelStatistik.TabIndex = 0; + this.tableLayoutPanelStatistik.MouseDown += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseDown); + this.tableLayoutPanelStatistik.MouseMove += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseMove); + this.tableLayoutPanelStatistik.MouseUp += new System.Windows.Forms.MouseEventHandler(this.groupBox_MouseUp); // - // buttonAbbrechenAufgabe + // labelZahl6 // - this.buttonAbbrechenAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonAbbrechenAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAbbrechenAufgabe.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechenAufgabe.Image"))); - this.buttonAbbrechenAufgabe.Location = new System.Drawing.Point(622, 34); - this.buttonAbbrechenAufgabe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonAbbrechenAufgabe.Name = "buttonAbbrechenAufgabe"; - this.buttonAbbrechenAufgabe.Size = new System.Drawing.Size(30, 32); - this.buttonAbbrechenAufgabe.TabIndex = 41; - this.buttonAbbrechenAufgabe.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonAbbrechenAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonAbbrechenAufgabe.UseVisualStyleBackColor = true; - this.buttonAbbrechenAufgabe.Click += new System.EventHandler(this.buttonAbbrechen_Click); + this.labelZahl6.AutoSize = true; + this.labelZahl6.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl6.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl6.Location = new System.Drawing.Point(99, 115); + this.labelZahl6.Name = "labelZahl6"; + this.labelZahl6.Size = new System.Drawing.Size(53, 28); + this.labelZahl6.TabIndex = 11; + this.labelZahl6.Text = "Zahl 6"; + this.labelZahl6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // comboBoxAufgabeKat + // labelStatistik6 // - this.comboBoxAufgabeKat.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.comboBoxAufgabeKat.FormattingEnabled = true; - this.comboBoxAufgabeKat.Location = new System.Drawing.Point(386, 44); - this.comboBoxAufgabeKat.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.comboBoxAufgabeKat.Name = "comboBoxAufgabeKat"; - this.comboBoxAufgabeKat.Size = new System.Drawing.Size(106, 25); - this.comboBoxAufgabeKat.TabIndex = 45; - this.comboBoxAufgabeKat.SelectedValueChanged += new System.EventHandler(this.comboBoxAufgabeKat_SelectedValueChanged); + this.labelStatistik6.AutoSize = true; + this.labelStatistik6.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik6.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik6.Location = new System.Drawing.Point(3, 115); + this.labelStatistik6.Name = "labelStatistik6"; + this.labelStatistik6.Size = new System.Drawing.Size(90, 28); + this.labelStatistik6.TabIndex = 10; + this.labelStatistik6.Text = "Statistik 6"; + this.labelStatistik6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // buttonSpeichernAufgabe + // labelZahl5 // - this.buttonSpeichernAufgabe.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonSpeichernAufgabe.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSpeichernAufgabe.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichernAufgabe.Image"))); - this.buttonSpeichernAufgabe.Location = new System.Drawing.Point(587, 34); - this.buttonSpeichernAufgabe.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonSpeichernAufgabe.Name = "buttonSpeichernAufgabe"; - this.buttonSpeichernAufgabe.Size = new System.Drawing.Size(30, 32); - this.buttonSpeichernAufgabe.TabIndex = 40; - this.buttonSpeichernAufgabe.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonSpeichernAufgabe.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonSpeichernAufgabe.UseVisualStyleBackColor = true; - this.buttonSpeichernAufgabe.Click += new System.EventHandler(this.groupBoxButtonSpeichern_CLick); + this.labelZahl5.AutoSize = true; + this.labelZahl5.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl5.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl5.Location = new System.Drawing.Point(99, 92); + this.labelZahl5.Name = "labelZahl5"; + this.labelZahl5.Size = new System.Drawing.Size(53, 23); + this.labelZahl5.TabIndex = 9; + this.labelZahl5.Text = "Zahl 5"; + this.labelZahl5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label2 + // labelStatistik5 // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.Location = new System.Drawing.Point(108, 28); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(72, 13); - this.label2.TabIndex = 23; - this.label2.Text = "Beschreibung"; + this.labelStatistik5.AutoSize = true; + this.labelStatistik5.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik5.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik5.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik5.Location = new System.Drawing.Point(3, 92); + this.labelStatistik5.Name = "labelStatistik5"; + this.labelStatistik5.Size = new System.Drawing.Size(90, 23); + this.labelStatistik5.TabIndex = 8; + this.labelStatistik5.Text = "Statistik 5"; + this.labelStatistik5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label1 + // labelZahl4 // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(6, 28); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(47, 13); - this.label1.TabIndex = 22; - this.label1.Text = "Aufgabe"; + this.labelZahl4.AutoSize = true; + this.labelZahl4.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl4.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl4.Location = new System.Drawing.Point(99, 69); + this.labelZahl4.Name = "labelZahl4"; + this.labelZahl4.Size = new System.Drawing.Size(53, 23); + this.labelZahl4.TabIndex = 7; + this.labelZahl4.Text = "Zahl 4"; + this.labelZahl4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // textBoxBeschreibung + // labelStatistik4 // - this.textBoxBeschreibung.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxBeschreibung.Location = new System.Drawing.Point(110, 45); - this.textBoxBeschreibung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxBeschreibung.Name = "textBoxBeschreibung"; - this.textBoxBeschreibung.Size = new System.Drawing.Size(272, 23); - this.textBoxBeschreibung.TabIndex = 19; + this.labelStatistik4.AutoSize = true; + this.labelStatistik4.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik4.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik4.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik4.Location = new System.Drawing.Point(3, 69); + this.labelStatistik4.Name = "labelStatistik4"; + this.labelStatistik4.Size = new System.Drawing.Size(90, 23); + this.labelStatistik4.TabIndex = 6; + this.labelStatistik4.Text = "Statistik 4"; + this.labelStatistik4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // textBoxBezeichnung + // labelZahl3 // - this.textBoxBezeichnung.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Append; - this.textBoxBezeichnung.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.CustomSource; - this.textBoxBezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxBezeichnung.Location = new System.Drawing.Point(8, 45); - this.textBoxBezeichnung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxBezeichnung.Name = "textBoxBezeichnung"; - this.textBoxBezeichnung.Size = new System.Drawing.Size(98, 23); - this.textBoxBezeichnung.TabIndex = 18; - this.textBoxBezeichnung.Leave += new System.EventHandler(this.textBoxBezeichnung_Leave); + this.labelZahl3.AutoSize = true; + this.labelZahl3.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl3.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl3.Location = new System.Drawing.Point(99, 46); + this.labelZahl3.Name = "labelZahl3"; + this.labelZahl3.Size = new System.Drawing.Size(53, 23); + this.labelZahl3.TabIndex = 5; + this.labelZahl3.Text = "Zahl 3"; + this.labelZahl3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // groupBoxMaschine + // labelStatistik3 // - this.groupBoxMaschine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.groupBoxMaschine.Controls.Add(this.listViewMaschine); - this.groupBoxMaschine.Controls.Add(this.numUpDownFaecher); - this.groupBoxMaschine.Controls.Add(this.label10); - this.groupBoxMaschine.Controls.Add(this.textBoxMaschBezeich); - this.groupBoxMaschine.Controls.Add(this.label9); - this.groupBoxMaschine.Controls.Add(this.buttonMaAbbrechen); - this.groupBoxMaschine.Controls.Add(this.buttonMaSpeichern); - this.groupBoxMaschine.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBoxMaschine.ForeColor = System.Drawing.Color.White; - this.groupBoxMaschine.Location = new System.Drawing.Point(32, 257); - this.groupBoxMaschine.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxMaschine.Name = "groupBoxMaschine"; - this.groupBoxMaschine.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxMaschine.Size = new System.Drawing.Size(345, 285); - this.groupBoxMaschine.TabIndex = 42; - this.groupBoxMaschine.TabStop = false; - this.groupBoxMaschine.Text = "Maschinenverwaltung"; - this.groupBoxMaschine.Visible = false; - this.groupBoxMaschine.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.buttonNeueMaschine_HelpRequested); + this.labelStatistik3.AutoSize = true; + this.labelStatistik3.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik3.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik3.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik3.Location = new System.Drawing.Point(3, 46); + this.labelStatistik3.Name = "labelStatistik3"; + this.labelStatistik3.Size = new System.Drawing.Size(90, 23); + this.labelStatistik3.TabIndex = 4; + this.labelStatistik3.Text = "Statistik 3"; + this.labelStatistik3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // listViewMaschine + // labelZahl2 // - this.listViewMaschine.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.listViewMaschine.FullRowSelect = true; - this.listViewMaschine.GridLines = true; - this.listViewMaschine.HideSelection = false; - this.listViewMaschine.Location = new System.Drawing.Point(12, 24); - this.listViewMaschine.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.listViewMaschine.Name = "listViewMaschine"; - this.listViewMaschine.Size = new System.Drawing.Size(326, 196); - this.listViewMaschine.TabIndex = 46; - this.listViewMaschine.UseCompatibleStateImageBehavior = false; - this.listViewMaschine.View = System.Windows.Forms.View.Details; - this.listViewMaschine.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listViewMaschine_MouseDoubleClick); + this.labelZahl2.AutoSize = true; + this.labelZahl2.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl2.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl2.Location = new System.Drawing.Point(99, 23); + this.labelZahl2.Name = "labelZahl2"; + this.labelZahl2.Size = new System.Drawing.Size(53, 23); + this.labelZahl2.TabIndex = 3; + this.labelZahl2.Text = "Zahl 2"; + this.labelZahl2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // numUpDownFaecher + // labelStatistik2 // - this.numUpDownFaecher.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.numUpDownFaecher.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.numUpDownFaecher.Location = new System.Drawing.Point(156, 249); - this.numUpDownFaecher.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.numUpDownFaecher.Name = "numUpDownFaecher"; - this.numUpDownFaecher.Size = new System.Drawing.Size(53, 23); - this.numUpDownFaecher.TabIndex = 45; + this.labelStatistik2.AutoSize = true; + this.labelStatistik2.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik2.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik2.Location = new System.Drawing.Point(3, 23); + this.labelStatistik2.Name = "labelStatistik2"; + this.labelStatistik2.Size = new System.Drawing.Size(90, 23); + this.labelStatistik2.TabIndex = 2; + this.labelStatistik2.Text = "Statistik 2"; + this.labelStatistik2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label10 + // labelZahl1 // - this.label10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label10.Location = new System.Drawing.Point(154, 232); - this.label10.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(40, 13); - this.label10.TabIndex = 44; - this.label10.Text = "Fächer"; + this.labelZahl1.AutoSize = true; + this.labelZahl1.Dock = System.Windows.Forms.DockStyle.Left; + this.labelZahl1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelZahl1.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelZahl1.Location = new System.Drawing.Point(99, 0); + this.labelZahl1.Name = "labelZahl1"; + this.labelZahl1.Size = new System.Drawing.Size(53, 23); + this.labelZahl1.TabIndex = 1; + this.labelZahl1.Text = "Zahl 1"; + this.labelZahl1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // textBoxMaschBezeich + // labelStatistik1 // - this.textBoxMaschBezeich.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.textBoxMaschBezeich.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxMaschBezeich.Location = new System.Drawing.Point(12, 249); - this.textBoxMaschBezeich.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxMaschBezeich.Name = "textBoxMaschBezeich"; - this.textBoxMaschBezeich.Size = new System.Drawing.Size(120, 23); - this.textBoxMaschBezeich.TabIndex = 43; + this.labelStatistik1.AutoSize = true; + this.labelStatistik1.Dock = System.Windows.Forms.DockStyle.Left; + this.labelStatistik1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelStatistik1.ForeColor = System.Drawing.SystemColors.ControlText; + this.labelStatistik1.Location = new System.Drawing.Point(3, 0); + this.labelStatistik1.Name = "labelStatistik1"; + this.labelStatistik1.Size = new System.Drawing.Size(90, 23); + this.labelStatistik1.TabIndex = 0; + this.labelStatistik1.Text = "Statistik 1"; + this.labelStatistik1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // label9 + // groupBoxUpdate // - this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label9.Location = new System.Drawing.Point(10, 232); - this.label9.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(69, 13); - this.label9.TabIndex = 42; - this.label9.Text = "Bezeichnung"; + this.groupBoxUpdate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); + this.groupBoxUpdate.Controls.Add(this.tableLayoutPanelUpdate); + this.groupBoxUpdate.Location = new System.Drawing.Point(8, 573); + this.groupBoxUpdate.Name = "groupBoxUpdate"; + this.groupBoxUpdate.Size = new System.Drawing.Size(573, 110); + this.groupBoxUpdate.TabIndex = 60; + this.groupBoxUpdate.TabStop = false; + this.groupBoxUpdate.Text = "UPDATE"; // - // buttonMaAbbrechen + // tableLayoutPanelUpdate // - this.buttonMaAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonMaAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonMaAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonMaAbbrechen.Image"))); - this.buttonMaAbbrechen.Location = new System.Drawing.Point(307, 238); - this.buttonMaAbbrechen.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonMaAbbrechen.Name = "buttonMaAbbrechen"; - this.buttonMaAbbrechen.Size = new System.Drawing.Size(30, 32); - this.buttonMaAbbrechen.TabIndex = 41; - this.buttonMaAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonMaAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonMaAbbrechen.UseVisualStyleBackColor = true; - this.buttonMaAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); + this.tableLayoutPanelUpdate.ColumnCount = 2; + this.tableLayoutPanelUpdate.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanelUpdate.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 75F)); + this.tableLayoutPanelUpdate.Controls.Add(this.progressBarSortiment, 1, 1); + this.tableLayoutPanelUpdate.Controls.Add(this.buttonSortimentUpdate, 0, 1); + this.tableLayoutPanelUpdate.Controls.Add(this.buttonArtikelUpdate, 0, 0); + this.tableLayoutPanelUpdate.Controls.Add(this.progressBarArtikel, 1, 0); + this.tableLayoutPanelUpdate.Controls.Add(this.buttonAllUpdate, 0, 2); + this.tableLayoutPanelUpdate.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanelUpdate.Location = new System.Drawing.Point(3, 16); + this.tableLayoutPanelUpdate.Name = "tableLayoutPanelUpdate"; + this.tableLayoutPanelUpdate.RowCount = 3; + this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.tableLayoutPanelUpdate.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33333F)); + this.tableLayoutPanelUpdate.Size = new System.Drawing.Size(567, 91); + this.tableLayoutPanelUpdate.TabIndex = 0; // - // buttonMaSpeichern + // progressBarSortiment // - this.buttonMaSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonMaSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonMaSpeichern.Image = ((System.Drawing.Image)(resources.GetObject("buttonMaSpeichern.Image"))); - this.buttonMaSpeichern.Location = new System.Drawing.Point(272, 238); - this.buttonMaSpeichern.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonMaSpeichern.Name = "buttonMaSpeichern"; - this.buttonMaSpeichern.Size = new System.Drawing.Size(30, 32); - this.buttonMaSpeichern.TabIndex = 40; - this.buttonMaSpeichern.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonMaSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonMaSpeichern.UseVisualStyleBackColor = true; - this.buttonMaSpeichern.Click += new System.EventHandler(this.groupBoxButtonSpeichern_CLick); + this.progressBarSortiment.Dock = System.Windows.Forms.DockStyle.Left; + this.progressBarSortiment.Location = new System.Drawing.Point(144, 33); + this.progressBarSortiment.Name = "progressBarSortiment"; + this.progressBarSortiment.Size = new System.Drawing.Size(420, 24); + this.progressBarSortiment.TabIndex = 62; // - // groupBoxWPr + // buttonSortimentUpdate // - this.groupBoxWPr.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.groupBoxWPr.Controls.Add(this.listViewProg); - this.groupBoxWPr.Controls.Add(this.numericUpDownWPr); - this.groupBoxWPr.Controls.Add(this.label12); - this.groupBoxWPr.Controls.Add(this.textBoxWPrBezeichnung); - this.groupBoxWPr.Controls.Add(this.label13); - this.groupBoxWPr.Controls.Add(this.buttonWPrAbbrechen); - this.groupBoxWPr.Controls.Add(this.buttonWPrSpeichern); - this.groupBoxWPr.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBoxWPr.ForeColor = System.Drawing.Color.White; - this.groupBoxWPr.Location = new System.Drawing.Point(37, 2); - this.groupBoxWPr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxWPr.Name = "groupBoxWPr"; - this.groupBoxWPr.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxWPr.Size = new System.Drawing.Size(345, 285); - this.groupBoxWPr.TabIndex = 47; - this.groupBoxWPr.TabStop = false; - this.groupBoxWPr.Text = "Waschprogramme"; - this.groupBoxWPr.Visible = false; + this.buttonSortimentUpdate.BackColor = System.Drawing.Color.White; + this.buttonSortimentUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonSortimentUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonSortimentUpdate.Location = new System.Drawing.Point(2, 32); + this.buttonSortimentUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonSortimentUpdate.Name = "buttonSortimentUpdate"; + this.buttonSortimentUpdate.Size = new System.Drawing.Size(137, 26); + this.buttonSortimentUpdate.TabIndex = 61; + this.buttonSortimentUpdate.Text = "Sortiment-Update"; + this.buttonSortimentUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonSortimentUpdate.UseVisualStyleBackColor = false; + this.buttonSortimentUpdate.Click += new System.EventHandler(this.buttonSortimentUpdate_Click); // - // listViewProg + // buttonArtikelUpdate // - this.listViewProg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + this.buttonArtikelUpdate.BackColor = System.Drawing.Color.White; + this.buttonArtikelUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonArtikelUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonArtikelUpdate.Location = new System.Drawing.Point(2, 2); + this.buttonArtikelUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonArtikelUpdate.Name = "buttonArtikelUpdate"; + this.buttonArtikelUpdate.Size = new System.Drawing.Size(137, 26); + this.buttonArtikelUpdate.TabIndex = 59; + this.buttonArtikelUpdate.Text = "Artikel-Update"; + this.buttonArtikelUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonArtikelUpdate.UseVisualStyleBackColor = false; + this.buttonArtikelUpdate.Click += new System.EventHandler(this.buttonArtikelUpdate_Click); + // + // progressBarArtikel + // + this.progressBarArtikel.Dock = System.Windows.Forms.DockStyle.Left; + this.progressBarArtikel.Location = new System.Drawing.Point(144, 3); + this.progressBarArtikel.Name = "progressBarArtikel"; + this.progressBarArtikel.Size = new System.Drawing.Size(420, 24); + this.progressBarArtikel.TabIndex = 58; + // + // buttonAllUpdate + // + this.buttonAllUpdate.BackColor = System.Drawing.Color.White; + this.buttonAllUpdate.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAllUpdate.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonAllUpdate.Location = new System.Drawing.Point(2, 62); + this.buttonAllUpdate.Margin = new System.Windows.Forms.Padding(2); + this.buttonAllUpdate.Name = "buttonAllUpdate"; + this.buttonAllUpdate.Size = new System.Drawing.Size(137, 27); + this.buttonAllUpdate.TabIndex = 60; + this.buttonAllUpdate.Text = "Alle-Updates starten"; + this.buttonAllUpdate.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonAllUpdate.UseVisualStyleBackColor = false; + this.buttonAllUpdate.Click += new System.EventHandler(this.buttonAllUpdate_Click); + // + // buttonNeuerAuftrag + // + this.buttonNeuerAuftrag.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonNeuerAuftrag.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonNeuerAuftrag.FlatAppearance.BorderSize = 0; + this.buttonNeuerAuftrag.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonNeuerAuftrag.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonNeuerAuftrag.ForeColor = System.Drawing.Color.White; + this.buttonNeuerAuftrag.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonNeuerAuftrag.Location = new System.Drawing.Point(8, 9); + this.buttonNeuerAuftrag.Margin = new System.Windows.Forms.Padding(2); + this.buttonNeuerAuftrag.Name = "buttonNeuerAuftrag"; + this.buttonNeuerAuftrag.Size = new System.Drawing.Size(169, 52); + this.buttonNeuerAuftrag.TabIndex = 56; + this.buttonNeuerAuftrag.Text = "Neuer Auftrag"; + this.buttonNeuerAuftrag.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonNeuerAuftrag.UseVisualStyleBackColor = false; + this.buttonNeuerAuftrag.Click += new System.EventHandler(this.buttonNeuerAuftrag_Click); + // + // groupBoxAuftrag + // + this.groupBoxAuftrag.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); - this.listViewProg.FullRowSelect = true; - this.listViewProg.GridLines = true; - this.listViewProg.HideSelection = false; - this.listViewProg.Location = new System.Drawing.Point(12, 24); - this.listViewProg.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.listViewProg.Name = "listViewProg"; - this.listViewProg.Size = new System.Drawing.Size(326, 197); - this.listViewProg.TabIndex = 46; - this.listViewProg.UseCompatibleStateImageBehavior = false; - this.listViewProg.View = System.Windows.Forms.View.Details; + this.groupBoxAuftrag.Controls.Add(this.objectListViewAuftrag); + this.groupBoxAuftrag.Controls.Add(this.rBAufAbruf); + this.groupBoxAuftrag.Controls.Add(this.rBAusgeliefert); + this.groupBoxAuftrag.Controls.Add(this.rBFertig); + this.groupBoxAuftrag.Controls.Add(this.rBVorbereitet); + this.groupBoxAuftrag.Controls.Add(this.rBAlle); + this.groupBoxAuftrag.Controls.Add(this.buttonAufAbruf); + this.groupBoxAuftrag.Controls.Add(this.buttonAusgeliefert); + this.groupBoxAuftrag.Location = new System.Drawing.Point(447, 23); + this.groupBoxAuftrag.Name = "groupBoxAuftrag"; + this.groupBoxAuftrag.Size = new System.Drawing.Size(663, 479); + this.groupBoxAuftrag.TabIndex = 51; + this.groupBoxAuftrag.TabStop = false; + this.groupBoxAuftrag.Visible = false; // - // numericUpDownWPr + // objectListViewAuftrag // - this.numericUpDownWPr.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.numericUpDownWPr.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.numericUpDownWPr.Location = new System.Drawing.Point(12, 248); - this.numericUpDownWPr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.numericUpDownWPr.Name = "numericUpDownWPr"; - this.numericUpDownWPr.Size = new System.Drawing.Size(53, 23); - this.numericUpDownWPr.TabIndex = 45; - this.numericUpDownWPr.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.objectListViewAuftrag.AlternateRowBackColor = System.Drawing.Color.LightSteelBlue; + this.objectListViewAuftrag.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.objectListViewAuftrag.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.objectListViewAuftrag.CellEditUseWholeCell = false; + this.objectListViewAuftrag.CheckBoxes = true; + this.objectListViewAuftrag.Cursor = System.Windows.Forms.Cursors.Default; + this.objectListViewAuftrag.FullRowSelect = true; + this.objectListViewAuftrag.GridLines = true; + this.objectListViewAuftrag.HideSelection = false; + this.objectListViewAuftrag.Location = new System.Drawing.Point(165, 14); + this.objectListViewAuftrag.Name = "objectListViewAuftrag"; + this.objectListViewAuftrag.Size = new System.Drawing.Size(492, 459); + this.objectListViewAuftrag.TabIndex = 58; + this.objectListViewAuftrag.UseAlternatingBackColors = true; + this.objectListViewAuftrag.UseCompatibleStateImageBehavior = false; + this.objectListViewAuftrag.View = System.Windows.Forms.View.Details; + this.objectListViewAuftrag.ItemChecked += new System.Windows.Forms.ItemCheckedEventHandler(this.objectListViewAuftrag_ItemChecked); // - // label12 + // rBAufAbruf // - this.label12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label12.AutoSize = true; - this.label12.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label12.Location = new System.Drawing.Point(10, 232); - this.label12.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(21, 13); - this.label12.TabIndex = 44; - this.label12.Text = "Nr."; + this.rBAufAbruf.AutoSize = true; + this.rBAufAbruf.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.rBAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBAufAbruf.Location = new System.Drawing.Point(44, 136); + this.rBAufAbruf.Name = "rBAufAbruf"; + this.rBAufAbruf.Size = new System.Drawing.Size(95, 24); + this.rBAufAbruf.TabIndex = 57; + this.rBAufAbruf.TabStop = true; + this.rBAufAbruf.Text = "Auf Abruf"; + this.rBAufAbruf.UseVisualStyleBackColor = true; + this.rBAufAbruf.Visible = false; + this.rBAufAbruf.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged); // - // textBoxWPrBezeichnung + // rBAusgeliefert // - this.textBoxWPrBezeichnung.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.textBoxWPrBezeichnung.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxWPrBezeichnung.Location = new System.Drawing.Point(70, 247); - this.textBoxWPrBezeichnung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxWPrBezeichnung.Name = "textBoxWPrBezeichnung"; - this.textBoxWPrBezeichnung.Size = new System.Drawing.Size(199, 23); - this.textBoxWPrBezeichnung.TabIndex = 43; + this.rBAusgeliefert.AutoSize = true; + this.rBAusgeliefert.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.rBAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBAusgeliefert.Location = new System.Drawing.Point(27, 106); + this.rBAusgeliefert.Name = "rBAusgeliefert"; + this.rBAusgeliefert.Size = new System.Drawing.Size(112, 24); + this.rBAusgeliefert.TabIndex = 54; + this.rBAusgeliefert.TabStop = true; + this.rBAusgeliefert.Text = "Ausgeliefert"; + this.rBAusgeliefert.UseVisualStyleBackColor = true; + this.rBAusgeliefert.Visible = false; + this.rBAusgeliefert.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged); // - // label13 + // rBFertig // - this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.label13.AutoSize = true; - this.label13.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label13.Location = new System.Drawing.Point(68, 231); - this.label13.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(69, 13); - this.label13.TabIndex = 42; - this.label13.Text = "Bezeichnung"; + this.rBFertig.AutoSize = true; + this.rBFertig.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.rBFertig.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBFertig.Location = new System.Drawing.Point(71, 76); + this.rBFertig.Name = "rBFertig"; + this.rBFertig.Size = new System.Drawing.Size(68, 24); + this.rBFertig.TabIndex = 53; + this.rBFertig.TabStop = true; + this.rBFertig.Text = "Fertig"; + this.rBFertig.UseVisualStyleBackColor = true; + this.rBFertig.Visible = false; + this.rBFertig.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged); // - // buttonWPrAbbrechen + // rBVorbereitet // - this.buttonWPrAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonWPrAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonWPrAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonWPrAbbrechen.Image"))); - this.buttonWPrAbbrechen.Location = new System.Drawing.Point(307, 238); - this.buttonWPrAbbrechen.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonWPrAbbrechen.Name = "buttonWPrAbbrechen"; - this.buttonWPrAbbrechen.Size = new System.Drawing.Size(30, 32); - this.buttonWPrAbbrechen.TabIndex = 41; - this.buttonWPrAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonWPrAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonWPrAbbrechen.UseVisualStyleBackColor = true; - this.buttonWPrAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); + this.rBVorbereitet.AutoSize = true; + this.rBVorbereitet.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.rBVorbereitet.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBVorbereitet.Location = new System.Drawing.Point(33, 46); + this.rBVorbereitet.Name = "rBVorbereitet"; + this.rBVorbereitet.Size = new System.Drawing.Size(106, 24); + this.rBVorbereitet.TabIndex = 52; + this.rBVorbereitet.TabStop = true; + this.rBVorbereitet.Text = "Vorbereitet"; + this.rBVorbereitet.UseVisualStyleBackColor = true; + this.rBVorbereitet.Visible = false; + this.rBVorbereitet.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged); // - // buttonWPrSpeichern + // rBAlle // - this.buttonWPrSpeichern.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonWPrSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonWPrSpeichern.Image = ((System.Drawing.Image)(resources.GetObject("buttonWPrSpeichern.Image"))); - this.buttonWPrSpeichern.Location = new System.Drawing.Point(272, 238); - this.buttonWPrSpeichern.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonWPrSpeichern.Name = "buttonWPrSpeichern"; - this.buttonWPrSpeichern.Size = new System.Drawing.Size(30, 32); - this.buttonWPrSpeichern.TabIndex = 40; - this.buttonWPrSpeichern.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonWPrSpeichern.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonWPrSpeichern.UseVisualStyleBackColor = true; - this.buttonWPrSpeichern.Click += new System.EventHandler(this.groupBoxButtonSpeichern_CLick); + this.rBAlle.AutoSize = true; + this.rBAlle.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.rBAlle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.rBAlle.Location = new System.Drawing.Point(86, 16); + this.rBAlle.Name = "rBAlle"; + this.rBAlle.Size = new System.Drawing.Size(53, 24); + this.rBAlle.TabIndex = 51; + this.rBAlle.TabStop = true; + this.rBAlle.Text = "Alle"; + this.rBAlle.UseVisualStyleBackColor = true; + this.rBAlle.Visible = false; + this.rBAlle.CheckedChanged += new System.EventHandler(this.RadioButton_CheckedChanged); // - // pictureBoxBenutzerClose + // buttonAufAbruf // - this.pictureBoxBenutzerClose.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxBenutzerClose.Image"))); - this.pictureBoxBenutzerClose.Location = new System.Drawing.Point(553, 280); - this.pictureBoxBenutzerClose.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.pictureBoxBenutzerClose.Name = "pictureBoxBenutzerClose"; - this.pictureBoxBenutzerClose.Size = new System.Drawing.Size(19, 20); - this.pictureBoxBenutzerClose.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBoxBenutzerClose.TabIndex = 34; - this.pictureBoxBenutzerClose.TabStop = false; - this.pictureBoxBenutzerClose.Visible = false; - this.pictureBoxBenutzerClose.Click += new System.EventHandler(this.pictureBoxBenutzerClose_Click); + this.buttonAufAbruf.BackColor = System.Drawing.Color.Red; + this.buttonAufAbruf.FlatAppearance.BorderColor = System.Drawing.Color.Red; + this.buttonAufAbruf.FlatAppearance.BorderSize = 0; + this.buttonAufAbruf.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonAufAbruf.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAufAbruf.ForeColor = System.Drawing.Color.White; + this.buttonAufAbruf.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonAufAbruf.Location = new System.Drawing.Point(10, 215); + this.buttonAufAbruf.Margin = new System.Windows.Forms.Padding(2); + this.buttonAufAbruf.Name = "buttonAufAbruf"; + this.buttonAufAbruf.Size = new System.Drawing.Size(150, 41); + this.buttonAufAbruf.TabIndex = 56; + this.buttonAufAbruf.Text = "AufAbruf"; + this.buttonAufAbruf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonAufAbruf.UseVisualStyleBackColor = false; + this.buttonAufAbruf.Visible = false; + this.buttonAufAbruf.Click += new System.EventHandler(this.buttonAufAbruf_Click); // - // groupBoxBenutzer + // buttonAusgeliefert // - this.groupBoxBenutzer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); - this.groupBoxBenutzer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.groupBoxBenutzer.Controls.Add(this.label8); - this.groupBoxBenutzer.Controls.Add(this.comboBoxRolle); - this.groupBoxBenutzer.Controls.Add(this.checkBoxAktiv); - this.groupBoxBenutzer.Controls.Add(this.label7); - this.groupBoxBenutzer.Controls.Add(this.textBoxBenutzername); - this.groupBoxBenutzer.Controls.Add(this.buttonAbbrechen); - this.groupBoxBenutzer.Controls.Add(this.buttonSpeichernFahrer); - this.groupBoxBenutzer.Controls.Add(this.label6); - this.groupBoxBenutzer.Controls.Add(this.label5); - this.groupBoxBenutzer.Controls.Add(this.label4); - this.groupBoxBenutzer.Controls.Add(this.label3); - this.groupBoxBenutzer.Controls.Add(this.dTPGueltigBis); - this.groupBoxBenutzer.Controls.Add(this.textBoxSchein); - this.groupBoxBenutzer.Controls.Add(this.textBoxNachname); - this.groupBoxBenutzer.Controls.Add(this.textBoxVorname); - this.groupBoxBenutzer.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.groupBoxBenutzer.ForeColor = System.Drawing.Color.White; - this.groupBoxBenutzer.Location = new System.Drawing.Point(10, 123); - this.groupBoxBenutzer.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxBenutzer.Name = "groupBoxBenutzer"; - this.groupBoxBenutzer.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.groupBoxBenutzer.Size = new System.Drawing.Size(561, 146); - this.groupBoxBenutzer.TabIndex = 30; - this.groupBoxBenutzer.TabStop = false; - this.groupBoxBenutzer.Text = "Neuer Benutzer"; - this.groupBoxBenutzer.Visible = false; + this.buttonAusgeliefert.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonAusgeliefert.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); + this.buttonAusgeliefert.FlatAppearance.BorderSize = 0; + this.buttonAusgeliefert.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.buttonAusgeliefert.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonAusgeliefert.ForeColor = System.Drawing.Color.White; + this.buttonAusgeliefert.ImageAlign = System.Drawing.ContentAlignment.MiddleRight; + this.buttonAusgeliefert.Location = new System.Drawing.Point(10, 170); + this.buttonAusgeliefert.Margin = new System.Windows.Forms.Padding(2); + this.buttonAusgeliefert.Name = "buttonAusgeliefert"; + this.buttonAusgeliefert.Size = new System.Drawing.Size(150, 41); + this.buttonAusgeliefert.TabIndex = 55; + this.buttonAusgeliefert.Text = "Ausgeliefert"; + this.buttonAusgeliefert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.buttonAusgeliefert.UseVisualStyleBackColor = false; + this.buttonAusgeliefert.Visible = false; + this.buttonAusgeliefert.Click += new System.EventHandler(this.buttonAusgeliefert_Click); // - // label8 + // groupBoxScannTest // - this.label8.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label8.AutoSize = true; - this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label8.Location = new System.Drawing.Point(338, 29); - this.label8.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label8.Name = "label8"; - this.label8.Size = new System.Drawing.Size(76, 13); - this.label8.TabIndex = 44; - this.label8.Text = "Benutzer Rolle"; + this.groupBoxScannTest.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.groupBoxScannTest.Controls.Add(this.pictureBoxScannTest); + this.groupBoxScannTest.Controls.Add(this.textBoxScannTest); + this.groupBoxScannTest.Controls.Add(this.buttonScannTest); + this.groupBoxScannTest.Controls.Add(this.labelScannTest); + this.groupBoxScannTest.Location = new System.Drawing.Point(746, 223); + this.groupBoxScannTest.Name = "groupBoxScannTest"; + this.groupBoxScannTest.Size = new System.Drawing.Size(932, 264); + this.groupBoxScannTest.TabIndex = 50; + this.groupBoxScannTest.TabStop = false; + this.groupBoxScannTest.Visible = false; // - // comboBoxRolle + // pictureBoxScannTest // - this.comboBoxRolle.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.comboBoxRolle.FormattingEnabled = true; - this.comboBoxRolle.Location = new System.Drawing.Point(340, 45); - this.comboBoxRolle.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.comboBoxRolle.Name = "comboBoxRolle"; - this.comboBoxRolle.Size = new System.Drawing.Size(92, 25); - this.comboBoxRolle.TabIndex = 43; - this.comboBoxRolle.SelectedValueChanged += new System.EventHandler(this.comboBoxRolle_SelectedValueChanged); + this.pictureBoxScannTest.Location = new System.Drawing.Point(6, 10); + this.pictureBoxScannTest.Name = "pictureBoxScannTest"; + this.pictureBoxScannTest.Size = new System.Drawing.Size(179, 160); + this.pictureBoxScannTest.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBoxScannTest.TabIndex = 14; + this.pictureBoxScannTest.TabStop = false; + this.pictureBoxScannTest.Visible = false; // - // checkBoxAktiv + // textBoxScannTest // - this.checkBoxAktiv.AutoSize = true; - this.checkBoxAktiv.CheckAlign = System.Drawing.ContentAlignment.BottomCenter; - this.checkBoxAktiv.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBoxAktiv.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; - this.checkBoxAktiv.Location = new System.Drawing.Point(444, 29); - this.checkBoxAktiv.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.checkBoxAktiv.Name = "checkBoxAktiv"; - this.checkBoxAktiv.Size = new System.Drawing.Size(35, 31); - this.checkBoxAktiv.TabIndex = 42; - this.checkBoxAktiv.Text = "Aktiv"; - this.checkBoxAktiv.TextAlign = System.Drawing.ContentAlignment.TopCenter; - this.checkBoxAktiv.UseVisualStyleBackColor = true; + this.textBoxScannTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxScannTest.Location = new System.Drawing.Point(6, 176); + this.textBoxScannTest.Name = "textBoxScannTest"; + this.textBoxScannTest.Size = new System.Drawing.Size(129, 26); + this.textBoxScannTest.TabIndex = 13; + this.textBoxScannTest.Visible = false; + this.textBoxScannTest.TextChanged += new System.EventHandler(this.textBoxScannTest_TextChanged); // - // label7 + // buttonScannTest // - this.label7.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label7.Location = new System.Drawing.Point(209, 29); - this.label7.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(75, 13); - this.label7.TabIndex = 41; - this.label7.Text = "Benutzername"; + this.buttonScannTest.Location = new System.Drawing.Point(6, 208); + this.buttonScannTest.Name = "buttonScannTest"; + this.buttonScannTest.Size = new System.Drawing.Size(75, 23); + this.buttonScannTest.TabIndex = 12; + this.buttonScannTest.Text = "Test starten"; + this.buttonScannTest.UseVisualStyleBackColor = true; + this.buttonScannTest.Visible = false; + this.buttonScannTest.Click += new System.EventHandler(this.buttonScannTest_Click); // - // textBoxBenutzername + // labelScannTest // - this.textBoxBenutzername.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.textBoxBenutzername.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxBenutzername.Location = new System.Drawing.Point(212, 46); - this.textBoxBenutzername.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxBenutzername.Name = "textBoxBenutzername"; - this.textBoxBenutzername.Size = new System.Drawing.Size(126, 23); - this.textBoxBenutzername.TabIndex = 40; - // - // buttonAbbrechen - // - this.buttonAbbrechen.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAbbrechen.Image = ((System.Drawing.Image)(resources.GetObject("buttonAbbrechen.Image"))); - this.buttonAbbrechen.Location = new System.Drawing.Point(523, 97); - this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonAbbrechen.Name = "buttonAbbrechen"; - this.buttonAbbrechen.Size = new System.Drawing.Size(30, 32); - this.buttonAbbrechen.TabIndex = 39; - this.buttonAbbrechen.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonAbbrechen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonAbbrechen.UseVisualStyleBackColor = true; - this.buttonAbbrechen.Click += new System.EventHandler(this.buttonAbbrechen_Click); - // - // buttonSpeichernFahrer - // - this.buttonSpeichernFahrer.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonSpeichernFahrer.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSpeichernFahrer.Image = ((System.Drawing.Image)(resources.GetObject("buttonSpeichernFahrer.Image"))); - this.buttonSpeichernFahrer.Location = new System.Drawing.Point(488, 97); - this.buttonSpeichernFahrer.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonSpeichernFahrer.Name = "buttonSpeichernFahrer"; - this.buttonSpeichernFahrer.Size = new System.Drawing.Size(30, 32); - this.buttonSpeichernFahrer.TabIndex = 38; - this.buttonSpeichernFahrer.TextAlign = System.Drawing.ContentAlignment.BottomCenter; - this.buttonSpeichernFahrer.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonSpeichernFahrer.UseVisualStyleBackColor = true; - this.buttonSpeichernFahrer.Click += new System.EventHandler(this.groupBoxButtonSpeichern_CLick); - // - // label6 - // - this.label6.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(209, 85); - this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(50, 13); - this.label6.TabIndex = 37; - this.label6.Text = "Gültig bis"; - // - // label5 - // - this.label5.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label5.Location = new System.Drawing.Point(7, 86); - this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(79, 13); - this.label5.TabIndex = 36; - this.label5.Text = "FührerscheinNr"; - // - // label4 - // - this.label4.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label4.Location = new System.Drawing.Point(108, 29); - this.label4.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(59, 13); - this.label4.TabIndex = 35; - this.label4.Text = "Nachname"; - // - // label3 - // - this.label3.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label3.Location = new System.Drawing.Point(7, 29); - this.label3.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(49, 13); - this.label3.TabIndex = 34; - this.label3.Text = "Vorname"; - // - // dTPGueltigBis - // - this.dTPGueltigBis.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.dTPGueltigBis.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.dTPGueltigBis.Format = System.Windows.Forms.DateTimePickerFormat.Short; - this.dTPGueltigBis.Location = new System.Drawing.Point(212, 102); - this.dTPGueltigBis.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.dTPGueltigBis.Name = "dTPGueltigBis"; - this.dTPGueltigBis.Size = new System.Drawing.Size(92, 23); - this.dTPGueltigBis.TabIndex = 31; - // - // textBoxSchein - // - this.textBoxSchein.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.textBoxSchein.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxSchein.Location = new System.Drawing.Point(9, 102); - this.textBoxSchein.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxSchein.Name = "textBoxSchein"; - this.textBoxSchein.Size = new System.Drawing.Size(199, 23); - this.textBoxSchein.TabIndex = 30; - // - // textBoxNachname - // - this.textBoxNachname.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.textBoxNachname.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxNachname.Location = new System.Drawing.Point(110, 46); - this.textBoxNachname.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxNachname.Name = "textBoxNachname"; - this.textBoxNachname.Size = new System.Drawing.Size(98, 23); - this.textBoxNachname.TabIndex = 29; - this.textBoxNachname.Leave += new System.EventHandler(this.textBox_Leave); - // - // textBoxVorname - // - this.textBoxVorname.Anchor = System.Windows.Forms.AnchorStyles.Top; - this.textBoxVorname.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.textBoxVorname.Location = new System.Drawing.Point(9, 46); - this.textBoxVorname.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.textBoxVorname.Name = "textBoxVorname"; - this.textBoxVorname.Size = new System.Drawing.Size(98, 23); - this.textBoxVorname.TabIndex = 28; - this.textBoxVorname.Leave += new System.EventHandler(this.textBox_Leave); - // - // listView1 - // - this.listView1.AllowColumnReorder = true; - this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.listView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.listView1.FullRowSelect = true; - this.listView1.GridLines = true; - this.listView1.HideSelection = false; - this.listView1.Location = new System.Drawing.Point(10, 280); - this.listView1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.listView1.Name = "listView1"; - this.listView1.Size = new System.Drawing.Size(562, 355); - this.listView1.TabIndex = 33; - this.listView1.UseCompatibleStateImageBehavior = false; - this.listView1.View = System.Windows.Forms.View.Details; - this.listView1.Visible = false; - this.listView1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView_MouseDoubleClick); - // - // buttonNeueMaschine - // - this.buttonNeueMaschine.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.buttonNeueMaschine.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonNeueMaschine.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonNeueMaschine.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNeueMaschine.ForeColor = System.Drawing.Color.White; - this.buttonNeueMaschine.Location = new System.Drawing.Point(2, 222); - this.buttonNeueMaschine.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonNeueMaschine.Name = "buttonNeueMaschine"; - this.buttonNeueMaschine.Size = new System.Drawing.Size(309, 40); - this.buttonNeueMaschine.TabIndex = 35; - this.buttonNeueMaschine.Text = "Maschinenverwaltung"; - this.buttonNeueMaschine.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonNeueMaschine.UseVisualStyleBackColor = false; - this.buttonNeueMaschine.Click += new System.EventHandler(this.PanelButtons_Click); - this.buttonNeueMaschine.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.buttonNeueMaschine_HelpRequested); - // - // buttonBenutzerverwaltung - // - this.buttonBenutzerverwaltung.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonBenutzerverwaltung.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonBenutzerverwaltung.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonBenutzerverwaltung.ForeColor = System.Drawing.Color.White; - this.buttonBenutzerverwaltung.Location = new System.Drawing.Point(2, 2); - this.buttonBenutzerverwaltung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonBenutzerverwaltung.Name = "buttonBenutzerverwaltung"; - this.buttonBenutzerverwaltung.Size = new System.Drawing.Size(309, 40); - this.buttonBenutzerverwaltung.TabIndex = 32; - this.buttonBenutzerverwaltung.Text = "Benutzerverwaltung"; - this.buttonBenutzerverwaltung.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonBenutzerverwaltung.UseVisualStyleBackColor = false; - this.buttonBenutzerverwaltung.Click += new System.EventHandler(this.PanelButtons_Click); - // - // buttonNeuerBenutzer - // - this.buttonNeuerBenutzer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonNeuerBenutzer.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonNeuerBenutzer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonNeuerBenutzer.ForeColor = System.Drawing.Color.White; - this.buttonNeuerBenutzer.Location = new System.Drawing.Point(2, 46); - this.buttonNeuerBenutzer.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonNeuerBenutzer.Name = "buttonNeuerBenutzer"; - this.buttonNeuerBenutzer.Size = new System.Drawing.Size(309, 40); - this.buttonNeuerBenutzer.TabIndex = 5; - this.buttonNeuerBenutzer.Text = "Neuer Benutzer"; - this.buttonNeuerBenutzer.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonNeuerBenutzer.UseVisualStyleBackColor = false; - this.buttonNeuerBenutzer.Visible = false; - this.buttonNeuerBenutzer.Click += new System.EventHandler(this.PanelButtons_Click); - // - // flowPanelButtons - // - this.flowPanelButtons.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left))); - this.flowPanelButtons.BackColor = System.Drawing.Color.White; - this.flowPanelButtons.Controls.Add(this.buttonBenutzerverwaltung); - this.flowPanelButtons.Controls.Add(this.buttonNeuerBenutzer); - this.flowPanelButtons.Controls.Add(this.buttonAufgabenverwaltung); - this.flowPanelButtons.Controls.Add(this.buttonNeueAufgabe); - this.flowPanelButtons.Controls.Add(this.buttonNeuerAuftrag); - this.flowPanelButtons.Controls.Add(this.buttonNeueMaschine); - this.flowPanelButtons.Controls.Add(this.buttonWPr); - this.flowPanelButtons.Location = new System.Drawing.Point(159, 10); - this.flowPanelButtons.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.flowPanelButtons.Name = "flowPanelButtons"; - this.flowPanelButtons.Size = new System.Drawing.Size(314, 648); - this.flowPanelButtons.TabIndex = 6; - // - // buttonAufgabenverwaltung - // - this.buttonAufgabenverwaltung.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonAufgabenverwaltung.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonAufgabenverwaltung.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAufgabenverwaltung.ForeColor = System.Drawing.Color.White; - this.buttonAufgabenverwaltung.Location = new System.Drawing.Point(2, 90); - this.buttonAufgabenverwaltung.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonAufgabenverwaltung.Name = "buttonAufgabenverwaltung"; - this.buttonAufgabenverwaltung.Size = new System.Drawing.Size(309, 40); - this.buttonAufgabenverwaltung.TabIndex = 37; - this.buttonAufgabenverwaltung.Text = "Aufgabenverwaltung"; - this.buttonAufgabenverwaltung.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonAufgabenverwaltung.UseVisualStyleBackColor = false; - this.buttonAufgabenverwaltung.Click += new System.EventHandler(this.PanelButtons_Click); - // - // buttonWPr - // - this.buttonWPr.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.buttonWPr.FlatStyle = System.Windows.Forms.FlatStyle.Popup; - this.buttonWPr.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonWPr.ForeColor = System.Drawing.Color.White; - this.buttonWPr.Location = new System.Drawing.Point(2, 266); - this.buttonWPr.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - this.buttonWPr.Name = "buttonWPr"; - this.buttonWPr.Size = new System.Drawing.Size(309, 40); - this.buttonWPr.TabIndex = 36; - this.buttonWPr.Text = "Waschprogramme"; - this.buttonWPr.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.buttonWPr.UseVisualStyleBackColor = false; - this.buttonWPr.Click += new System.EventHandler(this.PanelButtons_Click); + this.labelScannTest.AutoSize = true; + this.labelScannTest.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.labelScannTest.Location = new System.Drawing.Point(6, 234); + this.labelScannTest.Name = "labelScannTest"; + this.labelScannTest.Size = new System.Drawing.Size(60, 24); + this.labelScannTest.TabIndex = 11; + this.labelScannTest.Text = "label1"; + this.labelScannTest.Visible = false; // // FormMain // @@ -1173,38 +954,32 @@ namespace Deckungsbeitrag this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.ClientSize = new System.Drawing.Size(1156, 689); - this.Controls.Add(this.flowPanelButtons); - this.Controls.Add(this.panelMain); - this.Controls.Add(this.statusStrip1); this.Controls.Add(this.toolStripMenu); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D; + this.Controls.Add(this.panelMain); this.HelpButton = true; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "FormMain"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Wolfgang Wirl GmbH - GRUNDPROGRAMM"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.HelpButtonClicked += new System.ComponentModel.CancelEventHandler(this.FormMain_HelpButtonClicked); this.Load += new System.EventHandler(this.FormMain_Load); this.toolStripMenu.ResumeLayout(false); this.toolStripMenu.PerformLayout(); - this.statusStrip1.ResumeLayout(false); - this.statusStrip1.PerformLayout(); this.panelMain.ResumeLayout(false); - this.groupBoxNeueAufgabe.ResumeLayout(false); - this.groupBoxNeueAufgabe.PerformLayout(); - this.groupBoxMaschine.ResumeLayout(false); - this.groupBoxMaschine.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numUpDownFaecher)).EndInit(); - this.groupBoxWPr.ResumeLayout(false); - this.groupBoxWPr.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.numericUpDownWPr)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBoxBenutzerClose)).EndInit(); - this.groupBoxBenutzer.ResumeLayout(false); - this.groupBoxBenutzer.PerformLayout(); - this.flowPanelButtons.ResumeLayout(false); + this.groupBoxStatistik.ResumeLayout(false); + this.tableLayoutPanelStatistik.ResumeLayout(false); + this.tableLayoutPanelStatistik.PerformLayout(); + this.groupBoxUpdate.ResumeLayout(false); + this.tableLayoutPanelUpdate.ResumeLayout(false); + this.groupBoxAuftrag.ResumeLayout(false); + this.groupBoxAuftrag.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.objectListViewAuftrag)).EndInit(); + this.groupBoxScannTest.ResumeLayout(false); + this.groupBoxScannTest.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBoxScannTest)).EndInit(); this.ResumeLayout(false); - this.PerformLayout(); } @@ -1214,73 +989,55 @@ namespace Deckungsbeitrag private System.Windows.Forms.ToolStripButton toolStripBeenden; private System.Windows.Forms.ToolStripButton toolStripZaehlscheine; private System.Windows.Forms.ToolStripButton toolStripDB; - private System.Windows.Forms.StatusStrip statusStrip1; - private System.Windows.Forms.ToolStripStatusLabel statusStripDatum; - private System.Windows.Forms.ToolStripStatusLabel statusStripUser; - private System.Windows.Forms.ToolStripStatusLabel statusStripSortiment; - private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1; - private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel2; - private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel3; - private System.Windows.Forms.ToolStripButton tSBFahrerAuftrag; private System.Windows.Forms.ToolStripButton toolStripButton1; - private System.Windows.Forms.Button buttonNeueAufgabe; - private System.Windows.Forms.Button buttonNeuerAuftrag; private System.Windows.Forms.Panel panelMain; - private System.Windows.Forms.Button buttonNeuerBenutzer; - private System.Windows.Forms.GroupBox groupBoxBenutzer; - private System.Windows.Forms.Label label6; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.DateTimePicker dTPGueltigBis; - private System.Windows.Forms.TextBox textBoxSchein; - private System.Windows.Forms.TextBox textBoxNachname; - private System.Windows.Forms.TextBox textBoxVorname; - private System.Windows.Forms.Button buttonAbbrechen; - private System.Windows.Forms.Button buttonSpeichernFahrer; - private System.Windows.Forms.GroupBox groupBoxNeueAufgabe; - private System.Windows.Forms.Button buttonAbbrechenAufgabe; - private System.Windows.Forms.Button buttonSpeichernAufgabe; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox textBoxBeschreibung; - private System.Windows.Forms.TextBox textBoxBezeichnung; - private System.Windows.Forms.Button buttonBenutzerverwaltung; - private System.Windows.Forms.ListView listView1; - private System.Windows.Forms.PictureBox pictureBoxBenutzerClose; - private System.Windows.Forms.Label label8; - private System.Windows.Forms.ComboBox comboBoxRolle; - private System.Windows.Forms.CheckBox checkBoxAktiv; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.TextBox textBoxBenutzername; - private System.Windows.Forms.ToolStripButton tSBWaschverlauf; - private System.Windows.Forms.ToolStripButton tSBExpeditDrucken; - private System.Windows.Forms.Button buttonNeueMaschine; - private System.Windows.Forms.GroupBox groupBoxMaschine; - private System.Windows.Forms.Button buttonMaAbbrechen; - private System.Windows.Forms.Button buttonMaSpeichern; - private System.Windows.Forms.NumericUpDown numUpDownFaecher; - private System.Windows.Forms.Label label10; - private System.Windows.Forms.TextBox textBoxMaschBezeich; - private System.Windows.Forms.Label label9; - private System.Windows.Forms.ListView listViewMaschine; - private System.Windows.Forms.Label label11; - private System.Windows.Forms.ComboBox comboBoxAufgabeKat; + private System.Windows.Forms.ToolStripButton tSBExpedit; private System.Windows.Forms.ToolStripButton toolStripButtonImport; private System.Windows.Forms.ToolStripButton tSBKosten; - private System.Windows.Forms.Button buttonFarbe; - private System.Windows.Forms.FlowLayoutPanel flowPanelButtons; - private System.Windows.Forms.GroupBox groupBoxWPr; - private System.Windows.Forms.ListView listViewProg; - private System.Windows.Forms.NumericUpDown numericUpDownWPr; - private System.Windows.Forms.Label label12; - private System.Windows.Forms.TextBox textBoxWPrBezeichnung; - private System.Windows.Forms.Label label13; - private System.Windows.Forms.Button buttonWPrAbbrechen; - private System.Windows.Forms.Button buttonWPrSpeichern; - private System.Windows.Forms.Button buttonWPr; private System.Windows.Forms.ToolStripButton tSBEinstellung; - private System.Windows.Forms.Button buttonAufgabenverwaltung; - } + private System.Windows.Forms.ToolStripButton tSBBenutzerVW; + private System.Windows.Forms.ToolStripButton tSBAufgabeVW; + private System.Windows.Forms.ToolStripButton tSBAuftragVW; + private System.Windows.Forms.ToolStripButton tSBScannTest; + private System.Windows.Forms.GroupBox groupBoxScannTest; + private System.Windows.Forms.PictureBox pictureBoxScannTest; + private System.Windows.Forms.TextBox textBoxScannTest; + private System.Windows.Forms.Button buttonScannTest; + private System.Windows.Forms.Label labelScannTest; + private System.Windows.Forms.GroupBox groupBoxAuftrag; + private System.Windows.Forms.RadioButton rBAufAbruf; + private System.Windows.Forms.RadioButton rBAusgeliefert; + private System.Windows.Forms.RadioButton rBFertig; + private System.Windows.Forms.RadioButton rBVorbereitet; + private System.Windows.Forms.RadioButton rBAlle; + private System.Windows.Forms.Button buttonAufAbruf; + private System.Windows.Forms.Button buttonAusgeliefert; + private System.Windows.Forms.Button buttonNeuerAuftrag; + private System.Windows.Forms.ToolStripButton tSBArtikelVW; + private System.Windows.Forms.ProgressBar progressBarArtikel; + private System.Windows.Forms.Button buttonArtikelUpdate; + private System.Windows.Forms.GroupBox groupBoxUpdate; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanelUpdate; + private System.Windows.Forms.Button buttonAllUpdate; + private BrightIdeasSoftware.ObjectListView objectListViewAuftrag; + private System.Windows.Forms.Button buttonSortimentUpdate; + private System.Windows.Forms.ProgressBar progressBarSortiment; + private System.Windows.Forms.ToolStripButton tSBHilfe; + private System.Windows.Forms.GroupBox groupBoxStatistik; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanelStatistik; + private System.Windows.Forms.Label labelStatistik1; + private System.Windows.Forms.Label labelZahl6; + private System.Windows.Forms.Label labelStatistik6; + private System.Windows.Forms.Label labelZahl5; + private System.Windows.Forms.Label labelStatistik5; + private System.Windows.Forms.Label labelZahl4; + private System.Windows.Forms.Label labelStatistik4; + private System.Windows.Forms.Label labelZahl3; + private System.Windows.Forms.Label labelStatistik3; + private System.Windows.Forms.Label labelZahl2; + private System.Windows.Forms.Label labelStatistik2; + private System.Windows.Forms.Label labelZahl1; + private System.Windows.Forms.DateTimePicker dateTimePicker1; + } } diff --git a/FormMain.cs b/FormMain.cs index 5028189..92d0dfd 100644 --- a/FormMain.cs +++ b/FormMain.cs @@ -1,4 +1,5 @@ -using DatenDB; +using BrightIdeasSoftware; +using DatenDB; using System; using System.Collections.Generic; using System.ComponentModel; @@ -6,98 +7,120 @@ using System.Configuration; using System.Drawing; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Threading; -using System.Windows; +using System.Threading.Tasks; using System.Windows.Forms; -using Point = System.Drawing.Point; -using Size = System.Drawing.Size; +using System.Xml.Serialization; namespace Deckungsbeitrag { public partial class FormMain : Form { private Benutzer benutzer = null; - public List sortimentListe; - Kunde kunde = new Kunde(); - Benutzer Benutzer; - Aufgabe Aufgabe; - Maschine Maschine; - WProgramm Programm; - Color Wirlblau; - Thread t; - bool listopen = false; - public FormMain(Benutzer benutzer, Thread t1) : this(benutzer) - { - this.t = t1; - } - public FormMain() + Fehlermeldungen meldung = new Fehlermeldungen(); + bool open = false; + private bool isDragging = false; + private Point dragStartPoint; + + public FormMain() { InitializeComponent(); - Wirlblau = Properties.Settings.Default.Wirlblau = Color.FromArgb(1, 53, 101); this.toolStripMenu.Size = new Size(toolStripButton1.Size.Width + 20, this.Height); - this.flowPanelButtons.Location = new Point(toolStripMenu.Right + 10, 12); - this.panelMain.Location = new Point(flowPanelButtons.Right + 10, 12); - } + //this.panelMain.Location = new Point(toolStripMenu.Right + 10, 12); + + } public FormMain(Benutzer benutzer) : this() { this.benutzer = benutzer; - //ANFANG //STATUS STRIP BEFÜLLEN - if (((bool)Funktionen.SortimentLesen("Main")) == true) this.statusStripSortiment.Image = Properties.Resources.Checkmark_blue_16x; - else this.statusStripSortiment.Image = Properties.Resources.Close_red_16x; - this.toolStripStatusLabel2.ToolTipText = this.statusStripSortiment.ToolTipText = ConfigurationManager.AppSettings["SortimentPfad"]; - this.statusStripDatum.Text = DateTime.Now.ToString(); - this.statusStripUser.Text = this.benutzer.Vorname + " " + this.benutzer.Nachname; - this.statusStrip1.ShowItemToolTips = true; - //ENDE //STATUS STRIP BEFÜLLEN - switch (benutzer.Rolle) + //AKTIVE ELEMENTE JE BENUTZER ROLLE + switch (benutzer.Rolle) { case BenutzerRolle.Verwaltung: - this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.tSBWaschverlauf.Enabled = this.buttonBenutzerverwaltung.Enabled = false; - this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.tSBWaschverlauf.Visible = this.buttonBenutzerverwaltung.Visible = false; + this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.tSBExpedit.Enabled = false; + this.groupBoxUpdate.Visible = this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.tSBExpedit.Enabled = false; break; case BenutzerRolle.Fahrer: - this.buttonNeuerAuftrag.Enabled = this.buttonNeueAufgabe.Enabled = this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.tSBWaschverlauf.Enabled = this.tSBExpeditDrucken.Enabled = this.buttonBenutzerverwaltung.Enabled = false; - this.buttonNeuerAuftrag.Visible = this.buttonNeueAufgabe.Enabled = this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.tSBWaschverlauf.Visible = this.tSBExpeditDrucken.Visible = this.buttonBenutzerverwaltung.Visible = false; + this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.tSBBenutzerVW.Enabled = this.tSBAufgabeVW.Enabled = this.tSBExpedit.Enabled = false; + this.groupBoxUpdate.Visible = this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.tSBBenutzerVW.Enabled = this.tSBAufgabeVW.Enabled = this.tSBExpedit.Enabled = false; break; case BenutzerRolle.Admin: - this.buttonNeueMaschine.Enabled = this.tSBWaschverlauf.Enabled = false; - this.buttonNeueMaschine.Visible = this.tSBWaschverlauf.Visible = false; + + this.groupBoxUpdate.Visible = false; break; case BenutzerRolle.Waschstrasse: - this.buttonNeuerAuftrag.Enabled = this.buttonNeueAufgabe.Enabled = this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.buttonBenutzerverwaltung.Enabled = false; - this.buttonNeuerAuftrag.Visible = this.buttonNeueAufgabe.Visible = this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.buttonBenutzerverwaltung.Visible = false; + this.toolStripDB.Enabled = this.toolStripButtonImport.Enabled = this.tSBBenutzerVW.Enabled = this.tSBAufgabeVW.Enabled = this.tSBExpedit.Enabled = false; + this.groupBoxUpdate.Visible = this.toolStripDB.Visible = this.toolStripButtonImport.Visible = this.tSBBenutzerVW.Enabled = this.tSBAufgabeVW.Enabled = this.tSBExpedit.Enabled = false; break; case BenutzerRolle.Master: break; default: break; } - - - - - } + + private void FormMain_Load(object sender, EventArgs e) { - //t.Abort(); this.WindowState = FormWindowState.Maximized; - this.flowPanelButtons.Height = toolStripMenu.Height - statusStrip1.Height - 22; - this.panelMain.Height = flowPanelButtons.Height; + this.MaximizedBounds = Screen.PrimaryScreen.WorkingArea; + this.panelMain.Width = this.Width - this.toolStripMenu.Right - 20; + this.panelMain.Location = new Point(this.toolStripMenu.Right, 0); + GetStatistik(); + // GroupBoxen im PanelMain werden ausgeblendet + foreach (Control ctr in this.panelMain.Controls) + { + if (ctr.GetType() == typeof(GroupBox)) + { + GroupBox gb = (GroupBox)ctr; + if(!gb.Name.Contains("Update") & !gb.Name.Contains("Statistik")) + { + gb.Visible = false; + gb.Location = new Point(0, 0); + gb.Size = new Size(this.panelMain.Width, this.panelMain.Height); + + } + } + } this.Activate(); } - /// - /// CLICK EVENTS TOOLSTRIP BUTTONS - /// + private void Paint_Boarder(Size size, Point location, PaintEventArgs e) + { + Pen pen = new Pen(Color.FromArgb(1, 53, 101), 4); + Rectangle rect = new Rectangle(1, 2, size.Width - 4, size.Height - 4); + e.Graphics.DrawRectangle(pen, rect); + } + private void panelMain_Paint(object sender, PaintEventArgs e) + { + Paint_Boarder(this.panelMain.Size, this.panelMain.Location, e); + + } + + + /// + /// ToolStrip Buttons Click Events + /// + /// + /// + private void tSBBenutzerVW_Click(object sender, EventArgs e) + { + FormBenutzerVW benutzerVW = new FormBenutzerVW(); + benutzerVW.ShowDialog(); + } private void toolStripBeenden_Click(object sender, EventArgs e) { Application.Exit(); } + private void tSBAufgabeVW_Click(object sender, EventArgs e) + { + FormAufgabeVW aufgabeVW = new FormAufgabeVW(); + aufgabeVW.ShowDialog(); + } private void toolStripZaehlscheine_Click(object sender, EventArgs e) { - KundeDaten kundedaten = new KundeDaten(); + FormKundeVW kundedaten = new FormKundeVW(this.benutzer); if (kundedaten.ShowDialog() == DialogResult.OK) { @@ -108,12 +131,6 @@ namespace Deckungsbeitrag FormNeuDeckungsbeitrag deckungsbeitrag = new FormNeuDeckungsbeitrag(this.benutzer, false); if (deckungsbeitrag.ShowDialog() == DialogResult.OK) { } } - private void tSBFahrerAuftrag_Click(object sender, EventArgs e) - { - //NEUER SCREEN MIT LISTVIEW AUSPROBIEREN...SET OBJECT IN SCREEN AUSPROGRAMMIEREN - FormFahrerScreen auftrag = new FormFahrerScreen(benutzer); - auftrag.ShowDialog(); - } private void tSBWaschstrasse1_Click(object sender, EventArgs e) { //FormWaschstrasse waschstrasse = new FormWaschstrasse(this.tSBWaschverlauf.Text); @@ -121,20 +138,10 @@ namespace Deckungsbeitrag //LISTVIEW MIT GEWASCHTEN FÄCHERN ERSTELLEN (KOMMT WENN BENUTZER = ADMIN) } - private void tSBWaschverlauf_Click(object sender, EventArgs e) - { - FormWaschverlauf verlauf = new FormWaschverlauf(); - verlauf.ShowDialog(); - } private void toolStripButtonImport_Click(object sender, EventArgs e) { - Import import = new Import(); - if (import.ShowDialog() == DialogResult.OK) - { - } - } - private void tSBWaschstrasse2_Click(object sender, EventArgs e) - { + FormImport import = new FormImport(); + import.ShowDialog(); } private void tSBKosten_Click(object sender, EventArgs e) { @@ -143,25 +150,63 @@ namespace Deckungsbeitrag } private void tSBEinstellung_Click(object sender, EventArgs e) { - FormEinstellung einstellung = new FormEinstellung(); + FormEinstellung einstellung = new FormEinstellung(); einstellung.ShowDialog(); - } + } private void toolStripStatusLabel2_DoubleClick(object sender, EventArgs e) { FormEinstellung einstellung = new FormEinstellung("Sortiment"); einstellung.ShowDialog(); } - private void tSBExpedit_Click(object sender, EventArgs e) - { - FormExpedit exp = new FormExpedit(benutzer); - exp.ShowDialog(); - } + private void tSBExpedit_Click(object sender, EventArgs e) + { + FormExpedit exp = new FormExpedit(benutzer); + exp.ShowDialog(); + } + private void tSBAuftragVW_Click(object sender, EventArgs e) + { + if (!this.objectListViewAuftrag.Visible) + { + this.rBAlle.Checked = true; + this.rBAlle.Visible = this.rBAusgeliefert.Visible = this.rBFertig.Visible = this.rBVorbereitet.Visible = this.rBAufAbruf.Visible = true; + this.groupBoxAuftrag.Visible = true; + this.groupBoxStatistik.Visible = this.buttonNeuerAuftrag.Visible = this.buttonNeuerAuftrag.Enabled = this.groupBoxUpdate.Visible = false; + this.objectListViewAuftrag.Enabled = this.objectListViewAuftrag.Visible = true; + } + else + { + this.groupBoxAuftrag.Visible = this.buttonAufAbruf.Visible = this.buttonAusgeliefert.Visible = this.rBAlle.Visible = this.rBAusgeliefert.Visible = this.rBFertig.Visible = this.rBVorbereitet.Visible = this.rBAufAbruf.Visible = this.objectListViewAuftrag.Enabled = this.objectListViewAuftrag.Visible = false; + this.groupBoxStatistik.Visible = this.buttonNeuerAuftrag.Visible = this.buttonNeuerAuftrag.Enabled = this.groupBoxUpdate.Visible = true; + } + } + private void tSBScannTest_Click(object sender, EventArgs e) + { + if (open) + { + this.groupBoxScannTest.Visible = false; + this.textBoxScannTest.Visible = this.labelScannTest.Visible = this.buttonScannTest.Visible = this.pictureBoxScannTest.Visible = false; + open = false; + } + else + { + this.groupBoxScannTest.Visible = true; + this.textBoxScannTest.Visible = this.labelScannTest.Visible = this.buttonScannTest.Visible = this.pictureBoxScannTest.Visible = true; + this.pictureBoxScannTest.Image = Image.FromFile("C:\\Users\\KilianWirl\\OneDrive - gehgassi GmbH\\Wäscherei Wirl\\Programme\\Deckungsbeitrag\\static-qr-code-ca1aa53ab47cd115bc1ad29afb0e5f22.png"); + this.textBoxScannTest.Focus(); + open = true; + } + } + private void tSBArtikelVW_Click(object sender, EventArgs e) + { + FormArtikelVW artikelVW = new FormArtikelVW(); + artikelVW.ShowDialog(); + } + - - /// - /// TOOLSTRIP BUTTON DESIGN - /// - private void get_Border_Paint(object sender, PaintEventArgs e) + /// + /// TOOLSTRIP BUTTON DESIGN + /// + private void get_Border_Paint(object sender, PaintEventArgs e) { ToolStripItem item = (ToolStripItem)sender; ControlPaint.DrawBorder(e.Graphics, new Rectangle(0, 0, item.Width, item.Height), Color.White, ButtonBorderStyle.Solid); @@ -184,515 +229,580 @@ namespace Deckungsbeitrag tsb.BackColor = Color.FromArgb(1, 53, 101); } } - private void textBox_Leave(object sender, EventArgs e) - { - this.textBoxBenutzername.Text = (this.textBoxVorname.Text + this.textBoxNachname.Text).ToLower(); - } - - /// - /// BUTTONS IN PANEL CLICK-EVENTS MIT SWITCH - /// - private void PanelButtons_Click(object sender, EventArgs e) - { - Button btn = (Button)sender; - switch (btn.Text) - { - case var _ when btn.Name.Contains("NeueAufgabe"): - { - AutoCompleteStringCollection strings = new AutoCompleteStringCollection(); - List aufgabenlist = Aufgabe.GetList(null); - foreach (Aufgabe aufgabe in aufgabenlist) strings.Add(aufgabe.Bezeichnung); - this.groupBoxNeueAufgabe.Location = new Point(this.buttonNeueAufgabe.Location.X, this.listView1.Bottom); - this.comboBoxAufgabeKat.DataSource = Enum.GetValues(typeof(Kategorie)); - this.textBoxBezeichnung.AutoCompleteCustomSource = strings; - this.groupBoxNeueAufgabe.Width = 770; - this.buttonFarbe.Visible = false; - this.groupBoxNeueAufgabe.Visible = true; - this.groupBoxNeueAufgabe.Parent = this.panelMain; - } - break; - case var _ when btn.Name.Contains("Auftrag"): - { - FormNeuerAuftrag neuauftrag = new FormNeuerAuftrag(this.benutzer, null, false, null, null); - if (neuauftrag.ShowDialog() == DialogResult.OK) { } - } - break; - case var _ when btn.Name.Contains("NeuerBenutzer"): - { - this.groupBoxBenutzer.Height = 95; - this.groupBoxBenutzer.Location = new Point(this.buttonNeuerBenutzer.Location.X, this.listView1.Bottom); - this.groupBoxBenutzer.Text = "Benutzer anlegen"; - this.comboBoxRolle.DataSource = Enum.GetValues(typeof(BenutzerRolle)); - this.groupBoxBenutzer.Visible = true; - } - break; - case var _ when btn.Name.Contains("Maschine"): - { - this.groupBoxMaschine.Location = this.buttonNeueMaschine.Location; - this.groupBoxMaschine.Width = this.buttonNeueMaschine.Width; - this.groupBoxMaschine.Height = this.buttonNeueMaschine.Height + 200; - this.listViewMaschine.SuspendLayout(); - this.listViewMaschine.Items.Clear(); - this.listViewMaschine.Columns.Clear(); - string columns = "Bezeichnung, Fächer, Trockner kaputt"; - foreach (string s in columns.Split(',')) - { - ColumnHeader ch = new ColumnHeader(); - ch.Width = 150; - ch.Text = s; - - this.listViewMaschine.Columns.Add(ch); - } - ListViewItem item; - foreach (Maschine maschine in Maschine.GetList()) - { - item = new ListViewItem(); - item.Tag = maschine; - item.Text = maschine.Bezeichnung; - item.SubItems.Add(maschine.Faecher.ToString()); - item.SubItems.Add(maschine.TrocknerKaputt.ToString()); - - this.listViewMaschine.Items.Add(item); - } - this.listViewMaschine = Funktionen.Columns_Resize(this.listViewMaschine); - this.listViewMaschine.ResumeLayout(); - this.groupBoxMaschine.Width = this.listViewMaschine.Width + 30; - this.groupBoxMaschine.Visible = true; - } - break; - case var _ when btn.Name.Contains("WPr"): - { - this.listViewProg.SuspendLayout(); - this.listViewProg.Items.Clear(); - this.listViewProg.Columns.Clear(); - string col = "Nummer, Bezeichnung"; - foreach (string s in col.Split(',')) - { - ColumnHeader ch = new ColumnHeader(); - ch.Width = 150; - ch.Text = s; - this.listViewProg.Columns.Add(ch); - } - ListViewItem item1; - foreach (WProgramm prog in WProgramm.GetList()) - { - item1 = new ListViewItem(); - item1.Tag = prog; - item1.Text = prog.Nummer.ToString(); - item1.SubItems.Add(prog.Bezeichnung); - - this.listViewProg.Items.Add(item1); - } - this.listViewProg.ResumeLayout(); - this.groupBoxWPr.Location = this.buttonWPr.Location; - this.groupBoxWPr.Visible = true; - } - break; - case var _ when btn.Name.Contains("Benutzerverwaltung"): - { - if (!listopen) - { - this.buttonNeuerBenutzer.Visible = true; - this.listView1.Location = this.buttonBenutzerverwaltung.Location; - string colname = "vorname, nachname, benutzer_name, rolle, schein, gueltig_bis, ist_aktiv"; - List list = new List(Benutzer.GetList()); - listView_Load(colname, list); - this.pictureBoxBenutzerClose.Location = new Point(this.listView1.Right, this.listView1.Location.Y + 1); - listopen = this.listView1.Visible = this.pictureBoxBenutzerClose.Visible = true; - } - - } - break; - case var _ when btn.Name.Contains("Aufgabenverwaltung"): - { - if (!listopen) - { - this.buttonNeueAufgabe.Visible = true; - this.listView1.Location = this.buttonAufgabenverwaltung.Location; - string colname = "bezeichnung, beschreibung, kategorie, farbe"; - List list = new List(Aufgabe.GetList(null)); - listView_Load(colname, list); - this.pictureBoxBenutzerClose.Location = new Point(this.listView1.Right, this.listView1.Location.Y + 1); - listopen = this.listView1.Visible = this.pictureBoxBenutzerClose.Visible = true; - } - } - break; - default: - break; - } - } //Panel Buttons Click Events - - /// - /// BUTTONS SPEICHERN UND ABBRECHEN UND SCHLIESSEN IN GROUPBOX - /// - private void buttonAbbrechen_Click(object sender, EventArgs e) - { - Button btn = (Button)sender; - - switch (btn.Parent.Text) - { - case var _ when btn.Parent.Text.Contains("Benutzer"): - this.Benutzer = null; - this.groupBoxBenutzer.Visible = this.groupBoxBenutzer.Visible; - this.buttonNeuerBenutzer.Visible = false; - foreach (Control ctr in this.groupBoxBenutzer.Controls) clear_Controls(ctr); - break; - case var _ when btn.Parent.Text.Contains("Aufgabe"): - this.Aufgabe = null; - this.groupBoxNeueAufgabe.Visible = this.groupBoxBenutzer.Visible; - this.buttonNeueAufgabe.Visible = this.buttonNeueAufgabe.Visible; - this.buttonFarbe.Visible = false; - foreach (Control ctr in this.groupBoxNeueAufgabe.Controls) clear_Controls(ctr); - break; - case var _ when btn.Parent.Text.Contains("Maschine"): - this.Maschine = null; - this.groupBoxMaschine.Visible = false; - foreach (Control ctr in this.groupBoxMaschine.Controls) clear_Controls(ctr); - break; - case var _ when btn.Parent.Text.Contains("programm"): - this.Programm = null; - this.groupBoxWPr.Visible = false; - foreach (Control ctr in this.groupBoxWPr.Controls) clear_Controls(ctr); - break; - default: - break; - } - } //Über Switch können alle GroupBoxen geschlossen werden. - private void groupBoxButtonSpeichern_CLick(object sender, EventArgs e) - { - Button btn = (Button)sender; - switch (btn.Parent.Text) - { - case var _ when btn.Parent.Text.Contains("Benutzer"): - if (Benutzer == null) Benutzer = new Benutzer(); - this.Benutzer.Vorname = this.textBoxVorname.Text; - this.Benutzer.Nachname = this.textBoxNachname.Text; - this.Benutzer.Schein = int.TryParse(this.textBoxSchein.Text, out int tmp) ? tmp : (int?)null; - this.Benutzer.GueltigBis = this.dTPGueltigBis.Value; - this.Benutzer.BenutzerName = this.textBoxBenutzername.Text; - this.Benutzer.Aktiv = this.checkBoxAktiv.Checked ? true : false; - this.Benutzer.Rolle = (BenutzerRolle)this.comboBoxRolle.SelectedItem; - if (this.Benutzer.Save() == 1) buttonAbbrechen_Click(btn, e); - this.groupBoxBenutzer.Visible = false; - break; - case var _ when btn.Parent.Text.Contains("Aufgabe"): - if (Aufgabe == null) Aufgabe = new Aufgabe(); - else if (MessageBox.Show("Möchtest du die Änderungen speichern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) return; - this.Aufgabe.Bezeichnung = this.textBoxBezeichnung.Text; - this.Aufgabe.Beschreibung = this.textBoxBeschreibung.Text; - this.Aufgabe.Kategorie = (Kategorie)this.comboBoxAufgabeKat.SelectedItem; - if (this.buttonFarbe.Visible) - { - CancelEventArgs ex = new CancelEventArgs(); - if (buttonFarbe_Validating(this, ex) == false) this.Aufgabe.Farbe = this.buttonFarbe.BackColor; - } - else this.Aufgabe.Farbe = DefaultBackColor; - if (this.Aufgabe.Save() == 1) buttonAbbrechen_Click(btn, e); - this.groupBoxNeueAufgabe.Visible = false; - break; - case var _ when btn.Parent.Text.Contains("Maschine"): - if (Maschine == null) Maschine = new Maschine(); - this.Maschine.Bezeichnung = this.textBoxMaschBezeich.Text; - this.Maschine.Faecher = (int)this.numUpDownFaecher.Value; - if (this.Maschine.Save() == 1) buttonAbbrechen_Click(btn, e); - break; - case var _ when btn.Parent.Text.Contains("programm"): - if (Programm == null) Programm = new WProgramm(); - this.Programm.Nummer = (int)this.numericUpDownWPr.Value; - this.Programm.Bezeichnung = this.textBoxWPrBezeichnung.Text; - if (this.Programm.Save() == 1) buttonAbbrechen_Click(btn, e); - break; - default: - break; - } - } //Über Switch können alle GroupBoxen gespeichert werden. - private void pictureBoxBenutzerClose_Click(object sender, EventArgs e) - { - this.listView1.Clear(); - this.listView1.Visible = this.pictureBoxBenutzerClose.Visible = false; - this.buttonBenutzerverwaltung.Visible = true; - listopen = this.buttonNeuerBenutzer.Visible = this.groupBoxBenutzer.Visible = this.buttonNeueAufgabe.Visible = this.groupBoxNeueAufgabe.Visible = false; - - } //Benutzer ListView wird geschlossen. - - /// - /// FUNKTIONEN IN GROUPBOXEN - /// - private void listView_Load(string colname, List objectlist) - { - this.listView1.SuspendLayout(); - this.listView1.BeginUpdate(); - Cursor.Current = Cursors.WaitCursor; - - ColumnHeader ch; - foreach (string s in colname.Split(',')) - { - ch = new ColumnHeader(); - ch.Name = s.Trim(); - if (ch.Name == "vorname") ch.DisplayIndex = 0; - if (ch.Name == "nachname") ch.DisplayIndex = 2; - if (ch.Name == "benutzer_name") - { - ch.DisplayIndex = 3; - ch.Name = "benutzername"; - } - if (ch.Name == "rolle") ch.DisplayIndex = 4; - if (ch.Name == "schein") ch.DisplayIndex = 5; - if (ch.Name == "gueltig_bis") - { - ch.DisplayIndex = 6; - ch.Name = "gültig bis"; - } - if (ch.Name == "ist_aktiv") - { - ch.DisplayIndex = 7; - ch.Name = "aktiv"; - } - - if (ch.Name == "bezeichnung") ch.DisplayIndex = 0; - if (ch.Name == "Beschreibung") ch.DisplayIndex = 1; - if (ch.Name == "kategorie") ch.DisplayIndex = 3; - if (ch.Name == "farbe") - { - ch.DisplayIndex = 4; - } - ch.Text = char.ToUpper(ch.Name[0]) + ch.Name.Substring(1); - if (ch.Name != "benutzer_id" && ch.Name != "passwort") this.listView1.Columns.Add(ch); - } - - this.listView1.Items.Clear(); - var element = objectlist.FirstOrDefault(); - - switch (element.GetType().Name) - { - case ("Benutzer"): - foreach (Benutzer ben in objectlist) - { - ListViewItem item; - item = new ListViewItem(); - item.Tag = ben; - item.Text = ben.Vorname; - item.SubItems.Add(ben.Nachname); - item.SubItems.Add(ben.BenutzerName); - item.SubItems.Add(ben.Rolle.ToString()); - item.SubItems.Add(ben.Schein.ToString()); - item.SubItems.Add(ben.GueltigBis.Value.ToShortDateString()); - item.SubItems.Add(ben.Aktiv == true ? "JA" : "NEIN"); - - this.listView1.Items.Add(item); - } - break; - case ("Aufgabe"): - foreach (Aufgabe auf in objectlist) - { - ListViewItem item = new ListViewItem(); - item.UseItemStyleForSubItems = false; - item.Tag = auf; - item.Text = auf.Bezeichnung; - item.SubItems.Add(auf.Beschreibung); - item.SubItems.Add(auf.Kategorie.ToString()); - item.SubItems.Add(""); - - ColorConverter cc = new ColorConverter(); - item.SubItems[3].BackColor = (Color)cc.ConvertFromString(auf.Farbe.ToArgb().ToString()); //COLUMN FARBE SUBITEM BACKCOLOR == FARBE. - - this.listView1.Items.Add(item); - } - break; - default: - break; - } - //RESIZE COLUMNS - this.listView1 = Funktionen.Columns_Resize(this.listView1); - this.listView1.Width = this.listView1.Width + 22; - this.listView1.AllowColumnReorder = true; - this.listView1.Height = 150; - - foreach (ListViewItem itm in this.listView1.Items) - { - if (itm.Index % 2 == 0) itm.BackColor = Color.LightSteelBlue; - foreach (ListViewItem.ListViewSubItem subItem in itm.SubItems) if (!string.IsNullOrWhiteSpace(subItem.Text)) subItem.BackColor = itm.BackColor; - }//BACKCOLOR FÜR JEDES ZWEITE ANDERE FARBE - - - this.listView1.EndUpdate(); - this.listView1.ResumeLayout(); - Cursor.Current = Cursors.Default; - } //Benutzer ListView laden. (KANN FÜR ANDERE AUCH VERWENDET WERDEN(Switch)) - private void listView_MouseDoubleClick(object sender, MouseEventArgs e) - { - ListViewItem item = this.listView1.GetItemAt(e.X, e.Y); - - switch (item.Tag.GetType().Name) - { - case ("Benutzer"): - Benutzer = (Benutzer)item.Tag; - pictureBoxBenutzerClose_Click(this, e); - this.groupBoxBenutzer.Location = this.listView1.Location; - this.groupBoxBenutzer.Text = "Benutzer bearbeiten"; - this.comboBoxRolle.DataSource = Enum.GetValues(typeof(BenutzerRolle)); - this.groupBoxBenutzer.Visible = true; - this.textBoxVorname.Text = Benutzer.Vorname; - this.textBoxNachname.Text = Benutzer.Nachname; - this.textBoxBenutzername.Text = Benutzer.BenutzerName; - this.comboBoxRolle.SelectedItem = Benutzer.Rolle; - comboBoxRolle_SelectedValueChanged(this, e); - this.textBoxSchein.Text = Benutzer.Schein.ToString(); - this.dTPGueltigBis.Value = Benutzer.GueltigBis.HasValue ? Benutzer.GueltigBis.Value : DateTime.Today.Date; - this.checkBoxAktiv.Checked = Benutzer.Aktiv; - break; - case ("Aufgabe"): - Aufgabe = (Aufgabe)item.Tag; - pictureBoxBenutzerClose_Click(this, e); - this.groupBoxNeueAufgabe.Location = this.listView1.Location; - this.groupBoxNeueAufgabe.Text = "Aufgabe bearbeiten"; - this.comboBoxAufgabeKat.DataSource = Enum.GetValues(typeof(Kategorie)); - this.groupBoxNeueAufgabe.Visible = true; - this.textBoxBeschreibung.Text = Aufgabe.Beschreibung; - this.textBoxBezeichnung.Text = Aufgabe.Bezeichnung; - this.buttonFarbe.BackColor = Aufgabe.Farbe; - this.buttonFarbe.Visible = true; - break; - default: - break; - } - - - } //Benutzer wird ausgewählt und kann bearbeitet werden. - private void comboBoxRolle_SelectedValueChanged(object sender, EventArgs e) - { - if ((BenutzerRolle)this.comboBoxRolle.SelectedItem == BenutzerRolle.Fahrer) - { - this.groupBoxBenutzer.Height = 170; - } - else this.groupBoxBenutzer.Height = 95; - } //Wenn Benutzerrolle ausgewählt wird. (Wenn Fahrer dann Groupbox vergrößern) - private void comboBoxAufgabeKat_SelectedValueChanged(object sender, EventArgs e) - { - ComboBox cb = (ComboBox)sender; - if (cb.SelectedValue.ToString() == "Waschstrasse") - { - groupBoxNeueAufgabe.Width = 880; - this.buttonFarbe.Visible = true; - } - } //Wenn Aufgabenkategorie ausgewählt wird. (Wenn Kat=Waschstrasse kann Hintergrundfarbe ausgewählt werden) - private bool buttonFarbe_Validating(object sender, CancelEventArgs e) - { - if (buttonFarbe.BackColor == Color.FromArgb(1, 53, 101)) - { - MessageBox.Show("Hallo"); - buttonFarbe.ForeColor = buttonFarbe.FlatAppearance.BorderColor = Color.Red; - - e.Cancel = true; - - } - return e.Cancel; - } //Aufgabenkategorie Farbauswahl wird validiert. (Kat=Waschstrasse dann muss Farbe gewählt sein) - private void buttonFarbe_Click(object sender, EventArgs e) - { - ColorDialog dialog = new ColorDialog(); - if (dialog.ShowDialog() == DialogResult.OK) { this.buttonFarbe.BackColor = dialog.Color; } - } //Aufgabenkategorie Farbauswahl. - private void textBoxBezeichnung_Leave(object sender, EventArgs e) - { - TextBox tb = (TextBox)sender; - if (!string.IsNullOrEmpty(tb.Text)) - { - tb.Text = tb.Text.Substring(0, 1).ToUpper() + tb.Text.Substring(1); - if (Aufgabe.GetAufgabe(tb.Text, null) != null) - { - Aufgabe = Aufgabe.GetAufgabe(tb.Text, null); - this.textBoxBeschreibung.Text = Aufgabe.Beschreibung; - this.comboBoxAufgabeKat.SelectedItem = Aufgabe.Kategorie; - this.buttonFarbe.BackColor = Aufgabe.Farbe; - } - } - - } //Aufgabe Bezeichnung wird kontrolliert ob bereits vorhanden und geladen. - private void clear_Controls(Control ctr) - { - switch (ctr) - { - case TextBox tb: - tb.Clear(); - break; - case CheckBox cb: - cb.Checked = false; - break; - case ComboBox cobo: - cobo.SelectedIndex = 0; - break; - case DateTimePicker dtp: - dtp.Value = DateTime.Now; - break; - case NumericUpDown numupdown: - numupdown.Value = 0; - break; - case ListView lv: - lv.Items.Clear(); - break; - case Button btn: - if (!btn.Name.Contains("Speichern") && !btn.Name.Contains("Abbrechen")) btn.BackColor = Properties.Settings.Default.Wirlblau; - break; - default: - break; - } - } //Controls werden bereinigt. (Switchausführung) - private void listViewMaschine_MouseDoubleClick(object sender, MouseEventArgs e) - { - ListViewItem item1 = this.listViewMaschine.GetItemAt(e.X, e.Y); - Maschine = (Maschine)item1.Tag; - - if (Maschine.TrocknerKaputt == false) - { - if (MessageBox.Show($"Möchtest du bei der {Maschine.Bezeichnung} einen Trockner deaktivieren?", "Frage", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) - { - Maschine.TrocknerKaputt = true; - Maschine.Save(); - } - } - else - { - if (MessageBox.Show($"Möchtest du bei der {Maschine.Bezeichnung} den Trockner wieder aktivieren?", "Frage", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) - { - Maschine.TrocknerKaputt = false; - Maschine.Save(); - } - - } - - this.listViewMaschine.Items.Clear(); - - foreach (Maschine maschine in Maschine.GetList()) - { - ListViewItem item; - item = new ListViewItem(); - item.Tag = maschine; - item.Text = maschine.Bezeichnung; - item.SubItems.Add(maschine.Faecher.ToString()); - item.SubItems.Add(maschine.TrocknerKaputt.ToString()); - - this.listViewMaschine.Items.Add(item); - } - - } /// /// Hilfe Events + /// /// private void buttonNeueMaschine_HelpRequested(object sender, HelpEventArgs hlpevent) { MessageBox.Show($"Hier kannst du eine neue Maschine anlegen.{Environment.NewLine}{Environment.NewLine}Wenn du bei einer Maschine einen Trockner aus- oder einschalten willst musst du die Maschine doppelt anklicken.", "Hilfe", MessageBoxButtons.OK, MessageBoxIcon.Information); - } //Hilfe bei Maschine Button und Maschine Groupbox. + } //Hilfe bei Maschine Button und Maschine Groupbox. - - //DIV FUNKTIONEN NICHT GEBRAUCHT - private void Splash() + /// + /// Panel Main Control Funktionen + /// + /// + /// + private void buttonNeuerAuftrag_Click(object sender, EventArgs e) { - //Open a splash screen form - FormLaden frm = new FormLaden(); - Application.Run(frm); + FormNeuerAuftrag neuerAuftrag = new FormNeuerAuftrag(this.benutzer); neuerAuftrag.ShowDialog(); + } + private void buttonScannTest_Click(object sender, EventArgs e) + { + string s = this.textBoxScannTest.Text; + int pos = s.IndexOf('#'); + this.textBoxScannTest.Text = this.labelScannTest.Text = s.Substring(pos + 1); + } + + /// + /// Scan QR-Code Test. + /// + /// + /// + private void textBoxScannTest_TextChanged(object sender, EventArgs e) + { + TextBox textBox1 = (TextBox)sender; + using (Graphics g = textBox1.CreateGraphics()) + { + SizeF size = g.MeasureString(textBox1.Text, textBox1.Font); + textBox1.Width = (int)size.Width + 10; // +10 als Puffer + } + } + + /// + /// Update Events mit Button-Click + /// + /// + /// + private async void buttonArtikelUpdate_Click(object sender, EventArgs e) + { + FormLaden laden = new FormLaden(); + laden.Show(); + + List sortiment = Funktionen.SortimentLesen("Liste"); + sortiment = sortiment.GroupBy(a => a.ArtNr).Select(g => g.First()).ToList(); + //TODO: Testen ob Get_ArtikelKurzliste funktioniert. + //List artikelkurzliste = Funktionen.Get_ArtikelKurzlisteFromDatei(); + + + // Controls blockieren + progressBarArtikel.Value = 0; + progressBarArtikel.Visible = true; + + // ProgressBar Maximum definieren + progressBarArtikel.Maximum = sortiment.Count(); + tSBArtikelVW.Enabled = false; + + // Fortschritt simulieren (z.B. Datenbankabfrage) + var progress = new Progress(value => progressBarArtikel.Value = value); + + await Task.Run(() => + { + Update_Artikel(progress, sortiment); + //TODO: Einkommentieren wenn ArtikelUpdate auf ArtikelKurzliste umgestellt werden kann. + //Update_Artikel(progress, artikelkurzliste); + }); + + progressBarArtikel.Value = 0; + + laden.Close(); + this.Show(); + //TODO: LadenScreen anzeigen etc. + } + private async void buttonSortimentUpdate_Click(object sender, EventArgs e) + { + //TODO: für Ladescreen den Progressbar programieren. (perplexity fragen wie der Status an einen anderen Screen übergeben werden kann) + // Form Laden anzeigen + FormLaden laden = new FormLaden(); + laden.Show(); + + // Sortiment holen + List sortiment = Funktionen.SortimentLesen("Liste"); + + // Controls blockieren + progressBarArtikel.Value = 0; + progressBarArtikel.Visible = true; + + // ProgressBar Maximum definieren + progressBarArtikel.Maximum = sortiment.Count(); + + // Fortschritt simulieren (z.B. Datenbankabfrage) + var progress = new Progress(value => progressBarArtikel.Value = value); + + await Task.Run(() => Update_Sortiment(progress, sortiment)); + + progressBarArtikel.Value = 0; + + //laden.Close(); + //this.Show(); + + } + private void Update_Sortiment(IProgress progress, List sortiment) + { + int tosave = 0; + int saved = 0; + int artvorhanden = 0; + int anzahlkunden = 0; + string sortNr = string.Empty; + List kundenliste = Kunde.GetList(true, string.Empty); + + // ProgressBar Maximum definieren + progressBarArtikel.Maximum = kundenliste.Count(); + + foreach (Kunde kunde in kundenliste) + { + // Fortschrittswert an die ProgressBar melden + progress.Report(++anzahlkunden); + + //Jedes Innsbrucker Soziale Dienste Sortiment ist gleich. + if (kunde.KundeNummer == "010069" | kunde.KundeNummer == "010071") sortNr = "010068"; + else sortNr = kunde.KundeNummer; + + foreach (Sortiment sort in sortiment.FindAll(Sortiment => Sortiment.KundeNummer == sortNr)) + { + KundeArtikel item = KundeArtikel.GetItemIfAvailable(Kunde.GetKundeID(sort.KundeNummer, null), sort.ArtNr); + + if(item == null) + { + ++tosave; + + item = new KundeArtikel(); + item.KundeID = Kunde.GetKundeID(sort.KundeNummer, null); + item.ArtikelNR = sort.ArtNr; + item.ArtikelName = sort.ArtName; + item.Stand = 0; + item.Fehlmenge = 0; + item.Korrektur = 0; + + if (item.Save() == 1) saved++; + } + else ++artvorhanden; + + } + + } + // Überprüfung ob alle Zeilen gespeichert wurden. + if (tosave == saved) + { + meldung.Gespeichert(); + meldung.VerarbeiteteDaten(saved, anzahlkunden, artvorhanden); + } + else meldung.Speicherfehler(); + } + private void Update_Artikel(IProgress progress, List sortiment) + { + int i = 0; + + //TODO: Artikel Update weiter testen und programmieren. Für ArtikelKurzliste ausprogrammieren. + foreach (Sortiment sort in sortiment) + { + // Fortschrittswert an die ProgressBar melden + progress.Report(++i); + + if (sort.ArtNr != 0) + { + Artikel art = Artikel.GetArtikel(sort.ArtNr); + if (art.ArtikelID == null) + { + art = new Artikel(); + art.Nummer = sort.ArtNr; + art.Bezeichnung = sort.ArtName; + art.Nachwaesche = 0; + art.Muellwaesche = 0; + art.LastReset = null; + + //Switch für ArtikelKategorie + switch (sort.ArtNr) + { + case var nr when nr.ToString().StartsWith("63"): + art.Kategorie = ArtikelKategorie.Frottee; + break; + case var nr when nr.ToString().StartsWith("611"): + if (nr.ToString().StartsWith("61115") || nr.ToString().StartsWith("61116")) art.Kategorie = ArtikelKategorie.Spannleintuch; + else art.Kategorie = ArtikelKategorie.Grossteile; + break; + case var nr when nr.ToString().StartsWith("612"): + art.Kategorie = ArtikelKategorie.Kleinteile; + break; + default: + break; + } + + //Erstellen der Shortbezeichnung für Buttons + if (art.Bezeichnung.Contains("DOPPEL") | art.Bezeichnung.Contains("D-")) art.Short = art.Short + "D-"; + if (art.Bezeichnung.Contains("SPANN")) art.Short = art.Short + "SP"; + if (art.Bezeichnung.Contains("LEINTUCH")) art.Short = art.Short + "LT"; + if (art.Bezeichnung.Contains("SPANN")) + { + string[] s = art.Bezeichnung.Split(' '); + if (s.Length == 3) art.Short = art.Short + " " + s[2]; + } //Farben zuordnen und zu Short hinzufügen + if (art.Bezeichnung.Contains("HANDTUCH")) art.Short = art.Short + "HT"; + if (art.Bezeichnung.Contains("DUSCHTUCH")) art.Short = art.Short + "DT"; + if (art.Bezeichnung.Contains("BADETUCH")) art.Short = art.Short + "BT"; + if (art.Bezeichnung.Contains("BADEVORLEGER")) art.Short = art.Short + "BV"; + if (art.Bezeichnung.Contains("BADEMANTEL")) art.Short = art.Short + "BM"; + if (art.Bezeichnung.Contains("SAUNATUCH")) art.Short = art.Short + "ST"; + if (art.Bezeichnung.Contains("GESICHTSTUCH")) art.Short = art.Short + "GT"; + if (art.Bezeichnung.Contains("POLSTERBEZUG")) + { + art.Short = art.Short + "PB"; + switch (art.Bezeichnung) + { + case var bez when bez.Contains("60x80"): + art.Short = art.Short + " 60x80"; + break; + case var bez when bez.Contains("40x60"): + art.Short = art.Short + " 40x60"; + break; + case var bez when bez.Contains("40x40"): + art.Short = art.Short + " 40x40"; + break; + case var bez when bez.Contains("40x50"): + art.Short = art.Short + " 40x50"; + break; + case var bez when bez.Contains("40x70"): + art.Short = art.Short + " 40x70"; + break; + default: + break; + } + } //Größen zuordnen und zu Short hinzufügen + if (art.Bezeichnung.Contains("DECKENBEZUG")) art.Short = art.Short + "DB"; + if (art.Bezeichnung.Contains("TISCHTUCH")) + { + art.Short = art.Short + "TT"; + int index = art.Bezeichnung.IndexOf("x"); + if (index > 0) art.Short = art.Short + art.Bezeichnung.Substring(index - 4, 8); + } //Tischtücher und Größen zuordnen und zu Short hinzufügen + if (art.Bezeichnung.Contains("MUNDSERVIETTE")) art.Short = art.Short + "MS"; + if (art.Bezeichnung.Contains("DECKSERVIETTE")) art.Short = art.Short + "DS"; + + //Speichern jedes Artikels + art.Save(); + } + else + { + art.Bezeichnung = sort.ArtName; + + art.Save(); + } + } + } + + tSBArtikelVW.Enabled = true; + progressBarArtikel.Value = 0; + } + + private void buttonAllUpdate_Click(object sender, EventArgs e) + { + //Update_Artikel(); + } + + /// + /// AUFTRAGSVERWALTUNG FUNKTIONEN + /// Button-Click AufAbruf und Ausgeliefert sowie ItemsChecked + /// + /// + /// + private void buttonAusgeliefert_Click(object sender, EventArgs e) + { + int saved = 0; + int tosave = 0; + if (this.objectListViewAuftrag.CheckedItems.Count > 0) + { + if (meldung.AuftragAusgeliefert() == DialogResult.Yes) + { + foreach (OLVListItem item in this.objectListViewAuftrag.CheckedItems) + { + ++tosave; + Auftrag a = (Auftrag)item.RowObject; + a.Erledigt = DateTime.Today; + a.ErledigtVon = this.benutzer.BenutzerID; + a.Status = AuftragStatus.Ausgeliefert; + + if (a.Save()[0] == 1) ++saved; + } + if (saved == tosave) GetExpeditList(null); + } + } + } + private void buttonAufAbruf_Click(object sender, EventArgs e) + { + if (this.objectListViewAuftrag.CheckedItems.Count == 1) + { + if (meldung.AuftragAufAbruf() == DialogResult.Yes) + { + OLVListItem item = (OLVListItem)this.objectListViewAuftrag.CheckedItems[0]; + Auftrag a = (Auftrag)item.RowObject; + a.Status = AuftragStatus.AufAbruf; + + if (a.Save()[0] == 1) GetExpeditList(null); + } + } + else + { + meldung.NurEinAuftrag(); + } + } + + + private void objectListViewAuftrag_ItemChecked(object sender, ItemCheckedEventArgs e) + { + if (this.objectListViewAuftrag.CheckedItems.Count > 0) this.buttonAusgeliefert.Visible = true; + if (this.objectListViewAuftrag.CheckedItems.Count == 1) this.buttonAufAbruf.Visible = true; + else this.buttonAufAbruf.Visible = false; + + } + + /// + /// AUFTRAGSVERWALTUNG FUNKTIONEN + /// RadioButtons für Auftragsverwaltung & Laden der Auftragsliste nach Status. + /// + /// + /// + private void RadioButton_CheckedChanged(object sender, EventArgs e) + { + + RadioButton rB = (RadioButton)sender; + if (rB.Checked) + { + if (Enum.TryParse(rB.Name.Substring(2), out AuftragStatus status)) rB.Tag = (int)status; + else rB.Tag = null; + + List alist = new List(); + + switch (rB.Tag) + { + case AuftragStatus.Abgeholt: + break; + case AuftragStatus.Aufgelegt: + break; + case AuftragStatus.Finisching: + break; + case AuftragStatus.Herrichten: + break; + case AuftragStatus.Vorbereitet: + GetExpeditList((int?)rB.Tag); + break; + case AuftragStatus.Fertig: + GetExpeditList((int?)rB.Tag); + break; + case AuftragStatus.Ausgeliefert: + GetExpeditList((int?)rB.Tag); + break; + case AuftragStatus.AufAbruf: + GetExpeditList((int?)rB.Tag); + break; + default: + GetExpeditList((int?)rB.Tag); + break; + } + + } + + } + private void GetExpeditList(int? status) + { + Cursor.Current = Cursors.WaitCursor; + this.objectListViewAuftrag.SuspendLayout(); + this.objectListViewAuftrag.BeginUpdate(); + + List alist = new List(); + alist = Auftrag.GetExpeditLists(status); + if (alist.Count == 0) meldung.KeineAufträge(); + else Load_OLV(alist); // Load_ListView(alist); + + this.objectListViewAuftrag.EndUpdate(); + this.objectListViewAuftrag.ResumeLayout(); + Cursor.Current = Cursors.Default; + } + + /// + /// AUFTRAGSVERWALTUNG FUNKTIONEN + /// ObjectListView für Auftragsverwaltung laden. + /// + /// + private void Load_OLV(List alist) + { + Generator.GenerateColumns(this.objectListViewAuftrag, typeof(Auftrag), true); + this.objectListViewAuftrag.SetObjects(alist); + OLVColumn sortcolumn = (OLVColumn)this.objectListViewAuftrag.Columns[1]; + this.objectListViewAuftrag.Sort(sortcolumn); + OLVColumn buttonColumn = new OLVColumn(); + buttonColumn = (OLVColumn)this.objectListViewAuftrag.Columns[10]; + buttonColumn.IsButton = true; + buttonColumn.ButtonSizing = OLVColumn.ButtonSizingMode.CellBounds; + + this.objectListViewAuftrag.CheckedAspectName = "IsChecked"; + + Funktionen.Columns_Resize(this.objectListViewAuftrag); + } + + private void FormMain_HelpButtonClicked(object sender, CancelEventArgs e) + { + string[] keys = { + "Aufgelegt", + "Hergerichtet", + "Fertig" }; + + string[] keytext = { + "Auftrag wurde erstellt aber noch nicht ferig hergerichtet", + "Auftrag wurde fertig hergerichtet aber nicht abgeschlossen. Containeranzahl kann noch bearbeitet werden.", + "Auftrag wurde abgeschlossen und kann nichtmehr bearbeitet werden."}; + + FormHelp help = new FormHelp(keys, keytext); + help.ShowDialog(); + //e.Cancel = true; + + } + + private void tSBHilfe_Click(object sender, EventArgs e) + { + FormMain_HelpButtonClicked(this, null); + } + private void GetStatistik() + { + string[] statistik = { "Container gewaschen:", "Container hergerichtet:", "Container fertig:", "Kunden gewaschen:", "Kunden hergerichtet:", "Kunden abgeschlossen:" }; + List auftraglist = Auftrag.GetAuftragStatsListToday(this.dateTimePicker1.Value.Date); + + for (int i = 1; i <= statistik.Length; i++) + { + foreach(Control ctr in this.tableLayoutPanelStatistik.Controls) + { + Label lbl; + if (ctr.GetType() == typeof(Label)) + { + lbl = (Label)ctr; + if (lbl.Text.Contains("Statistik") && lbl.Text.Contains($"{i.ToString()}")) lbl.Text = statistik[i - 1].ToString(); + if (lbl.Name.Contains("Zahl")) + { + + int j = 0; + switch (lbl.Name) + { + case var s when s.Contains($"1"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Aufgelegt) j += a.Container; + lbl.Text = j.ToString(); + break; + case var s when s.Contains($"2"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Vorbereitet) j += a.ContainerClean; + lbl.Text = j.ToString(); + break; + case var s when s.Contains($"3"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Fertig) j += a.ContainerClean; + lbl.Text = j.ToString(); + break; + case var s when s.Contains($"4"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Aufgelegt) j++; + lbl.Text = j.ToString(); + break; + case var s when s.Contains($"5"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Vorbereitet) j++; + lbl.Text = j.ToString(); + break; + case var s when s.Contains($"{i}"): + foreach (Auftrag a in auftraglist) if (a.Status == AuftragStatus.Fertig) j++; + lbl.Text = j.ToString(); + break; + default: + break; + } + } + } + } + } + //this.groupBoxStatistik.Width = this.tableLayoutPanelStatistik.Right; + + } + + + private void dateTimePicker1_CloseUp(object sender, EventArgs e) + { + GetStatistik(); + } + private void groupBox_Paint(object sender, PaintEventArgs e) + { + GroupBox gb = (GroupBox)sender; + base.OnPaint(e); + Funktionen.GetGroupBoxBoarder(gb, e); + + gb.MouseDown += groupBox_MouseDown; + gb.MouseMove += groupBox_MouseMove; + gb.MouseUp += groupBox_MouseUp; + foreach(Control ctr in gb.Controls) + { + ctr.MouseDown += groupBox_MouseDown; + ctr.MouseMove += groupBox_MouseMove; + ctr.MouseUp += groupBox_MouseUp; + } + } + + private void groupBox_MouseDown(object sender, MouseEventArgs e) + { + GroupBox gb; + if (sender.GetType() == typeof(GroupBox)) gb = (GroupBox)sender; + else + { + var ctr = (Control)sender; + gb = (GroupBox)ctr.Parent; + } + + if (e.Button == MouseButtons.Left) + { + isDragging = true; + dragStartPoint = new Point(e.X, e.Y); + + } + } + private Point newLocation; + private void groupBox_MouseMove(object sender, MouseEventArgs e) + { + GroupBox gb; + if (sender.GetType() == typeof(GroupBox)) gb = (GroupBox)sender; + else + { + var ctr = (Control)sender; + gb = (GroupBox)ctr.Parent; + } + Panel panel = (Panel)gb.Parent; + //TODO: DragDrop verbessern + if (isDragging) + { + // Neue Position berechnen, relativ zum ursprünglichen Klickpunkt + newLocation = gb.PointToScreen(dragStartPoint); + newLocation.X += e.X - dragStartPoint.X; + newLocation.Y += e.Y - dragStartPoint.Y; + + // Optional: Keep inside form bounds + newLocation.X = Math.Max(0, Math.Min(panel.Width - gb.Width, newLocation.X)); + newLocation.Y = Math.Max(0, Math.Min(panel.Height - gb.Height, newLocation.Y)); + + // Position des Controls setzen + newLocation = panel.PointToClient(newLocation); + //TODO: GroupBox Realtime verschieben testen. Sonst Endposition nehmen. gb.Location hier entfernen und unten einkommentieren. + } + } + + private void groupBox_MouseUp(object sender, MouseEventArgs e) + { + GroupBox gb; + if (sender.GetType() == typeof(GroupBox)) gb = (GroupBox)sender; + else + { + var ctr = (Control)sender; + gb = (GroupBox)ctr.Parent; + } + + if (e.Button == MouseButtons.Left) + { + isDragging = false; + //TODO: GroupBox wird an Endposition verschoben. + gb.Location = newLocation; + } + } - } //LADESCREEN WIRD GELADEN WENN BENÖTIGT. AKTIVIEREN } } + diff --git a/FormMain.resx b/FormMain.resx index ef717eb..d56ce45 100644 --- a/FormMain.resx +++ b/FormMain.res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A8Mbu2K2m5tgfArA7bPH8Z7RZHwIAeF8OGzWfwaEiAjjPw8YYPTUf - ogH8ZX3f39hPnt5c/l5f/gZyfcPM3D4AAAAASUVORK5CYII= @@ -433,84 +463,15 @@ nOccAdABIDXXE1nzAAAAAElFTkSuQmCC - - 172, 17 - - + - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAKhJREFUOE9jYEAC3759M0DmYwM41Xz79q3i27dv/799+5aJLgcDIDmomgp0iYpX - N6/+3xbp/v/t/TtYDQGJgeS2hDj8f37xLMIQkJNApoI0L1Tj/b/WWRfDEJhmkBxIDcgQqEsg3kFXgGwI - PjmE+/AYgk0MQzMMYDOEaM0wgG4ISZpBgCID0DWT5AVsmokORFyaiYpGaiUk8pMykgLyMxMM4MyqSABd - DQCo07laP2majgAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAG5JREFUOE9j+PbtW/i3b9/efPv27T+JGKQnnAHE0C5Y858heA5JGKQHpBdkAIYk - sRisF9mAD+8/EoWHswGk4kFqALp/0TH9DEDno4sjG3CneP4xDA3ofHRxZANkkA1BV0jQABCAGQISACkC - 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAKhJREFUOE9jYEAC3759M0DmYwM41Xz79q3i27dv/799+5aJLgcDIDmomgp0iYpX - N6/+3xbp/v/t/TtYDQGJgeS2hDj8f37xLMIQkJNApoI0L1Tj/b/WWRfDEJhmkBxIDcgQqEsg3kFXgGwI - PjmE+/AYgk0MQzMMYDOEaM0wgG4ISZpBgCID0DWT5AVsmokORFyaiYpGaiUk8pMykgLyMxMM4MyqSABd - DQCo07laP2majgAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAG5JREFUOE9j+PbtW/i3b9/efPv27T+JGKQnnAHE0C5Y858heA5JGKQHpBdkAIYk - sRisF9mAD+8/EoWHswGk4kFqALp/0TH9DEDno4sjG3CneP4xDA3ofHRxZANkkA1BV0jQABCAGQISACkC - 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAKhJREFUOE9jYEAC3759M0DmYwM41Xz79q3i27dv/799+5aJLgcDIDmomgp0iYpX - N6/+3xbp/v/t/TtYDQGJgeS2hDj8f37xLMIQkJNApoI0L1Tj/b/WWRfDEJhmkBxIDcgQqEsg3kFXgGwI - PjmE+/AYgk0MQzMMYDOEaM0wgG4ISZpBgCID0DWT5AVsmokORFyaiYpGaiUk8pMykgLyMxMM4MyqSABd - DQCo07laP2majgAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAG5JREFUOE9j+PbtW/i3b9/efPv27T+JGKQnnAHE0C5Y858heA5JGKQHpBdkAIYk - sRisF9mAD+8/EoWHswGk4kFqALp/0TH9DEDno4sjG3CneP4xDA3ofHRxZANkkA1BV0jQABCAGQISACkC - 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAJ1JREFUOE+tkzEOxCAQA/OkewPf4AVHQc1L6Wh4hFtO1mWV1WaJSO7cBdujhcC2 - KQF46W9P0wyAAmAAeFtPRG/PFGuU1trIOY/euwvhGr2U0qi1HhCORCrLIYQRYzxBpEyPGUL2Sb7bsQEN - ufKO+S4g3tqpLPIgy2WRhdwqUz8BbPnWFrzy8iHOyku/8V8X6flVVoHnj0k0fapKNvMB+yy2Iod0bscA - AAAASUVORK5CYII= - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAKhJREFUOE9jYEAC3759M0DmYwM41Xz79q3i27dv/799+5aJLgcDIDmomgp0iYpX - N6/+3xbp/v/t/TtYDQGJgeS2hDj8f37xLMIQkJNApoI0L1Tj/b/WWRfDEJhmkBxIDcgQqEsg3kFXgGwI - PjmE+/AYgk0MQzMMYDOEaM0wgG4ISZpBgCID0DWT5AVsmokORFyaiYpGaiUk8pMykgLyMxMM4MyqSABd - DQCo07laP2majgAAAABJRU5ErkJggg== - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO - vAAADrwBlbxySQAAAG5JREFUOE9j+PbtW/i3b9/efPv27T+JGKQnnAHE0C5Y858heA5JGKQHpBdkAIYk - sRisF9mAD+8/EoWHswGk4kFqALp/0TH9DEDno4sjG3CneP4xDA3ofHRxZANkkA1BV0jQABCAGQISACkC - 0cRiAGlM6tRr9T1CAAAAAElFTkSuQmCC + iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi + DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni + wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5 + ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd + PyMiVCQA2DPSIdc8LCIiV0hbJIJpF2HObxfJDBFbZVtjg60yMXFeYM+fiQ7Anz9TbDaD2B/bHero49g9 + VkT2AAAAAElFTkSuQmCC @@ -518,19 +479,100 @@ - AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8A//////////////////////////////////////////////////////////////////////// - ////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P//// - //zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/ - //////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM - zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP - zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8 - zMzP//zMzMz//8zMzM////zM/////8zP/////Mz///////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5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RfbnfyNmfgEgX1tNU3DkZ5+ + sky0wFVXx/X82wNTklDVT5XH7W39gUx8AoD3xZZ5CXZcXV0fsKTlJklyXM/PcZRtqZPcNv1Mnt6Ccg48 + wkled9wPrWBphh1bJs5xfQnV2xI48bVT8vfsxIKJD1068ZwEOe5SO9JLfDcYX0L17YTYT0uVtUPyKG9r + LyY+dOXAw6yIpt5n0Rd5m1Im3XF9CdXr6mw/baqxwCl0Rl6PVR+iZrRPsTLaenSf0QdL9qxXZr9KNty7 + TgnVYlONyd6OyEx8iOrAW4keqnEH35vtybI+aXZaz5sLP6yh/dbkL+uMajvB2wSViQ89CQLHiDpqsGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC \ No newline at end of file diff --git a/FormNeuDeckungsbeitrag.Designer.cs b/FormNeuDeckungsbeitrag.Designer.cs index 58f3c26..7aaedb7 100644 --- a/FormNeuDeckungsbeitrag.Designer.cs +++ b/FormNeuDeckungsbeitrag.Designer.cs @@ -68,6 +68,7 @@ namespace Deckungsbeitrag this.tSSLErfolgPos = new System.Windows.Forms.ToolStripStatusLabel(); this.tSSLErfolgNull = new System.Windows.Forms.ToolStripStatusLabel(); this.tSSLErfolgNeg = new System.Windows.Forms.ToolStripStatusLabel(); + this.columnButtonRenderer1 = new BrightIdeasSoftware.ColumnButtonRenderer(); ((System.ComponentModel.ISupportInitialize)(this.olvDeckungsbeitrag)).BeginInit(); this.groupBoxFilter.SuspendLayout(); this.groupBoxQuartal.SuspendLayout(); @@ -90,14 +91,15 @@ namespace Deckungsbeitrag this.olvDeckungsbeitrag.FullRowSelect = true; this.olvDeckungsbeitrag.GridLines = true; this.olvDeckungsbeitrag.HideSelection = false; - this.olvDeckungsbeitrag.Location = new System.Drawing.Point(197, 12); + this.olvDeckungsbeitrag.Location = new System.Drawing.Point(148, 10); + this.olvDeckungsbeitrag.Margin = new System.Windows.Forms.Padding(2); this.olvDeckungsbeitrag.MenuLabelColumns = "Spalten"; this.olvDeckungsbeitrag.Name = "olvDeckungsbeitrag"; this.olvDeckungsbeitrag.SelectColumnsOnRightClickBehaviour = BrightIdeasSoftware.ObjectListView.ColumnSelectBehaviour.Submenu; this.olvDeckungsbeitrag.SelectedColumnTint = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(176)))), ((int)(((byte)(196)))), ((int)(((byte)(222))))); this.olvDeckungsbeitrag.ShowGroups = false; this.olvDeckungsbeitrag.ShowItemToolTips = true; - this.olvDeckungsbeitrag.Size = new System.Drawing.Size(1385, 600); + this.olvDeckungsbeitrag.Size = new System.Drawing.Size(1039, 488); this.olvDeckungsbeitrag.TabIndex = 0; this.olvDeckungsbeitrag.TintSortColumn = true; this.olvDeckungsbeitrag.UseAlternatingBackColors = true; @@ -131,9 +133,11 @@ namespace Deckungsbeitrag this.groupBoxFilter.Controls.Add(this.buttonOK); this.groupBoxFilter.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBoxFilter.ForeColor = System.Drawing.Color.White; - this.groupBoxFilter.Location = new System.Drawing.Point(200, 0); + this.groupBoxFilter.Location = new System.Drawing.Point(150, 0); + this.groupBoxFilter.Margin = new System.Windows.Forms.Padding(2); this.groupBoxFilter.Name = "groupBoxFilter"; - this.groupBoxFilter.Size = new System.Drawing.Size(1385, 90); + this.groupBoxFilter.Padding = new System.Windows.Forms.Padding(2); + this.groupBoxFilter.Size = new System.Drawing.Size(1039, 73); this.groupBoxFilter.TabIndex = 2; this.groupBoxFilter.TabStop = false; // @@ -141,9 +145,10 @@ namespace Deckungsbeitrag // this.checkBoxInaktiv.AutoSize = true; this.checkBoxInaktiv.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBoxInaktiv.Location = new System.Drawing.Point(844, 53); + this.checkBoxInaktiv.Location = new System.Drawing.Point(633, 43); + this.checkBoxInaktiv.Margin = new System.Windows.Forms.Padding(2); this.checkBoxInaktiv.Name = "checkBoxInaktiv"; - this.checkBoxInaktiv.Size = new System.Drawing.Size(101, 29); + this.checkBoxInaktiv.Size = new System.Drawing.Size(83, 24); this.checkBoxInaktiv.TabIndex = 29; this.checkBoxInaktiv.Text = "Inaktive"; this.checkBoxInaktiv.UseVisualStyleBackColor = true; @@ -164,27 +169,30 @@ namespace Deckungsbeitrag "Oktober", "November", "Dezember"}); - this.comboBoxMonat.Location = new System.Drawing.Point(567, 48); + this.comboBoxMonat.Location = new System.Drawing.Point(425, 39); + this.comboBoxMonat.Margin = new System.Windows.Forms.Padding(2); this.comboBoxMonat.Name = "comboBoxMonat"; - this.comboBoxMonat.Size = new System.Drawing.Size(152, 28); + this.comboBoxMonat.Size = new System.Drawing.Size(115, 25); this.comboBoxMonat.TabIndex = 27; // // comboBoxVPJahr // this.comboBoxVPJahr.AllowDrop = true; this.comboBoxVPJahr.FormattingEnabled = true; - this.comboBoxVPJahr.Location = new System.Drawing.Point(162, 48); + this.comboBoxVPJahr.Location = new System.Drawing.Point(122, 39); + this.comboBoxVPJahr.Margin = new System.Windows.Forms.Padding(2); this.comboBoxVPJahr.Name = "comboBoxVPJahr"; - this.comboBoxVPJahr.Size = new System.Drawing.Size(134, 28); + this.comboBoxVPJahr.Size = new System.Drawing.Size(102, 25); this.comboBoxVPJahr.TabIndex = 26; // // comboBoxAktJahr // this.comboBoxAktJahr.AllowDrop = true; this.comboBoxAktJahr.FormattingEnabled = true; - this.comboBoxAktJahr.Location = new System.Drawing.Point(12, 48); + this.comboBoxAktJahr.Location = new System.Drawing.Point(9, 39); + this.comboBoxAktJahr.Margin = new System.Windows.Forms.Padding(2); this.comboBoxAktJahr.Name = "comboBoxAktJahr"; - this.comboBoxAktJahr.Size = new System.Drawing.Size(134, 28); + this.comboBoxAktJahr.Size = new System.Drawing.Size(102, 25); this.comboBoxAktJahr.TabIndex = 25; // // groupBoxQuartal @@ -195,9 +203,11 @@ namespace Deckungsbeitrag this.groupBoxQuartal.Controls.Add(this.checkBox1); this.groupBoxQuartal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.groupBoxQuartal.ForeColor = System.Drawing.Color.White; - this.groupBoxQuartal.Location = new System.Drawing.Point(315, 16); + this.groupBoxQuartal.Location = new System.Drawing.Point(236, 13); + this.groupBoxQuartal.Margin = new System.Windows.Forms.Padding(2); this.groupBoxQuartal.Name = "groupBoxQuartal"; - this.groupBoxQuartal.Size = new System.Drawing.Size(229, 65); + this.groupBoxQuartal.Padding = new System.Windows.Forms.Padding(2); + this.groupBoxQuartal.Size = new System.Drawing.Size(172, 53); this.groupBoxQuartal.TabIndex = 24; this.groupBoxQuartal.TabStop = false; this.groupBoxQuartal.Text = "Quartal"; @@ -212,9 +222,10 @@ namespace Deckungsbeitrag this.checkBox4.FlatAppearance.CheckedBackColor = System.Drawing.Color.YellowGreen; this.checkBox4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox4.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBox4.Location = new System.Drawing.Point(173, 28); + this.checkBox4.Location = new System.Drawing.Point(130, 23); + this.checkBox4.Margin = new System.Windows.Forms.Padding(2); this.checkBox4.Name = "checkBox4"; - this.checkBox4.Size = new System.Drawing.Size(28, 30); + this.checkBox4.Size = new System.Drawing.Size(26, 27); this.checkBox4.TabIndex = 3; this.checkBox4.Text = "4"; this.checkBox4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -229,9 +240,10 @@ namespace Deckungsbeitrag this.checkBox3.FlatAppearance.CheckedBackColor = System.Drawing.Color.YellowGreen; this.checkBox3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox3.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBox3.Location = new System.Drawing.Point(124, 28); + this.checkBox3.Location = new System.Drawing.Point(93, 23); + this.checkBox3.Margin = new System.Windows.Forms.Padding(2); this.checkBox3.Name = "checkBox3"; - this.checkBox3.Size = new System.Drawing.Size(28, 30); + this.checkBox3.Size = new System.Drawing.Size(26, 27); this.checkBox3.TabIndex = 2; this.checkBox3.Text = "3"; this.checkBox3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -246,9 +258,10 @@ namespace Deckungsbeitrag this.checkBox2.FlatAppearance.CheckedBackColor = System.Drawing.Color.YellowGreen; this.checkBox2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox2.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBox2.Location = new System.Drawing.Point(76, 28); + this.checkBox2.Location = new System.Drawing.Point(57, 23); + this.checkBox2.Margin = new System.Windows.Forms.Padding(2); this.checkBox2.Name = "checkBox2"; - this.checkBox2.Size = new System.Drawing.Size(28, 30); + this.checkBox2.Size = new System.Drawing.Size(26, 27); this.checkBox2.TabIndex = 1; this.checkBox2.Text = "2"; this.checkBox2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -263,9 +276,10 @@ namespace Deckungsbeitrag this.checkBox1.FlatAppearance.CheckedBackColor = System.Drawing.Color.YellowGreen; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.checkBox1.Location = new System.Drawing.Point(29, 28); + this.checkBox1.Location = new System.Drawing.Point(22, 23); + this.checkBox1.Margin = new System.Windows.Forms.Padding(2); this.checkBox1.Name = "checkBox1"; - this.checkBox1.Size = new System.Drawing.Size(28, 30); + this.checkBox1.Size = new System.Drawing.Size(26, 27); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "1"; this.checkBox1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -275,9 +289,10 @@ namespace Deckungsbeitrag // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label6.Location = new System.Drawing.Point(157, 20); + this.label6.Location = new System.Drawing.Point(118, 16); + this.label6.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(83, 25); + this.label6.Size = new System.Drawing.Size(65, 20); this.label6.TabIndex = 23; this.label6.Text = "Jahr VP"; // @@ -285,9 +300,10 @@ namespace Deckungsbeitrag // this.label2.AutoSize = true; this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.Location = new System.Drawing.Point(7, 20); + this.label2.Location = new System.Drawing.Point(5, 16); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(51, 25); + this.label2.Size = new System.Drawing.Size(40, 20); this.label2.TabIndex = 20; this.label2.Text = "Jahr"; // @@ -295,9 +311,10 @@ namespace Deckungsbeitrag // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.Location = new System.Drawing.Point(562, 20); + this.label1.Location = new System.Drawing.Point(422, 16); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(67, 25); + this.label1.Size = new System.Drawing.Size(54, 20); this.label1.TabIndex = 18; this.label1.Text = "Monat"; // @@ -307,9 +324,10 @@ namespace Deckungsbeitrag this.buttonOK.BackColor = System.Drawing.SystemColors.ButtonFace; this.buttonOK.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonOK.ForeColor = System.Drawing.Color.Black; - this.buttonOK.Location = new System.Drawing.Point(1253, 26); + this.buttonOK.Location = new System.Drawing.Point(940, 21); + this.buttonOK.Margin = new System.Windows.Forms.Padding(2); this.buttonOK.Name = "buttonOK"; - this.buttonOK.Size = new System.Drawing.Size(120, 50); + this.buttonOK.Size = new System.Drawing.Size(90, 41); this.buttonOK.TabIndex = 15; this.buttonOK.Text = "OK"; this.buttonOK.UseVisualStyleBackColor = false; @@ -334,7 +352,7 @@ namespace Deckungsbeitrag this.toolStripMenu.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.VerticalStackWithOverflow; this.toolStripMenu.Location = new System.Drawing.Point(0, 0); this.toolStripMenu.Name = "toolStripMenu"; - this.toolStripMenu.Size = new System.Drawing.Size(197, 646); + this.toolStripMenu.Size = new System.Drawing.Size(148, 525); this.toolStripMenu.TabIndex = 3; this.toolStripMenu.Text = "toolStripMenu"; // @@ -392,7 +410,7 @@ namespace Deckungsbeitrag this.tSComboBoxKndName.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSComboBoxKndName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.tSComboBoxKndName.Name = "tSComboBoxKndName"; - this.tSComboBoxKndName.Size = new System.Drawing.Size(180, 28); + this.tSComboBoxKndName.Size = new System.Drawing.Size(136, 23); this.tSComboBoxKndName.Text = "SUCHTEXT"; this.tSComboBoxKndName.Visible = false; this.tSComboBoxKndName.TextUpdate += new System.EventHandler(this.TSComboBoxKndName_TextUpdate); @@ -488,9 +506,10 @@ namespace Deckungsbeitrag this.tSSLErfolgPos, this.tSSLErfolgNull, this.tSSLErfolgNeg}); - this.statusStrip1.Location = new System.Drawing.Point(197, 616); + this.statusStrip1.Location = new System.Drawing.Point(148, 501); this.statusStrip1.Name = "statusStrip1"; - this.statusStrip1.Size = new System.Drawing.Size(1388, 30); + this.statusStrip1.Padding = new System.Windows.Forms.Padding(1, 0, 10, 0); + this.statusStrip1.Size = new System.Drawing.Size(1041, 24); this.statusStrip1.TabIndex = 4; this.statusStrip1.Text = "statusStrip1"; // @@ -502,7 +521,7 @@ namespace Deckungsbeitrag this.tSSLItems.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLItems.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSSLItems.Name = "tSSLItems"; - this.tSSLItems.Size = new System.Drawing.Size(95, 24); + this.tSSLItems.Size = new System.Drawing.Size(77, 19); this.tSSLItems.Text = "Datensätze:"; // // tSSLItemsAnz @@ -512,7 +531,7 @@ namespace Deckungsbeitrag | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.tSSLItemsAnz.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLItemsAnz.Name = "tSSLItemsAnz"; - this.tSSLItemsAnz.Size = new System.Drawing.Size(29, 24); + this.tSSLItemsAnz.Size = new System.Drawing.Size(23, 19); this.tSSLItemsAnz.Text = "00"; // // tSSLMietbetten @@ -523,7 +542,7 @@ namespace Deckungsbeitrag this.tSSLMietbetten.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLMietbetten.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSSLMietbetten.Name = "tSSLMietbetten"; - this.tSSLMietbetten.Size = new System.Drawing.Size(148, 24); + this.tSSLMietbetten.Size = new System.Drawing.Size(119, 19); this.tSSLMietbetten.Text = "Mietbetten (Aktiv):"; // // tSSLMietbettenAnz @@ -533,7 +552,7 @@ namespace Deckungsbeitrag | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.tSSLMietbettenAnz.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLMietbettenAnz.Name = "tSSLMietbettenAnz"; - this.tSSLMietbettenAnz.Size = new System.Drawing.Size(29, 24); + this.tSSLMietbettenAnz.Size = new System.Drawing.Size(23, 19); this.tSSLMietbettenAnz.Text = "00"; // // tSSLGesamtbetten @@ -544,7 +563,7 @@ namespace Deckungsbeitrag this.tSSLGesamtbetten.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLGesamtbetten.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSSLGesamtbetten.Name = "tSSLGesamtbetten"; - this.tSSLGesamtbetten.Size = new System.Drawing.Size(170, 24); + this.tSSLGesamtbetten.Size = new System.Drawing.Size(136, 19); this.tSSLGesamtbetten.Text = "Gesamtbetten (Aktiv):"; // // tSSLGesamtbettenAnz @@ -554,7 +573,7 @@ namespace Deckungsbeitrag | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.tSSLGesamtbettenAnz.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLGesamtbettenAnz.Name = "tSSLGesamtbettenAnz"; - this.tSSLGesamtbettenAnz.Size = new System.Drawing.Size(29, 24); + this.tSSLGesamtbettenAnz.Size = new System.Drawing.Size(23, 19); this.tSSLGesamtbettenAnz.Text = "00"; // // tSSLKunden @@ -565,7 +584,7 @@ namespace Deckungsbeitrag this.tSSLKunden.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLKunden.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSSLKunden.Name = "tSSLKunden"; - this.tSSLKunden.Size = new System.Drawing.Size(256, 24); + this.tSSLKunden.Size = new System.Drawing.Size(202, 19); this.tSSLKunden.Text = "Kunden (Aktiv / Inaktiv / Gesamt):"; // // tSSLKundenzahlen @@ -575,7 +594,7 @@ namespace Deckungsbeitrag | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.tSSLKundenzahlen.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLKundenzahlen.Name = "tSSLKundenzahlen"; - this.tSSLKundenzahlen.Size = new System.Drawing.Size(89, 24); + this.tSSLKundenzahlen.Size = new System.Drawing.Size(69, 19); this.tSSLKundenzahlen.Text = "00 / 00 / 00"; // // tSSLErfolg @@ -586,7 +605,7 @@ namespace Deckungsbeitrag this.tSSLErfolg.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLErfolg.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.tSSLErfolg.Name = "tSSLErfolg"; - this.tSSLErfolg.Size = new System.Drawing.Size(191, 24); + this.tSSLErfolg.Size = new System.Drawing.Size(149, 19); this.tSSLErfolg.Text = "Erfolg (Anzahl / Summe):"; // // tSSLErfolgPos @@ -597,7 +616,7 @@ namespace Deckungsbeitrag this.tSSLErfolgPos.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLErfolgPos.ForeColor = System.Drawing.Color.White; this.tSSLErfolgPos.Name = "tSSLErfolgPos"; - this.tSSLErfolgPos.Size = new System.Drawing.Size(59, 24); + this.tSSLErfolgPos.Size = new System.Drawing.Size(46, 19); this.tSSLErfolgPos.Text = "00 / 00"; // // tSSLErfolgNull @@ -607,7 +626,7 @@ namespace Deckungsbeitrag | System.Windows.Forms.ToolStripStatusLabelBorderSides.Bottom))); this.tSSLErfolgNull.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLErfolgNull.Name = "tSSLErfolgNull"; - this.tSSLErfolgNull.Size = new System.Drawing.Size(29, 24); + this.tSSLErfolgNull.Size = new System.Drawing.Size(23, 19); this.tSSLErfolgNull.Text = "00"; // // tSSLErfolgNeg @@ -618,18 +637,23 @@ namespace Deckungsbeitrag this.tSSLErfolgNeg.BorderStyle = System.Windows.Forms.Border3DStyle.SunkenInner; this.tSSLErfolgNeg.ForeColor = System.Drawing.Color.White; this.tSSLErfolgNeg.Name = "tSSLErfolgNeg"; - this.tSSLErfolgNeg.Size = new System.Drawing.Size(59, 24); + this.tSSLErfolgNeg.Size = new System.Drawing.Size(46, 19); this.tSSLErfolgNeg.Text = "00 / 00"; // + // columnButtonRenderer1 + // + this.columnButtonRenderer1.ButtonPadding = new System.Drawing.Size(10, 10); + // // FormNeuDeckungsbeitrag // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1585, 646); + this.ClientSize = new System.Drawing.Size(1189, 525); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.groupBoxFilter); this.Controls.Add(this.toolStripMenu); this.Controls.Add(this.olvDeckungsbeitrag); + this.Margin = new System.Windows.Forms.Padding(2); this.Name = "FormNeuDeckungsbeitrag"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Deckungsbeitrag"; @@ -689,5 +713,6 @@ namespace Deckungsbeitrag private System.Windows.Forms.ToolStripStatusLabel tSSLItems; private System.Windows.Forms.ToolStripStatusLabel tSSLItemsAnz; private System.Windows.Forms.ToolStripStatusLabel tSSLMietbettenAnz; - } + private BrightIdeasSoftware.ColumnButtonRenderer columnButtonRenderer1; + } } \ No newline at end of file diff --git a/FormNeuDeckungsbeitrag.cs b/FormNeuDeckungsbeitrag.cs index 0b48ebc..342861b 100644 --- a/FormNeuDeckungsbeitrag.cs +++ b/FormNeuDeckungsbeitrag.cs @@ -621,7 +621,7 @@ namespace Deckungsbeitrag OLVBewertung bew = (OLVBewertung)item.RowObject; Kunde knd = Kunde.GetKunde(null, bew.KundeID, string.Empty); - KundeDaten daten = new KundeDaten(knd); + FormKundeVW daten = new FormKundeVW(knd); if(daten.ShowDialog() == DialogResult.OK) { } diff --git a/FormNeuDeckungsbeitrag.resx b/FormNeuDeckungsbeitrag.resx index 9e69754..1fdf95b 100644 --- a/FormNeuDeckungsbeitrag.resx +++ b/FormNeuDeckungsbeitrag.resx @@ -127,16 +127,16 @@ iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAIDSURBVDhPpZLrS5NhGMb3j4SWh0oRQVExD4gonkDpg4hG - YKxG6WBogkMZKgPNCEVJFBGdGETEvgwyO9DJE5syZw3P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o2D8JSjQrAJblrncYL7ZJ2+bfaFnC/1S1NjL3diRat7qrO7wLRP3HjWsojBeCo - mDEo5mNjuweFGvjWg2EBhCbpkW78htSHHwRyNdmgAFzPEee2iFkzayy2OLXzT4gr6UdUnlXrullsxxQ+ - kx0g8BTA3aZlButjSTyjODq/WcQcW/B/Je4OQhLvKQDnzN1mp0nnkvAhR8VuMzNrpm1mpjgkoVwB/v8D - TgDQASA1MVpwzwAAAABJRU5ErkJggg== + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAIFSURBVDhPpZLtS1NhGMbPPxJmmlYSgqHiKzGU1EDxg4iK + YKyG2WBogqMYJQOtCEVRFBGdTBCJfRnkS4VaaWNT5sqx1BUxRXxDHYxAJLvkusEeBaPAB+5z4Jzn+t3X + /aLhnEfjo8m+dCoa+7/C3O2Hqe0zDC+8KG+cRZHZhdzaaWTVTCLDMIY0vfM04Nfh77/G/sEhwpEDbO3t + I7TxE8urEVy99fT/AL5gWDLrTB/hnF4XsW0khCu5ln8DmJliT2AXrcNBsU1gj/MH4nMeKwBrPktM28xM + cX79DFKrHHD5d9D26hvicx4pABt2lpg10zYzU0zr7+e3xXGcrkEB2O2TNec9nJFwB3alZn5jZorfeDZh + 6Q3g8s06BeCoKF4MRURoH1+BY2oNCbeb0TIclIYxOhzf8frTOuo7FxCbbVIAzpni0iceEc8vhzEwGkJD + lx83ymxifejdKjRNk/8PWnyIyTQqAJek0jqHwfEVscu31baIu8+90sTE4nY025dQ2/5FIPpnXlzKuK8A + HBUzHot52djqQ6HZhfR7IwK4mKpHtvEDMqvfCiQ6zaAAXM8x94aIWTNrLLG4kVUzgaTSPlzLtyJOZxbb + 1wtfyg4Q+AfA3aZlButjSfxGcUJBk4g5tuP3haQKRKXcUQDOmbvNTpPOJeFFjordZmbWTNvMTHFUcpUC + nOccAdABIDXXE1nzAAAAAElFTkSuQmCC 327, 17 + + 442, 17 + 25 diff --git a/FormNeuerAuftrag.Designer.cs b/FormNeuerAuftrag.Designer.cs index 002710d..160b26e 100644 --- a/FormNeuerAuftrag.Designer.cs +++ b/FormNeuerAuftrag.Designer.cs @@ -46,7 +46,6 @@ namespace Deckungsbeitrag this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); - this.labelContainer = new System.Windows.Forms.Label(); this.groupBoxSonder = new System.Windows.Forms.GroupBox(); this.pictureBoxMinus = new System.Windows.Forms.PictureBox(); this.pictureBoxPlus = new System.Windows.Forms.PictureBox(); @@ -55,16 +54,27 @@ namespace Deckungsbeitrag this.rBDO = new System.Windows.Forms.RadioButton(); this.rBMI = new System.Windows.Forms.RadioButton(); this.rBDI = new System.Windows.Forms.RadioButton(); - this.dGArtikel = new System.Windows.Forms.DataGridView(); this.label6 = new System.Windows.Forms.Label(); this.comboBoxTyp = new System.Windows.Forms.ComboBox(); this.buttonExtraKunde = new System.Windows.Forms.Button(); this.pictureBoxWalli = new System.Windows.Forms.PictureBox(); + this.textBoxCont = new System.Windows.Forms.TextBox(); + this.dGArtikel = new System.Windows.Forms.DataGridView(); + this.KundeArtikelID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KundeID = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelNR = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ArtikelName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Stand = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Fehlmenge = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Korrektur = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.StandBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.FehlmengeBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.KorrekturBearbeitet = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBoxSonder.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWalli)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).BeginInit(); this.SuspendLayout(); // // dTPLiefertag @@ -78,6 +88,7 @@ namespace Deckungsbeitrag this.dTPLiefertag.Name = "dTPLiefertag"; this.dTPLiefertag.Size = new System.Drawing.Size(141, 32); this.dTPLiefertag.TabIndex = 2; + this.dTPLiefertag.ValueChanged += new System.EventHandler(this.dTPLiefertag_ValueChanged); this.dTPLiefertag.Leave += new System.EventHandler(this.dTPLiefertag_Leave); // // comboBoxBenutzer @@ -116,6 +127,7 @@ namespace Deckungsbeitrag this.comboBoxAufgabe.Name = "comboBoxAufgabe"; this.comboBoxAufgabe.Size = new System.Drawing.Size(106, 33); this.comboBoxAufgabe.TabIndex = 0; + this.comboBoxAufgabe.SelectedValueChanged += new System.EventHandler(this.comboBoxAufgabe_SelectedValueChanged); // // labelAktion // @@ -158,7 +170,7 @@ namespace Deckungsbeitrag this.buttonSpeichern.FlatAppearance.BorderSize = 0; this.buttonSpeichern.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonSpeichern.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonSpeichern.ForeColor = System.Drawing.Color.Black; + this.buttonSpeichern.ForeColor = System.Drawing.Color.White; this.buttonSpeichern.Location = new System.Drawing.Point(463, 530); this.buttonSpeichern.Margin = new System.Windows.Forms.Padding(2); this.buttonSpeichern.Name = "buttonSpeichern"; @@ -177,7 +189,7 @@ namespace Deckungsbeitrag this.buttonAbbrechen.FlatAppearance.BorderSize = 0; this.buttonAbbrechen.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonAbbrechen.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.buttonAbbrechen.ForeColor = System.Drawing.Color.Black; + this.buttonAbbrechen.ForeColor = System.Drawing.Color.White; this.buttonAbbrechen.Location = new System.Drawing.Point(587, 530); this.buttonAbbrechen.Margin = new System.Windows.Forms.Padding(2); this.buttonAbbrechen.Name = "buttonAbbrechen"; @@ -261,23 +273,9 @@ namespace Deckungsbeitrag this.label5.Location = new System.Drawing.Point(5, 276); this.label5.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(82, 20); + this.label5.Size = new System.Drawing.Size(158, 20); this.label5.TabIndex = 24; - this.label5.Text = "Container:"; - // - // labelContainer - // - this.labelContainer.BackColor = System.Drawing.Color.White; - this.labelContainer.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.labelContainer.ForeColor = System.Drawing.Color.Black; - this.labelContainer.Location = new System.Drawing.Point(140, 256); - this.labelContainer.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelContainer.Name = "labelContainer"; - this.labelContainer.Size = new System.Drawing.Size(38, 41); - this.labelContainer.TabIndex = 9; - this.labelContainer.Text = "0"; - this.labelContainer.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.labelContainer.TextChanged += new System.EventHandler(this.labelContainer_TextChanged); + this.label5.Text = "Container schmutzig:"; // // groupBoxSonder // @@ -300,10 +298,10 @@ namespace Deckungsbeitrag // this.pictureBoxMinus.BackColor = System.Drawing.Color.Red; this.pictureBoxMinus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxMinus.Image"))); - this.pictureBoxMinus.Location = new System.Drawing.Point(103, 256); + this.pictureBoxMinus.Location = new System.Drawing.Point(174, 256); this.pictureBoxMinus.Margin = new System.Windows.Forms.Padding(2); this.pictureBoxMinus.Name = "pictureBoxMinus"; - this.pictureBoxMinus.Size = new System.Drawing.Size(38, 41); + this.pictureBoxMinus.Size = new System.Drawing.Size(38, 40); this.pictureBoxMinus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxMinus.TabIndex = 27; this.pictureBoxMinus.TabStop = false; @@ -313,10 +311,10 @@ namespace Deckungsbeitrag // this.pictureBoxPlus.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0))))); this.pictureBoxPlus.Image = ((System.Drawing.Image)(resources.GetObject("pictureBoxPlus.Image"))); - this.pictureBoxPlus.Location = new System.Drawing.Point(178, 256); + this.pictureBoxPlus.Location = new System.Drawing.Point(249, 256); this.pictureBoxPlus.Margin = new System.Windows.Forms.Padding(2); this.pictureBoxPlus.Name = "pictureBoxPlus"; - this.pictureBoxPlus.Size = new System.Drawing.Size(38, 41); + this.pictureBoxPlus.Size = new System.Drawing.Size(38, 40); this.pictureBoxPlus.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; this.pictureBoxPlus.TabIndex = 26; this.pictureBoxPlus.TabStop = false; @@ -423,14 +421,6 @@ namespace Deckungsbeitrag this.rBDI.CheckedChanged += new System.EventHandler(this.Liefertag_rB_Checked); this.rBDI.Click += new System.EventHandler(this.Liefertag_rB_Click); // - // dGArtikel - // - this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dGArtikel.Location = new System.Drawing.Point(307, 12); - this.dGArtikel.Name = "dGArtikel"; - this.dGArtikel.Size = new System.Drawing.Size(395, 513); - this.dGArtikel.TabIndex = 10; - // // label6 // this.label6.AutoSize = true; @@ -459,6 +449,7 @@ namespace Deckungsbeitrag // this.buttonExtraKunde.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonExtraKunde.BackColor = System.Drawing.Color.Yellow; + this.buttonExtraKunde.Enabled = false; this.buttonExtraKunde.FlatAppearance.BorderSize = 0; this.buttonExtraKunde.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.buttonExtraKunde.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -471,6 +462,7 @@ namespace Deckungsbeitrag this.buttonExtraKunde.Text = "+Auftrag"; this.buttonExtraKunde.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.buttonExtraKunde.UseVisualStyleBackColor = false; + this.buttonExtraKunde.Visible = false; this.buttonExtraKunde.Click += new System.EventHandler(this.buttonExtraKunde_Click); // // pictureBoxWalli @@ -489,6 +481,99 @@ namespace Deckungsbeitrag this.pictureBoxWalli.UseWaitCursor = true; this.pictureBoxWalli.Visible = false; // + // textBoxCont + // + this.textBoxCont.Font = new System.Drawing.Font("Microsoft Sans Serif", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.textBoxCont.Location = new System.Drawing.Point(210, 256); + this.textBoxCont.Margin = new System.Windows.Forms.Padding(2); + this.textBoxCont.Name = "textBoxCont"; + this.textBoxCont.Size = new System.Drawing.Size(39, 40); + this.textBoxCont.TabIndex = 31; + this.textBoxCont.Text = "0"; + this.textBoxCont.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + this.textBoxCont.TextChanged += new System.EventHandler(this.textBoxCont_TextChanged); + // + // dGArtikel + // + this.dGArtikel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.dGArtikel.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dGArtikel.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.KundeArtikelID, + this.KundeID, + this.ArtikelNR, + this.ArtikelName, + this.Stand, + this.Fehlmenge, + this.Korrektur, + this.StandBearbeitet, + this.FehlmengeBearbeitet, + this.KorrekturBearbeitet}); + this.dGArtikel.Location = new System.Drawing.Point(307, 12); + this.dGArtikel.Name = "dGArtikel"; + this.dGArtikel.Size = new System.Drawing.Size(395, 513); + this.dGArtikel.TabIndex = 32; + this.dGArtikel.CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(this.DataGridView_CellEnter); + this.dGArtikel.CellValidating += new System.Windows.Forms.DataGridViewCellValidatingEventHandler(this.dGArtikel_CellValidating); + // + // KundeArtikelID + // + this.KundeArtikelID.HeaderText = "KundeArtikelID"; + this.KundeArtikelID.Name = "KundeArtikelID"; + this.KundeArtikelID.ReadOnly = true; + this.KundeArtikelID.Visible = false; + // + // KundeID + // + this.KundeID.HeaderText = "KundeID"; + this.KundeID.Name = "KundeID"; + this.KundeID.ReadOnly = true; + this.KundeID.Visible = false; + // + // ArtikelNR + // + this.ArtikelNR.HeaderText = "Art. Nr."; + this.ArtikelNR.Name = "ArtikelNR"; + this.ArtikelNR.ReadOnly = true; + // + // ArtikelName + // + this.ArtikelName.HeaderText = "Art. Name"; + this.ArtikelName.Name = "ArtikelName"; + this.ArtikelName.ReadOnly = true; + // + // Stand + // + this.Stand.HeaderText = "Stand"; + this.Stand.Name = "Stand"; + this.Stand.ReadOnly = true; + // + // Fehlmenge + // + this.Fehlmenge.HeaderText = "Fehlmenge"; + this.Fehlmenge.Name = "Fehlmenge"; + // + // Korrektur + // + this.Korrektur.HeaderText = "Korrektur"; + this.Korrektur.Name = "Korrektur"; + // + // StandBearbeitet + // + this.StandBearbeitet.HeaderText = "Stand Bearbeitet"; + this.StandBearbeitet.Name = "StandBearbeitet"; + // + // FehlmengeBearbeitet + // + this.FehlmengeBearbeitet.HeaderText = "Fehlmenge Bearbeitet"; + this.FehlmengeBearbeitet.Name = "FehlmengeBearbeitet"; + // + // KorrekturBearbeitet + // + this.KorrekturBearbeitet.HeaderText = "Korrektur Bearbeitet"; + this.KorrekturBearbeitet.Name = "KorrekturBearbeitet"; + // // FormNeuerAuftrag // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -497,6 +582,8 @@ namespace Deckungsbeitrag this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); this.CancelButton = this.buttonAbbrechen; this.ClientSize = new System.Drawing.Size(709, 585); + this.Controls.Add(this.dGArtikel); + this.Controls.Add(this.textBoxCont); this.Controls.Add(this.buttonExtraKunde); this.Controls.Add(this.label6); this.Controls.Add(this.comboBoxTyp); @@ -508,7 +595,6 @@ namespace Deckungsbeitrag this.Controls.Add(this.groupBoxSonder); this.Controls.Add(this.pictureBoxMinus); this.Controls.Add(this.pictureBoxPlus); - this.Controls.Add(this.labelContainer); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); @@ -518,7 +604,6 @@ namespace Deckungsbeitrag this.Controls.Add(this.buttonAbbrechen); this.Controls.Add(this.buttonSpeichern); this.Controls.Add(this.dTPLiefertag); - this.Controls.Add(this.dGArtikel); this.Controls.Add(this.pictureBoxWalli); this.ForeColor = System.Drawing.Color.White; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -529,14 +614,14 @@ namespace Deckungsbeitrag this.ShowInTaskbar = false; this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Auftrag erstellen"; + this.Text = "NEUER AUFTRAG"; this.Load += new System.EventHandler(this.FormNeuerAuftrag_Load); this.groupBoxSonder.ResumeLayout(false); this.groupBoxSonder.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxMinus)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxPlus)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBoxWalli)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dGArtikel)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -559,7 +644,6 @@ namespace Deckungsbeitrag private System.Windows.Forms.Label label3; private System.Windows.Forms.Label label4; private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label labelContainer; private System.Windows.Forms.PictureBox pictureBoxPlus; private System.Windows.Forms.PictureBox pictureBoxMinus; private System.Windows.Forms.GroupBox groupBoxSonder; @@ -568,10 +652,21 @@ namespace Deckungsbeitrag private System.Windows.Forms.RadioButton rBDO; private System.Windows.Forms.RadioButton rBMI; private System.Windows.Forms.RadioButton rBDI; - private System.Windows.Forms.DataGridView dGArtikel; private System.Windows.Forms.Label label6; private System.Windows.Forms.ComboBox comboBoxTyp; private System.Windows.Forms.Button buttonExtraKunde; private System.Windows.Forms.PictureBox pictureBoxWalli; + private System.Windows.Forms.TextBox textBoxCont; + private System.Windows.Forms.DataGridView dGArtikel; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeArtikelID; + private System.Windows.Forms.DataGridViewTextBoxColumn KundeID; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelNR; + private System.Windows.Forms.DataGridViewTextBoxColumn ArtikelName; + private System.Windows.Forms.DataGridViewTextBoxColumn Stand; + private System.Windows.Forms.DataGridViewTextBoxColumn Fehlmenge; + private System.Windows.Forms.DataGridViewTextBoxColumn Korrektur; + private System.Windows.Forms.DataGridViewTextBoxColumn StandBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn FehlmengeBearbeitet; + private System.Windows.Forms.DataGridViewTextBoxColumn KorrekturBearbeitet; } } \ No newline at end of file diff --git a/FormNeuerAuftrag.cs b/FormNeuerAuftrag.cs index 0581ffd..8ced4e4 100644 --- a/FormNeuerAuftrag.cs +++ b/FormNeuerAuftrag.cs @@ -8,6 +8,7 @@ using System.Diagnostics; using System.Drawing; using System.IO; using System.Linq; +using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; using System.Web.Caching; @@ -21,9 +22,6 @@ namespace Deckungsbeitrag { public Fehlermeldungen meldung = new Fehlermeldungen(); public Kunde kunde; - //public Kunde extrakunde; - //public List kundenliste; - //public List fahrerliste; public Auftrag Auftrag; public Auftrag extraAuftrag; public Fach fach; @@ -32,7 +30,9 @@ namespace Deckungsbeitrag private Maschine maschine; bool extra; List sortimentListe; - + public DateTime? letzterLiefertag; + private Kunde knd; + public DataGridViewCell aktivCell; public FormNeuerAuftrag() { @@ -48,8 +48,22 @@ namespace Deckungsbeitrag else this.Auftrag = auftrag; } - private void FormNeuerAuftrag_Load(object sender, EventArgs e) + public FormNeuerAuftrag(Benutzer benutzer) : this() + { + this.benutzer = benutzer; + this.Auftrag = new Auftrag(); + + } + public FormNeuerAuftrag(Benutzer benutzer, DateTime? letzterLiefertag) : this(benutzer) + { + this.letzterLiefertag = letzterLiefertag; + this.Auftrag = new Auftrag(); + //this.knd = Open_List(); + } + + private void FormNeuerAuftrag_Load(object sender, EventArgs e) { + this.kunde = Funktionen.KundenAuswahl(); Load_Controls(); this.label1.Text = this.textBoxZusatz.Text.Length.ToString() + "/" + this.textBoxZusatz.MaxLength.ToString(); sortimentListe = (List)Funktionen.SortimentLesen("Liste"); @@ -70,11 +84,15 @@ namespace Deckungsbeitrag this.comboBoxTyp.Enabled = false; foreach(Control c in this.groupBoxSonder.Controls) { if(c.GetType() != typeof(Label)) c.Enabled = false; } this.dGArtikel.Enabled = this.dGArtikel.Visible = false; - this.pictureBoxWalli.Visible = true; + //this.pictureBoxWalli.Visible = true; this.comboBoxTyp.SelectedIndex = 1; } } + + /// + /// Div Controls werden geladen. Darunter RadioButtons, ComboBox und GridView. + /// private void Load_Controls() { Get_RadioButtons(); @@ -82,22 +100,24 @@ namespace Deckungsbeitrag if (Auftrag == null) { - this.dTPLiefertag.Value = DateTime.Today; + this.dTPLiefertag.Value = DateTime.Today.AddDays(1); this.comboBoxAufgabe.SelectedIndex = -1; this.comboBoxBenutzer.SelectedIndex = -1; } else { - kunde = Kunde.GetKunde(string.Empty, Auftrag.KundeID, string.Empty); + if (kunde == null) kunde = Kunde.GetKunde(string.Empty, Auftrag.KundeID, string.Empty); this.textBoxKndNr.Text = kunde.KundeNummer; this.textBoxKundeName.Text = kunde.Suchtext; this.textBoxKundeName.Enabled = false; - this.dTPLiefertag.Value = Auftrag.Liefertag; - this.labelContainer.Text = Auftrag.Container.ToString(); + this.textBoxKndNr.Enabled = false; + if (letzterLiefertag.HasValue) this.dTPLiefertag.Value = letzterLiefertag.Value; + else this.dTPLiefertag.Value = DateTime.Today.AddDays(1); + this.textBoxCont.Text = Auftrag.Container.ToString(); this.textBoxZusatz.Text = Auftrag.ZusatzInfo; dTPLiefertag_Leave(this.dTPLiefertag, EventArgs.Empty); - labelContainer_TextChanged(this.labelContainer, EventArgs.Empty); + textBoxCont_TextChanged(this.textBoxCont, EventArgs.Empty); if (Auftrag.ArbeiterID != null) { @@ -110,22 +130,28 @@ namespace Deckungsbeitrag if (auf.AufgabeID == Auftrag.AufgabeID) { this.comboBoxAufgabe.SelectedItem = auf; - if (auf.Bezeichnung == "STH" || auf.Bezeichnung == "STV" || auf.Bezeichnung == "STA") Load_Gridview(kunde.KundeNummer.ToString()); + if (auf.Bezeichnung == "STH" || auf.Bezeichnung == "STV" || auf.Bezeichnung == "STA") Load_Gridview(kunde.KundeNummer.ToString(), auf); } } } } } private void Get_RadioButtons() - { - foreach (RadioButton rb in this.Controls.OfType()) + { + if (kunde != null) { - if (rb.Name.Contains("MO")) rb.Tag = Liefertag.MO; - if (rb.Name.Contains("Di")) rb.Tag = Liefertag.DI; - if (rb.Name.Contains("MI")) rb.Tag = Liefertag.MI; - if (rb.Name.Contains("DO")) rb.Tag = Liefertag.DO; - if (rb.Name.Contains("FR")) rb.Tag = Liefertag.FR; + foreach (RadioButton rb in this.Controls.OfType()) + { + if (rb.Name.Contains("MO")) rb.Tag = Liefertag.MO; + if (rb.Name.Contains("Di")) rb.Tag = Liefertag.DI; + if (rb.Name.Contains("MI")) rb.Tag = Liefertag.MI; + if (rb.Name.Contains("DO")) rb.Tag = Liefertag.DO; + if (rb.Name.Contains("FR")) rb.Tag = Liefertag.FR; + + rb.Enabled = true; + } } + else foreach (RadioButton rb in this.Controls.OfType()) rb.Enabled = false; } private void comboBox_Load() @@ -134,37 +160,62 @@ namespace Deckungsbeitrag foreach (Aufgabe aufgabe in aufgabenlist) this.comboBoxAufgabe.AutoCompleteCustomSource.Add(aufgabe.Bezeichnung); this.comboBoxAufgabe.DataSource = aufgabenlist; this.comboBoxAufgabe.DisplayMember = "Bezeichnung"; + this.comboBoxAufgabe.SelectedIndex = -1; List benutzerlist = Benutzer.GetArbeiterList(); foreach (Benutzer benutzer in benutzerlist) this.comboBoxBenutzer.AutoCompleteCustomSource.Add(benutzer.Vorname); this.comboBoxBenutzer.DataSource = benutzerlist; this.comboBoxBenutzer.DisplayMember = "Vorname"; + this.comboBoxBenutzer.SelectedIndex = -1; this.comboBoxTyp.DataSource = Enum.GetValues(typeof(AuftragTyp)); } - private void Load_Gridview(string kundeNr) + private void Load_Gridview(string kundeid, Aufgabe auf) { + List artikelListe = KundeArtikel.GetList(kundeid); - List resultList = null; - resultList = sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == kundeNr); - - //if(this.benutzer.BenutzerID == this.Auftrag.ArbeiterID) - //{ - // DataGridViewCheckBoxColumn boolColumn = new DataGridViewCheckBoxColumn(); - // boolColumn.HeaderText = "Erledigt"; - // boolColumn.Name = "CheckColumn"; - // this.dGArtikel.Columns.Add(boolColumn); - //} - this.dGArtikel.DataSource = resultList; - this.dGArtikel.Columns[0].Visible = false; - this.dGArtikel.Columns[2].HeaderText = "Bezeichnung"; - this.dGArtikel.Columns.Add("Anzahl", "Anzahl"); - - this.dGArtikel.ClearSelection(); - this.dGArtikel.CurrentCell = this.dGArtikel.Rows[0].Cells[3]; + //List resultList = null; + //resultList = sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == kundeNr); + if (artikelListe.Count != 0) + { + this.dGArtikel.AutoGenerateColumns = false; + foreach (DataGridViewColumn col in this.dGArtikel.Columns) + { + col.DataPropertyName = col.Name; + + if (col.Name.Contains("Bearbeitet")) col.Visible = false; + if (col.Name == "Fehlmenge") + { + if (auf.Bezeichnung == "STA") col.Visible = true; + else col.Visible = false; + } + if (col.Name == "Korrektur") + { + if(auf.Bezeichnung != "STA") col.Visible = true; + else col.Visible = false; + } + } + + + // DataGridView mit ArtikelStand Liste verbinden und Columns automatisch generieren. + this.dGArtikel.DataSource = artikelListe; + + this.dGArtikel.ClearSelection(); + //this.dGArtikel.CurrentCell = this.dGArtikel.Rows[0].Cells[3]; + + // Alle Spaltenbreiten an den Zellinhalt anpassen + this.dGArtikel.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.AllCells; + // Alle Zeilenhöhen an Zellinhalt anpassen + this.dGArtikel.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; + } } + /// + /// Button Click Events. + /// + /// + /// private void buttonAbbrechen_Click(object sender, EventArgs e) { this.DialogResult = DialogResult.Cancel; @@ -179,110 +230,213 @@ namespace Deckungsbeitrag this.textBoxKndNr.Focus(); return; } - //Bei Auftrag BEARBEITEN ist AUFTRAG nicht null. Wenn NEUER AUFTRAG dann AUFTRAG erzeugen. - if (Auftrag == null) - { - Auftrag = new Auftrag(); - //Wenn Kundename händisch eingegeben dann wird DIV ZIELKUNDE genommen und KUNDENAME in ZUSATZINFO. - if (kunde.Suchtext == this.textBoxKundeName.Text) - { - Auftrag.ZusatzInfo = kunde.Suchtext; - } - } + //AUFTRAG DATEN ÜBERGEBEN Auftrag.KundeID = (int)kunde.KundeID; Auftrag.Liefertag = this.dTPLiefertag.Value; - Auftrag.Container = int.Parse(this.labelContainer.Text); + Auftrag.Container = int.Parse(this.textBoxCont.Text); Auftrag.ErstelltVon = (int)this.benutzer.BenutzerID; Auftrag.Erstellt = DateTime.Now; - Auftrag.Container = int.Parse(this.labelContainer.Text); + Auftrag.Container = int.Parse(this.textBoxCont.Text); Auftrag.Typ = (AuftragTyp)comboBoxTyp.SelectedItem; if (maschine != null) Auftrag.MaschineID = (int)maschine.MaschineID; - else Auftrag.MaschineID = 0; + else Auftrag.MaschineID = null; - //BEI BENUTZER WASCHSTRASSE DEAKTIVIERT - if(benutzer.Rolle != BenutzerRolle.Waschstrasse) - { - if (!string.IsNullOrWhiteSpace(this.comboBoxAufgabe.Text)) Auftrag.AufgabeID = Aufgabe.GetAufgabeID(this.comboBoxAufgabe.Text); - else if (meldung.NoAufgabe() == DialogResult.OK) { this.comboBoxAufgabe.Focus(); return; } - if (!string.IsNullOrWhiteSpace(textBoxZusatz.Text)) Auftrag.ZusatzInfo = this.textBoxZusatz.Text; - if (!string.IsNullOrWhiteSpace(this.comboBoxBenutzer.Text)) Auftrag.ArbeiterID = this.comboBoxBenutzer.SelectedItem != null ? (int?)((Benutzer)this.comboBoxBenutzer.SelectedItem).BenutzerID : null; - } - - if (benutzer.Rolle == BenutzerRolle.Verwaltung || benutzer.Rolle == BenutzerRolle.Admin) Auftrag.Status = AuftragStatus.Herrichten; - else Auftrag.Status = AuftragStatus.Aufgelegt; - - //Wenn SONDERAUFTRAG(STH,STV,INV) dann ARTIKEL speichern. - if (Auftrag.Typ == AuftragTyp.Sonder) + if(Auftrag.FindeAuftrag(Auftrag) == true) { - foreach (DataGridViewRow artikel in this.dGArtikel.Rows) + if (meldung.AuftragVorhanden(Auftrag) == DialogResult.Yes) { - if (artikel.Cells[0].Value != null) + //BEI BENUTZER WASCHSTRASSE DEAKTIVIERT + if (benutzer.Rolle != BenutzerRolle.Waschstrasse) { - AuftragArtikel = new AuftragArtikel(); + if (!string.IsNullOrWhiteSpace(this.comboBoxAufgabe.Text)) Auftrag.AufgabeID = Aufgabe.GetAufgabeID(this.comboBoxAufgabe.Text); + else Auftrag.AufgabeID = null; + if (!string.IsNullOrWhiteSpace(textBoxZusatz.Text)) Auftrag.ZusatzInfo = this.textBoxZusatz.Text; + if (!string.IsNullOrWhiteSpace(this.comboBoxBenutzer.Text)) Auftrag.ArbeiterID = this.comboBoxBenutzer.SelectedItem != null ? (int?)((Benutzer)this.comboBoxBenutzer.SelectedItem).BenutzerID : null; + } - AuftragArtikel.AuftragID = Auftrag.AuftragID; - AuftragArtikel.ArtikelNR = (int)artikel.Cells[2].Value; - AuftragArtikel.ArtikelName = artikel.Cells[3].Value.ToString(); - AuftragArtikel.Anzahl = int.Parse(artikel.Cells[0].Value.ToString()); - AuftragArtikel.Erledigt = false; + if (benutzer.Rolle == BenutzerRolle.Verwaltung || benutzer.Rolle == BenutzerRolle.Admin) Auftrag.Status = AuftragStatus.Herrichten; + else Auftrag.Status = AuftragStatus.Aufgelegt; - AuftragArtikel.Save(); + //Wenn SONDERAUFTRAG(STH,STV,STA) dann ARTIKEL speichern. + if (Auftrag.Typ == AuftragTyp.Sonder) + { + int tosave = 0; + int saved = 0; + foreach (DataGridViewRow artikel in this.dGArtikel.Rows) + { + tosave++; + KundeArtikel stand; + if (artikel.Cells[0].Value != null) + { + stand = KundeArtikel.GetItem(int.Parse(artikel.Cells[0].Value.ToString())); + if (artikel.Cells[5].Visible == true) + { + stand.Fehlmenge = int.Parse(artikel.Cells[5].Value.ToString()); + stand.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (artikel.Cells[6].Visible == true) + { + stand.Korrektur = int.Parse(artikel.Cells[6].Value.ToString()); + stand.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (stand.Save() == 1) saved++; + } + } + //Kontrolle ob alle Artikel gespeichert wurden. + if (saved != tosave) meldung.Speicherfehler(); + else + { + //Speichern von AUFTRAG + save = Auftrag.Save(); + } + } + else + { + if (!extra) + { + //this.fach.KundeID = Auftrag.KundeID; + //this.fach.Lieferdatum = Auftrag.Liefertag; + //this.fach.Liefertag = (Liefertag)Auftrag.Liefertag.DayOfWeek; + //if (extraAuftrag == null) { this.fach.ExtraAuftragID = null; this.fach.ExtraKundeID = null; } + //else { this.fach.ExtraAuftragID = extraAuftrag.AuftragID; this.fach.ExtraKundeID = extraAuftrag.KundeID; } + //this.fach.Gewaschen = (DateTime)Auftrag.Erstellt; + + //FormFachBearbeiten fachbearb = new FormFachBearbeiten(this.Auftrag ,this.fach); + //if (fachbearb.ShowDialog() == DialogResult.OK) + //{ + // this.fach = fachbearb.fach; + // //Speichern von AUFTRAG + // save = Auftrag.Save(); + //} + //this.fach.AuftragID = Auftrag.AuftragID; + if (Auftrag.Save()[1] == 1) this.Close(); + + } + else save = Auftrag.Save(); } } - //Speichern von AUFTRAG - save = Auftrag.Save(); + else { Auftrag = new Auftrag(); FormNeuerAuftrag_Load(this, e); } } else - { - if (!extra) - { - this.fach.KundeID = Auftrag.KundeID; - this.fach.Lieferdatum = Auftrag.Liefertag; - this.fach.Liefertag = (Liefertag)Auftrag.Liefertag.DayOfWeek; - if (extraAuftrag == null) { this.fach.ExtraAuftragID = null; this.fach.ExtraKundeID = null; } - else { this.fach.ExtraAuftragID = extraAuftrag.AuftragID; this.fach.ExtraKundeID = extraAuftrag.KundeID; } - this.fach.Gewaschen = (DateTime)Auftrag.Erstellt; - - FormFachBearbeiten fachbearb = new FormFachBearbeiten(this.Auftrag ,this.fach); - if (fachbearb.ShowDialog() == DialogResult.OK) - { - this.fach = fachbearb.fach; - //Speichern von AUFTRAG - save = Auftrag.Save(); - } - this.fach.AuftragID = Auftrag.AuftragID; - + { + //BEI BENUTZER WASCHSTRASSE DEAKTIVIERT + if (benutzer.Rolle != BenutzerRolle.Waschstrasse) + { + if (!string.IsNullOrWhiteSpace(this.comboBoxAufgabe.Text)) Auftrag.AufgabeID = Aufgabe.GetAufgabeID(this.comboBoxAufgabe.Text); + else Auftrag.AufgabeID = null; + if (!string.IsNullOrWhiteSpace(textBoxZusatz.Text)) Auftrag.ZusatzInfo = this.textBoxZusatz.Text; + if (!string.IsNullOrWhiteSpace(this.comboBoxBenutzer.Text)) Auftrag.ArbeiterID = this.comboBoxBenutzer.SelectedItem != null ? (int?)((Benutzer)this.comboBoxBenutzer.SelectedItem).BenutzerID : null; + } + + if (benutzer.Rolle == BenutzerRolle.Verwaltung || benutzer.Rolle == BenutzerRolle.Admin) Auftrag.Status = AuftragStatus.Herrichten; + else Auftrag.Status = AuftragStatus.Aufgelegt; + + //Wenn SONDERAUFTRAG(STH,STV,STA) dann ARTIKEL speichern. + if (Auftrag.Typ == AuftragTyp.Sonder) + { + int tosave = 0; + int saved = 0; + bool negieren = false; + foreach (DataGridViewRow artikel in this.dGArtikel.Rows) + { + tosave++; + KundeArtikel stand; + if (artikel.Cells[0].Value != null) + { + stand = KundeArtikel.GetItem(int.Parse(artikel.Cells[0].Value.ToString())); + if (artikel.Cells[5].Visible == true) + { + stand.Fehlmenge = int.Parse(artikel.Cells[5].Value.ToString()); + stand.FehlmengeBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + if (artikel.Cells[6].Visible == true) + { + if (int.TryParse(artikel.Cells[6].Value.ToString(), out int result)) + { + if (Aufgabe.GetAufgabe(null, (int?)Auftrag.AufgabeID).Bezeichnung == "STV") negieren = true; + stand.Korrektur = (negieren && stand.Korrektur > 0) ? -result : result; + stand.KorrekturBearbeitet = this.benutzer.BenutzerName + " am " + DateTime.Now.ToString(); + } + else { meldung.Eingabefehler(); return; } + } + if (stand.Save() == 1) saved++; + } + } + //Kontrolle ob alle Artikel gespeichert wurden. + if (saved != tosave) meldung.Speicherfehler(); + else + { + //Speichern von AUFTRAG + save = Auftrag.Save(); + } + } + else + { + if (!extra) + { + //this.fach.KundeID = Auftrag.KundeID; + //this.fach.Lieferdatum = Auftrag.Liefertag; + //this.fach.Liefertag = (Liefertag)Auftrag.Liefertag.DayOfWeek; + //if (extraAuftrag == null) { this.fach.ExtraAuftragID = null; this.fach.ExtraKundeID = null; } + //else { this.fach.ExtraAuftragID = extraAuftrag.AuftragID; this.fach.ExtraKundeID = extraAuftrag.KundeID; } + //this.fach.Gewaschen = (DateTime)Auftrag.Erstellt; + + //FormFachBearbeiten fachbearb = new FormFachBearbeiten(this.Auftrag ,this.fach); + //if (fachbearb.ShowDialog() == DialogResult.OK) + //{ + // this.fach = fachbearb.fach; + // //Speichern von AUFTRAG + // save = Auftrag.Save(); + //} + //this.fach.AuftragID = Auftrag.AuftragID; + if (Auftrag.Save()[1] == 1) this.Close(); + + } + else save = Auftrag.Save(); } - else save = Auftrag.Save(); } - - - - - this.DialogResult = DialogResult.OK; - this.Close(); + if(benutzer.Rolle != BenutzerRolle.Waschstrasse) + { + this.DialogResult = DialogResult.OK; + this.Close(); + } + else + { + Auftrag = new Auftrag(); + FormNeuerAuftrag_Load(this, e); + } } + private void Container_Click(object sender, EventArgs e) + { + PictureBox pb = (PictureBox)sender; + int cont = int.Parse(this.textBoxCont.Text); + if (pb.Name.ToString().Contains("Plus")) cont++; + if (pb.Name.ToString().Contains("Minus")) cont--; + this.textBoxCont.Text = cont.ToString(); + } + + /// + /// TextBox Events + /// + /// + /// private void textBoxZusatz_TextChanged(object sender, EventArgs e) { this.label1.Text = this.textBoxZusatz.Text.Length.ToString() + "/" + this.textBoxZusatz.MaxLength.ToString(); } - private void Container_Click(object sender, EventArgs e) + private void textBoxCont_TextChanged(object sender, EventArgs e) { - PictureBox pb = (PictureBox)sender; - int cont = int.Parse(this.labelContainer.Text); - if (pb.Name.ToString().Contains("Plus")) cont++; - if (pb.Name.ToString().Contains("Minus")) cont--; - this.labelContainer.Text = cont.ToString(); - } - private void labelContainer_TextChanged(object sender, EventArgs e) - { - if (this.labelContainer.Text == "0") { this.pictureBoxMinus.Enabled = false; this.pictureBoxMinus.BackColor = Color.Gray; } + if (this.textBoxCont.Text == "0") { this.pictureBoxMinus.Enabled = false; this.pictureBoxMinus.BackColor = Color.Gray; } else { this.pictureBoxMinus.Enabled = true; this.pictureBoxMinus.BackColor = Color.Red; } } - //Liefertag oder Lieferdatum Funktionen. + /// + /// Liefertag mit automatischer Berechnung des nächsten Datums bzw. des Wochentages des Datums. + /// + /// + /// private void dTPLiefertag_Leave(object sender, EventArgs e) { foreach (RadioButton liefertag in this.Controls.OfType()) @@ -307,7 +461,12 @@ namespace Deckungsbeitrag } this.dTPLiefertag.Enabled = false; } - private void textBoxKndNr_Click(object sender, EventArgs e) + private void dTPLiefertag_ValueChanged(object sender, EventArgs e) + { + dTPLiefertag_Leave(sender, e); + } + + private void textBoxKndNr_Click(object sender, EventArgs e) { this.textBoxKndNr.Clear(); //Process.Start("C:\\Windows\\WinSxS\\amd64_microsoft-windows-osk_31bf3856ad364e35_10.0.22621.3672_none_8a93c823d58f9d77\\osk.exe"); @@ -324,7 +483,7 @@ namespace Deckungsbeitrag if (MessageBox.Show($"Kunde konnte nicht gefunden werden. Möchtest du in der Liste suchen?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { - FormListe liste = new FormListe(null, true); + FormListe liste = new FormListe(null, 0); if (liste.ShowDialog() == DialogResult.OK) { kunde = liste.kunde; @@ -345,7 +504,7 @@ namespace Deckungsbeitrag textBoxKundeName.Enabled = false; string sortNr = kunde.KundeNummer; - Load_Gridview(sortNr); + Load_Gridview(sortNr, null); } else { @@ -387,5 +546,39 @@ namespace Deckungsbeitrag { if (e.KeyValue == 9) textBoxKundeName.Focus(); } + + private void comboBoxAufgabe_SelectedValueChanged(object sender, EventArgs e) + { + if (comboBoxAufgabe.SelectedIndex == 3 || comboBoxAufgabe.SelectedIndex == 1) + { + if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), Aufgabe.GetAufgabe(this.comboBoxAufgabe.Text.ToString(), null)); + } + if (comboBoxAufgabe.SelectedIndex == 2) + { + if (this.kunde != null) Load_Gridview(this.kunde.KundeID.ToString(), Aufgabe.GetAufgabe(this.comboBoxAufgabe.Text.ToString(), null)); + } + } + private void DataGridView_CellEnter(object sender, DataGridViewCellEventArgs e) + { + } + + /// + /// Überprüfen ob die Eingabe eine Zahl ist. Es wird sonst eine Meldung angezeigt und das weiterspringen wird verhindert. + /// + /// + /// + private void dGArtikel_CellValidating(object sender, DataGridViewCellValidatingEventArgs e) + { + if (e.ColumnIndex >= 5) + { + DataGridView dgv = (DataGridView)sender; + DataGridViewCell dgc = dgv.CurrentCell; + if (!int.TryParse(dgc.EditedFormattedValue.ToString(), out int i)) + { + meldung.Eingabefehler(); + e.Cancel = true; + } + } + } } } diff --git a/FormNeuerAuftrag.resx b/FormNeuerAuftrag.resx index 31fcb80..16a3864 100644 --- a/FormNeuerAuftrag.resx +++ b/FormNeuerAuftrag.resx @@ -1627,21 +1627,132 @@ jnngHGmpFHUglQYkdRSd6VwOktI60atlOq0TDzME1ElONKmPygBQZRlzTTL05aZM61rb+tYICQgAOw== + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + - AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8A//////////////////////////////////////////////////////////////////////// - ////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P//// - //zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/ - //////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM - zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP - zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8 - zMzP//zMzMz//8zMzM////zM/////8zP/////Mz///////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAABAAEAAAAAAAEAIAC5FQ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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC \ No newline at end of file diff --git a/FormWaschverlauf.Designer.cs b/FormWaschverlauf.Designer.cs deleted file mode 100644 index 6bf2043..0000000 --- a/FormWaschverlauf.Designer.cs +++ /dev/null @@ -1,145 +0,0 @@ - -namespace Deckungsbeitrag -{ - partial class FormWaschverlauf - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.lvWaschstrasse1 = new System.Windows.Forms.ListView(); - this.label1 = new System.Windows.Forms.Label(); - this.splitContWaschverlauf = new System.Windows.Forms.SplitContainer(); - this.label2 = new System.Windows.Forms.Label(); - this.lvWaschstrasse2 = new System.Windows.Forms.ListView(); - ((System.ComponentModel.ISupportInitialize)(this.splitContWaschverlauf)).BeginInit(); - this.splitContWaschverlauf.Panel1.SuspendLayout(); - this.splitContWaschverlauf.Panel2.SuspendLayout(); - this.splitContWaschverlauf.SuspendLayout(); - this.SuspendLayout(); - // - // lvWaschstrasse1 - // - this.lvWaschstrasse1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lvWaschstrasse1.Font = new System.Drawing.Font("Microsoft Sans Serif", 19.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lvWaschstrasse1.FullRowSelect = true; - this.lvWaschstrasse1.GridLines = true; - this.lvWaschstrasse1.HideSelection = false; - this.lvWaschstrasse1.Location = new System.Drawing.Point(13, 40); - this.lvWaschstrasse1.Name = "lvWaschstrasse1"; - this.lvWaschstrasse1.Size = new System.Drawing.Size(575, 678); - this.lvWaschstrasse1.TabIndex = 0; - this.lvWaschstrasse1.UseCompatibleStateImageBehavior = false; - this.lvWaschstrasse1.View = System.Windows.Forms.View.Details; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label1.ForeColor = System.Drawing.Color.White; - this.label1.Location = new System.Drawing.Point(7, 5); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(215, 32); - this.label1.TabIndex = 1; - this.label1.Text = "Waschstrasse 1"; - // - // splitContWaschverlauf - // - this.splitContWaschverlauf.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.splitContWaschverlauf.Location = new System.Drawing.Point(12, 12); - this.splitContWaschverlauf.Name = "splitContWaschverlauf"; - // - // splitContWaschverlauf.Panel1 - // - this.splitContWaschverlauf.Panel1.Controls.Add(this.lvWaschstrasse1); - this.splitContWaschverlauf.Panel1.Controls.Add(this.label1); - // - // splitContWaschverlauf.Panel2 - // - this.splitContWaschverlauf.Panel2.Controls.Add(this.lvWaschstrasse2); - this.splitContWaschverlauf.Panel2.Controls.Add(this.label2); - this.splitContWaschverlauf.Size = new System.Drawing.Size(1166, 733); - this.splitContWaschverlauf.SplitterDistance = 604; - this.splitContWaschverlauf.TabIndex = 2; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 16.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.label2.ForeColor = System.Drawing.Color.White; - this.label2.Location = new System.Drawing.Point(3, 5); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(215, 32); - this.label2.TabIndex = 2; - this.label2.Text = "Waschstrasse 2"; - // - // lvWaschstrasse2 - // - this.lvWaschstrasse2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.lvWaschstrasse2.Font = new System.Drawing.Font("Microsoft Sans Serif", 19.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lvWaschstrasse2.FullRowSelect = true; - this.lvWaschstrasse2.GridLines = true; - this.lvWaschstrasse2.HideSelection = false; - this.lvWaschstrasse2.Location = new System.Drawing.Point(9, 40); - this.lvWaschstrasse2.Name = "lvWaschstrasse2"; - this.lvWaschstrasse2.Size = new System.Drawing.Size(534, 678); - this.lvWaschstrasse2.TabIndex = 2; - this.lvWaschstrasse2.UseCompatibleStateImageBehavior = false; - this.lvWaschstrasse2.View = System.Windows.Forms.View.Details; - // - // FormWaschverlauf - // - this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); - this.ClientSize = new System.Drawing.Size(1190, 757); - this.Controls.Add(this.splitContWaschverlauf); - this.Name = "FormWaschverlauf"; - this.Text = "Waschverlauf"; - this.splitContWaschverlauf.Panel1.ResumeLayout(false); - this.splitContWaschverlauf.Panel1.PerformLayout(); - this.splitContWaschverlauf.Panel2.ResumeLayout(false); - this.splitContWaschverlauf.Panel2.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContWaschverlauf)).EndInit(); - this.splitContWaschverlauf.ResumeLayout(false); - this.ResumeLayout(false); - - } - - #endregion - - private System.Windows.Forms.ListView lvWaschstrasse1; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.SplitContainer splitContWaschverlauf; - private System.Windows.Forms.ListView lvWaschstrasse2; - private System.Windows.Forms.Label label2; - } -} \ No newline at end of file diff --git a/FormWaschverlauf.resx b/FormWaschverlauf.resx deleted file mode 100644 index 1af7de1..0000000 --- a/FormWaschverlauf.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/FromAuftragVW.Designer.cs b/FromAuftragVW.Designer.cs new file mode 100644 index 0000000..7697116 --- /dev/null +++ b/FromAuftragVW.Designer.cs @@ -0,0 +1,49 @@ +namespace Deckungsbeitrag +{ + partial class FromAuftragVW + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FromAuftragVW)); + this.SuspendLayout(); + // + // FromAuftragVW + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(53)))), ((int)(((byte)(101))))); + this.ClientSize = new System.Drawing.Size(800, 450); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "FromAuftragVW"; + this.Text = "Auftragverwaltung"; + this.ResumeLayout(false); + + } + + #endregion + } +} \ No newline at end of file diff --git a/FormWaschverlauf.cs b/FromAuftragVW.cs similarity index 67% rename from FormWaschverlauf.cs rename to FromAuftragVW.cs index 907e5ef..d605c52 100644 --- a/FormWaschverlauf.cs +++ b/FromAuftragVW.cs @@ -10,11 +10,11 @@ using System.Windows.Forms; namespace Deckungsbeitrag { - public partial class FormWaschverlauf : Form - { - public FormWaschverlauf() - { - InitializeComponent(); - } - } + public partial class FromAuftragVW : Form + { + public FromAuftragVW() + { + InitializeComponent(); + } + } } diff --git a/FromAuftragVW.resx b/FromAuftragVW.resx new file mode 100644 index 0000000..4b0fe78 --- /dev/null +++ b/FromAuftragVW.resx @@ -0,0 +1,219 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + AAABAAEAAAAAAAEAIAC5FQAAFgAAAIlQTkcNChoKAAAADUlIRFIAAAEAAAABAAgGAAAAXHKoZgAAAAFv + ck5UAc+id5oAABVzSURBVHja7Z0LuFVVtcfPOqCg4gMFVDQhsHyics4GfBUIPsMywULt4Ytz4CqSWV5R + UwnsZpaZ0c23XtNKI/JVGT5BTbtqiqX5SMRXGnI1LdBjiNwx9h57sfY6a5+91jl77b3WXr/f9/0//Pz4 + Ps4Zc8wx5xpzzDmamgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAA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sGIt + sheL+zWC4/oSqi/UYPI/LTpNtA0TH6rpwPoc9sIYM/vFNlAN1efd97t8M8aJ/7Lo29Zsg4kPsTixdnH5 + Z5Ud9znRLHthtyEdN+aE6gprszWy1qXPkL0AoN1Zb6yS474qusA6Fjf0iuX7/b5SpYSqtim/wdplk9mH + mjnxPnYs113H1eaPV1gPuMycRfveXFjUA/t12KfYZ0QbMPGh1g6s28xTu/FmgJ5FzxeNz+qK5fl99xO9 + 1I3XjB6yZCzNM6GuDtw3/yxUuEcwtf3znaJJWT+L9v3uh0XoLfik1WJsxcSHpDhwb7uBt7DM2wEr7Tbc + caL+OG6gDfXNgivtk2pNwJGoHunNtuQh9oPEOXDxwstY+yzQBiM/sKz+QdY1B8ft2ob6mvDuonZrOT7P + jgunuM+YYT9IQSCgx3uMNgRInTMD9gMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgJD8PyK+P6C0d3u7AAAAAElFTkSu + QmCC + + + \ No newline at end of file diff --git a/Funktionen.cs b/Funktionen.cs index 86a6c2e..5e04f17 100644 --- a/Funktionen.cs +++ b/Funktionen.cs @@ -1,4 +1,5 @@ -using BrightIdeasSoftware; +using AForge.Video.DirectShow; +using BrightIdeasSoftware; using DatenDB; using Deckungsbeitrag.Properties; using System; @@ -8,34 +9,30 @@ using System.Drawing; using System.Drawing.Printing; using System.IO; using System.Linq; -using System.Runtime.CompilerServices; +using System.Linq.Expressions; using System.Text; -using System.Threading; -using System.Threading.Tasks; -using System.Web; -using System.Web.Configuration; -using System.Web.UI; using System.Windows.Forms; using System.Windows.Forms.DataVisualization.Charting; using ZXing; -using ZXing.QrCode.Internal; using Control = System.Windows.Forms.Control; + namespace Deckungsbeitrag { public class Funktionen { - + private static FilterInfoCollection videoDevices; public static Color beladeband = Settings.Default.Beladeband; public static Color waschstr = Settings.Default.Waschstrasse; public static Color presse = Settings.Default.Presse; public static Color trockner = Settings.Default.Trockner; public static Color entladeband = Settings.Default.Entladeband; public static Color hubband = Settings.Default.Hubband; - public FormAufleger _aufleger; + //public FormAufleger _aufleger; public static Auftrag _auftrag; public static Kunde _adresse; private int currentPage = 0; public int totalPages = 0; int i = 0; int j = 0; - + public bool printOK; + public static bool _nocont; public Funktionen() { } @@ -379,7 +376,7 @@ namespace Deckungsbeitrag } } } - + if (lbl.Tag == null) { if (lbl.Name.Contains("Kunde")) lbl.Text = "LEER"; @@ -410,7 +407,7 @@ namespace Deckungsbeitrag lbl.Text = $"WP {((Fach)lbl.Tag).WProgrammID}"; if (fach == 3) sps.Waschprogramm = ((Fach)lbl.Tag).WProgrammID; //WASCHPROGRAMM FÜR ÜBERGABE IN SPS DATEN ÜBERGEBEN } - if(((Fach)lbl.Tag).Extra != null) + if (((Fach)lbl.Tag).Extra != null) { Aufgabe extra = Aufgabe.GetAufgabe(string.Empty, ((Fach)lbl.Tag).Extra); @@ -441,8 +438,7 @@ namespace Deckungsbeitrag } return lbl; } - - public static object SortimentLesen(string s) + public static List SortimentLesen(string s) { StreamReader streamReader = null; bool ok = false; @@ -453,7 +449,7 @@ namespace Deckungsbeitrag catch (Exception) { MessageBox.Show("Keine Sortiment-Datei gefunden, bitte kontrolliere Pfad und Dateiname!"); - return ok; + return null; } int nr = 0; string row = string.Empty; @@ -471,9 +467,49 @@ namespace Deckungsbeitrag streamReader.Close(); ok = true; - if (s == "Liste") return sortimentListe; - else return ok; + return sortimentListe; } + public static List Get_ArtikelKurzlisteFromDatei() + { + StreamReader streamReader = null; + string row = string.Empty; + Artikel[] artikel = new Artikel[0]; + List artikelListe = new List(); + int idx = 0; + + // Datei auswählen. + OpenFileDialog dialog = new OpenFileDialog(); + dialog.Filter = "CommaSeparatedFiles|*.txt;*.csv"; + dialog.InitialDirectory = "N:\\BÜRO\\SOCOM"; + if (dialog.ShowDialog() == DialogResult.OK) + { + if (MessageBox.Show($"Möchtest du die Datei {dialog.FileName} wirklich lesen? Hier können nur Artikel upgedated werden.", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + try + { + // Datei lesen. + streamReader = new StreamReader(dialog.FileName, Encoding.GetEncoding("iso-8859-1")); + while (!streamReader.EndOfStream) + { + Array.Resize(ref artikel, ++idx); + row = streamReader.ReadLine(); + artikel[idx - 1] = new Artikel(row, idx - 1); + artikelListe.Add(new Artikel(row, idx - 1)); + } + streamReader.Close(); + return artikelListe; + } + catch (Exception) + { + MessageBox.Show("Es ist etwas schief gelaufen. Versuche es bitte nochmals."); + return null; + } + } + else return null; + } + else return null; + } + public static Auftrag Kunde_unbekannt(int aID) { Auftrag auf = null; @@ -481,6 +517,91 @@ namespace Deckungsbeitrag return auf; } + /// + /// Die Kundenauswahl erfolgt durch Handeingabe oder Scan mit integrierter Kamera. + /// Wenn Kamera vorhanden und trotzdem Handeingabe notwendig, dann Button klicken. + /// + /// + public static Kunde KundenAuswahl() + { + videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); + Kunde kunde; + + if (videoDevices.Count == 0) + { + kunde = Open_List(); + } + else + { + //TODO: Funktionalität klären. MessageBox vor Screenauswahl? oder mit Button im Screen Kamera? + //if (meldung.HandEingabe()) this.kunde = Funktionen.Open_List(); + //else this.kunde = Funktionen.Open_Kamera(videoDevices); + kunde = Open_Kamera(videoDevices); + } + + return kunde; + } + + /// + /// Öffnen der Kundenauswahlliste zur händischen Eingabe bzw. Scan des Kunden. + /// + /// Kunde + public static Kunde Open_List() + { + Kunde knd = new Kunde(); + FormListe liste = new FormListe(null, 0); + if (liste.ShowDialog() == DialogResult.OK) + { + knd = liste.kunde; + } + else knd = null; + + return knd; + } + + /// + /// Öffnen des Kamera Livebildes zur Eingabe des Kunden über die integrierte Kamera. + /// + /// Array der verfügbaren Kameras + /// Kunde + public static Kunde Open_Kamera(AForge.Video.DirectShow.FilterInfoCollection videoDevices) + { + Kunde knd = new Kunde(); + FormKamera kamera = new FormKamera(videoDevices); + DialogResult result = kamera.ShowDialog(); + switch (result) + { + case DialogResult.None: + knd = null; + break; + case DialogResult.OK: + knd = kamera.kunde; + break; + case DialogResult.Cancel: + knd = null; + break; + case DialogResult.Abort: + knd = null; + break; + case DialogResult.Retry: + knd = null; + break; + case DialogResult.Ignore: + knd = null; + break; + case DialogResult.Yes: + knd = kamera.kunde; + break; + case DialogResult.No: + knd = Open_List(); + break; + default: + break; + } + + return knd; + } + /// /// QR-CODE FÜR ETIKETTEN /// @@ -513,7 +634,7 @@ namespace Deckungsbeitrag int zeile = (int)textSize2.Height + 20; //PIXEL int posTag = 145; if (adresse == null) adresse = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty); - Image qrcode = Get_QR_Code(adresse, auftrag); + Image qrcode = Get_QR_Code(adresse, null); string sortNr = string.Empty; //Innsbrucker Soziale Dienste Sortiment immer gleich. if (adresse.KundeNummer == "010069" | adresse.KundeNummer == "010071") sortNr = "010068"; @@ -523,12 +644,9 @@ namespace Deckungsbeitrag //result = sortimentListe.Find(Sortiment => Sortiment.KundeNummer == sortNr); List resultList = ((List)SortimentLesen("Liste")).FindAll(Sortiment => Sortiment.KundeNummer == sortNr); - - int qr = (int)textSize3.Height * 2 + (int)textSize2.Height * 3; - g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height); //QR-Code - g.DrawImage(qrcode, bitmap.Width - 50 - qr, 50, qr, qr); + g.DrawImage(qrcode, bitmap.Width - 150, 50, 120, 120); //Adressblock g.DrawString($"{adresse.KundeNummer} {adresse.Suchtext}", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock); g.DrawString($"{adresse.KundeName}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + (int)textSize3.Height); @@ -547,7 +665,7 @@ namespace Deckungsbeitrag //Tabelle Kopf g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X, tabelle.Y - zeile), new Point(bitmap.Width - 50, tabelle.Y - zeile)); - g.DrawString("Bemerkung", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X, tabelle.Y - (int)textSize2.Height - 5); + g.DrawString("Bemerkung", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + 5, tabelle.Y - (int)textSize2.Height - 5); g.DrawString("Stück", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 25, tabelle.Y - (int)textSize2.Height - 5); g.DrawString("Bezeichnung", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 100, tabelle.Y - (int)textSize2.Height - 5); g.DrawString("Art.Nr.", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 500, tabelle.Y - (int)textSize2.Height - 5); @@ -574,50 +692,59 @@ namespace Deckungsbeitrag } //Bemerkung - g.DrawString($"Bemerkung:", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, ezl, bitmap.Height - 130); + g.DrawString($"Bemerkung:", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, ezl + 5, bitmap.Height - 120); //g.DrawString($"*{Aufgabe.GetAufgabe(string.Empty, adresse.Aufgabe).Bezeichnung}", new Font("Arial", textsize, FontStyle.Bold), Brushes.Black, ezl, bitmap.Height - 130 + handzeile); - g.DrawRectangle(new Pen(Brushes.Black), ezl, bitmap.Height - 130 - textsize, bitmap.Width - 100, 100); + g.DrawRectangle(new Pen(Brushes.Black), ezl, bitmap.Height - 120 - textsize, bitmap.Width - 100, 100); Image img = bitmap; return img; } - public static void SWS_Drucken(Auftrag auftrag, Kunde adresse) + public static void SWS_Drucken(Auftrag auftrag, Kunde adresse, object sender) { + if (auftrag != null) _auftrag = auftrag; if (adresse != null) _adresse = adresse; PrintDialog dialog = new PrintDialog(); - PrintPreviewDialog preview = new PrintPreviewDialog(); - preview.StartPosition = FormStartPosition.CenterScreen; - preview.WindowState = FormWindowState.Maximized; foreach (string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(ConfigurationManager.AppSettings["PrinterName"])) dialog.PrinterSettings.PrinterName = printer; - //dialog.PrinterSettings.Copies = 10; + if (dialog.ShowDialog() == DialogResult.OK) { PrintDocument printDocument = new PrintDocument(); + printDocument.OriginAtMargins = true; + printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage); printDocument.PrinterSettings = dialog.PrinterSettings; - preview.Document = printDocument; - preview.Document.DocumentName = "SWS-Schein"; - preview.ShowDialog(); + printDocument.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0); + if (!sender.ToString().Contains("KundeDaten")) + { + PrintPreviewDialog preview = new PrintPreviewDialog(); + preview.StartPosition = FormStartPosition.CenterScreen; + preview.WindowState = FormWindowState.Maximized; + preview.Document = printDocument; + preview.Document.DocumentName = "SWS-Schein"; + preview.ShowDialog(); + } + else { dialog.Document = printDocument; dialog.Document.DocumentName = "SWS-Schein"; printDocument.Print(); } } } - public static Image Etikett_Entwurf(Auftrag auftrag) + public static Image Etikett_Entwurf(object sender, Auftrag auftrag, bool nocont) { Kunde kunde = Kunde.GetKunde(string.Empty, auftrag.KundeID, string.Empty); if (kunde.Suchtext.StartsWith("?") | kunde.KundeNummer == "2320000") kunde.Suchtext = auftrag.ZusatzInfo; + Image qr = Get_QR_Code(kunde, auftrag); Image qrweb = Image.FromFile(ConfigurationManager.AppSettings["QrPfad"]); qrweb.RotateFlip(RotateFlipType.Rotate270FlipNone); - Bitmap bitmap = new Bitmap(1200, 350); + Bitmap bitmap = new Bitmap(1200, 340); //bitmap.SetResolution(100, 100); Graphics g = Graphics.FromImage(bitmap); Font font1 = new Font("Arial", 50, FontStyle.Bold); @@ -629,25 +756,27 @@ namespace Deckungsbeitrag SizeF size_container = g.MeasureString($"Container/Pakete:", font3); SizeF size_Liefertag = new SizeF(g.MeasureString("Liefertag:", font3)); float width_date_font1 = g.MeasureString("25.05.2023", font1).Width; - Point startpoint = new Point(380, 50); + Point startpoint = new Point(380, 20); g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height); //QR-Code - g.DrawImage(qrweb, 15, 25, 350, 300); + g.DrawImage(qrweb, 10, 15, 350, 280); //Etikett-Text g.DrawString($"{kunde.Suchtext}", font1, Brushes.Black, startpoint); g.DrawString($"{kunde.PLZ} {kunde.Ort}", font2, Brushes.Black, startpoint.X, startpoint.Y + height_font1); g.DrawString("Liefertag:", font3, Brushes.Black, startpoint.X, startpoint.Y + height_font1 + 5 + height_font2 + 10); g.DrawString("Container/Pakete:", font3, Brushes.Black, startpoint.X + size_Liefertag.Width + 50, startpoint.Y + height_font1 + 5 + height_font2 + 10); - g.DrawString($"{auftrag.Liefertag.ToShortDateString()}", font1, Brushes.Black, startpoint.X, startpoint.Y + height_font1 + 5 + height_font2 + 2 + size_Liefertag.Height + 2); - g.DrawString($"{auftrag.ContainerClean}", font4, Brushes.Black, startpoint.X + size_Liefertag.Width + size_container.Width + 10, height_font1 + height_font2); + g.DrawString($"{auftrag.Liefertag.ToString("ddd dd.MM.")}", font1, Brushes.Black, startpoint.X, startpoint.Y + height_font1 + 5 + height_font2 + 2 + size_Liefertag.Height + 2); + if (!nocont) g.DrawString($"{auftrag.ContainerClean}", font4, Brushes.Black, startpoint.X + size_Liefertag.Width + size_container.Width + 10, startpoint.Y + height_font1); + //if (sender == null) bitmap.RotateFlip(RotateFlipType.Rotate90FlipNone); Image img = bitmap; return img; } - public static void Etikett_Drucken(Auftrag auftrag) + public static DialogResult Etikett_Drucken(Auftrag auftrag, bool nocont) { + _nocont = nocont; _auftrag = auftrag; int x = auftrag.ContainerClean; PrintDialog dialog = new PrintDialog(); @@ -664,14 +793,40 @@ namespace Deckungsbeitrag dialog.Document = printDocument; dialog.Document.DocumentName = "Etikett"; printDocument.Print(); + + return DialogResult.OK; } - + return DialogResult.Cancel; } private static void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { - if (sender.ToString().Contains("SWS-Schein")) { e.Graphics.DrawImage(Funktionen.SWS_Entwurf(_auftrag, _adresse), e.PageBounds); } - if (sender.ToString().Contains("Etikett")) e.Graphics.DrawImage(Funktionen.Etikett_Entwurf(_auftrag), e.PageBounds); + if (sender.ToString().Contains("SWS-Schein")) + { + Image img = Funktionen.SWS_Entwurf(_auftrag, _adresse); + + // Verfügbare Druckfläche innerhalb der Seitenränder + Rectangle printArea = e.MarginBounds; + + // Skalierungsfaktor berechnen, um Bild proportional einzupassen + float scale = Math.Min((float)printArea.Width / img.Width, (float)printArea.Height / img.Height); + + // Berechnete Bildgröße + int scaledWidth = (int)(img.Width * scale); + int scaledHeight = (int)(img.Height * scale); + + // Zentrierte Position im Druckbereich + int posX = printArea.Left + (printArea.Width - scaledWidth) / 2; + int posY = printArea.Top + (printArea.Height - scaledHeight) / 2; + + + e.Graphics.DrawImage(img, posX, posY, scaledWidth, scaledHeight); + //e.Graphics.DrawImage(img, 0, 0, scaledWidth, scaledHeight); + + // Event abschließen (keine weiteren Seiten) + e.HasMorePages = false; + } + if (sender.ToString().Contains("Etikett")) e.Graphics.DrawImage(Funktionen.Etikett_Entwurf(null, _auftrag, _nocont), e.PageBounds); } /// @@ -712,7 +867,7 @@ namespace Deckungsbeitrag }//COLUMNS BREITE CONTENT ODER HEADER SIZE //BREITE DER LISTVIEW UNVERÄNDERT BEI NAMEN MIT... - if (!lv.Name.Contains("Lieferungen") & !lv.Name.Contains("STH") & !lv.Name.Contains("Artikel")) lv.Width = lvwWidth; + if (!lv.Name.Contains("Lieferungen") & !lv.Name.Contains("STH") & !lv.Name.Contains("Artikel") & !lv.Name.Contains("AufgabeVW") & !lv.Name.Contains("BenutzerVW") & !lv.Name.Contains("Auftrag")) lv.Width = lvwWidth; return lv; } @@ -722,6 +877,148 @@ namespace Deckungsbeitrag return lv; } - + /// + /// ListView_Load für AufgabenVW und BenutzerVW + /// + /// + /// + /// + /// + public static ListView ListView_Load(ListView lv, string colname, List objectlist) + { + ColumnHeader ch; + foreach (string s in colname.Split(',')) + { + ch = new ColumnHeader(); + ch.Name = s.Trim(); + if (ch.Name == "vorname") ch.DisplayIndex = 0; + if (ch.Name == "nachname") ch.DisplayIndex = 2; + if (ch.Name == "benutzer_name") + { + ch.DisplayIndex = 3; + ch.Name = "benutzername"; + } + if (ch.Name == "rolle") ch.DisplayIndex = 4; + if (ch.Name == "schein") ch.DisplayIndex = 5; + if (ch.Name == "gueltig_bis") + { + ch.DisplayIndex = 6; + ch.Name = "gültig bis"; + } + if (ch.Name == "ist_aktiv") + { + ch.DisplayIndex = 7; + ch.Name = "aktiv"; + } + + if (ch.Name == "bezeichnung") ch.DisplayIndex = 0; + if (ch.Name == "Beschreibung") ch.DisplayIndex = 1; + if (ch.Name == "kategorie") ch.DisplayIndex = 3; + if (ch.Name == "farbe") + { + ch.DisplayIndex = 4; + } + ch.Text = char.ToUpper(ch.Name[0]) + ch.Name.Substring(1); + if (ch.Name != "benutzer_id" && ch.Name != "passwort" && ch.Name != "aufgabe_id" && ch.Name != "rolle") lv.Columns.Add(ch); + } + + lv.Items.Clear(); + var element = objectlist.FirstOrDefault(); + + switch (element.GetType().Name) + { + case ("Benutzer"): + foreach (Benutzer ben in objectlist) + { + ListViewItem item; + item = new ListViewItem(); + item.Tag = ben; + item.Text = ben.Vorname; + item.SubItems.Add(ben.Nachname); + item.SubItems.Add(ben.BenutzerName); + item.SubItems.Add(ben.Rolle.ToString()); + item.SubItems.Add(ben.Schein.ToString()); + item.SubItems.Add(ben.GueltigBis.HasValue ? ben.GueltigBis.Value.ToShortDateString() : ""); + item.SubItems.Add(ben.Aktiv == true ? "JA" : "NEIN"); + + lv.Items.Add(item); + } + break; + case ("Aufgabe"): + foreach (Aufgabe auf in objectlist) + { + ListViewItem item = new ListViewItem(); + item.UseItemStyleForSubItems = false; + item.Tag = auf; + item.Text = auf.Bezeichnung; + item.SubItems.Add(auf.Beschreibung); + item.SubItems.Add(auf.Kategorie.ToString()); + item.SubItems.Add(""); + + ColorConverter cc = new ColorConverter(); + item.SubItems[3].BackColor = (Color)cc.ConvertFromString(auf.Farbe.ToArgb().ToString()); //COLUMN FARBE SUBITEM BACKCOLOR == FARBE. + + lv.Items.Add(item); + } + break; + default: + break; + } + //RESIZE COLUMNS + Columns_Resize(lv); + //lv.Width = lv.Width + 22; + lv.AllowColumnReorder = true; + //lv.Height = 150; + + foreach (ListViewItem itm in lv.Items) + { + if (itm.Index % 2 == 0) itm.BackColor = Color.LightSteelBlue; + foreach (ListViewItem.ListViewSubItem subItem in itm.SubItems) if (!string.IsNullOrWhiteSpace(subItem.Text)) subItem.BackColor = itm.BackColor; + }//BACKCOLOR FÜR JEDES ZWEITE ANDERE FARBE + return lv; + } + //TODO: Eventuell auch andere ListViews einbinden? + + /// + /// Rahmen um die GroupBox erstellen. + /// base.OnPaint(e) muss im GroupBox_Paint Event vor dem Aufruf der Funktionen stehen. + /// + /// + /// + /// GroupBox gb + public static GroupBox GetGroupBoxBoarder(GroupBox gb, PaintEventArgs e) + { + string text = gb.Text; + Font font = gb.Font; + Size textSize = TextRenderer.MeasureText(text, font); + + int textWidth = textSize.Width; + int textHeight = textSize.Height; + + Pen pen = new Pen(Color.FromArgb(1, 53, 101), 2); + + int offset = 6; // Abstand von links zum Text + + // Rechteck für äußeren Rahmen + Rectangle rect = new Rectangle(2, textHeight / 2, gb.Width - 3, gb.Height - textHeight / 2 - 1); + + // Obere linke Linie (links bis zum linken Rand des Textes) + e.Graphics.DrawLine(pen, rect.Left, rect.Top, offset, rect.Top); + + // Obere rechte Linie (rechts vom Text bis zum rechten Rand) + e.Graphics.DrawLine(pen, offset + textWidth, rect.Top, rect.Right, rect.Top); + + // Linke vertikale Linie + e.Graphics.DrawLine(pen, rect.Left, rect.Top, rect.Left, rect.Bottom); + + // Rechte vertikale Linie + e.Graphics.DrawLine(pen, rect.Right, rect.Top, rect.Right, rect.Bottom); + + // Untere Linie + e.Graphics.DrawLine(pen, rect.Left, rect.Bottom, rect.Right, rect.Bottom); + + return gb; + } + } } diff --git a/Help.cs b/Help.cs new file mode 100644 index 0000000..6a163a2 --- /dev/null +++ b/Help.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class Help + { + + public Help() + { + + } + + public static void GetHelp(object sender) + { + + throw new NotImplementedException(); + } + } +} diff --git a/ILLink/ILLink.Descriptors.LibraryBuild.xml b/ILLink/ILLink.Descriptors.LibraryBuild.xml new file mode 100644 index 0000000..a42d7f0 --- /dev/null +++ b/ILLink/ILLink.Descriptors.LibraryBuild.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/Kosten.cs b/Kosten.cs new file mode 100644 index 0000000..200e041 --- /dev/null +++ b/Kosten.cs @@ -0,0 +1,207 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public enum KostenKat + { + FixLohn = 0, + Variabel = 1, + FixMiete = 2, + Rest = 3 + } + public class Kosten + { + private const string COLUMNS = "kosten_id, konto_nr, bezeichnung, datum, kategorie, betrag"; + private const string SUMCOLUMNS = "min(kosten_id), konto_nr, min(bezeichnung) as bezeichnung, min(datum) as datum, min(kategorie) as kategorie, sum(betrag) as betrag"; + private const string TABLE = "kundenverwaltung.kosten"; + public Kosten() + { + } + public static List GetList(int? aktjahr, int? monat, int? aktquartal, bool aktiv, int vpjahr, int[] quartale) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (monat == null || monat == 0) + { + if (aktquartal == null || aktquartal == 0) + { + if (quartale == null || quartale.Length == 0) + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where date_part('year', datum) = {aktjahr} group by konto_nr order by konto_nr, datum"; + } + else + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where date_part('year', datum) = {aktjahr} and date_part('quarter', datum) between {quartale.Min()} and {quartale.Max()} group by konto_nr order by konto_nr, datum"; + } + } + else + { + if (aktquartal == 4) command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where date_part('year', datum) = {aktjahr} group by konto_nr order by konto_nr, datum"; + else command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where date_part('quarter', datum) = {aktquartal} and date_part('year', datum) = {aktjahr} group by konto_nr order by konto_nr, datum"; + } + + } + else command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where date_part('month', datum) = {monat} and date_part('year', datum) = {aktjahr} group by konto_nr, datum order by konto_nr, datum"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Kosten(reader)); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static List GetUpdateList(string kontonr) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if(kontonr != null) command.CommandText = $"select {COLUMNS} from {TABLE} where konto_nr = {kontonr}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Kosten(reader)); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static double GetSummeKategorie() + { + DatenbankConnection.GetConnection().Open(); + double kosten = 0; + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) kosten = reader.IsDBNull(0) ? 0 : reader.GetDouble(0); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + + return kosten; + } + public static Kosten GetKosten(int? kostenid, string bez) + { + DatenbankConnection.GetConnection().Open(); + Kosten kosten = new Kosten(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + + if (!string.IsNullOrEmpty(bez)) command.CommandText = $"select {COLUMNS} from {TABLE} where LOWER(bezeichnung) = '{bez}'"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) kosten = new Kosten(reader); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return kosten; + } + public Kosten(NpgsqlDataReader reader) + { + this.KostenID = reader.GetInt32(0); + this.KontoNr = reader.GetInt32(1); + this.Bezeichnung = reader.IsDBNull(2) ? string.Empty : reader.GetString(2); + this.Datum = reader.GetDateTime(3); + this.Kategorie = (KostenKat)reader.GetInt16(4); + this.Betrag = reader.IsDBNull(5) ? null : (double?)reader.GetDouble(5); + } + public int GetKostenID(int kontonr, DateTime datum) + { + DatenbankConnection.GetConnection().Open(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select kosten_id from {TABLE} where konto_nr = '{kontonr}' and datum = '{datum}'"; + + int result = 0; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt16(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + } + public static int GetKontoNr(string bez) + { + DatenbankConnection.GetConnection().Open(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select konto_nr from {TABLE} where bezeichnung = {bez}"; + + int result = 0; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt16(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + + if (this.KostenID.HasValue & this.KostenID != 0) + { + command.CommandText = $"update {TABLE} set konto_nr = :p1, bezeichnung = :p2, datum = :p3, kategorie = :p4, betrag = :p5 WHERE kosten_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.kosten_seq')"; + this.KostenID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5)"; + } + + command.Parameters.AddWithValue("p0", this.KostenID); + command.Parameters.AddWithValue("p1", this.KontoNr); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(this.Bezeichnung) ? (object)DBNull.Value : this.Bezeichnung); + command.Parameters.AddWithValue("p3", this.Datum); + command.Parameters.AddWithValue("p4", (int)this.Kategorie); + command.Parameters.AddWithValue("p5", this.Betrag.HasValue ? (object)this.Betrag.Value : (object)DBNull.Value); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + } + + [OLVIgnore] + public int? KostenID { get; set; } = null; + + [OLVColumn(DisplayIndex = 0, TextAlign = System.Windows.Forms.HorizontalAlignment.Right, IsEditable = false)] + public int KontoNr { get; set; } + + [OLVColumn(DisplayIndex = 1, IsEditable = false)] + public string Bezeichnung { get; set; } + + [OLVColumn(DisplayIndex = 2, TextAlign = System.Windows.Forms.HorizontalAlignment.Center, AspectToStringFormat = "{0:d}", IsEditable = false)] + public DateTime Datum { get; set; } + + [OLVColumn(DisplayIndex = 3, TextAlign = System.Windows.Forms.HorizontalAlignment.Center, IsEditable = true)] + public KostenKat Kategorie { get; set; } + + [OLVColumn(DisplayIndex = 4, TextAlign = System.Windows.Forms.HorizontalAlignment.Right, AspectToStringFormat = "{0:c}", IsEditable = true)] + public double? Betrag { get; set; } = null; + } +} diff --git a/Kunde.cs b/Kunde.cs new file mode 100644 index 0000000..08bdc79 --- /dev/null +++ b/Kunde.cs @@ -0,0 +1,354 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Runtime.Remoting.Metadata.W3cXsd2001; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace DatenDB +{ + public class Kunde + { + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 + public const string COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, suchtext, aufgabe"; + private const string RED_COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, jahr, umsatz"; + public const string TABLE = "kundenverwaltung.kunde"; + public const string VIEW = "kundenverwaltung.jahresumsaetze"; //RICHTIGE VIEW AUSSUCHEN FÜR INAKTIVE MIT LETZTEN UMSATZ... + public Umsatz umsatz; + public Kunde() + { + } // LEER + public static List GetTmpList(string text) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (string.IsNullOrEmpty(text)) command.CommandText = $"select {COLUMNS} from {TABLE} where aktiv = {true}"; + else + { + if (int.TryParse(text, out _)) command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_nr::varchar ~* '{text}'"; + else command.CommandText = $"select {COLUMNS} from {TABLE} where suchtext ~* '{text}'"; + } + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Kunde(reader)); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return resultList; + + } + public static int GetKundeID(string kndnr, string text) + { + DatenbankConnection.GetConnection().Open(); + int result = 0; + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (!string.IsNullOrEmpty(kndnr)) command.CommandText = $"select kunde_id from {TABLE} where kunde_nr = '{kndnr}'"; + else command.CommandText = $"select kunde_id from {TABLE} where suchtext = '{text}'"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt32(0); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetColumns() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"SELECT distinct kunde.suchtext FROM kundenverwaltung.kunde JOIN kundenverwaltung.auftrag ON auftrag.kunde_id = kunde.kunde_id JOIN kundenverwaltung.auftrag_artikel ON auftrag_artikel.auftrag_id = auftrag.auftrag_id where kundenverwaltung.auftrag_artikel.erledigt is false"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(reader.GetString(0)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return resultList; + } + + public static List GetList(bool? isaktiv, string text) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (isaktiv != null) command.CommandText = $"select {COLUMNS} from {TABLE} where aktiv = {isaktiv}"; + if (!string.IsNullOrWhiteSpace(text))command.CommandText = $"select {COLUMNS} from {TABLE} where suchtext ~* '{text}'"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Kunde(reader, false)); + reader.Close(); + } + DatenbankConnection.GetConnection().Close(); + + foreach(Kunde kunde in resultList) + { + List list = new List(); + list = OLVKundenumsatz.GetJahresumsatz(kunde.KundeID); + if(list.Count > 0) + { + kunde.Zeitraum = double.Parse(OLVKundenumsatz.GetJahresumsatz(kunde.KundeID).Last().Zeitraum); + kunde.Umsatz1 = OLVKundenumsatz.GetJahresumsatz(kunde.KundeID).Last().Umsatz; + } + else + { + kunde.Zeitraum = 0; + kunde.Umsatz1 = 0; + } + + } + + return resultList; + } //INAKTIV KUNDENLISTE LADEN... + public static int GetBettenAnzahl(string bett) + { + DatenbankConnection.GetConnection().Open(); + int betten = 0; + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + + if (bett == "Miete") command.CommandText = $"select sum(bettenanzahl) from {TABLE} where aktiv = {true} and waescheart = '{bett}'"; + else command.CommandText = $"select sum(bettenanzahl) from {TABLE} where aktiv = {true}"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) betten = reader.IsDBNull(0) ? 0 : reader.GetInt16(0); + reader.Close(); + } + + DatenbankConnection.GetConnection().Close(); + return betten; + } + public static Kunde GetKunde(string nr, int? id, string name) + { + DatenbankConnection.GetConnection().Open(); + Kunde kunde = null; + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (int.TryParse(nr, out int _)) + { + command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_nr = '{nr}'"; + } + else command.CommandText = $"select {COLUMNS} from {TABLE} where suchtext = '{nr}'"; + if (id != null) command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {id}"; + if (!string.IsNullOrEmpty(name)) + { + command.CommandText = $"select {COLUMNS} from {TABLE} where LOWER(name1) = '{name}'"; + } + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) kunde = new Kunde(reader); + reader.Close(); + } + DatenbankConnection.GetConnection().Close(); + + return kunde; + } + + public Kunde(NpgsqlDataReader reader, bool mitUmsatz) + { + if (!mitUmsatz) + { + this.KundeID = reader.GetInt32(0); + this.TourID = reader.IsDBNull(1) ? null : (int?)reader.GetInt32(1); + this.KundeNummer = reader.GetString(2); + this.KundeName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.KundeName2 = reader.IsDBNull(4) ? string.Empty : reader.GetString(4); + this.Strasse = reader.IsDBNull(5) ? string.Empty : reader.GetString(5); + this.PLZ = reader.IsDBNull(6) ? null : (int?)reader.GetInt32(6); + this.Ort = reader.IsDBNull(7) ? string.Empty : reader.GetString(7); + this.Land = reader.IsDBNull(8) ? string.Empty : reader.GetString(8); + this.Aktiv = reader.GetBoolean(9); + this.Bettenanzahl = reader.IsDBNull(10) ? null : (int?)reader.GetInt32(10); + this.KundeGruppe = reader.IsDBNull(11) ? string.Empty : reader.GetString(11); + this.Service = reader.IsDBNull(12) ? string.Empty : reader.GetString(12); + this.Region = reader.IsDBNull(13) ? string.Empty : reader.GetString(13); + this.Waescheart = reader.IsDBNull(14) ? string.Empty : reader.GetString(14); + this.Suchtext = reader.IsDBNull(15) ? string.Empty : reader.GetString(15); + this.Aufgabe = reader.IsDBNull(16) ? null : (int?)reader.GetInt32(16); + } + } + public Kunde(NpgsqlDataReader reader) + { + this.KundeID = reader.GetInt32(0); + this.TourID = reader.IsDBNull(1) ? null : (int?)reader.GetInt32(1); + this.KundeNummer = reader.GetString(2); + this.KundeName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.KundeName2 = reader.IsDBNull(4) ? string.Empty : reader.GetString(4); + this.Strasse = reader.IsDBNull(5) ? string.Empty : reader.GetString(5); + this.PLZ = reader.IsDBNull(6) ? null : (int?)reader.GetInt32(6); + this.Ort = reader.IsDBNull(7) ? string.Empty : reader.GetString(7); + this.Land = reader.IsDBNull(8) ? string.Empty : reader.GetString(8); + this.Aktiv = reader.GetBoolean(9); + this.Bettenanzahl = reader.IsDBNull(10) ? null : (int?)reader.GetInt32(10); + this.KundeGruppe = reader.IsDBNull(11) ? string.Empty : reader.GetString(11); + this.Service = reader.IsDBNull(12) ? string.Empty : reader.GetString(12); + this.Region = reader.IsDBNull(13) ? string.Empty : reader.GetString(13); + this.Waescheart = reader.IsDBNull(14) ? string.Empty : reader.GetString(14); + this.Suchtext = reader.IsDBNull(15) ? string.Empty : reader.GetString(15); + this.Aufgabe = reader.IsDBNull(16) ? null : (int?)reader.GetInt32(16); + + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + + if (this.KundeID.HasValue & this.KundeID != 0) + { + command.CommandText = $"update {TABLE} set tour_id = :p1, kunde_nr = :p2, name1 = :p3, name2 = :p4, straße = :p5, plz = :p6, bezeichnung = :p7, land = :p8, aktiv = :p9, bettenanzahl = :p10, kunde_gruppe = :p11, service = :p12, region = :p13, waescheart = :p14, suchtext = :p15, aufgabe = :p16 WHERE kunde_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.kunde_seq')"; + this.KundeID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14, :p15, :p16)"; + } + + command.Parameters.AddWithValue("p0", this.KundeID); + command.Parameters.AddWithValue("p1", this.TourID ?? (object)DBNull.Value); + command.Parameters.AddWithValue("p2", this.KundeNummer); + command.Parameters.AddWithValue("p3", string.IsNullOrEmpty(this.KundeName) ? (object)DBNull.Value : this.KundeName); + command.Parameters.AddWithValue("p4", string.IsNullOrEmpty(this.KundeName2) ? (object)DBNull.Value : this.KundeName2); + command.Parameters.AddWithValue("p5", string.IsNullOrEmpty(this.Strasse) ? (object)DBNull.Value : this.Strasse); + command.Parameters.AddWithValue("p6", this.PLZ ?? (object)DBNull.Value); + command.Parameters.AddWithValue("p7", string.IsNullOrEmpty(this.Ort) ? (object)DBNull.Value : this.Ort); + command.Parameters.AddWithValue("p8", string.IsNullOrEmpty(this.Land) ? (object)DBNull.Value : this.Land); + command.Parameters.AddWithValue("p9", this.Aktiv); + command.Parameters.AddWithValue("p10", this.Bettenanzahl ?? (object)DBNull.Value); + command.Parameters.AddWithValue("p11", string.IsNullOrEmpty(this.KundeGruppe) ? (object)DBNull.Value : this.KundeGruppe); + command.Parameters.AddWithValue("p12", string.IsNullOrEmpty(this.Service) ? (object)DBNull.Value : this.Service); + command.Parameters.AddWithValue("p13", string.IsNullOrEmpty(this.Region) ? (object)DBNull.Value : this.Region); + command.Parameters.AddWithValue("p14", string.IsNullOrEmpty(this.Waescheart) ? (object)DBNull.Value : this.Waescheart); + command.Parameters.AddWithValue("p15", string.IsNullOrEmpty(this.Suchtext) ? (object)DBNull.Value : this.Suchtext); + command.Parameters.AddWithValue("p16", this.Aufgabe ?? (object)DBNull.Value); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + } + public int CheckKndNr(string v) + { + DatenbankConnection.GetConnection().Open(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select kunde_id from {TABLE} where kunde_nr = '{v}'"; + + int result = 0; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt16(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + } + public static int GetAnzahlKnd(bool? aktiv) + { + DatenbankConnection.GetConnection().Open(); + using (NpgsqlCommand command = new NpgsqlCommand()) + { + command.Connection = DatenbankConnection.GetConnection(); + if (aktiv != null) command.CommandText = $"select count (*) from {TABLE} where aktiv = '{aktiv}'"; + else command.CommandText = $"select count (*) from {TABLE}"; + + int result = (int)(long)command.ExecuteScalar(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + } + + [OLVIgnore] + public int? KundeID { get; set; } + + [OLVIgnore] + public int? TourID { get; set; } + + [OLVColumn(IsVisible = false)] + public string KundeGruppe { get; set; } + + [OLVColumn("KndNr.", DisplayIndex = 0, IsTileViewColumn = true, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string KundeNummer { get; set; } + + [OLVColumn("Name", DisplayIndex = 1)] + public string KundeName { get; set; } + + [OLVColumn("Zusatz", DisplayIndex = 2)] + public string KundeName2 { get; set; } + + [OLVColumn(DisplayIndex = 3)] + public string Strasse { get; set; } + + [OLVColumn(DisplayIndex = 4)] + public string HausNr { get; set; } + + [OLVColumn(DisplayIndex = 5, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int? PLZ { get; set; } + + [OLVColumn(DisplayIndex = 6)] + public string Ort { get; set; } + + [OLVColumn(DisplayIndex = 7, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string Land { get; set; } + + [OLVColumn("Betten", DisplayIndex = 8, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int? Bettenanzahl { get; set; } + + [OLVColumn(CheckBoxes = true, DisplayIndex = 9)] + public bool Aktiv { get; set; } = true; + + [OLVColumn(DisplayIndex = 10)] + public string Service { get; set; } + + [OLVColumn(DisplayIndex = 11)] + public string Region { get; set; } + + [OLVColumn(DisplayIndex = 12)] + public string Waescheart { get; set; } + + [OLVColumn("Umsatz", DisplayIndex = 15, TextAlign = System.Windows.Forms.HorizontalAlignment.Center, AspectToStringFormat ="{0:C}")] + public double? Umsatz1 { get; set; } + [OLVIgnore] + public double? Umsatz2 { get; set; } + [OLVIgnore] + public double? DifferenzEUR { get; set; } + [OLVIgnore] + public double? DifferenzP { get; set; } + [OLVIgnore] + public double? UmsatzAnteil { get; set; } + [OLVIgnore] + public double? KostenAnteil { get; set; } + [OLVIgnore] + public double? GastUmsatz { get; set; } + [OLVIgnore] + public double? BewertungEUR { get; set; } + [OLVIgnore] + public string Bewertung { get; set; } + + [OLVColumn("Jahr", DisplayIndex = 14, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public double Zeitraum { get; set; } + + [OLVColumn(DisplayIndex = 13)] + public string Suchtext { get; set; } + + [OLVIgnore] + public int? Aufgabe { get; set; } + } +} diff --git a/KundeArtikel.cs b/KundeArtikel.cs new file mode 100644 index 0000000..1754ead --- /dev/null +++ b/KundeArtikel.cs @@ -0,0 +1,153 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; + +namespace DatenDB +{ + public class KundeArtikel + { + // 0 1 2 3 4 5 6 7 8 9 + private static string COLUMNS = "kunde_artikel_id, kunde_id, artikel_nr, artikel_name, stand, fehlmenge, stand_bearbeitet, fehlmenge_bearbeitet, korrektur, korrektur_bearbeitet"; + private static string TABLE = "kundenverwaltung.kunde_artikel"; + + public KundeArtikel() { } + + public static List GetList(string kundeid) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kundeid} order by kunde_artikel_id asc"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new KundeArtikel(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public static KundeArtikel GetItem(int i) + { + DatenbankConnection.GetConnection().Open(); + KundeArtikel result = new KundeArtikel(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"SELECT {COLUMNS} from {TABLE} where kunde_artikel_id = {i}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new KundeArtikel(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + public static KundeArtikel GetItemIfAvailable(int kndid, int artnr) + { + DatenbankConnection.GetConnection().Open(); + KundeArtikel result = null; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"SELECT {COLUMNS} from {TABLE} where kunde_id = {kndid} and artikel_nr = {artnr}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new KundeArtikel(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + + + + + public int Save() + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (this.KundeArtikelID.HasValue & this.KundeArtikelID != 0) + { + command.CommandText = $"update {TABLE} set kunde_id = :p1, artikel_nr = :p2, artikel_name = :p3, stand = :p4, fehlmenge = :p5, stand_bearbeitet = :p6, fehlmenge_bearbeitet = :p7, korrektur = :p8, korrektur_bearbeitet = :p9 WHERE kunde_artikel_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.kunde_artikel_seq')"; + this.KundeArtikelID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9)"; + } + + command.Parameters.AddWithValue("p0", this.KundeArtikelID.Value); + command.Parameters.AddWithValue("p1", this.KundeID); + command.Parameters.AddWithValue("p2", this.ArtikelNR); + command.Parameters.AddWithValue("p3", string.IsNullOrWhiteSpace(this.ArtikelName) ? (object)DBNull.Value : this.ArtikelName); + command.Parameters.AddWithValue("p4", this.Stand); + command.Parameters.AddWithValue("p5", this.Fehlmenge); + command.Parameters.AddWithValue("p6", string.IsNullOrWhiteSpace(this.StandBearbeitet) ? (object)DBNull.Value : this.StandBearbeitet); + command.Parameters.AddWithValue("p7", string.IsNullOrWhiteSpace(this.FehlmengeBearbeitet) ? (object)DBNull.Value : this.FehlmengeBearbeitet); + command.Parameters.AddWithValue("p8", this.Korrektur); + command.Parameters.AddWithValue("p9", string.IsNullOrWhiteSpace(this.KorrekturBearbeitet) ? (object)DBNull.Value : this.KorrekturBearbeitet); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + + } + public int ZahlenUpdate() + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (this.KundeArtikelID.HasValue & this.KundeArtikelID != 0) + { + command.CommandText = $"update {TABLE} set stand = :p1, stand_bearbeitet = :p2 fehlmenge = :p3, fehlmenge_bearbeitet = :p4, korrektur = :p5, korrektur_bearbeitet = :p6 WHERE kunde_artikel_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.kunde_artikel_seq')"; + this.KundeArtikelID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6)"; + } + + command.Parameters.AddWithValue("p0", this.KundeArtikelID.Value); + command.Parameters.AddWithValue("p1", this.Stand); + command.Parameters.AddWithValue("p2", string.IsNullOrWhiteSpace(this.StandBearbeitet) ? (object)DBNull.Value : this.StandBearbeitet); + command.Parameters.AddWithValue("p3", this.Fehlmenge); + command.Parameters.AddWithValue("p4", string.IsNullOrWhiteSpace(this.FehlmengeBearbeitet) ? (object)DBNull.Value : this.FehlmengeBearbeitet); + command.Parameters.AddWithValue("p5", this.Korrektur); + command.Parameters.AddWithValue("p6", string.IsNullOrWhiteSpace(this.KorrekturBearbeitet) ? (object)DBNull.Value : this.KorrekturBearbeitet); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + + + } + + public KundeArtikel(NpgsqlDataReader reader) + { + this.KundeArtikelID = reader.GetInt32(0); + this.KundeID = reader.GetInt32(1); + this.ArtikelNR = reader.GetInt32(2); + this.ArtikelName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.Stand = reader.GetInt32(4); + this.Fehlmenge = reader.GetInt32(5); + this.StandBearbeitet = reader.IsDBNull(6) ? string.Empty : reader.GetString(6); + this.FehlmengeBearbeitet = reader.IsDBNull(7) ? string.Empty : reader.GetString(7); + this.Korrektur = reader.IsDBNull(8) ? 0 : reader.GetInt32(8); + this.KorrekturBearbeitet = reader.IsDBNull(9) ? string.Empty : reader.GetString(9); + } + + public int? KundeArtikelID { get; set; } + public int? KundeID { get; set; } + public int ArtikelNR { get; set; } + public string ArtikelName { get; set; } + public int Stand { get; set; } + public int Fehlmenge { get; set; } + public string StandBearbeitet { get; set; } + public string FehlmengeBearbeitet { get; set; } + public int Korrektur { get; set; } + public string KorrekturBearbeitet { get; set; } + + } +} diff --git a/KundeDaten.cs b/KundeDaten.cs deleted file mode 100644 index 3937a6f..0000000 --- a/KundeDaten.cs +++ /dev/null @@ -1,430 +0,0 @@ -using BrightIdeasSoftware; -using DatenDB; -using Spire.Barcode; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Configuration; -using System.Data; -using System.Drawing; -using System.Drawing.Printing; -using System.IO; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using ZXing; -using System.Windows.Forms.DataVisualization.Charting; -using System.Data.SqlClient; -using System.Web; - -namespace Deckungsbeitrag -{ - public partial class KundeDaten : Form - { - List sortimentListe = null; - List resultList = null; - Sortiment result = null; - Kunde adresse = null; - Bitmap bitmap = null; - Image qrcode = null; - - public KundeDaten() - { - InitializeComponent(); - sortimentListe = (List)Funktionen.SortimentLesen("Liste"); - foreach (Control ctr in this.Controls) if (ctr is TextBox) if (!ctr.Name.Contains("KndNr") && !ctr.Name.Contains("Suchtext")) ctr.Enabled = false; - this.buttonProgramm.Enabled = false; - this.buttonBewertung.Enabled = false; - this.tSBDrucken.Enabled = false; - this.tSBNext.Enabled = false; - - - List aufgabenlist1 = Aufgabe.GetList(2); - this.comboBoxAufgabe.DataSource = aufgabenlist1; - this.comboBoxAufgabe.DisplayMember = "Bezeichnung"; - this.comboBoxAufgabe.SelectedIndex = -1; - this.comboBoxAufgabe.Enabled = false; - this.buttonAufgEnt.Enabled = false; - } - public KundeDaten(Kunde kunde) :this() - { - this.adresse = kunde; - //Funktionen.SortimentLesen("Liste"); - this.textBoxKndNr.Text = kunde.KundeNummer; - TextBoxKndNr_Leave(this, null); - - //OLV_Load(); - //Chart_Load(); - } - //private bool SortimentLesen() - //{ - // bool ok = false; - // StreamReader streamReader = null; - // try - // { - // streamReader = new StreamReader(ConfigurationManager.AppSettings["SortimentPfad"], Encoding.GetEncoding("iso-8859-1")); - // } - // catch (Exception) - // { - //MessageBox.Show("Keine Sortiment-Datei gefunden, bitte kontrolliere Pfad und Dateiname!"); - // return ok; - // } - // int nr = 0; - // string row = string.Empty; - // Sortiment[] sortiment = new Sortiment[0]; - // sortimentListe = new List(); - // int idx = 0; - // while (!streamReader.EndOfStream) - // { - // Array.Resize(ref sortiment, ++idx); - // row = streamReader.ReadLine(); - // sortiment[idx - 1] = new Sortiment(row, nr); - // sortimentListe.Add(new Sortiment(row, nr)); - // ++nr; - // } - // streamReader.Close(); - // ok = true; - - // return ok; - //} - private void DatenLesen() - { - foreach (Control ctr in this.Controls) if (ctr is TextBox) ctr.Enabled = false; - this.comboBoxAufgabe.Enabled = true; - - string sortNr = string.Empty; - //Innsbrucker Soziale Dienste Sortiment immer gleich. - if (adresse.KundeNummer == "010069" | adresse.KundeNummer == "010071") sortNr = "010068"; - else sortNr = adresse.KundeNummer; - - - //result = sortimentListe.Find(Sortiment => Sortiment.KundeNummer == sortNr); - resultList = sortimentListe.FindAll(Sortiment => Sortiment.KundeNummer == sortNr); - - BarcodeWriter code = new BarcodeWriter(); - code.Format = BarcodeFormat.QR_CODE; - qrcode = code.Write(adresse.KundeNummer); - - if (resultList != null) //KONTROLLE OB SORTIMENT VORHANDEN MIT RESULT...WERT VON resultList WENN KUNDE HAT KEIN SORTIMENT?????? - { - Entwurf_Erstellen(); - this.pictureBoxEntwurf.Visible = true; - this.pictureBoxEntwurf.Image = bitmap; - } - else MessageBox.Show("Der gesuchte Kunde hat kein Sortiment."); - - tSSLabelArtikelAnz.Text = resultList.Count.ToString(); - - this.textBoxKndNr.Text = adresse.KundeNummer; - this.textBoxKundeName.Text = adresse.KundeName; - this.textBoxKndName2.Text = adresse.KundeName2; - this.textBoxStraße.Text = adresse.Strasse; - this.textBoxPLZ.Text = adresse.PLZ.ToString(); - this.textBoxOrt.Text = adresse.Ort; - this.textBoxSuchtext.Text = adresse.Suchtext; - foreach (Aufgabe auf in comboBoxAufgabe.Items) if (auf.AufgabeID == adresse.Aufgabe) this.comboBoxAufgabe.SelectedItem = auf; - if (this.comboBoxAufgabe.SelectedItem != null) this.buttonAufgEnt.Enabled = true; - - this.pictureBoxQRCode.Image = qrcode; - this.pictureBoxQRCode.SizeMode = PictureBoxSizeMode.Zoom; - this.buttonProgramm.Text = "WP 01"; //AUS DATENBANK STANDART-WASCHPROGRAMM EINFÜGEN. - - this.buttonProgramm.Enabled = true; - this.buttonBewertung.Enabled = true; - this.tSBDrucken.Enabled = true; - this.tSBNext.Enabled = true; - - OLV_Load(); - Chart_Load(); - } - private void Entwurf_Erstellen() - { - int ezl = 50; - int handzeile = 33; - float textsize = 10; - float textsize2 = 20; - int idx = 0; - int idx1 = 0; - int length = 0; - bitmap = new Bitmap(790, 1120); - Graphics g = Graphics.FromImage(bitmap); - Point adressblock = new Point(ezl, 50); - - Point tabelle = new Point(ezl, 330); - SizeF textSize2 = g.MeasureString("Salzburg, am 26.08.1984", new Font("Arial", textsize, FontStyle.Regular)); - SizeF textSize3 = g.MeasureString("MO", new Font("Arial", textsize2, FontStyle.Regular)); - SizeF textSizePos = g.MeasureString("Bemerkung", new Font("Arial", textsize, FontStyle.Regular)); - int zeile = (int)textSize2.Height + 20; //PIXEL - int posTag = 145; - - int qr = (int)textSize3.Height * 2 + (int)textSize2.Height * 3; - - g.FillRectangle(Brushes.White, 0, 0, bitmap.Width, bitmap.Height); - //QR-Code - g.DrawImage(qrcode, bitmap.Width - 50 - qr, 50, qr, qr); - //Adressblock - g.DrawString($"{adresse.KundeNummer} {adresse.Suchtext}", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock); - g.DrawString($"{adresse.KundeName}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + (int)textSize3.Height); - g.DrawString($"{adresse.KundeName2}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + (int)textSize3.Height + (int)textSize2.Height); // - g.DrawString($"{adresse.Strasse}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + (int)textSize3.Height + (int)textSize3.Height + (int)textSize2.Height); - g.DrawString($"{adresse.PLZ} {adresse.Ort}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + (int)textSize3.Height + (int)textSize3.Height + (int)textSize2.Height + (int)textSize2.Height); - //TagAnzeige - g.DrawString("MO", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock.X, adressblock.Y + posTag); - g.DrawString("DI", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock.X + textSize3.Width + 10, adressblock.Y + posTag); - g.DrawString("MI", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock.X + (textSize3.Width + 10) * 2, adressblock.Y + posTag); - g.DrawString("DO", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock.X + (textSize3.Width + 10) * 3, adressblock.Y + posTag); - g.DrawString("FR", new Font("Arial", textsize2, FontStyle.Regular), Brushes.Black, adressblock.X + (textSize3.Width + 10) * 4, adressblock.Y + posTag); - //Datum - g.DrawString("Datum:_______________", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, ezl, adressblock.Y + 200); - if (adresse.Aufgabe != null) g.DrawString($"*{Aufgabe.GetAufgabe(string.Empty, adresse.Aufgabe).Bezeichnung}", new Font("Arial", textsize, FontStyle.Bold), Brushes.Black, tabelle.X + textSizePos.Width + 100, adressblock.Y + 200); - - //Tabelle Kopf - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X, tabelle.Y - zeile), new Point(bitmap.Width - 50, tabelle.Y - zeile)); - g.DrawString("Bemerkung", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X, tabelle.Y - (int)textSize2.Height - 5); - g.DrawString("Stück", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 25, tabelle.Y - (int)textSize2.Height - 5); - g.DrawString("Bezeichnung", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 100, tabelle.Y - (int)textSize2.Height - 5); - g.DrawString("Art.Nr.", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 500, tabelle.Y - (int)textSize2.Height - 5); - g.DrawLine(new Pen(Brushes.Black), tabelle, new Point(bitmap.Width - 50, tabelle.Y)); - for (int i = 0; i < 19; i++) - { - ++idx; - length = handzeile * idx; - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X, tabelle.Y - zeile), new Point(tabelle.X, tabelle.Y + length)); - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X + (int)textSizePos.Width + 5, tabelle.Y - zeile), new Point(tabelle.X + (int)textSizePos.Width + 5, tabelle.Y + length)); - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X + (int)textSizePos.Width + 90, tabelle.Y - zeile), new Point(tabelle.X + (int)textSizePos.Width + 90, tabelle.Y + length)); - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X + (int)textSizePos.Width + 495, tabelle.Y - zeile), new Point(tabelle.X + (int)textSizePos.Width + 495, tabelle.Y + length)); - g.DrawLine(new Pen(Brushes.Black), new Point(bitmap.Width - 50, tabelle.Y - zeile), new Point(bitmap.Width - 50, tabelle.Y + length)); - g.DrawLine(new Pen(Brushes.Black), new Point(tabelle.X, tabelle.Y + length), new Point(bitmap.Width - 50, tabelle.Y + length)); - - } - foreach (Sortiment artikel in resultList) - { - - ++idx1; - length = handzeile * idx1; - g.DrawString($"{artikel.ArtName}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 100, tabelle.Y + length - 20); - g.DrawString($"{artikel.ArtNr}", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, tabelle.X + textSizePos.Width + 500, tabelle.Y + length - 20); - - } - //Bemerkung - g.DrawString($"Bemerkung:", new Font("Arial", textsize, FontStyle.Regular), Brushes.Black, ezl, bitmap.Height - 130); - //g.DrawString($"*{Aufgabe.GetAufgabe(string.Empty, adresse.Aufgabe).Bezeichnung}", new Font("Arial", textsize, FontStyle.Bold), Brushes.Black, ezl, bitmap.Height - 130 + handzeile); - - g.DrawRectangle(new Pen(Brushes.Black), ezl, bitmap.Height - 130 - textsize, bitmap.Width - 100, 100); - - - } - private void TSBBeenden_Click(object sender, EventArgs e) - { - this.DialogResult = DialogResult.Cancel; - this.Close(); - } - private void OLV_Load() - { - foreach(ObjectListView olv in this.Controls.OfType()) - { - olv.HeaderFormatStyle = Funktionen.GetHeader(); - olv.OwnerDraw = true; - Generator.GenerateColumns(olv, typeof(OLVKundenumsatz), true); - - if (olv.Name.Contains("Jahresumsatz")) - { - foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Jahr"; - olv.SetObjects(OLVKundenumsatz.GetJahresumsatz(adresse.KundeID)); - } - if (olv.Name.Contains("Quartalsumsatz")) - { - foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Quartal"; - olv.SetObjects(OLVKundenumsatz.GetQuartalsumsatz(adresse.KundeID)); - } - if (olv.Name.Contains("Monatsumsatz")) - { - foreach (OLVColumn c in olv.Columns) if (c.Name == "Zeitraum") c.Text = "Monat"; - olv.SetObjects(OLVKundenumsatz.GetMonatsumsatz(adresse.KundeID)); - } - } - - - - } - private void Chart_Load() - { - foreach (Chart chart in this.Controls.OfType()) chart.Visible = true; - //IMPLEMENTIEREN - ClassChart ch = ClassChart.FillChart(adresse.KundeID); - //Chart Jahresumsatz - List olv = OLVKundenumsatz.GetJahresumsatz(adresse.KundeID); - string[] x = new string[olv.Count()]; - double[] y = new double[olv.Count()]; - for (int i = 0; i < y.Length; i++) - { - y[i] = olv[i].Umsatz; - x[i] = olv[i].Zeitraum; - } - this.chartJahresumsatz.Series[0].LegendText = "Umsatz"; - this.chartJahresumsatz.Series[0].ChartType = SeriesChartType.Column; - this.chartJahresumsatz.Series[0].IsValueShownAsLabel = true; - this.chartJahresumsatz.Series[0].Points.DataBindXY(x, y); - //Chart Quartalsumsatz - List olvq = OLVKundenumsatz.GetQuartalsumsatz(adresse.KundeID); - string[] xq = new string[olvq.Count()]; - double[] yq = new double[olvq.Count()]; - for (int i = 0; i < olvq.Count(); i++) - { - yq[i] = olvq[i].Umsatz; - xq[i] = olvq[i].Zeitraum; - } - this.chartQuartalsumsatz.Series[0].LegendText = "Umsatz"; - this.chartQuartalsumsatz.Series[0].ChartType = SeriesChartType.Bar; - this.chartQuartalsumsatz.Series[0].IsValueShownAsLabel = true; - this.chartQuartalsumsatz.Series[0].Points.DataBindXY(xq, yq); - } - private void TextBoxKndNr_Leave(object sender, EventArgs e) - { - if (!string.IsNullOrWhiteSpace(textBoxKndNr.Text)) - { - this.textBoxSuchtext.Enabled = false; - adresse = Kunde.GetKunde(textBoxKndNr.Text, null, null); - if (adresse == null) - { - MessageBox.Show("Kunden Nummer nicht vorhanden!!"); - this.textBoxSuchtext.Enabled = true; - this.textBoxKndNr.Clear(); - this.textBoxKndNr.Focus(); - return; - } - else DatenLesen(); - } - else { this.textBoxSuchtext.Enabled = true; return; } - } - private void ButtonDrucken_Click(object sender, EventArgs e) - { - //PrintDialog dialog = new PrintDialog(); - //foreach(string printer in PrinterSettings.InstalledPrinters) if (printer.Contains(ConfigurationManager.AppSettings["PrinterName"])) dialog.PrinterSettings.PrinterName = printer; - - // dialog.PrinterSettings.Copies = 10; - - // if (dialog.ShowDialog() == DialogResult.OK) - //{ - // PrintDocument printDocument = new PrintDocument(); - // printDocument.PrintPage += new PrintPageEventHandler(PrintDocument_PrintPage); - // printDocument.PrinterSettings = dialog.PrinterSettings; - // printDocument.Print(); - //} - Funktionen.SWS_Drucken(null, adresse); - } - private void PrintDocument_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) - { - e.Graphics.DrawImage(bitmap, e.PageBounds); - //e.Graphics.DrawImage(bitmap, 0, 0, 790, 900); - } - private void TSBNext_Click(object sender, EventArgs e) - { - foreach (Control ctr in this.Controls) - { - if (ctr is TextBox) - { - ctr.Text = ""; - if (!ctr.Name.Contains("KndNr") && !ctr.Name.Contains("Suchtext")) ctr.Enabled = false; - else ctr.Enabled = true; - } - this.textBoxKndNr.Focus(); - } - this.pictureBoxEntwurf.Image = null; - this.pictureBoxQRCode.Image = null; - this.buttonProgramm.Enabled = false; - this.buttonBewertung.Enabled = false; - this.comboBoxAufgabe.Enabled = false; - this.buttonAufgEnt.Enabled = false; - this.tSBNext.Enabled = false; - this.tSBDrucken.Enabled = false; - foreach (ObjectListView olv in this.Controls.OfType()) olv.Clear(); - foreach (Chart chart in this.Controls.OfType()) chart.Visible = false; - - - } - private void ButtonProgramm_Click(object sender, EventArgs e) - { - FormProgrammauswahl auswahl = new FormProgrammauswahl(); - if (auswahl.ShowDialog() == DialogResult.OK) - { - DatenLesen(); - } - } - private void textBoxSuchtext_TextChanged(object sender, EventArgs e) - { - - if (!string.IsNullOrWhiteSpace(textBoxSuchtext.Text)) - { - this.textBoxSuchtext.AutoCompleteCustomSource = Kunde.GetSuchtext(textBoxSuchtext.Text); - } - } - private void TextBoxSuchtext_Leave(object sender, EventArgs e) - { - if (!string.IsNullOrWhiteSpace(textBoxSuchtext.Text)) - { - if (Kunde.GetKunde(textBoxSuchtext.Text, null, string.Empty) != null) adresse = Kunde.GetKunde(textBoxSuchtext.Text.ToUpper(), null, string.Empty); - else - { - MessageBox.Show($"Kunde mit {textBoxSuchtext.Text} als Suchtext ist nicht vorhanden!!"); - this.textBoxSuchtext.Clear(); - this.textBoxSuchtext.Focus(); - return; - } - DatenLesen(); - } - } - private void textBoxSuchtext_KeyDown(object sender, KeyEventArgs e) - { - TextBox tb = (TextBox)sender; - if (e.KeyData == Keys.Enter || e.KeyData == Keys.Tab) - { - if (tb.Name.Contains("KndNr")) TextBoxKndNr_Leave(this, null); - if (tb.Name.Contains("Suchtext")) TextBoxSuchtext_Leave(this, null); - - e.Handled = true; - } - } - - private void comboBoxAufgabe_DropDownClosed(object sender, EventArgs e) - { - if (MessageBox.Show("Möchtest du die Aufgabe speichern?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - if (this.comboBoxAufgabe.SelectedItem == null) adresse.Aufgabe = null; - else adresse.Aufgabe = ((Aufgabe)this.comboBoxAufgabe.SelectedItem).AufgabeID; - - adresse.Save(); - } - } - private void buttonAufgEnt_Click(object sender, EventArgs e) - { - - if (MessageBox.Show("Möchtest du die Aufgabe wirklich löschen?", "Frage", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - this.comboBoxAufgabe.SelectedIndex = -1; - adresse.Aufgabe = null; - adresse.Save(); - - } - - - - } - - private void KundeDaten_KeyDown(object sender, KeyEventArgs e) - { - if (e.KeyCode == Keys.End) TSBNext_Click(this, e); - } - - private void nextToolStripMenuItem_Click(object sender, EventArgs e) - { - TSBNext_Click(this, e); - } - - private void nächsterKundeToolStripMenuItem_Click(object sender, EventArgs e) - { - TSBNext_Click(this, e); - } - } -} diff --git a/KundeDaten.resx b/KundeDaten.resx deleted file mode 100644 index 9082d3e..0000000 --- a/KundeDaten.resx +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAEMSURBVDhPrZMxjoNADEVzpD1CRE9PzwW2pkpDzwEo0tEi - DkBPT09BSbORsCkneqM1yUxQtNLG0pdG/va3x+M5nT5p27adVbVVVRehhYvjA1PVapomV5alS9PUJUni - wRkfHDFxnjeIcRx9cJZlrmkaNwyDB2d8cIcitAZhleZ5vonIBT/gjK+qKtf3PQI/67p+PVdvSaQKgQH5 - ayLyvSzLXiQQYUgQXdc5qh0kXwBJds08zx/FEGBY3Pdo0vB1Xe8oisLHm8hnBP57hX2ILxN+iARDDIYd - PyMiVCQA2DPSIdc8LCIiV0hbJIJpF2HObxfJDBFbZVtjg60yMXFeYM+fiQ7Anz9TbDaD2B/bHero49g9 - VkT2AAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACFSURBVDhP3ZIxDoAgDEU5muFYnM4BV/UmakJg1HQAS2ml - rjR5wcT+RyEYgyrGeGvAmargp7X2E5XgPC6WUQUppSmEMOcb1ggAyEDWwIdzrrntHpCBbBl7W/dmRwnv - l/c4eOy8amAFfxAF9KwUUcA1UWhfEWB6AtpfvQluGkoTwkXtEjjzAA07kcd6gs3FAAAAAElFTkSuQmCC - - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACbSURBVDhPY2AgAL5//5786dMnUXRxosC3b98qnr/58P/b - t2+XSTYEpPny/Zf/pVKW/W9aeYY0Q/7//88B0tC38cJ/huA5YEyyISCFIA0gjbQ15Nu3byABghinISBJ - mAQpGGYIdQwgBhfPP4ahmWBgEhWIuABFmmEJqXv9edI1wwAoKZ+++ey/cMJi0jXDAMiQxy/fk6cZBghl - ZwBXpY04PHaFwQAAAABJRU5ErkJggg== - - - - 315, 17 - - - - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAACbSURBVDhPY2AgAL5//5786dMnUXRxosC3b98qnr/58P/b - t2+XSTYEpPny/Zf/pVKW/W9aeYY0Q/7//88B0tC38cJ/huA5YEyyISCFIA0gjbQ15Nu3byABghinISBJ - mAQpGGYIdQwgBhfPP4ahmWBgEhWIuABFmmEJqXv9edI1wwAoKZ+++ey/cMJi0jXDAMiQxy/fk6cZBghl - ZwBXpY04PHaFwQAAAABJRU5ErkJggg== - - - - 430, 17 - - - 38 - - - - AAABAAEAICAQAAAAAADoAgAAFgAAACgAAAAgAAAAQAAAAAEABAAAAAAAgAIAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP// - AAD///8A//////////////////////////////////////////////////////////////////////// - ////////8AD//////////////////w//D/////////////////8PDw///////MzP////zMz/D/8P//// - //zMzP///8zMz/AA///////MzMzM//zMzMzP////////zMzMzMz8zMzMzM///////MzMzMzPzMzMzMz/ - //////zMzMzM/8zMzMzP///////MzMzMzPzMzMzMz///////zMzMzM/8zMzMzP///////MzMzMzPzMzM - zMz///////zMzMzM/8zMzMzP/Mz////MzMzMzPzMzMzMz/zMzM//zMzMzM/8zMzMzP/MzMzM/8zMzMzP - zMzMzMz8zMzMzPzMzMzM/8zMzMzP/MzMzMz8zMzMzPzMzMzMz8zMzMzMzMzMzM/MzMzMzPzMzMzMz//8 - zMzP//zMzMz//8zMzM////zM/////8zP/////Mz///////////////////////////////////////// - //////////////////////////////////////////////////////////////////////////////// - //////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA - AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== - - - \ No newline at end of file diff --git a/LoginException.cs b/LoginException.cs new file mode 100644 index 0000000..d9da8ad --- /dev/null +++ b/LoginException.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class LoginException : Exception + { + public LoginException() : base() + { + + } + public LoginException(string message) : base(message) + { + + } + public LoginException(string message, int errorCode) : base(message) + { + this.ErrorCode = errorCode; + } + + public int ErrorCode { get; set; } = 0; + + + + } +} diff --git a/Maschine.cs b/Maschine.cs new file mode 100644 index 0000000..053fb11 --- /dev/null +++ b/Maschine.cs @@ -0,0 +1,86 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class Maschine + { + public const string COLUMNS = "maschine_id, faecher, bezeichnung, trockner_kaputt"; + private const string TABLE = "kundenverwaltung.maschine"; + + + public static Maschine GetMaschine(int? mID, string bezeichnung) + { + DatenbankConnection.GetConnection().Open(); + Maschine result = null; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (string.IsNullOrEmpty(bezeichnung)) command.CommandText = $"select {COLUMNS} from {TABLE} where maschine_id = {mID}"; + if (mID == null) command.CommandText = $"select {COLUMNS} from {TABLE} where bezeichnung = '{bezeichnung}'"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = new Maschine(reader); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select {COLUMNS} from {TABLE}"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Maschine(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + public Maschine() + { + } // LEER + public int? MaschineID { get; set; } + public int Faecher { get; set; } + public string Bezeichnung { get; set; } + public bool TrocknerKaputt { get; set; } + + public Maschine(NpgsqlDataReader reader) + { + this.MaschineID = reader.GetInt32(0); + this.Faecher = reader.GetInt32(1); + this.Bezeichnung = reader.GetString(2); + this.TrocknerKaputt = reader.IsDBNull(3) ? false : reader.GetBoolean(3); + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if(this.MaschineID.HasValue & this.MaschineID != 0) + { + command.CommandText = $"update {TABLE} set faecher = :p1, bezeichnung = :p2, trockner_kaputt = :p3 where maschine_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.maschine_seq')"; + this.MaschineID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3)"; + } + command.Parameters.AddWithValue("p0", this.MaschineID); + command.Parameters.AddWithValue("p1", this.Faecher); + command.Parameters.AddWithValue("p2", this.Bezeichnung); + command.Parameters.AddWithValue("p3", this.TrocknerKaputt); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + } +} diff --git a/OLVBewertung.cs b/OLVBewertung.cs new file mode 100644 index 0000000..9ee5704 --- /dev/null +++ b/OLVBewertung.cs @@ -0,0 +1,312 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.CompilerServices; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; + +namespace DatenDB +{ + public class OLVBewertung + { + private static string TABLE = "kundenverwaltung.q_bewertung_neu"; + // 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 + private static string COLUMNS = "kunde_id, tour_id, kunde_nr, name1, name2, straße, plz, bezeichnung, land, aktiv, bettenanzahl, kunde_gruppe, service, region, waescheart, umsatz, umsatz_pro_gast, var_kost_anteil, fixkosten, erfolg_pro_gast, erfolg_gesamt, rating"; + private static string SUMCOLUMNS = "kunde_id, min(tour_id) as tour_id, min(kunde_nr) as kunde_nr, min(name1) as name1, min(name2) as name2, min(straße) as straße, min(plz) as plz, min(bezeichnung) as bezeichnung, min(land) as land, aktiv, min(bettenanzahl) as bettenanzahl, min(kunde_gruppe) as kunde_gruppe, min(service) as service, min(region) as region, min(waescheart) as waescheart, sum(umsatz) as umsatz, sum(umsatz_pro_gast) as umsatz_pro_gast, sum(var_kost_anteil) as var_kost_anteil, sum(fixkosten) as fixkosten, sum(erfolg_pro_gast) as erfolg_pro_gast, sum(erfolg_gesamt) as erfolg_gesamt, sum(rating) as rating"; + public static Umsatz result; + public int aktjahr; + public int vpjahr; + public static List ulist; + public OLVBewertung() + { + } + public static int[] GetLast() + { + DatenbankConnection.GetConnection().Open(); + int[] result = new int[2]; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select max(quartal) as quartal, max(jahr) as jahr from {TABLE} where umsatz is not null"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) + { + result[0] = (int)reader.GetDouble(0); + result[1] = (int)reader.GetDouble(1); + } + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetList(int? aktjahr, int? monat, int? quartal, bool aktiv, int vpjahr, int[] quartale, int? kndid) + { + + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if(kndid == null || kndid == 0) + { + if (monat == null || monat == 0) + { + if (quartal == null || quartal == 0) + { + if (quartale == null || quartale.Length == 0) + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where jahr = {aktjahr} and aktiv = {aktiv} group by aktiv, kunde_id, jahr order by jahr"; + } + else + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where aktiv = {aktiv} and jahr = {aktjahr} and quartal between {quartale.Min()} and {quartale.Max()} group by aktiv, kunde_id order by kunde_id"; + } //mit DB klären + } + else + { + if (quartal == 4) command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where aktiv = {aktiv} and jahr = {aktjahr} group by aktiv, kunde_id, jahr order by jahr"; + else command.CommandText = $"select {COLUMNS} from {TABLE} where aktiv = {aktiv} quartal = {quartal} and jahr = {aktjahr} order by jahr, quartal"; + } + } + else command.CommandText = $"select {COLUMNS} from kundenverwaltung.m_bewertung where aktiv = {aktiv} and jahr = {aktjahr} and monat = {monat}"; + + } + else + { + if (monat == null || monat == 0) + { + if (quartal == null || quartal == 0) + { + if (quartale == null || quartale.Length == 0) + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where kunde_id = {kndid} and jahr = {aktjahr} group by aktiv, kunde_id, jahr order by jahr"; + } + else + { + command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where kunde_id = {kndid} and jahr = {aktjahr} and quartal between {quartale.Min()} and {quartale.Max()} group by aktiv, kunde_id order by kunde_id"; + } //mit DB klären + } + else + { + if (quartal == 4) command.CommandText = $"select {SUMCOLUMNS} from {TABLE} where kunde_id = {kndid} and jahr = {aktjahr} group by aktiv, kunde_id, jahr order by jahr"; + else command.CommandText = $"select {COLUMNS} from {TABLE} where kunde_id = {kndid} and quartal = {quartal} and jahr = {aktjahr} order by jahr, quartal"; + } + } + else command.CommandText = $"select {COLUMNS} from kundenverwaltung.m_bewertung where kunde_id = {kndid} and jahr = {aktjahr} and monat = {monat}"; + } + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new OLVBewertung(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + //Umsatzliste Vorperiode holen und Betrag in OLVBewertung übertragen. + ulist = new List(Umsatz.GetList(aktjahr, monat, quartal, aktiv, vpjahr, quartale)); + foreach (OLVBewertung item in resultList) + { + result = new Umsatz(); + result = ulist.Find(x => x.KundeID.Equals(item.KundeID)); + if (result == null) item.UmsatzVorperiode = 0; + else item.UmsatzVorperiode = result.Betrag; + item.DifferenzEUR = Berechnungen.Differenz_berechnen(item.Umsatz1, item.UmsatzVorperiode)[0]; + item.DifferenzPRO = Berechnungen.Differenz_berechnen(item.Umsatz1, item.UmsatzVorperiode)[1]; + } + + return resultList; + } + public static List GetMonatList(int? aktjahr, int? monat, int? quartal, bool aktiv, int vpjahr) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (monat != 0) + { + command.CommandText = $"select {COLUMNS} from kundenverwaltung.umsatz where quartal = {quartal} and jahr = {aktjahr} order by jahr, quartal"; + } + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new OLVBewertung(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return resultList; + } + public static double[] GetTopLast(int? aktjahr, int? monat, int? quartal, bool aktiv, int vpjahr) + { + DatenbankConnection.GetConnection().Open(); + double[] result = new double[2]; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if (quartal == null || quartal == 0) + { + + } + else + { + if (quartal == 4) command.CommandText = $"select min(erfolg_pro_gast), max(erfolg_pro_gast) from kundenverwaltung.jahresbewertung where jahr = {aktjahr}"; + else command.CommandText = $"select min(erfolg_pro_gast), max(erfolg_pro_gast) from {TABLE} where quartal = {quartal} and jahr = {aktjahr}"; + + } + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) + { + result[0] = reader.GetDouble(0); + result[1] = reader.GetDouble(1); + } + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + } + public OLVBewertung(NpgsqlDataReader reader) + { + this.KundeID = reader.GetInt32(0); + this.TourID = reader.IsDBNull(1) ? null : (int?)reader.GetInt32(1); + this.KundeNummer = reader.GetString(2); + this.KundeName = reader.IsDBNull(3) ? string.Empty : reader.GetString(3); + this.KundeName2 = reader.IsDBNull(4) ? string.Empty : reader.GetString(4); + this.Strasse = reader.IsDBNull(5) ? string.Empty : reader.GetString(5); + this.PLZ = reader.IsDBNull(6) ? null : (int?)reader.GetInt32(6); + this.Ort = reader.IsDBNull(7) ? string.Empty : reader.GetString(7); + this.Land = reader.IsDBNull(8) ? string.Empty : reader.GetString(8); + this.Aktiv = reader.GetBoolean(9); + this.Bettenanzahl = reader.IsDBNull(10) ? null : (int?)reader.GetInt32(10); + this.KundeGruppe = reader.IsDBNull(11) ? string.Empty : reader.GetString(11); + this.Service = reader.IsDBNull(12) ? string.Empty : reader.GetString(12); + this.Region = reader.IsDBNull(13) ? string.Empty : reader.GetString(13); + this.Waescheart = reader.IsDBNull(14) ? string.Empty : reader.GetString(14); + //this.Quartal = reader.IsDBNull(15) ? 0 : reader.GetDouble(15); + //this.Jahr = reader.IsDBNull(16) ? 0 : reader.GetDouble(16); + this.Umsatz1 = reader.IsDBNull(15) ? 0 : reader.GetDouble(15); + this.UmsatzProGast = reader.IsDBNull(16) ? 0 : reader.GetDouble(16); + this.KostenAnteilVariabel = reader.IsDBNull(17) ? 0 : reader.GetDouble(17); + this.FixkostenAnteil = reader.IsDBNull(18) ? 0 : reader.GetDouble(18); + this.ErfolgProGast = reader.IsDBNull(19) ? 0 : reader.GetDouble(19); + this.ErfolgGesamt = reader.IsDBNull(20) ? 0 : reader.GetDouble(20); + this.Bewertung = reader.IsDBNull(21) ? 0 : reader.GetDouble(21); + + } + + [OLVIgnore] + public int? KundeID { get; set; } + + [OLVIgnore] + public int? TourID { get; set; } + + [OLVColumn(IsVisible = false)] + public string KundeGruppe { get; set; } + + [OLVColumn("KndNr.", DisplayIndex = 1, IsTileViewColumn = true, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string KundeNummer { get; set; } + + [OLVColumn("Name", DisplayIndex = 2)] + public string KundeName { get; set; } + + [OLVColumn("Zusatz", DisplayIndex = 3, IsVisible = false)] + public string KundeName2 { get; set; } + + [OLVColumn(DisplayIndex = 4)] + public string Strasse { get; set; } + + [OLVColumn(DisplayIndex = 6, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int? PLZ { get; set; } + + [OLVColumn(DisplayIndex = 7)] + public string Ort { get; set; } + + [OLVColumn(DisplayIndex = 8, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string Land { get; set; } + + [OLVColumn("Betten", DisplayIndex = 9, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public int? Bettenanzahl { get; set; } + + [OLVColumn(CheckBoxes = true, DisplayIndex = 10, IsVisible = false)] + public bool Aktiv { get; set; } + + [OLVColumn(DisplayIndex = 11)] + public string Service { get; set; } + + [OLVColumn(DisplayIndex = 12)] + public string Region { get; set; } + + [OLVColumn(DisplayIndex = 13)] + public string Waescheart { get; set; } + + [OLVColumn("Umsatz AP", DisplayIndex = 17, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double Umsatz1{ get; set; } + + [OLVColumn("Umsatz VP", DisplayIndex = 16, AspectToStringFormat = "{0:C}")] + public double UmsatzVorperiode { get; set; } + + [OLVColumn(DisplayIndex = 18, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double DifferenzEUR { get; set; } + + [OLVColumn(DisplayIndex = 19, AspectToStringFormat = "{0:P1}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double DifferenzPRO { get; set; } + + [OLVColumn("Var.Kosten", DisplayIndex = 20, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double KostenAnteilVariabel { get; set; } + + [OLVColumn("Umsatz/Gast", DisplayIndex = 21, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double UmsatzProGast { get; set; } + + [OLVColumn("Fix.Kosten", DisplayIndex = 22, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double FixkostenAnteil { get; set; } + + [OLVColumn("Erfolg/Gast", DisplayIndex = 23, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double ErfolgProGast { get; set; } + + [OLVColumn("Ges.Erfolg", DisplayIndex = 24, AspectToStringFormat = "{0:C}", TextAlign = System.Windows.Forms.HorizontalAlignment.Right)] + public double ErfolgGesamt { get; set; } + + [OLVColumn("Rating", DisplayIndex = 0, TextAlign = System.Windows.Forms.HorizontalAlignment.Left, AspectToStringFormat = "{0:C}", MinimumWidth = 100)] + public double Bewertung { get; set; } + + + + + + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.KundeID.HasValue & this.KundeID != 0) + { + command.CommandText = $"update {TABLE} set tour_id = :p1, kunde_nr = :p2, name1 = :p3, name2 = :p4, straße = :p5, plz = :p6, bezeichnung = :p7, land = :p8, aktiv = :p9, bettenanzahl = :p10, kunde_gruppe = :p11, service = :p12, region = :p13, waescheart = :p14 WHERE kunde_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.kunde_seq')"; + this.KundeID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3, :p4, :p5, :p6, :p7, :p8, :p9, :p10, :p11, :p12, :p13, :p14)"; + } + + command.Parameters.AddWithValue("p0", this.KundeID); + command.Parameters.AddWithValue("p1", this.TourID.HasValue ? this.TourID.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p2", this.KundeNummer); + command.Parameters.AddWithValue("p3", string.IsNullOrEmpty(this.KundeName) ? (object)DBNull.Value : this.KundeName); + command.Parameters.AddWithValue("p4", string.IsNullOrEmpty(this.KundeName2) ? (object)DBNull.Value : this.KundeName2); + command.Parameters.AddWithValue("p5", string.IsNullOrEmpty(this.Strasse) ? (object)DBNull.Value : this.Strasse); + command.Parameters.AddWithValue("p6", this.PLZ.HasValue ? this.PLZ.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p7", string.IsNullOrEmpty(this.Ort) ? (object)DBNull.Value : this.Ort); + command.Parameters.AddWithValue("p8", string.IsNullOrEmpty(this.Land) ? (object)DBNull.Value : this.Land); + command.Parameters.AddWithValue("p9", this.Aktiv); + command.Parameters.AddWithValue("p10", this.Bettenanzahl.HasValue ? this.Bettenanzahl.Value : (object)DBNull.Value); + command.Parameters.AddWithValue("p11", string.IsNullOrEmpty(this.KundeGruppe) ? (object)DBNull.Value : this.KundeGruppe); + command.Parameters.AddWithValue("p12", string.IsNullOrEmpty(this.Service) ? (object)DBNull.Value : this.Service); + command.Parameters.AddWithValue("p13", string.IsNullOrEmpty(this.Region) ? (object)DBNull.Value : this.Region); + command.Parameters.AddWithValue("p14", string.IsNullOrEmpty(this.Waescheart) ? (object)DBNull.Value : this.Waescheart); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + } +} diff --git a/OLVKundenumsatz.cs b/OLVKundenumsatz.cs new file mode 100644 index 0000000..fbf2c6a --- /dev/null +++ b/OLVKundenumsatz.cs @@ -0,0 +1,95 @@ +using BrightIdeasSoftware; +using Npgsql; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class OLVKundenumsatz + { + private static List resultlist; + public OLVKundenumsatz() + { + } + + [OLVColumn(DisplayIndex = 0, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + public string Zeitraum { get; set; } + + //[OLVColumn(DisplayIndex = 1, TextAlign = System.Windows.Forms.HorizontalAlignment.Center)] + //public double Jahr { get; set; } + + [OLVColumn(DisplayIndex = 2, TextAlign = System.Windows.Forms.HorizontalAlignment.Right, AspectToStringFormat = "{0:C}")] + public double Umsatz { get; set; } + + //[OLVColumn(DisplayIndex = 3, TextAlign = System.Windows.Forms.HorizontalAlignment.Right, AspectToStringFormat = "{0:C}")] + //public double DifferenzEUR { get; set; } + + //[OLVColumn(DisplayIndex = 4, TextAlign = System.Windows.Forms.HorizontalAlignment.Center, AspectToStringFormat = "{0:P1}")] + //public double DifferenzPro { get; set; } + + public static List GetJahresumsatz(int? kndid) + { + resultlist = new List(); + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select jahr, umsatz from kundenverwaltung.jahresumsaetze where kunde_id = {kndid} order by jahr"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(new OLVKundenumsatz(reader, true)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return resultlist; + } + + public static List GetMonatsumsatz(int? kndid) + { + resultlist = new List(); + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select monat, umsatz1, jahr from kundenverwaltung.monatsumsaetze where kunde_id = {kndid} order by jahr, monat"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(new OLVKundenumsatz(reader, false)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + + return resultlist; + } + + public static List GetQuartalsumsatz(int? kndid) + { + resultlist = new List(); + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select quartal, umsatz, jahr from kundenverwaltung.q_umsatz where kunde_id = {kndid} order by jahr, quartal"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultlist.Add(new OLVKundenumsatz(reader, false)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return resultlist; + } + + public OLVKundenumsatz(NpgsqlDataReader reader, bool jahr) + { + if (jahr) + { + this.Zeitraum = reader.GetDouble(0).ToString(); + this.Umsatz = reader.GetDouble(1); + } + else + { + this.Zeitraum = reader.GetDouble(0).ToString() + "." + reader.GetDouble(2).ToString(); + this.Umsatz = reader.GetDouble(1); + } + + } + } +} diff --git a/Program.cs b/Program.cs index 36146b7..0808c98 100644 --- a/Program.cs +++ b/Program.cs @@ -21,38 +21,56 @@ namespace Deckungsbeitrag static void Main() { string userid = ConfigurationManager.AppSettings["ConnectionString"].Split(';')[0]; + userid = userid.Split('=')[1]; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Screen[] screens = Screen.AllScreens; - //Application.Run(new FormMain(Benutzer.GetBenutzer(string.Empty, 3))); - FormLogin loginForm = new FormLogin(); - if (loginForm.ShowDialog() == DialogResult.OK) + + //TODO: Wenn mit Anmeldung dann if-Clause entfernen und Switch alleine verwenden. + if (userid.StartsWith("ms") | userid.StartsWith("ps")) { - if (loginForm.Person.Rolle == BenutzerRolle.Waschstrasse | loginForm.Person.Rolle == BenutzerRolle.Expedit) - { - if (loginForm.Person.Rolle == BenutzerRolle.Waschstrasse) Application.Run(new FormAufleger(screens, loginForm.Person)); - if (loginForm.Person.Rolle == BenutzerRolle.Expedit) Application.Run(new FormExpedit(loginForm.Person)); - //Application.Run(new FormWaschstrasse(screens)); - } - else Application.Run(new FormMain(loginForm.Person, loginForm.t)); + Application.Run(new FormFehlmengeCount(userid)); } - //Application.Run(new FormFahrerScreen()); - //Application.Run(new FormWaschstrasse()); - //Application.Run(new FormWSTAusschlag()); - //FormWaschstrasse waschstrasse = new FormWaschstrasse("WASCHSTRASSE 1"); - //waschstrasse.Show(); - //Application.Run(new FormWaschstrasse("WASCHSTRASSE 2")); - //Application.Run(new FormFachBearbeiten()); + else + { + FormLogin loginForm = new FormLogin(); + if (loginForm.ShowDialog() == DialogResult.OK) + { + // Switch on BenutzerRolle für Weiterleitung zum richtigen Screen + switch (loginForm.Person.Rolle) + { + case BenutzerRolle.Verwaltung: + Application.Run(new FormMain(loginForm.Person)); + break; + case BenutzerRolle.Fahrer: + Application.Run(new FormMain(loginForm.Person)); + break; + case BenutzerRolle.Admin: + Application.Run(new FormMain(loginForm.Person)); + break; + case BenutzerRolle.Waschstrasse: + Application.Run(new FormNeuerAuftrag(loginForm.Person)); + break; + case BenutzerRolle.Master: + Application.Run(new FormMain(loginForm.Person)); + break; + case BenutzerRolle.Expedit: + Application.Run(new FormExpedit(loginForm.Person, screens)); + break; + case BenutzerRolle.Frottee: + //TODO: Wenn alles ohne Anmeldung dann entfernen. + Application.Run(new FormFehlmengeCount(loginForm.Person)); + break; + case BenutzerRolle.Flach: + //TODO: Wenn alles ohne Anmeldung dann entfernen. + Application.Run(new FormFehlmengeCount(loginForm.Person)); + break; + default: + break; + } + } - - //TO-DO///////////////////TO-DO////////////////////////TO-DO\\\\\\\\\\\\\\\\\\\\\TO-DO\\\\\\\\\\\\\\\\\\\\\\\TO-DO\\ - - //TODO: CLASS WASCHPROGRAMM ERSTELLEN - //TODO: DATENBANK WEGEN FACHLISTE CHECKEN - //TODO: FÄCHER PRO AUFTRAG INKLUSIVE ANZEIGE FÜR AUSSCHLAGER. - //TODO: LISTE STATT POSTENVERFOLGUNG? LISTE ZEIGT ALLE AUFTRÄGE INKL. FÄCHER UND KANN AKTUELLE ZEIGEN. - - - } + } + } } } diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs index b8bfa21..6f6557e 100644 --- a/Properties/Resources.Designer.cs +++ b/Properties/Resources.Designer.cs @@ -79,5 +79,25 @@ namespace Deckungsbeitrag.Properties { return ((System.Drawing.Bitmap)(obj)); } } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap question_sign_icon_icons_com_73445 { + get { + object obj = ResourceManager.GetObject("question-sign_icon-icons.com_73445", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + + /// + /// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap UpdatedScript_16x { + get { + object obj = ResourceManager.GetObject("UpdatedScript_16x", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } } } diff --git a/Properties/Resources.resx b/Properties/Resources.resx index 6c16363..0874c81 100644 --- a/Properties/Resources.resx +++ b/Properties/Resources.resx @@ -118,10 +118,16 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - ..\Resources\Close_red_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\UpdatedScript_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a ..\Resources\Checkmark_blue_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\Close_red_16x.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + + ..\Resources\question-sign_icon-icons.com_73445.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Properties/Settings.Designer.cs b/Properties/Settings.Designer.cs index 237b827..7eff23a 100644 --- a/Properties/Settings.Designer.cs +++ b/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace Deckungsbeitrag.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.3.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.14.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); @@ -37,6 +37,7 @@ namespace Deckungsbeitrag.Properties { [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("1, 53, 101")] public global::System.Drawing.Color Wirlblau { get { return ((global::System.Drawing.Color)(this["Wirlblau"])); diff --git a/Properties/Settings.settings b/Properties/Settings.settings index aa9531b..76594ec 100644 --- a/Properties/Settings.settings +++ b/Properties/Settings.settings @@ -6,7 +6,7 @@ - + 1, 53, 101 diff --git a/Report.cs b/Report.cs new file mode 100644 index 0000000..d5769be --- /dev/null +++ b/Report.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using BrightIdeasSoftware; + +namespace DatenDB +{ + public class Report + { + + public Report() + { + } + + public static Image Get_ListView_Report(OLVListItem listitems) + { + Bitmap bitmap = new Bitmap(1120, 790); + Graphics g = Graphics.FromImage(bitmap); + Pen pen = new Pen(Brushes.Black); + Font kat1 = new Font("Arial", 20, FontStyle.Bold); + Font kat2 = new Font("Arial", 12, FontStyle.Regular); + Font kat3 = new Font("Arial", 8, FontStyle.Regular); + + + //int y = 100; + //int height = 100; + //foreach (FahrerAuftrag auftrag in fahrerauftragliste) + //{ + // Rectangle rahmen = new Rectangle(50, y, 690, height); + // g.DrawRectangle(pen, rahmen); + // g.DrawLine(pen, new Point(50, y + (int)datum.Height), new Point(740, y + (int)datum.Height)); + + // g.DrawString(auftrag.Wann.ToShortDateString(), kat2, Brushes.Black, 50, y); + // g.DrawString(auftrag.KundeNummer + " " + auftrag.Kunde, kat2, Brushes.Black, (790 / 2) - (g.MeasureString(auftrag.KundeNummer + " " + auftrag.Kunde, kat2).Width / 2), y); + // g.DrawString(auftrag.Aufgabe, kat2, Brushes.Black, 740 - g.MeasureString(auftrag.Aufgabe, kat2).Width, y); + + // //ZUSATZ SCHREIBEN + // g.DrawString("Zusatz:", kat2, Brushes.Black, 50, y + (int)datum.Height + 5); + // if (g.MeasureString(auftrag.Zusatz, kat2).Width + 100 <= 790) g.DrawString(auftrag.Zusatz, kat2, Brushes.Black, 50, y + (int)datum.Height * 2 + 10); + // else g.DrawString("Zusatztext zu lange. Bitte händisch hinzufügen.", kat2, Brushes.Black, 50, y + (int)datum.Height * 2 + 10); + + // y += height + 5; + //}//AUFTRÄGE ERSTELLEN + + + Image image = bitmap; + return image; + } + } +} diff --git a/Resources/UpdatedScript_16x.png b/Resources/UpdatedScript_16x.png new file mode 100644 index 0000000..6eaadf5 Binary files /dev/null and b/Resources/UpdatedScript_16x.png differ diff --git a/Resources/question-sign_icon-icons.com_73445.png b/Resources/question-sign_icon-icons.com_73445.png new file mode 100644 index 0000000..825b399 Binary files /dev/null and b/Resources/question-sign_icon-icons.com_73445.png differ diff --git a/SPSDaten.cs b/SPSDaten.cs new file mode 100644 index 0000000..a9e736d --- /dev/null +++ b/SPSDaten.cs @@ -0,0 +1,313 @@ +using System; +using System.CodeDom; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class SPSDaten + { + public SPSDaten() + { + + } + + public int Waschprogramm { get; set; } + + /// + /// Waschstrasse 1 + /// + + private bool ws_1_transport; + public bool WS_1_Transport + { + get { return ws_1_transport; } + set + { + if (ws_1_transport != value) + { + ws_1_transport = value; + if (ws_1_transport == true) + { + Console.WriteLine($"WS1 Transport Status {ws_1_transport}"); + Presse1_Leer = false;//WENN Transport is true wird Presse_Leer automatisch false; + WS1Transport?.Invoke(this, EventArgs.Empty); + } + } + } + } + + private bool presse1_leer; + public bool Presse1_Leer + { + get { return presse1_leer; } + set + { + presse1_leer = value; + if (presse1_leer == true) + { + Hubband1_Leer = false;//Wenn Presse Leer automatisch Hubband Leer false. + Presse1Leer?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool hubband1_leer; + public bool Hubband1_Leer + { + get { return hubband1_leer; } + set + { + hubband1_leer = value; + if (hubband1_leer == true) + { + //Hubband1Leer?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner11_beladen; + public bool Trockner11_Beladen + { + get { return trockner11_beladen; } + set + { + trockner11_beladen = value; + if(trockner11_beladen == true) + { + Hubband1_Leer = true; + Trockner11_Entladen = Trockner12_Entladen = false; + Trockner1Beladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner12_beladen; + public bool Trockner12_Beladen + { + get { return trockner12_beladen; } + set + { + trockner12_beladen = value; + if (trockner12_beladen == true) + { + Hubband1_Leer = true; + Trockner12_Entladen = Trockner11_Entladen = false; + Trockner1Beladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner11_entladen; + public bool Trockner11_Entladen + { + get { return trockner11_entladen; } + set + { + trockner11_entladen = value; + if (trockner11_entladen == true) + { + Trockner11_Beladen = Trockner12_Beladen = false; + Trockner1Entladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner12_entladen; + public bool Trockner12_Entladen + { + get { return trockner12_entladen; } + set + { + trockner12_entladen = value; + if (trockner12_entladen == true) + { + Trockner12_Beladen = Trockner11_Beladen = false; + Trockner1Entladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool begleitzettel_ws1; + public bool Begleitzettel_WS1 + { get { return begleitzettel_ws1; } + set + { + begleitzettel_ws1 = value; + if (begleitzettel_ws1 == true) BegleitzettelWS1_print?.Invoke(this, EventArgs.Empty); + } + } + + private bool tischsummary_ws1; + public bool TischSummary_WS1 + { get { return tischsummary_ws1; } + set + { + tischsummary_ws1 = value; + if (tischsummary_ws1 == true) TischSummaryWS1_print?.Invoke(this, EventArgs.Empty); + } + } + + /// + /// Waschstrasse 2 + /// + + private bool ws_2_transport; + public bool WS_2_Transport + { + get { return ws_2_transport; } + set + { + if (ws_2_transport != value) + { + ws_2_transport = value; + if (ws_2_transport == true) + { + Presse2_Leer = false;//WENN Transport is true wird Presse_Leer automatisch false; + WS2Transport?.Invoke(this, EventArgs.Empty); + } + } + } + } + + private bool presse2_leer; + public bool Presse2_Leer + { + get { return presse2_leer; } + set + { + presse2_leer = value; + if (presse2_leer == true) + { + Hubband2_Leer = false;//Wenn Presse Leer automatisch Hubband Leer false. + Presse2Leer?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool hubband2_leer; + public bool Hubband2_Leer + { + get { return hubband2_leer; } + set + { + hubband2_leer = value; + if (hubband2_leer == true) + { + //Hubband2Leer?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner21_beladen; + public bool Trockner21_Beladen + { + get { return trockner21_beladen; } + set + { + trockner21_beladen = value; + if (trockner21_beladen == true) + { + Hubband2_Leer = true; + Trockner21_Entladen = Trockner22_Entladen = false; + Trockner2Beladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner22_beladen; + public bool Trockner22_Beladen + { + get { return trockner22_beladen; } + set + { + trockner22_beladen = value; + if (trockner22_beladen == true) + { + Hubband2_Leer = true; + Trockner22_Entladen = Trockner21_Entladen = false; + Trockner2Beladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner21_entladen; + public bool Trockner21_Entladen + { + get { return trockner21_entladen; } + set + { + trockner21_entladen = value; + if (trockner21_entladen == true) + { + Trockner21_Beladen = Trockner22_Beladen = false; + Trockner2Entladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool trockner22_entladen; + public bool Trockner22_Entladen + { + get { return trockner22_entladen; } + set + { + trockner22_entladen = value; + if (trockner22_entladen == true) + { + Trockner22_Beladen = Trockner21_Beladen = false; + Trockner2Entladen?.Invoke(this, EventArgs.Empty); + } + } + } + + private bool begleitzettel_ws2; + public bool Begleitzettel_WS2 + { get { return begleitzettel_ws2; } + set + { + begleitzettel_ws2 = value; + if (begleitzettel_ws2 == true) + { + BegleitzettelWS2_print?.Invoke(this, EventArgs.Empty); + } + } + } + private bool tischsummary_ws2; + public bool TischSummary_WS2 + { get { return tischsummary_ws2; } + set + { + tischsummary_ws2 = value; + if (tischsummary_ws2 == true) TischSummaryWS2_print?.Invoke(this, EventArgs.Empty); + } + } + + /// + /// EVENTS + /// + + //Waschstrasse 1 + public event EventHandler WS1Transport; + public event EventHandler Presse1Leer; + //public event EventHandler Hubband1Leer; + public event EventHandler Trockner1Beladen; + public event EventHandler Trockner1Entladen; + public event EventHandler BegleitzettelWS1_print; + public event EventHandler TischSummaryWS1_print; + + //Waschstrasse 2 + public event EventHandler WS2Transport; + public event EventHandler Presse2Leer; + //public event EventHandler Hubband2Leer; + public event EventHandler Trockner2Beladen; + public event EventHandler Trockner2Entladen; + public event EventHandler BegleitzettelWS2_print; + public event EventHandler TischSummaryWS2_print; + + + + } +} diff --git a/Sortiment.cs b/Sortiment.cs new file mode 100644 index 0000000..ece027e --- /dev/null +++ b/Sortiment.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class Sortiment + { + public Sortiment() + { + } + public Sortiment(string row, int nr) + { + if (nr == 0) return; //ERSTE ZEILE IGNORIEREN. + string[] zeileData = row.Split(';'); + + this.KundeNummer = zeileData[1]; + this.ArtNr = Convert.ToInt32(zeileData[6]); + this.ArtName = zeileData[7]; + } + public string KundeNummer { get; set; } + public int ArtNr { get; set; } + public string ArtName { get; set; } + } + +} diff --git a/Umsatz.cs b/Umsatz.cs new file mode 100644 index 0000000..41018b9 --- /dev/null +++ b/Umsatz.cs @@ -0,0 +1,207 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; +using static System.Net.Mime.MediaTypeNames; + +namespace DatenDB +{ + public class Umsatz + { + private const string COLUMNS = "umsatz_id, kunde_id, datum, betrag"; + public const string SUBCOLUMNS = "kunde_id, date_part('year', datum) as jahr, sum(betrag) as betrag"; + private const string TABLE = "kundenverwaltung.umsatz"; + + public Umsatz() + { + } + public int GetUmsatzID(int? kundeid, DateTime datum) + { + DatenbankConnection.GetConnection().Open(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select umsatz_id from {TABLE} where kunde_id = '{kundeid}' and datum = '{datum}'"; + + int result = 0; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) result = reader.GetInt32(0); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return result; + }//IMPORT DATUM KEINE VERWENDUNG ODER + public static double GetUmsatz(int? id, int? year, int? month, int[] quartale) + { + DatenbankConnection.GetConnection().Open(); + double umsatz = 0; + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (quartale == null || quartale.Length == 0) + { + if (id == null) + { + if (month <= 12) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year} and date_part('month', datum) = {month}"; + if (month == null || month == 0) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year}"; + } + else + { + command.CommandText = $"select sum(betrag) from {TABLE} where kunde_id = {id} and date_part('year', datum) = {year}"; + } + } + else + { + + if (id == null) + { + if (quartale.Length == 1) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year} and date_part('quarter', datum) = {quartale[0]}"; + if (quartale.Length == 2) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[1]}' and '{quartale[0]}'"; + if (quartale.Length == 3) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[2]}' and '{quartale[0]}'"; + if (quartale.Length == 4) command.CommandText = $"select sum(betrag) from {TABLE} where date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[3]}' and '{quartale[0]}'"; + } + else + { + command.CommandText = $"select sum(betrag) from {TABLE} where "; + //if (quartale.Length == 1) command.CommandText = $"select sum(betrag) from {TABLE} where kunde_id = {id} date_part('year', datum) = {year} and date_part('quarter', datum) = {quartale[0]}"; + //if (quartale.Length == 2) command.CommandText = $"select sum(betrag) from {TABLE} where kunde_id = {id} date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[1]}' and '{quartale[0]}'"; + //if (quartale.Length == 3) command.CommandText = $"select sum(betrag) from {TABLE} where kunde_id = {id} and date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[2]}' and '{quartale[0]}'"; + //if (quartale.Length == 4) command.CommandText = $"select sum(betrag) from {TABLE} where kunde_id = {id} and date_part('year', datum) = {year} and date_part('quarter', datum) between '{quartale[3]}' and '{quartale[0]}'"; + } + + } + + NpgsqlDataReader reader = command.ExecuteReader(); + + while (reader.Read()) umsatz = reader.IsDBNull(0) ? 0 : reader.GetDouble(0); + reader.Close(); + + DatenbankConnection.GetConnection().Close(); + return umsatz; + } + public Umsatz(NpgsqlDataReader reader, bool columns) + { + if (columns) + { + this.UmsatzID = reader.GetInt32(0); + this.KundeID = reader.GetInt32(1); + this.Datum = reader.GetDateTime(2); + this.Betrag = reader.IsDBNull(3) ? 0 : reader.GetDouble(3); + } + else + { + this.KundeID = reader.GetInt32(0); + this.Year = (int)reader.GetDouble(1); + this.Betrag = reader.IsDBNull(2) ? 0 : reader.GetDouble(2); + } + } + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.UmsatzID.HasValue & this.UmsatzID != 0) + { + command.CommandText = $"update {TABLE} set kunde_id = :p1, datum = :p2, betrag = :p3 WHERE umsatz_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.umsatz_seq')"; + this.UmsatzID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2, :p3)"; + } + + command.Parameters.AddWithValue("p0", this.UmsatzID); + command.Parameters.AddWithValue("p1", this.KundeID); + command.Parameters.AddWithValue("p2", this.Datum); + command.Parameters.AddWithValue("p3", this.Betrag); + + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public static List GetJahre() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"select distinct date_part('year', datum) from {TABLE} where date_part('year', datum) is not null order by date_part('year', datum);"; + + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(reader.GetDouble(0).ToString()); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + //public static double GetQUmsatz(int? kndid, int? aktjahr, int? monat, int? aktquartal, bool v, int vpjahr) + //{ + // DatenbankConnection.GetConnection().Open(); + // double umsatz = 0; + // NpgsqlCommand command = new NpgsqlCommand(); + // command.Connection = DatenbankConnection.GetConnection(); + // if (aktquartal == null || aktquartal == 0) + // { + // //command.CommandText = $"select sum(umsatz) as umsatz from kundenverwaltung.q_umsatz where kunde_id = {kndid} and jahr = {vpjahr}"; + // } + // else + // { + // if (aktquartal == 4) command.CommandText = $"select umsatz from kundenverwaltung.jahresumsaetze where kunde_id = {kndid} and jahr = {vpjahr}"; + // else command.CommandText = $"select umsatz from kundenverwaltung.q_umsatz where kunde_id = {kndid} and quartal = {aktquartal} and jahr = {vpjahr}"; + // } + + // NpgsqlDataReader reader = command.ExecuteReader(); + + // while (reader.Read()) umsatz = reader.IsDBNull(0) ? 0 : reader.GetDouble(0); + // reader.Close(); + + // DatenbankConnection.GetConnection().Close(); + // return umsatz; + // } + public static List GetList(int? aktjahr, int? monat, int? aktquartal, bool v, int vpjahr, int[] quartale) + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + if(monat == null || monat == 0) + { + if(aktquartal == null || aktquartal == 0) + { + if (quartale == null || quartale.Length == 0) + { + command.CommandText = $"select {SUBCOLUMNS} from {TABLE} where date_part('year', datum) = {vpjahr} group by umsatz.kunde_id, date_part('year', datum)"; + } + else + { + command.CommandText = $"select {SUBCOLUMNS} from {TABLE} where date_part('year', datum) = {vpjahr} and date_part('quarter', datum) between {quartale.Min()} and {quartale.Max()} group by umsatz.kunde_id, jahr"; + } + } + else + { + if (aktquartal == 4) command.CommandText = $"select {SUBCOLUMNS} from {TABLE} where date_part('year', datum) = {vpjahr} group by umsatz.kunde_id, date_part('year', datum)"; + else command.CommandText = $"select {SUBCOLUMNS} from {TABLE} where date_part('quarter', datum) = {aktquartal} and date_part('year', datum) = {vpjahr} group by umsatz.kunde_id, date_part('year', datum), date_part('quarter', datum)"; + } + + } + else command.CommandText = $"select {SUBCOLUMNS} from {TABLE} where date_part('month', datum) = {monat} and date_part('year', datum) = {vpjahr} group by umsatz.kunde_id, date_part('year', datum), date_part('month', datum)"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Umsatz(reader, false)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + } + + public int? UmsatzID { get; set; } + public int? KundeID { get; set; } + public DateTime Datum { get; set; } + public double Betrag { get; set; } + public int Year { get; set; } + } +} diff --git a/Views.cs b/Views.cs new file mode 100644 index 0000000..c1115da --- /dev/null +++ b/Views.cs @@ -0,0 +1,51 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DatenDB +{ + public class Views + { + public Views() { } + + public static List GetArtikel_sthList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + command.CommandText = $"SELECT * FROM kundenverwaltung.artikel_sth"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new Views(reader, 1)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + + return resultList; + } + + public Views(NpgsqlDataReader reader, int i) + { + if (i == 1) + { + this.AuftragID = reader.GetInt32(0); + this.AuftragArtikelID = reader.GetInt32(1); + this.KundeID = reader.GetInt32(2); + this.KundeName = reader.GetString(3); + this.ArtikelName = reader.GetString(4); + this.Anzahl = reader.GetInt32(5); + this.Erledigt = reader.GetBoolean(6); + } + } + public int AuftragID { get; set; } + public int AuftragArtikelID { get; set; } + public int KundeID { get; set; } + public string KundeName { get; set; } + public string ArtikelName { get; set; } + public int Anzahl { get; set; } + public bool Erledigt { get; set; } + + } +} diff --git a/WProgramm.cs b/WProgramm.cs new file mode 100644 index 0000000..4ae3f22 --- /dev/null +++ b/WProgramm.cs @@ -0,0 +1,70 @@ +using Npgsql; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Web.UI.WebControls; + +namespace DatenDB +{ + public class WProgramm + { + private static string TABLE = "kundenverwaltung.wprogramm"; + private static string COLUMNS = "wprogramm_id, nummer, bezeichnung"; + public WProgramm() + { + } + public static List GetList() + { + DatenbankConnection.GetConnection().Open(); + List resultList = new List(); + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + command.CommandText = $"select {COLUMNS} from {TABLE} order by nummer"; + NpgsqlDataReader reader = command.ExecuteReader(); + while (reader.Read()) resultList.Add(new WProgramm(reader)); + reader.Close(); + DatenbankConnection.GetConnection().Close(); + return resultList; + + } + public WProgramm(NpgsqlDataReader reader) + { + this.WprogrammID = reader.GetInt16(0); + this.Nummer = reader.GetInt16(1); + this.Bezeichnung = reader.IsDBNull(2) ? string.Empty : reader.GetString(2); + } + + public int Save() + { + DatenbankConnection.GetConnection().Open(); + + NpgsqlCommand command = new NpgsqlCommand(); + command.Connection = DatenbankConnection.GetConnection(); + + if (this.WprogrammID.HasValue & this.WprogrammID != 0) + { + command.CommandText = $"update {TABLE} set nummer = :p1, bezeichnung = :p2 WHERE wprogramm_id = :p0"; + } + else + { + command.CommandText = "select nextval('kundenverwaltung.wprogramm_seq')"; + this.WprogrammID = (int)(long)command.ExecuteScalar(); + command.CommandText = $"insert into {TABLE} ({COLUMNS}) values (:p0, :p1, :p2)"; + } + + command.Parameters.AddWithValue("p0", this.WprogrammID); + command.Parameters.AddWithValue("p1", (int)this.Nummer); + command.Parameters.AddWithValue("p2", string.IsNullOrEmpty(this.Bezeichnung) ? (object)DBNull.Value : this.Bezeichnung); + + int result = command.ExecuteNonQuery(); + DatenbankConnection.GetConnection().Close(); + return result; + } + public int? WprogrammID { get; set; } + public int Nummer { get; set; } + public string Bezeichnung { get; set; } + } +} diff --git a/packages.config b/packages.config index 60e8faa..fcf8607 100644 --- a/packages.config +++ b/packages.config @@ -1,6 +1,28 @@  + + + + + + + + + + - - + + + + + + + + + + + + + + \ No newline at end of file