Commit Graph

128 Commits

Author SHA1 Message Date
kougyokugentou
852b671725 Move the allChildren list up to the form global for possible future iteration on the report view.
Add shell code to refresh datagridview.
2021-02-03 14:19:24 -08:00
kougyokugentou
9cf3a6fd7a report datagrid view 2021-02-03 14:18:43 -08:00
kougyokugentou
470d95c716 Add: To and From date time pickers, with validation that the To date is never before the From date. Max date you can pick is Today. 2021-02-03 10:21:00 -08:00
kougyokugentou
6a0fef9309 Add filter combobox for child selection. 2021-02-03 09:10:30 -08:00
kougyokugentou
6f11dcb497 Found a possible bug. 2021-02-03 09:09:12 -08:00
kougyokugentou
5a8a98b7c1 Update: DisplayName property for get/set for the report site. 2021-02-03 09:08:47 -08:00
kougyokugentou
b6391b03f3 Add: reports form 2021-02-02 22:07:17 -08:00
kougyokugentou
f6a28cbd66 Add: Delete button
Move: Last admin check to bool CheckIfLastAdmin
2021-02-02 22:07:04 -08:00
kougyokugentou
bd1d904ec2 Add delete button 2021-02-02 22:06:25 -08:00
kougyokugentou
3a6f186455 VS does its thing 2021-02-02 22:06:17 -08:00
kougyokugentou
953954d712 Add reporting form 2021-02-02 22:05:58 -08:00
kougyokugentou
d8790966b7 Add: DeleteChild
Add: GetOrphanedGuardians (Query Needs Testing w/More Data)
Add: DeleteAttendenceForChild
2021-02-02 22:05:40 -08:00
kougyokugentou
186fef3656 Add: Capitalization of guardian's name
FIX: forgot to collect isAdmin.
2021-02-02 21:14:47 -08:00
kougyokugentou
525b7b97e2 Add: Form validation before adding a guardian, either existing or new
Add: Capitalization of children's names and race.
2021-02-02 21:14:08 -08:00
kougyokugentou
861da85079 VS doing its thing 2021-02-02 21:13:25 -08:00
kougyokugentou
e9c5ae8c38 Remove no children label, it was not showing up over the tablegridview. Instead, just change the existing lblInstructions text to "you have no children" 2021-02-02 21:13:11 -08:00
kougyokugentou
16b38c05ec Remove no children label. 2021-02-02 21:12:34 -08:00
kougyokugentou
fb7b68e773 Move FirstTimeRun to the shown event. Ref: Microsoft 2021-02-02 21:12:18 -08:00
kougyokugentou
c86b9fdf0d ADD: Function to capitalize the first letter of a string and lowercase all other letters. Return the string. 2021-02-02 21:11:43 -08:00
kougyokugentou
16940a0ba0 remove timestamp from dob field in mockdata, we don't need that. 2021-02-02 21:11:08 -08:00
kougyokugentou
7c76b8bf04 Bug fix: new child with no sign in/out status NO LONGER crashes program on frmMain.cs 2021-01-30 13:23:27 -08:00
kougyokugentou
e856320df9 Sloppy hax to ensure a guardian is attached to a new child.
I gave up on the all-in-one save button.
2021-01-30 12:53:48 -08:00
kougyokugentou
a0fc5358cc Fix: Validate PIN 2021-01-30 12:53:08 -08:00
kougyokugentou
d41de3f84d Find and comment BUG on populating sign in/out form regarding new student. 2021-01-30 12:52:54 -08:00
kougyokugentou
b26114a5f4 Fix mockdata, it was bothering me. 2021-01-30 12:52:24 -08:00
kougyokugentou
cea0c8b81c Add: GetNextChildID to attach guardian to new child. 2021-01-30 12:52:08 -08:00
kougyokugentou
86ac426176 VS doing its thing 2021-01-30 12:51:40 -08:00
kougyokugentou
075929bbe6 Fix: child global needs to initialize to new child object.
Fix: picture box tags
Add: isAdmin column to guardian datagrid view
Add: Sanity check if deleting last admin
BUG: program inserts new child before attaching new guardian
2021-01-29 22:13:13 -08:00
kougyokugentou
e06902330a VS doing it's strange old thing 2021-01-29 22:13:04 -08:00
kougyokugentou
1900c18389 Revision: Change FirstTimeRun to GetNumAdmins
Add: Sanity check to see if trying to remove last known admin.
2021-01-29 22:12:50 -08:00
kougyokugentou
fbbe66f99f Revision: Change firstTimeRun to GetNumAdmins 2021-01-29 22:12:05 -08:00
kougyokugentou
e2f50bec03 fix: update children query 2021-01-29 22:11:34 -08:00
kougyokugentou
9c4fa611af Clean up unneeded usings 2021-01-29 21:17:51 -08:00
kougyokugentou
1f62a8d06e Clean up unneeded usings
Check for existing guardian on 'save and close'
2021-01-29 21:17:26 -08:00
kougyokugentou
48a8e88bac Clean up unneeded usings
Add TODO
FillGuardiansComboBox after gCrudForm is closed.
Move ensuring child has at least one guardian on save child button
ADD: add child code
2021-01-29 21:16:59 -08:00
kougyokugentou
4948d1d7ff Clean up unneeded usings 2021-01-29 21:15:38 -08:00
kougyokugentou
472091c1b3 Clean up unneeded usings 2021-01-29 21:15:28 -08:00
kougyokugentou
2d02d2d1db Adjust comment 2021-01-27 14:59:16 -08:00
kougyokugentou
5dbd4acc27 Add check if child has no guardians assigned, do not allow form closure. 2021-01-27 14:59:00 -08:00
kougyokugentou
d3390a8d74 Disable cancel button on first time run
Populate the pin number textbox with * if existing guardian
Validate Children upon save button
Add: Code to insert or update guardian
2021-01-27 14:58:27 -08:00
kougyokugentou
ce60c3bdf2 Implement first-time runcode to show the
new guardian form if no guardians
are found in the database.
2021-01-27 14:56:59 -08:00
kougyokugentou
8c0b4adc12 Update: InsertNewChild -- correct table
Add: InsertNewGuardian
Add: UpdateGuardian
2021-01-27 14:56:17 -08:00
kougyokugentou
1c263f475c Change global guardian to public static so the child crud form can snag it.
Add first-time run code.
Add code to collect guardian upon save button click
Add form validation
Implement pinpad/pin number/pin reset.
2021-01-27 14:09:40 -08:00
kougyokugentou
c27cd7f975 Read the guardian from the guardian crud form upon guardian form crud form close.
Add some functionality to add a guardian to the child if the new guardian button was clicked.
Add validation, if child has no guardians display a message.
2021-01-27 14:08:19 -08:00
kougyokugentou
94c406b646 Change class guardian to public so the child crud form can read the Guardian object off the Guardian crud form. 2021-01-27 14:06:59 -08:00
kougyokugentou
68e67516c0 Validate input on child save & close 2021-01-27 09:20:15 -08:00
kougyokugentou
2b3c362ff4 no idea why VS regenerates the imagelist imagestream on building. 2021-01-27 09:19:02 -08:00
kougyokugentou
2f5c41f880 design changes 2021-01-25 22:07:45 -08:00
kougyokugentou
1e0ddf291b Change: global guardian_id to public static for access by the guardian crud form.
Add: Source code comments.
Add: Button to implement guardian crud form
Add: Functionality to delete guardian.
2021-01-25 21:21:45 -08:00
kougyokugentou
cc242d4c3f Initial swing of guardian crud form. 2021-01-25 21:20:13 -08:00