Gpjrm klcsnzsi szoftver Windows NET MS SQL Ksztette
- Slides: 20
Gépjármű kölcsönzési szoftver Windows /. NET / MS SQL Készítette: Vajda Zsombor vzs@inf. elte. hu
A projectről általánosan n Bejelentkezés
A projectről általánosan n A Főmenü
Egyszerűbb táblakarbantartás n Userek, Munkatársak… táblák, megjelenítése és módosítása
DE MOST…
Először a kapcsolódó adatbázis:
A Szűrők:
A Szűrők: Data. View gepjarmuvek. Data. View = autokolcsonzo. Data. Set. Gepjarmuvek. Default. View; gepjarmuvek. Binding. Source. Data. Source = gepjarmuvek. Data. View; private void text. Box 1_Text. Changed(object sender, Event. Args e) { gepjarmuvek. Data. View. Row. Filter = "gyartmany LIKE '" + text. Box 1. Text + "*' AND kategoria LIKE '" +text. Box 3. Text+ "*' AND tipus LIKE '"+text. Box 2. Text+"*'"; }
Szűrők: private void gepjarmuvek. Data. Grid. View_Selection. Changed(object sender, Event. Args e) { if (gepjarmuvek. Data. Grid. View. Row. Count > 1) { int i = ((Data. Grid. View)sender). Current. Row. Index; if (i >= 0 && i <= gepjarmuvek. Data. Grid. View. Row. Count) { kikolcsonzottek. Binding. Source. Data. Source= gepjarmuvek. Data. View[i]. Create. Child. View("Gepjarmuvek_Kikolcsonzottek"); tarifak. Binding. Source. Data. Source = gepjarmuvek. Data. View[i]. Create. Child. View("Gepjarmuvek_Tarifak"); } } } else { kikolcsonzottek. Binding. Source. Data. Source = autokolcsonzo. Data. Set. Kikolcsonzottek; tarifak. Binding. Source. Data. Source = autokolcsonzo. Data. Set. Tarifak; }
A Kölcsönzés: A dátummal kapcsolatos üzenetek
A Kölcsönzés: Text. Box-ok: Jármü: this. rendszam. Text. Box. Data. Bindings. Add(new System. Windows. Forms. Binding("Text", this. gepjarmuvek. Binding. Source, "rendszam", true)); Partner: this. nev. Text. Box. Data. Bindings. Add(new System. Windows. Forms. Binding("Text", this. partnerek. Binding. Source, "nev", true));
A Kölcsönzés(idő kiszámítása): private void Kolcsonzesi. Ido() { pido=1; System. Date. Time inddate = inddate. Date. Time. Picker. Value; System. Date. Time erkdate = erkdate. Date. Time. Picker. Value; } while (inddate < erkdate) { inddate = inddate. Add. Days(1); pido++; } ido. Text. Box. Text = pido. To. String();
A Kölcsönzés(díj kiszámítása): private void Dij. Kiszamitas() { pdij = 0; int priceido = int. Parse(ido. Text. Box. Text. To. String()); int price = int. Parse(tarifak. Data. Grid. View. Rows[0]. Cells[1]. Value. To. String()); pdij = (priceido * price); dij. Text. Box. Text = pdij. To. String(); }
A Kölcsönzés(idő ellenőrzése): Már lefoglalt időpontok: Az új időpont:
A Kölcsönzés(idő ellenőrzése): Egy nem ellenőrzött dolog: Már lefoglalt időpontok: Az új időpont:
A Kölcsönzés(idő ellenőrzése): List<System. Date. Time> tol. Date. Time = new List<Date. Time>(); List<System. Date. Time> ig. Date. Time = new List<Date. Time>(); private void button 3_Click(object sender, Event. Args e) { tol. Date. Time. Clear(); ig. Date. Time. Clear(); kolcsonozhetoe = true; text. Box 5. Text = ""; text. Box 6. Text = ""; for (int j = 0; j < kikolcsonzottek. Data. Grid. View. Rows. Count-1; j++) { System. Date. Time tido = Date. Time. Parse(kikolcsonzottek. Data. Grid. View. Rows[j]. Cells[0]. Value. To. String()); tol. Date. Time. Add(tido); System. Date. Time iido = Date. Time. Parse(kikolcsonzottek. Data. Grid. View. Rows[j]. Cells[1]. Value. To. String()); ig. Date. Time. Add(iido); }
A Kölcsönzés(idő ellenőrzése): Date. Time inddate = inddate. Date. Time. Picker. Value; Date. Time erkdate = erkdate. Date. Time. Picker. Value; for(int i=0; i<tol. Date. Time. Count; i++){ if ( inddate. Compare. To(tol. Date. Time[i]) >= 0 && inddate. Compare. To(ig. Date. Time[i]) <= 0) { text. Box 5. Text = "Indulas nem Jo!!!"; kolcsonozhetoe = false; } } if (erkdate. Compare. To(tol. Date. Time[i]) >= 0 && erkdate. Compare. To(ig. Date. Time[i]) <= 0) { text. Box 6. Text = "Erkezes nem Jo!!!"; kolcsonozhetoe = false; }
A Kölcsönzés(idő ellenőrzése): if (kolcsonozhetoe) { indulas = inddate. Date. Time. Picker. Value; erkezes = erkdate. Date. Time. Picker. Value; Kolcsonzesi. Ido(); Dij. Kiszamitas(); }
A Kölcsönzés: Data. Row. View drw = kikolcsonzottek. Data. View. Add. New(); drw["kikolcsonzott. ID"] = int. Parse(kikol. ID)+1; drw["auto_ID"] = int. Parse(gepj. ID); drw["tol"] = inddate. Date. Time. Picker. Value; drw["ig"] = erkdate. Date. Time. Picker. Value; drw. End. Edit(); Data. Row. View drv = kolcsonzes. Data. View. Add. New(); drv["kolcsonzes. ID"] = kolcs. ID; drv["jarmu"] = rendszam. Text. Box. Text; drv["partner"] = nev. Text. Box. Text; drv["szerzodat"] = System. Date. Time. Now; drv["ido"] = pido; drv["dij"] = pdij; drv["eloleg"] = int. Parse(eloleg. Text. Box. Text); drv["inddate"] = indulas; drv["erkdate"] = erkezes; drv. End. Edit();
Vége http: //people. inf. elte. hu/vzs/eloadas Köszönöm a figyelmet
- Szoftver fogalma
- Sql and plsql difference
- Pl sql unit test
- Sql server 2017 windows 7
- How to increase audio volume in windows movie maker
- Windows media player 9 windows 2000
- Live mail windows 7
- Windows driver kit windows 7
- Microsoft windows movie maker windows 7
- Windows media player themes
- Windows identity foundation windows 10
- Windws update
- Virtualbox download for windows xp
- Windows mobile center windows 10
- Manual windows movie maker
- Windows vista windows 10
- Xp mode key
- Executereader
- Sql*net more data from dblink
- Sql net
- Windows net server family