[ Calendar.cs ]
[what]
- ] Calendar.cs - documenting properties, constructors, methods and ... for this application component
[why]
- ]
[where]
- [USING]
- ] System - console & ...
- ] System.Collections - for
- ] System.Collections.Generic - for ieNumerable, used by ...
- ] System Dynamic - for Dynamic types, used by ..
- ] System.Web - for httpContext, used by ... to access Session var ( get current_db)
- ] WebMatrix.Data - for Database methods, used by ... ] all
- ] WebMatrix.Data.StronglyTyped - for data library ST that converts dynamics to ST objects
- [PROPERTIES]
- ] id_calendar
- ] name_calendar -
- ] description_calendar -
- ] database
- ] qryGetCalendars
- ] qryAddCalendar
- ] qryDeleteCalendar
- ] qryUpdateCalendar
- [+++]
- ] count - non-persistent -
- ] lastIn
- [objects]
- ]
- [PROPERTIES.objects]
- ] none
- [CONSTRUCTORS]
- ] Calendar() - default, empty
- ] Calendar(int id) - takes id of existing calendar, instantiates this.calendar with properties of existing calendar
- ] Calendar(string name, string description)- takes name and description args of calendar to create a new calendar
- OR
- ] Calendar(string name) - instantiates a new instance of Calendar object - based on lookup of existing calendar
- +++
- ] Calender (int id,string name, ...) - instantiates a new instance of Calendar object
- [METHODS-]
- ] GetCalendars() -
- // ] ListAll() -
- // ] ById
- ] add ()
- ] add (Name,Description)
- ] delete()
- ] delete(id)
- ] edit()
- ] edit(Name,Description)
- ] addDefaultPlans
- [METHODS-STATIC]
- ]
- [METHODS-OTHER]
- ] getMaxId - returns the id of the last record inserted into the
[where]
- ] LOCATION = App_Code/Calender.cs
- ] view/calendars
- ] add/calendar
- ] edit/calendar
- ]
[when]
- ]
[example]
- ]
[how-to]
- ]
[reference]
- ] 2012-06-13 - Calendar.cs - NEW FILE REF #
developer implementation
[-process]
-
[-notes]
-
status
[-previous-]
- ]
[-current-]
-
]
[-next-]
- [2017-03-15] NEW task
- x] add explicit db.connection.close, db.close statements to each method that accesses database
- ] EXCEPT where method is - return db.qry
- [2017-04-11] NEW task
- 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]