task

[ CLASS app_code/Library.cs ]

[WHAT]

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

[WHY]

  1. [Properties]
    1. ] public int id_library;
    2. ] public string name_library; 
    3. ] public string description_library; 
    4. ] private const string qryGetLibraries = "...qry..."
    5. ] private const string qryGetLibrary = "...qry..."
    6. ] private const string qryGetLibraryNamed = "...qry...";
    7. ] private const string qryAddLibrary = "...qry..."
    8. ] private const string qryDeleteLibrary = "...qry..."
    9. ] private const stringqryUpdateLibrary = "...qry..."
    10. ] public static Database sospep 
    11. {
    12.  get
    13. }
  2. [Constructors]
    1. ] Library()
    2. ] Library(string name, string description)
    3. ] Library(int id_library)
    4. ] Library(string name_library)
  3. [Methods]
    1. ] public static IEnumberable<Library>GetLibraries()
    2. ] public static IEnumberable<Library>GetLibraries(int start, int quantity)
    3. ] public void add()
    4. ] public static void add(string name, string description)
    5. ] public void delete()
    6. ] publis static void delete(int id_library)
    7. ] public void edit()
    8. ] public static void edit(string name, string description, int id)
    9. ] public static int getMaxId() 
    10. ] public static long recordCount()
    11. ] public static void import(string src_db, string dest_db, int src_library_id)
    12. ] public static int copy(string src_db, int id_community)

[WHERE]

  1. [ called from] 
    1. ] PAGE - view/libraries -
    2. ] PAGE - view/library -
    3. ] PAGE - edit/library -
    4. ] PAGE - add/library - 

[WHEN]

  1. ]

[EXAMPLE]

[HOW-TO]

  1. ]

[REFERENCE]

  1. ] CLASS Warehouse.cs

developer implementation

[.process]

  1.  

[.notes]

  1.  

[.by_date]

  1. [YYYY-mm-DD]

status 

[previously]

  1. [2013-05-26][00:00] NEW task IN 
    1. x] # # - CREATE new class, 
    2. x] used Warehouse.cs as template
    3. x] REPLACING the LibraryData methods class 
  2. [00:00] NEW task IN
    1. x] Validation - w3c
    2. x] PAGE view/libraries - generated by class
  3. [2017-04-10][00:00] NEW task
    1. x] # # - FIX-PRB-7140 - adding explicit db.close.connection, db.close statements to all methods that open connections, call db
    2. x] # # - adding explicit db.Dispose()
    3. ] EXCEPT methods where code is return db.call 

[currently]

[next]

  1. ]
Details Photos Edit more

Details

ID: 1725

NAME: CLASS-Library

DESCRIPTION: CLASS Library - (.cs based on Warehouse, doc based on ...)

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