Hi,
You will find enclosed, the result of my work week.
What has been done (and tested on major cases) :
1
FrameWork Server (Model part)
Comments: "
CONSTRUCT DATA FROM FUNCTION"
Ability to display in the masters (list) screens and Details of data built from a method of the object (a method by built data).
No naming rule.
No special drawing function.
This allowed me to display the hierarchy of the Organization in the Master organization, (pending better, as for example recovery of the planning screen to display the hierarchy or using a FrameWork js with the ability to draw a hierarchy) with all the possibilities (filter, column display et change place, printing, PDF & CSV export, etc.) of a "native" SQL data.
It deferts, mainly, of '_calc_' for the previous reasons.
An example of use is given in 'OrganizationMain.php'.
My next use is for budget of organization.
The principle:
The data is considered a given SQL, except that during the construction of the SQL (in SqlEment.php and jsonQuery.php) order, in the 'select', it is replaced by "'Method name' as 'the given name'" (SQL order means, it is a 'static' data).
After execution of the SQL, for each returned row, "Method name" is replaced by the result of execution of the method. The format of the data is found through the variable '_fieldsFromFunctionFormatList' of the object static.
2.
FrameWork Front
Comments : "
OBJECTS LINKED BY ID TO MAIN OBJECT"
Since details of an object screen, possibility to draw a table (on the model of section '_Link') containing a list of objects related to the object of the screen by id (foreignKey). Management of the association (idXXXX = XXXX-> id) and dissociation (idXXXX = null) of related objects.
a. use of a new rule of naming on the name of the 'XxxxxOfObject' section.
b. Creation in 'main.php' of the 'div' dialog (dialogObject) and the 'objectForm' form
c. Creation in 'objectDetail.php' of function 'drawObjectLinkedByIdToObject' to draw the content of the section and calling the function based on the name of the section, the name of the column
d. Creation in 'projeqtorDialog.js' the functions
- to display in a '<select>' the instances of the object
- to add multiple links
-to remove links
-to call the constructor of the '<select>'
e. creating the file 'dynamicListObjectLinkedByIdToMainObject.php' for the construction of the '<select>' and populate it with the datas
f. creating the file 'saveObjectLinkedByIdToMainObject.php' to store base associations (idXXXX = XXXX-> id)
g. create the file 'removeObjectLinkedByIdToMainObject.php' to store in base the dissociation (idXXXX = null)
Used for detail organizations: display, association and dissociation of 'Projects' and 'Resources'.
3.
Management of the visibility of the organisations in the 'Master' (Screen) and the combobox (list) screens:
Comments : "
ORGANIZATION VISIBILITY" or "
ORGANIZATION & RESOURCE VISIBILITY"
Setting in HabilitationOther of the types of visibility of data organization in screens and lists.
3 choices:
a. 'No restrictions'.
b. 'organization and sub-organizations': the user sees organizations (and the like) to which it belongs (Resource-> idOrganization)
c. 'same organisation only': the user sees that the Organization to which he belongs.
4.
Add a visibility option in screens and lists (Organization and sub-organizations) resources:
Comments "
RESOURCE VISIBILITY"
5.
Application of the visibility of resources on assignments
Comments "
RESOURCE VISIBILITY"
6.
Application of the visibility of the resources on the buttons 'Search' and ' access to ' associated with the combobox of resources (idResource)
Comments "
RESOURCE VISIBILITY"
7.
Management of the visibility of costs and charges for organizations (summary)
Comments '
WORK AND COST VISIBILITY'
8.
Correction of the visibility of the charges and costs for meetings
Comments '
WORK AND COST VISIBILITY'
9
Spread of expenses on the budgets of the Organization in creating, editing, deleting a expense
Comments "
EXPENSE CONSOLIDATION we ORGANIZATION"
10
Spread of reserves on the budgets of the Organization to the creation, editing, deleting of a risk
Comments "
CONSOLIDATION RESERVE we ORGANIZATION"
11.
Consolidation of indicators "consolidated" on organizations and subsidiary organizations
Comments "
KPI CONSOLIDATED WITH SUB-ORGANIZATIONS"
12.
Management of the manager of an organization:
Comments "
ORGANIZATION MANAGER"
Application of the following 2 rules:
a. manager of an organization must belong to the Organization (no decascade on the parent organizations)
b. a manager can't be remove of its organization
13
Display in summary of organization data in good columns
Comments '
WORK AND COST IN GOOD CELL'
14
Translation in lang.xls
15
Comments with "BY HIM" instead of "BY ME" Re
For next week, I plan to incorporate the concept of budget organization, with the notion of the year (for the year, I made a little unsuccessful attempt).
I think having been faithful to the concepts of the FrameWork.
Best regards,