OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.MPersonnel.PersonnelChecks Class Reference

Contains functions to be used by the Server and the Client that perform certain checks - specific for the Personnel Module. More...

Static Public Member Functions

static bool WarnAboutFamilyChange (Int64 APersonKey, String APersonShortName, Int64 AOldFamilyKey, String AOldFamilyShortName, Int64 ANewFamilyKey, String ANewFamilyShortName, bool AHasCurrentCommitment, TDelegateShowFamilyChangeWarning ADelegateShowWarning)
 Shows warning message if the change of a family affects user access to Caleb, i.e. at the moment a message is displayed if the person has a current commitment record and his/her family is about to be changed. Method returns TRUE if the user wants to continue. More...
 

Detailed Description

Contains functions to be used by the Server and the Client that perform certain checks - specific for the Personnel Module.

Member Function Documentation

◆ WarnAboutFamilyChange()

static bool Ict.Petra.Shared.MPersonnel.PersonnelChecks.WarnAboutFamilyChange ( Int64  APersonKey,
String  APersonShortName,
Int64  AOldFamilyKey,
String  AOldFamilyShortName,
Int64  ANewFamilyKey,
String  ANewFamilyShortName,
bool  AHasCurrentCommitment,
TDelegateShowFamilyChangeWarning  ADelegateShowWarning 
)
inlinestatic

Shows warning message if the change of a family affects user access to Caleb, i.e. at the moment a message is displayed if the person has a current commitment record and his/her family is about to be changed. Method returns TRUE if the user wants to continue.

Parameters
APersonKey

Partner Key for person

Parameters
APersonShortName

short name for person

Parameters
AOldFamilyKey

Partner key for current family

Parameters
AOldFamilyShortName

short name for current family

Parameters
ANewFamilyKey

Partner key for new family

Parameters
ANewFamilyShortName

short name for new family

Parameters
AHasCurrentCommitment

Person has current commitment (staff data) record

Parameters
ADelegateShowWarning

Delegate Method so message box can be shown on client or appropriate action taken on server

Returns
true if family key change should continue, otherwise false

The documentation for this class was generated from the following file: