task

[ CLASS app_code/Procedure.cs ]

[WHAT]

  1. [ def ] class to work with Procedure objects
  2. [ args ] none  

[WHY]

  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_procedure - 
    2. ] name_procedure - 
    3. ] description_procedure -
    4. ] parent_id - 
    5. ] database - 
    6. ] qryGetProcedures - all procedures
    7. ] qryGetProcedure - return single procedure
    8. ] qryGetProceduresInApp - return all procedures in a given app
    9. ] qryAddProcedure
    10. ] qryDeleteProcedure 
    11. ] qryUpdateProcedure
    12. +
    13. ] count - non-persistent -
    14. ] lastIn - 
    15. [objects]
    16. ] app
  3. [Constructors]
    1. x] Procedure() - default, empty, creates a new EMPTY procedure instance with no values set
    2. x] Procedure(int id) - takes id of existing procedure, instantiates this.procedure with properties of existing procedure // creates a new procedure instance by retrieving values-of a procedure persisted in a db
    3. ] Procedure(name, description, parent) - creates a new procedure instance populated with the values of passed in args
    4. ] Procedure(string name, string description)- takes name and description args of procedure to create a new server OR 
    5. ] Procedure(string name) - instantiates a new instance of procedure object - based on lookup of existing procedure 
    6. +] Procedure(int id,string name, ...) - instantiates a new instance of Procedure object
  4. [Methods]
    1. ] GetProcedures() 
    2. ] GetProceduresInApp()
    3. ] add () - add using the currently instantiated instance 
    4. ] static add (name,description) - where=??
    5. ] delete() - 
    6. ] static delete(id) - 
    7. ] edit()
    8. ] static edit (name,description) args[]
    9. ] ById() 
    10. ] ListAll() -
    11. [OTHER]
    12. ] getMaxId()- returns the id of the last record inserted into the procedures table
    13. ] import()
    14. ] getDefaultProcedureId() -   returns the id of the default || user specified 'default procedure'
    15. [STATIC] 
    16. ] setItemsStatus(status, ids) - sets all items to the given status 
    17. ] setItemsName(name, ids) - sets all user selected items "names" to the given name 
    18. ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description 
    19. ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value 
    20. ] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value 
    21. ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value 

[WHERE]

  1. [ called from] 
    1. ] view  - procedures in app for current app
    2. ] view procedure -
    3. ] edit procedure -
    4. ] add procedure - 

[WHEN]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] FILE Procedure.cs 
  2. ] Procedure.cs -v-001 - 2012-06-17
  3. ] Procedure.cs -v-002 - 2015-09-22

developer implementation

[.process]

  1.  

[.notes]

  1.  

status 

[previously]

  1. [2013-mm-dd][00:00] CREATE new class
    1. ]
  2. [2015-mm-dd][00:00] Validation
    1. x] PAGE view/procedures - generated by class
  3. [2015-mm-dd][00:00] add import method
  4. [00:00] documentation notes

[currently]

[next]

Details Photos Edit more

Details

ID: 1919

NAME: CLASS-Procedure

DESCRIPTION: CLASS Procedure, based on ItemCategory,

START DATE TIME: 2013-05-26 11:00:00

EST DURATION: 03:00:00

END DATE TIME: 2013-05-26 14:00:00

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities