task

[ CLASS app_code/sServer.cs ]

[WHAT]

  1. [ def ] class to work with system server objects
  2. [ args ] none , id, 

[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_server
    2. ] name_server
    3. ] description_server -
    4. ] database
    5. ] qryGetServers
    6. ] qryAddServer
    7. ] qryDeleteServer
    8. ] qryUpdateServer
    9. [+++]
    10. ] count - non-persistent -
    11. ] lastIn -
    12. [objects]
    13. ] none
  3. [Constructors]
    1. ] Server()
      1. - default, empty
    2. ] Server(int id)
      1. - takes id of existing server, instantiates this.server with properties of existing server
    3. ] Server(string name, string description)
      1. - takes name and description args of server to create a new server OR
    4. ] Server(string name)
      1. - instantiates a new instance of server object - based on lookup of existing server
    5. [+++ ]
    6. Server(int id,string name, ...) - instantiates a new instance of Server object
  4. [Methods]
    1. // CRUD
    2. ] GetServers()
    3. ] ListAll()
    4. ] ById
    5. ] add ()
    6. ] add (name,description) - where=?
    7. ] delete() 
    8. ] delete(id) 
    9. ] edit() 
    10. ] 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. // OTHER
    20. ] getMaxId() - returns the id of the last record inserted into the

[WHERE]

  1. [ called from] 
    1. ] view users - 
    2. ] view user -
    3. ] add user -
    4. ] edit user -
    5.  

[WHEN]

  1. ]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] FILE Server.cs
  2. ] 2013-06-29 - ADD Constructor(by_name)
  3. ] 2012-06-14 - sServer.cs -v-001 
  4. ] 2015-09-21 - sServer.cs -v-002 

developer implementation

[.process]

  1.  

[.notes]

  1.  

[.by_date]

  1. [YYYY-mm-DD]

status 

[previously]

  1. [2015-08-13]
    1. ] move CLASS documentation from src code file

[currently]

  1. ]  

[next]

  1. ]

 

Details Photos Edit more

Details

ID: 5470

NAME: CLASS-sServer

DESCRIPTION: CLASS sServer, object to

START DATE TIME: 2015-08-13 11:36:00

EST DURATION: 01:00:00

END DATE TIME: 2015-08-13 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