-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Tirtstan/experimental
add clsRegistration and fixed bio max character limit
- Loading branch information
Showing
18 changed files
with
770 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[.ShellClassInfo] | ||
IconResource=C:\Program Files\Google\Drive File Stream\60.0.2.0\GoogleDriveFS.exe,23 | ||
IconResource=C:\Program Files\Google\Drive File Stream\62.0.1.0\GoogleDriveFS.exe,23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[.ShellClassInfo] | ||
IconResource=C:\Program Files\Google\Drive File Stream\60.0.2.0\GoogleDriveFS.exe,23 | ||
IconResource=C:\Program Files\Google\Drive File Stream\62.0.1.0\GoogleDriveFS.exe,23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[.ShellClassInfo] | ||
IconResource=C:\Program Files\Google\Drive File Stream\60.0.2.0\GoogleDriveFS.exe,23 | ||
IconResource=C:\Program Files\Google\Drive File Stream\62.0.1.0\GoogleDriveFS.exe,23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
unit clsRegistration; | ||
|
||
interface | ||
|
||
uses | ||
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, | ||
System.Classes, Vcl.Graphics, | ||
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls, Vcl.StdCtrls, | ||
Vcl.ComCtrls, dbPAT2022; | ||
|
||
Type | ||
TRegistration = class(TObject) | ||
private | ||
fStudentID, fCourseID, fUniversityID: integer; | ||
fDateRegistered: TDateTime; | ||
fBalance: Real; | ||
public | ||
constructor Create(iConStudentID, iConCourseID, iConUniversityID: integer; | ||
dDateRegistered: TDateTime; rBalance: Real); | ||
procedure SetBalance(rBalance: Real); | ||
function GetStudentID(): integer; | ||
function GetCourseID(): integer; | ||
function GetUniversityID(): integer; | ||
function GetDateRegistered(): TDateTime; | ||
function GetBalance(): Real; | ||
function ToString(): String; | ||
end; | ||
|
||
implementation | ||
|
||
{ TRegistration } | ||
|
||
constructor TRegistration.Create(iConStudentID, iConCourseID, iConUniversityID | ||
: integer; dDateRegistered: TDateTime; rBalance: Real); | ||
begin | ||
fStudentID := iConStudentID; | ||
fCourseID := iConCourseID; | ||
fUniversityID := iConUniversityID; | ||
fDateRegistered := dDateRegistered; | ||
fBalance := rBalance; | ||
end; | ||
|
||
function TRegistration.GetBalance: Real; | ||
begin | ||
result := fBalance; | ||
end; | ||
|
||
function TRegistration.GetCourseID: integer; | ||
begin | ||
result := fCourseID; | ||
end; | ||
|
||
function TRegistration.GetDateRegistered: TDateTime; | ||
begin | ||
result := fDateRegistered; | ||
end; | ||
|
||
function TRegistration.GetStudentID: integer; | ||
begin | ||
result := fStudentID; | ||
end; | ||
|
||
function TRegistration.GetUniversityID: integer; | ||
begin | ||
result := fUniversityID; | ||
end; | ||
|
||
procedure TRegistration.SetBalance(rBalance: Real); | ||
begin | ||
fBalance := rBalance; | ||
end; | ||
|
||
function TRegistration.ToString: String; | ||
begin | ||
{ result := 'StudentID: ' + IntToStr(fStudentID) + #13 + 'CourseID: ' + | ||
IntToStr(fCourseID) + #13 + 'UniversityID: ' + IntToStr(fUniversityID) + #13 | ||
+ 'Date Registered: ' + DateToStr(fDateRegistered) + #13 + 'Balance: ' + | ||
FloatToStrf(fBalance, ffCurrency, 8, 2); } | ||
end; | ||
|
||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[.ShellClassInfo] | ||
IconResource=C:\Program Files\Google\Drive File Stream\60.0.2.0\GoogleDriveFS.exe,23 | ||
IconResource=C:\Program Files\Google\Drive File Stream\62.0.1.0\GoogleDriveFS.exe,23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.