Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ResourceJournalEntry class: Difference between revisions

From Catglobe Wiki
Nguyenduyan (talk | contribs)
No edit summary
Nguyenduyan (talk | contribs)
No edit summary
Line 4: Line 4:
|Constructors=
|Constructors=
{{CGscriptConstructors_Template|Parameters=
{{CGscriptConstructors_Template|Parameters=
{{CGscriptParameters_Template|Type=int|Name=<nowiki>Resource Id</nowiki>|Description=<nowiki>Comment to what resource</nowiki>}}
{{CGscriptParameters_Template|Type=int|Name=<nowiki>Comment Id</nowiki>|Description=<nowiki>Comment Id</nowiki>}}
|Description=<nowiki>Load existing journal entry</nowiki>}}
|Description=<nowiki>Load existing journal entry</nowiki>}}
{{CGscriptConstructors_Template|Parameters=
{{CGscriptConstructors_Template|Parameters=
Line 23: Line 23:
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
{{CGscriptProperties_Template|ReturnType=TypeInformation|Name=<nowiki>TypeInformation</nowiki>|HasGetter=1|Description=<nowiki>Get information about this class.</nowiki>}}
}}
}}


==== Notes ====
==== Notes ====

Revision as of 06:49, 12 July 2017

ResourceJournalEntry



A resource journal entry

Constructors

  • (int Comment Id "Comment Id") - Load existing journal entry
  • (int Resource Id "Comment to what resource", string journalType "What kind of journal type is it", string content "What does the comment say") - Create a new comment object. Use Resource_addJournal or .Save() to save. Creating user is current user. Use addJournal() if dealing with tasks.

Methods

  • Empty Destroy() - Permanently delete the current comment
  • Empty Save() - Save the current comment
  • string ToString() - The string representation of the object.

Properties

  • string CommentType { get; } - Get the comment type as string
  • string Content { get; set; } - Get/set the comment content
  • int CreatedByUserResourceId { get; } - Get CreatedByUserResourceId
  • DateTime CreatedDate { get; } - Get CreatedDate
  • int ModifiedByUserResourceId { get; } - Get ModifiedByUserResourceId
  • DateTime ModifiedDate { get; } - Get ModifiedDate
  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.


Notes

The CommentType of the object use below values:

  • Description
  • Proposal
  • Comment
  • Reassignment
  • Outcome
  • Disapproval
  • Cancellation
  • Rejection
  • NotAcceptRejection
  • Acceptance
  • Approval
  • Mergence
  • UndoComplete