task

[ Plan.cs ]

[what]

  1. ] CLASS Plan - documenting properties, constructors, methods and ... for this application component

[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_plan - 
    2. ] name_plan - 
    3. ] description_plan -
    4. ] parent_id - 
    5. ] database - 
    6. ] qryGetPlans - all plans
    7. ] qryGetPlansInCalendar - all plans in a given warehouse
    8. ] qryAddPlan
    9. ] qryDeletePlan 
    10. ] qryUpdatePlan
    11. +++] 
    12. ] count - non-persistent -
    13. ] lastIn - 
    14. [objects]
    15. ] Calendar 
  3. [CONSTRUCTORS] 
    1. ] Plan() - default, empty 
    2. ] Plan(int id) - takes id of existing Plan, instantiates this.Plan with the properties of existing Plan
    3. ] Plan(string name, string description)- takes name and description args of Plan to create a new Plan object
    4. ] Plan(string name) - instantiates a new instance of Plan object - based on lookup of existing Plan 
    5. +++
    6. ] Plan(int id,string name, ...) - instantiates a new instance of Calendar object
  4. [METHODS]
    1. ] GetPlans() -
    2. ] ListAll() -
    3. ] ById() - 
    4. ] GetPlansInCalendar(id_calendar)
    5. ] GetPlansInCalendar(src_db, id_calendar)
    6. ] add () - add using the currently instantiated instance 
    7. ] add (name,description) - STATIC where=?, change to 
    8. ] delete() - 
    9. ] delete(id) -  STATIC
    10. ] edit() 
    11. ] edit(name,description ,..., id) - STATIC
    12. ] edit ()
    13. [STATIC]
    14. ] setItemsStatus(status, ids) - sets all items to the given status
    15. ] setItemsName(name, ids) - sets all user selected items "names" to the given name
    16. ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description
    17. ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value
    18. ] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value
    19. ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value 
    20. [ADD]
    21. ]
    22. [EDITS]
    23. ]
    24. [OTHER]
    25. ]  getMaxId - returns the id of the last record inserted into the 

[when]

  1. ]

[example]

  1. ]

[how-to]

  1. ]

[reference]

  1. ]

developer implementation

[-process]

  1.  ] 

[-notes]

  1.  ] 

status

[-previous-]

  1. [2017-04-11] NEW task 
    1. x] # 7223 - CREATE-task# # - Plan.cs - documentation for the Plan class, copied 
  2. [2017-03-15] NEW task
    1. x] FIX-PRB-7140 - add explicit db connection close, db close statements
  3. [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: 7223

NAME: CLASS-Plan

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

START DATE TIME: 2014-04-25 21:19:02

EST DURATION: 01:00:00

END DATE TIME: 2014-04-25 22:19:02

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities