Moin-Moin zusammen.
Ich möchte gerne meine weit über 1.000 Bücher verwalten und möchte deshalb eine Oberfläche dafür schreiben. Nur ich habe paar Fragen, bevor ich mit dem scripten beginne.
So sieht die GUI derzeitig aus. Erweiterungen können ja evtl. später noch folgen:
Spoiler anzeigen
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Bookmanagment", 743, 588, 192, 124)
$Input1 = GUICtrlCreateInput("Das Wesen", 136, 145, 601, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label1 = GUICtrlCreateLabel("Buchtitel :", 5, 147, 62, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label2 = GUICtrlCreateLabel("Buchautor :", 5, 178, 71, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Buchautor = GUICtrlCreateInput("Strobel, Arno", 136, 176, 601, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label3 = GUICtrlCreateLabel("Verlag :", 5, 210, 51, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Verlag = GUICtrlCreateInput("Fischer Verlag", 136, 208, 601, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label4 = GUICtrlCreateLabel("Erscheinungsdatum :", 5, 242, 129, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input2 = GUICtrlCreateInput("05.11.2010", 136, 240, 73, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label5 = GUICtrlCreateLabel("Preis in € :", 399, 242, 68, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input3 = GUICtrlCreateInput("8,95", 466, 239, 57, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label6 = GUICtrlCreateLabel("ISBN-10 :", 5, 277, 60, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input4 = GUICtrlCreateInput("3596186323", 136, 272, 113, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label8 = GUICtrlCreateLabel("ISBN-13 :", 258, 274, 60, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input5 = GUICtrlCreateInput("978-3596186327", 320, 272, 113, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label7 = GUICtrlCreateLabel("Einband :", 569, 242, 61, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input6 = GUICtrlCreateInput("Taschenbuch", 629, 239, 108, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label9 = GUICtrlCreateLabel("Seiten :", 464, 272, 50, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input7 = GUICtrlCreateInput("368", 525, 272, 105, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label10 = GUICtrlCreateLabel("ausgeliehen an :", 5, 306, 103, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input8 = GUICtrlCreateInput("Maria Musterfrau", 136, 304, 297, 21)
$Label11 = GUICtrlCreateLabel("am :", 464, 304, 30, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input9 = GUICtrlCreateInput("31.02.2013", 522, 302, 78, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$bis = GUICtrlCreateLabel("bis :", 629, 305, 30, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input10 = GUICtrlCreateInput("31.03.2013", 661, 302, 75, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label12 = GUICtrlCreateLabel("Lagerplatz", 5, 329, 66, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input11 = GUICtrlCreateInput("Regal-B , Fach 3", 136, 328, 297, 21)
$Label13 = GUICtrlCreateLabel("Schlagwörter :", 5, 352, 89, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input12 = GUICtrlCreateInput("Strobel , Das Wesen , Thriller , ", 200, 352, 537, 21)
$Label14 = GUICtrlCreateLabel("Information - 1 :", 5, 380, 95, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$leer = GUICtrlCreateInput("gelesen von Mara Sörens, Ina Muster", 200, 376, 537, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label15 = GUICtrlCreateLabel("Information - 2 :", 5, 408, 95, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input13 = GUICtrlCreateInput("leer", 200, 408, 537, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label16 = GUICtrlCreateLabel("Kaufmöglichkeit :", 5, 440, 106, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input14 = GUICtrlCreateInput("http://www.buecher.de/shop/buecher/das-wesen/strobel-arno/products_products/detail/prod_id/29908840/", 200, 440, 537, 21)
$Label17 = GUICtrlCreateLabel("B U C H V E R W A L T U N G ", 264, 8, 267, 27)
GUICtrlSetFont(-1, 14, 800, 4, "Arial Narrow")
GUICtrlSetColor(-1, 0x000080)
$Button1 = GUICtrlCreateButton("Buch suchen", 8, 48, 123, 25)
$Button2 = GUICtrlCreateButton("Neues Buch erfassen", 440, 48, 115, 25)
$Checkbox1 = GUICtrlCreateCheckbox("", 220, 245, 17, 17)
$Button3 = GUICtrlCreateButton("Sortieren nach Autor", 8, 80, 123, 25)
$Button4 = GUICtrlCreateButton("aktuelles Buch bearbeiten", 256, 48, 179, 25)
$Button5 = GUICtrlCreateButton("Sortieren nach Titel", 136, 80, 115, 25)
$Button6 = GUICtrlCreateButton("sortieren nach Erscheinungsdatum", 256, 80, 179, 25)
$Button7 = GUICtrlCreateButton("Speichern", 608, 112, 107, 25)
GUICtrlSetFont(-1, 12, 800, 0, "Arial")
GUICtrlSetColor(-1, 0xFF0000)
$Label18 = GUICtrlCreateLabel("gelesen ?", 5, 464, 64, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input15 = GUICtrlCreateInput("Ja", 200, 464, 49, 21)
$Label19 = GUICtrlCreateLabel("von 5 Sternen", 322, 466, 87, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Input16 = GUICtrlCreateInput("5", 304, 464, 17, 28)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Label20 = GUICtrlCreateLabel("vormerken", 240, 242, 68, 24)
GUICtrlSetFont(-1, 12, 400, 0, "Arial Narrow")
$Button8 = GUICtrlCreateButton("vorgemerkte Bücher", 440, 80, 115, 25)
$Button9 = GUICtrlCreateButton("Schlagwortsuche", 136, 48, 115, 25)
$Button10 = GUICtrlCreateButton("aktuelle Buch drucken", 280, 496, 195, 25)
$Button11 = GUICtrlCreateButton("Erste Buch", 5, 496, 101, 25)
$Button12 = GUICtrlCreateButton("vorheriger Buch", 128, 496, 113, 25)
$Button13 = GUICtrlCreateButton("nächster Buch", 504, 496, 113, 25)
$Button14 = GUICtrlCreateButton("Letztes Buch", 640, 496, 99, 25)
$Button15 = GUICtrlCreateButton("Liste alle Bücher ausgeben", 560, 48, 179, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
( hier in deutsch, damit es jeder versteht )
1.) Wie soll ich die Daten, abspeichern? INI? <-- bekomme ich hin aber wenn es denn im Array oder SQL sein sollte, dann bin ich überfordert.
2.) kann man überhaupt prüfen, welche Bücher vorgemerkt sind. Diese erkennt man daran, das hinter "Erscheinungsdatum das Härkchen gesetzt ist.
3.) Bei "ausgeliehen an" gibt es ganz rechte "bis", das soll 21 Tage mehr sein als das Datum "am". Sinnvoll? Ich möchte später, das ich erinnert werden, das Frau/Herr X seit x-Tagen das Buch ausgeliehen hat.
Wenn wir zusammen das Projekt schaffen, können viele davon lernen, wie man eine "Verwaltungssoftware" aufbauen/entwickeln kann. Aus diesem Grund würde ich gerne alles hier so erklären/erklärt bekommen, das jeder damit möglichst viel lernen und damit verstehen kann. Für mich selber selbstverständlich auch ein großes Projekt, aus dem ich lernen kann.
Komm und lass uns zusammen das Projekt woppen (schreibt man das so in Deutsch?).