task

[ TaskGroup.cs ]

[what]

  1. ] Taskgroup.cs - documenting properties, constructors, methods and ... for this application component
  2. ] a container class for tasks

[why]

[where] 

  1. [USING]
    1. ] System - console & ... 
    2. ] System.Collections - for ArrayList
    3. ] System.Collections.Generic - for ieNumerable, used by ...
    4. ] System Dynamic - for Dynamic types, used by ..
    5. ] System.Web - for httpContext, used by ... to access Session var ( get current_db)
    6. ] WebMatrix.Data - for Database methods, used by ... ] all
    7. ] WebMatrix.Data.StronglyTyped - for data library ST that converts dynamics to ST objects
  2. [PROPERTIES]
    1. ] id_taskgroup -
    2. ] name_taskgroup - 
    3. ] description_taskgroup -
    4. ] parent_id -
    5. ] database - 
    6. ] qryGetTaskGroups - qry to return all taskgroup
    7. ] qryGetTaskGroup - qry to return a single taskgroup
    8. ] qryGetTaskGroupsInPlan - qry to return all taskgroups in a given Plan
    9. ] qryAddTaskGroup - qry that inserts a new taskgroup record
    10. ] qryDeleteTaskGroup - qry that deletes a single taskgroup record
    11. ] qryUpdateTaskGroup - qry that updates a single taskgroup record 
    12. +++ 
    13. ] count - non-persistent -
    14. ] lastIn
  3. [PROPERTIES.objects]
    1. ] calendar cal -
    2. ] plan pln -
  4. [CONSTRUCTORS]
    1. ] TaskGroup() - default, empty 
    2. ] TaskGroup(int id) - takes id of existing TaskGroup, instantiates this.TaskGroup with properties of existing TaskGroup
    3. ] TaskGroup(string name, string description, int parent_id)- takes name and description args of TaskGroup to create a new taskgroup
      1. OR] TaskGroup(string name) - instantiates a new instance of TaskGroup object - based on lookup of existing TaskGroup by name
    4. ] TaskGroup(int id_tgr, string src_db,) - instantiates a new instance of TaskGroup object
  5. [METHODS-]
    1. x] add()
    2. x] delete()
    3. x] edit()
  6. [METHODS-STATIC]
    1. x] add(name,parent,description) - adds record to db using the currently instantiated instance
    2. x] delete(id)
    3. x] edit(name, description)
    4. x] GetTaskGroups() - 
    5. x] GetDefaultTaskGroupId() - returns the id of the default || user specified 'default taskgroup'
    6. x] GetTaskGroupsInPlan(id) 
    7. x] GetTaskGroupsInPlan(id, src_db) 
    8. x] getMaxId()- returns the id of the last record inserted into the 
    9. x] import()
    10. ***
    11. ] ListAll() 
    12. ] ById() 
  7. [METHODS-OTHER]
    1. ] setItemsStatus(status, ids) - sets all items to the given status
    2. ] setItemsName(name, ids) - sets all user selected items "names" to the given name
    3. ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description
    4. ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value
    5. ] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value
    6. ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value

[when]

  1. ]

[example]

  1. ]

[how-to]

  1. ]

[reference]

  1. ] 2012-06-17 - TaskGroup.cs - NEW FILE REF # 
  2. ] 2012-11-19 - TaskGroup.cs - PRB import task fail 

developer implementation

[-process]

  1.  

[-notes]

  1.  

status

[-previous-]

  1. [2017-03-15] NEW task
    1. x] FIX-PRB-7140 - add explicit db connection close, db close statements
  2. [2017-04-11] NEW task
    1. x] FIX-PRB-7140 - add explicit db Dispose() statement

[-current-]

  1.  ]

[-next-]

  1. ]

 

 

Details Photos Edit more

Details

ID: 3890

NAME: CLASS-TaskGroup

DESCRIPTION: CLASS - TaskGroup - documenting properties, constructors, methods and ... for this application component

START DATE TIME: 2014-04-25 13:04:14

EST DURATION: 01:00:00

END DATE TIME: 2014-04-25 14:04:14

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities