This object offers functions for reading information about the model.
Script functions
Name |
Description |
Model GetById(int id) |
Function returns model according to the input Id. |
Model GetByCode(string code) |
Function returns model according to the input code. |
ModelList GetAll() |
Fuction returns all the models. |
bool HaveUserRightByModel(int modelId) |
Fuction returns TRUE, if the logon user has access right for the model, i.e. model is enabled and user has a role that is added to the model and is enabled. Otherwise FALSE i returned. |
Object call
OG.Model