1 (edited by thezimguy 2019-08-09 07:59:20)

Topic: School Fees Management System

Please, can anyone help me with a sample project on the above subject?

Details
*Register students, class, academic year and term
*Fees are created for three terms in a year
*Balance should be brought forward the next academic year
*Admin will create fees eg. For Academic year 2018/2020, term 1
Tuition fee= 20
Ict fee =2 etc
*Fees will be assigned to each class for a term in the academic year

Thank you in advanced

@thezimguy

Re: School Fees Management System

Hello Derek and mvd users,
I'm trying to do something about the above topic. Please can you take a look at the sample and help me with the note specified in the project?

I'm trying to add all members in a class from a combobox to a table in the database.
Any help will be appreciated.

Post's attachments

Attachment icon feeManager.zip 4.69 kb, 367 downloads since 2019-08-15 

@thezimguy

3 (edited by derek 2019-08-16 11:03:11)

Re: School Fees Management System

Hi,
Perhaps try it like the attached - it seemed the simplest, but I'm sure there are other ways too.
I added a new form just so you can check that the inserts into the 'stdfee' table are working correctly.
Regards,
Derek.
(also just added a check to stop rows being inserted into stdfee table if either 'fee' or 'class' not selected)

Post's attachments

Attachment icon fee manager.zip 340.27 kb, 478 downloads since 2019-08-16 

Re: School Fees Management System

Thank you Derek.
You have really made the work so easy. Really appreciated.
Follow up question

fname ||" "|| lname ||" "|| oname

I am using the above code in a calculated field of the database but if the oname is blank, it shows empty record in the tableGrid. Please, any help?
Thank you in advance.

@thezimguy

Re: School Fees Management System

Hi,
You just need to add a check in your calculated field to see if any of the fields that are being concatenated are blank.
Try it like this:
ifnull(firstname,'')||' '||ifnull(lname,'')||' '||ifnull(oname,'')
Regards,
Derek.

Re: School Fees Management System

Thanks so much
It worked perfectly

@thezimguy

7 (edited by thezimguy 2019-08-19 06:26:17)

Re: School Fees Management System

Hello family, please how can I show a message of the cell of a tableGrid when that cell is clicked.
I have tried several times but to no avail.

It only works when the event is in a button, but what I want is the event should trigger on tableGrid onCellClick.
Thank you

Post's attachments

Attachment icon cellClick.zip 4.3 kb, 357 downloads since 2019-08-19 

@thezimguy

Re: School Fees Management System

Make this change in your project:

procedure Form1_TableGrid1_OnCellClick (Sender: TObject; ACol, ARow: Integer);
begin
  ShowMessage(Form1.TableGrid1.Cells(1,ARow));
end;
Визуальное программирование: блог и телеграм-канал.

Re: School Fees Management System

k245 wrote:

Make this change in your project:

procedure Form1_TableGrid1_OnCellClick (Sender: TObject; ACol, ARow: Integer);
begin
  ShowMessage(Form1.TableGrid1.Cells(1,ARow));
end;

Thanks for the prompt response.
I really appreciate it
It works perfectly

@thezimguy

10 (edited by sibprogsistem 2019-08-19 17:11:36)

Re: School Fees Management System

procedure Form1_TableGrid1_OnClick (Sender: TObject);
begin
ShowMessage(Form1.TableGrid1.Cells[1,Form1.TableGrid1.SelectedRow]);
end;

 
TableGrid1_OnClick

Re: School Fees Management System

sibprogsistem wrote:
procedure Form1_TableGrid1_OnClick (Sender: TObject);
begin
ShowMessage(Form1.TableGrid1.Cells[1,Form1.TableGrid1.SelectedRow]);
end;

 
TableGrid1_OnClick

Thank you so much for your support

@thezimguy

12 (edited by thezimguy 2019-08-20 18:57:56)

Re: School Fees Management System

Hello Dmitry, Derek, sibprogsistem and mvd lovers,
I have another issue which I need your help.
The attached project can create student bills and can also assign the bills to the students. My problem now is how to generate the on print button click.
Please find attached for more details.
Thank you in advance.

Post's attachments

Attachment icon feeManReport.zip 21.91 kb, 348 downloads since 2019-08-20 

@thezimguy

Re: School Fees Management System

thezimguy wrote:

Hello Dmitry, Derek, sibprogsistem and mvd lovers,
I have another issue which I need your help.
The attached project can create student bills and can also assign the bills to the students. My problem now is how to generate the on print button click.
Please find attached for more details.
Thank you in advance.

I have been able to figure it out.
Thank you all

@thezimguy

14 (edited by Asifmute 2019-08-24 05:41:40)

Re: School Fees Management System

@thezimguy
can you upload your corrected project with us, i want to know the print correction.

JUST LEARNING, O GOD HELP ME.

15 (edited by thezimguy 2019-08-24 14:38:13)

Re: School Fees Management System

@Asifmute, what I did was to write SQL statement to retrieve the records I needed in the button using the "REPORT SQL" Action of the button.
Find attached the project.

Post's attachments

Attachment icon feeManReport2.zip 13.76 kb, 388 downloads since 2019-08-24 

@thezimguy