pointonsoftware / pscore

C++ library for building your business software
GNU Affero General Public License v3.0
1 stars 2 forks source link

Provide an API to retrieve user data using the employeeID #163

Closed gbenziv closed 3 years ago

gbenziv commented 3 years ago
/*!
 * Returns the info of the requested user
 * @param [in] - employeeID of the user
*/
virtual entity::User get(const std::string& employeeID) = 0;
gbenziv commented 3 years ago

Or maybe make the userID as the foreign key inside the employee data instead of making the employeeID as the foreign key in the userdata. Then remove the isSystemUser flag and replace with employeedata::userID.empty().

gbenziv commented 3 years ago

Display the userID in the information screen (must not be editable / cannot be associated with an index)

SCREENCOMMON().printItemText("UserID", mInfo->userID);