Difference between revisions of "Project new"
(One intermediate revision by the same user not shown) | |||
Line 32: | Line 32: | ||
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">OBJECT_TYPE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 38: | Line 38: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Object type (Default value: 4)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_RESOURCE_ID</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 58: | Line 48: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Resource id (Default value: 0)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_NAME</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 68: | Line 58: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Project name</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_TEMPLATE_RESOURCE_ID</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 88: | Line 68: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Project template's resource id</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_TIME_REGISTRATION</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 98: | Line 78: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise">If | + | <span class="normalise">If time registration is allowed (Default value: True)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_COMPLETED</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">bool</span> |
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Complete a project (Default value: False)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_PARENT_RESOURCE_ID</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">number</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Project's path</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_CODE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 138: | Line 108: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Project code</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_PROPOSE_CODE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">number</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Propose Code [Read Only]</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_CLIENT_REF_NO</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 198: | Line 128: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Client ref no (Default value: Empty)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_TIME_BUDGET</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
Line 218: | Line 138: | ||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Time Budget</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_CALCULATED_MAN_HOURS</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">bool</span> |
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Calculated Man-Hours (Default value: False)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_PLANNED_START_DATE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">array (date time)</span> |
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Planned Start Date (Default value: MinDate)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_ACTUAL_START_DATE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">array (date time)</span> |
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Actual Start Date (Default value: MinDate)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_PLANNED_END_DATE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">array (date time)</span> |
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Planned End Date (Default value: MaxDate)</span> |
|- valign="top" align="left" | |- valign="top" align="left" | ||
| width="292" style="border: 1px solid rgb(1, 1, 1);" | | | width="292" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">PROJECT_ACTUAL_END_DATE</span> |
| width="116" style="border: 1px solid rgb(1, 1, 1);" | | | width="116" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">array (date time)</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
| width="467" style="border: 1px solid rgb(1, 1, 1);" | | | width="467" style="border: 1px solid rgb(1, 1, 1);" | | ||
− | <span class="normalise"> | + | <span class="normalise">Actual End Date (Default value: MaxDate)</span> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 324: | Line 194: | ||
'''Example''' | '''Example''' | ||
− | '' | + | ''array a = Project_new("Test_Project",15548976,50755);'' |
+ | |||
+ | ''print(a);'' | ||
− | '' | + | ''//{4,0,Test_Project,15548976,True,False,50755,CC10014CCC,10014,,0,False,{1,1,1,7,0,0,0,1,65},{1,1,1,7,0,0,0,1,65},{9999,12,31,23,59,59,999,52,65},{9999,12,31,23,59,59,999,52,65}}'' |
'''Availability''' | '''Availability''' |
Latest revision as of 10:55, 22 December 2011
Project_new
Create a new project object
Syntax
Project_new(name, templateResourceId, parentResourceId)
Arguments
- name: is a string expression. It is the name of the new project
- templateResourceId: is a number expression. It is the id of project resource template
- parentResourceId: is a number expression. It is the id of the parent resource
Return value
An array, it is a project object which contains the following items
Index |
Data type |
Value |
OBJECT_TYPE |
number |
Object type (Default value: 4) |
PROJECT_RESOURCE_ID |
number |
Resource id (Default value: 0) |
PROJECT_NAME |
string |
Project name |
PROJECT_TEMPLATE_RESOURCE_ID |
number |
Project template's resource id |
PROJECT_TIME_REGISTRATION |
bool |
If time registration is allowed (Default value: True) |
PROJECT_COMPLETED |
bool |
Complete a project (Default value: False) |
PROJECT_PARENT_RESOURCE_ID |
number |
Project's path |
PROJECT_CODE |
string |
Project code |
PROJECT_PROPOSE_CODE |
number |
Propose Code [Read Only] |
PROJECT_CLIENT_REF_NO |
string |
Client ref no (Default value: Empty) |
PROJECT_TIME_BUDGET |
number |
Time Budget |
PROJECT_CALCULATED_MAN_HOURS |
bool |
Calculated Man-Hours (Default value: False) |
PROJECT_PLANNED_START_DATE |
array (date time) |
Planned Start Date (Default value: MinDate) |
PROJECT_ACTUAL_START_DATE |
array (date time) |
Actual Start Date (Default value: MinDate) |
PROJECT_PLANNED_END_DATE |
array (date time) |
Planned End Date (Default value: MaxDate) |
PROJECT_ACTUAL_END_DATE |
array (date time) |
Actual End Date (Default value: MaxDate) |
Example
array a = Project_new("Test_Project",15548976,50755);
print(a);
//{4,0,Test_Project,15548976,True,False,50755,CC10014CCC,10014,,0,False,{1,1,1,7,0,0,0,1,65},{1,1,1,7,0,0,0,1,65},{9999,12,31,23,59,59,999,52,65},{9999,12,31,23,59,59,999,52,65}}
Availability
Version 5.6