task

[ Calendar.cs ]

[what]

  1. ] Calendar.cs - documenting properties, constructors, methods and ... for this application component

[why]

  1. ]  

[where]

  1. [USING]
    1. ] System - console & ... 
    2. ] System.Collections - for 
    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_calendar
    2. ] name_calendar - 
    3. ] description_calendar -   
    4. ] database
    5. ] qryGetCalendars
    6. ] qryAddCalendar 
    7. ] qryDeleteCalendar
    8. ] qryUpdateCalendar 
    9. [+++] 
    10. ] count - non-persistent -
    11. ] lastIn
    12. [objects]
    13. ]
  3. [PROPERTIES.objects]
    1. ] none
  4. [CONSTRUCTORS]
    1. ] Calendar() - default, empty 
    2. ] Calendar(int id) - takes id of existing calendar, instantiates this.calendar with properties of existing calendar
    3. ] Calendar(string name, string description)- takes name and description args of calendar to create a new calendar
    4. OR
    5. ] Calendar(string name) - instantiates a new instance of Calendar object - based on lookup of existing calendar 
    6. +++
    7. ] Calender (int id,string name, ...) - instantiates a new instance of Calendar object  
  5. [METHODS-]
    1. ] GetCalendars() -
    2. // ] ListAll() -
    3. // ] ById
    4. ] add () 
    5. ] add (Name,Description) 
    6. ] delete() 
    7. ] delete(id) 
    8. ] edit() 
    9. ] edit(Name,Description)  
    10. ] addDefaultPlans
  6. [METHODS-STATIC]
    1. ]
  7. [METHODS-OTHER]
    1. ] getMaxId - returns the id of the last record inserted into the 

[where]

  1. ] LOCATION = App_Code/Calender.cs
  2. ] view/calendars
  3. ] add/calendar
  4. ] edit/calendar
  5. ]

[when]

  1. ]

[example]

  1. ]

[how-to]

  1. ]

[reference]

  1. ] 2012-06-13 - Calendar.cs - NEW FILE REF # 

developer implementation

[-process]

  1.  

[-notes]

  1.  

status

[-previous-]

  1.  ]

[-current-]

  1.  ]

[-next-]

  1. [2017-03-15] NEW task
    1. x] add explicit db.connection.close, db.close statements to each method that accesses database
    2. ] EXCEPT where method is - return db.qry
  2. [2017-04-11] NEW task
    1. x] ADD explicit db.Dispose(); statement 

 

 


 

 4] METHODS - // CRUD, // [STATIC], 
//---------------------------------------------------------------------------------------------------------------------------//
    
????
    2] edit ()
       [STATIC]
       x] setItemsStatus(status, ids) - sets all items to the given status
       x] setItemsName(name, ids) - sets all user selected items "names" to the given name
       x] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description
       x] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value
       x] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value
        ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value
        ] 
5] METHODS - OTHER
    1] 
[REFERENCE]
   

 

 

Details Photos Edit more

Details

ID: 5471

NAME: CLASS-Calendar

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

START DATE TIME: 2014-04-25 13:04:14

EST DURATION: 01:00:00

END DATE TIME: 2014-04-25 14:04:14

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities