edit-task
Home
Up
Delete
Task Name:
Task Description:
CLASS - Calendar - documenting properties, constructors, methods and ... for this application component
TaskGroup ID:
Start Date:
Start Time:
Duration:
Priority:
Status:
To Do
Completed
In Process
Add Photo:
Owner ID:
Content:
use HTML
Edit Content
<h1 style="text-align: center;">[ Calendar.cs ]</h1> <h2>[what]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] Calendar.cs - documenting properties, constructors, methods and ... for this application component</li> </ol> <h2>[why]</h2> <ol> <li>] </li> </ol> <h2>[where]</h2> <ol> <li><strong>[USING]</strong></li> <ol> <li>] System - console & ... </li> <li>] System.Collections - for </li> <li>] System.Collections.Generic - for ieNumerable, used by ...</li> <li>] System Dynamic - for Dynamic types, used by ..</li> <li>] System.Web - for httpContext, used by ... to access Session var ( get current_db)</li> <li>] WebMatrix.Data - for Database methods, used by ... ] all</li> <li>] WebMatrix.Data.StronglyTyped - for data library ST that converts dynamics to ST objects</li> </ol> <li><strong>[PROPERTIES]</strong></li> <ol> <li>] id_calendar</li> <li>] name_calendar - </li> <li>] description_calendar - </li> <li>] database</li> <li>] qryGetCalendars</li> <li>] qryAddCalendar </li> <li>] qryDeleteCalendar</li> <li>] qryUpdateCalendar </li> <li><strong>[+++] </strong></li> <li>] count - non-persistent -</li> <li>] lastIn</li> <li><strong>[objects]</strong></li> <li>]</li> </ol> <li><strong>[PROPERTIES.objects]</strong></li> <ol> <li>] none</li> </ol> <li><strong>[CONSTRUCTORS]</strong></li> <ol> <li>] Calendar() - default, empty </li> <li>] Calendar(int id) - takes id of existing calendar, instantiates this.calendar with properties of existing calendar</li> <li>] Calendar(string name, string description)- takes name and description args of calendar to create a new calendar</li> <li>OR</li> <li>] Calendar(string name) - instantiates a new instance of Calendar object - based on lookup of existing calendar </li> <li>+++</li> <li>] Calender (int id,string name, ...) - instantiates a new instance of Calendar object </li> </ol> <li><strong>[METHODS-]</strong></li> <ol> <li>] GetCalendars() -</li> <li>// ] ListAll() -</li> <li>// ] ById</li> <li>] add () </li> <li>] add (Name,Description) </li> <li>] delete() </li> <li>] delete(id) </li> <li>] edit() </li> <li>] edit(Name,Description) </li> <li>] addDefaultPlans</li> </ol> <li><strong>[METHODS-STATIC]</strong></li> <ol> <li>]</li> </ol> <li><strong>[METHODS-</strong><strong>OTHER</strong><strong>]</strong></li> <ol> <li><span><span style="text-decoration: line-through;">] </span>getMaxId - returns the id of the last record inserted into the </span></li> </ol></ol> <h2>[where]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] LOCATION = App_Code/Calender.cs</li> <li>] view/calendars</li> <li>] add/calendar</li> <li>] edit/calendar</li> <li>]</li> </ol> <h2>[when]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>]</li> </ol> <h2>[example]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>]</li> </ol> <h2>[how-to]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>]</li> </ol> <h2>[reference]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] 2012-06-13 - Calendar.cs - NEW FILE REF # </li> </ol><hr /> <h1 style="text-align: center;">developer implementation</h1> <h2>[-process]</h2> <ol> <li> <div> </div> </li> </ol> <h2>[-notes]</h2> <ol> <li> <div> </div> </li> </ol><hr /> <h1 style="text-align: center;">status</h1> <h2>[-previous-]</h2> <ol> <li> ]</li> </ol> <h2>[-current-]</h2> <ol> <li> <div> ]</div> </li> </ol> <h2>[-next-]</h2> <ol> <li><strong>[2017-03-15] NEW task</strong></li> <ol> <li>x] add explicit db.connection.close, db.close statements to each method that accesses database</li> <li>] EXCEPT where method is - return db.qry</li> </ol> <li><strong>[2017-04-11] NEW task</strong></li> <ol> <li>x] ADD explicit db.Dispose(); statement </li> </ol></ol> <p> </p> <p> </p> <hr /> <p> </p> <pre> 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] </pre> <p> </p> <p> </p>