task

[ CLASS app_code/sApp.cs ]

[WHAT]

  1. [ def ] class to work with system server sApp objects
  2. [ args ]

[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_sApp - 
    2. ] name_app - 
    3. ] description_app -
    4. ] parent_id - 
    5. ] database - 
    6. ] qryGetApps - all apps
    7. ] qryGetAppsInServer - all apps in a given warehouse
    8. ] qryAddApp
    9. ] qryDeleteApp 
    10. ] qryUpdateApp
    11. [+++] 
    12. ] count - non-persistent -
    13. ] lastIn -    
    14. [objects]
    15. ] sServer -  
  3. [Constructor] 
    1. ] App() - default, empty  
    2. ] App(string name, string description)- takes name and description args of server to create a new server OR
    3. ] App(string name) - instantiates a new instance of server object - based on lookup of existing server  
    4. +] App(int id,string name, ...) - instantiates a new instance of Server object
    5. ] App(int id) - takes id of existing server, instantiates this.server with properties of existing server
  4. [Methods]
    1. ] GetApps()
    2. ] ListAll()
    3. ] ById() - 
    4. ] GetAppsInServer()
    5. ] add () - add using the currently instantiated instance
    6. ] static add (name,description) - where=?, change to STATIC
    7. ] delete() 
    8. ] static delete(id) - 
    9. ] edit() 
    10. ] static edit(name,description)
    11. ] edit () 
    12. [STATIC]
    13. ] setItemsStatus(status, ids) - sets all items to the given status
    14. ] setItemsName(name, ids) - sets all user selected items "names" to the given name
    15. ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description
    16. ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value
    17. ] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value
    18. ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value
    19. ] METHODS - OTHER
    20. ]  getMaxId - returns the id of the last record inserted into the 

[WHERE]

  1. [ called from] 
    1. ] PAGE add/app - 
    2. ] PAGE view/apps - 
    3. ] PAGE import_systems - 

[WHEN]

  1. ]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] FILE sApp.cs
  2. [2012-mm-dd] sApp -v-001 - ] 
  3. [2015-09-21] sApp -v-002 - ] NEW import() method ] REMOVE comments-detailed, comments format, comments content

developer implementation

[.process]

  1.  

[.notes]

  1.  

status 

[previously]

  1. [2015-09-22]
    1. ] # # - move CLASS documentation from src code file to here
  2. [00:00]
    1. ] # # - new METHOD GetAppsInServer(src_db, svr_id) - for import functionality, 

[currently]

  1. ]  

[next]

  1. ] FINISH clean up comments/documentation 
  2. ] REMOVE App, _App

 

Details Photos Edit more

Details

ID: 5624

NAME: CLASS-sApp

DESCRIPTION: CLASS sApp, object to manage sApp instances

START DATE TIME: 2015-09-22 11:36:00

EST DURATION: 01:00:00

END DATE TIME: 2015-09-22 12:36:00

STATUS: To-Do

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities