edit-task
Home
Up
Delete
Task Name:
Task Description:
Atlas - properties, constructors and methods for this class
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;">[ Atlas.cs ]</h1> <h2>[what]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] WHAT = Class for managing Atlases</li> <li>] ARGS = [id,]</li> <li>] </li> </ol> <h2>[why]</h2> <ol> <li><strong>[USING]</strong></li> <ol> <li>] System - console & ... </li> <li>] System.Collections - for ArrayList, </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_atlas </li> <li>] name_atlas - </li> <li>] description_atlas - </li> <li>] database </li> <li>] qryGetAtlases </li> <li>] qryAddAtlas </li> <li>] qryDeleteAtlas </li> <li>] qryUpdateAtlas </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>]</li> </ol> <li><strong>[CONSTRUCTORS]</strong></li> <ol> <li>] Atlas() - default, empty </li> <li>] Atlas(int id) - takes id of existing atlas, instantiates this.atlas with properties of existing atlas </li> <li>] Atlas(string name, string description)- takes name and description args of atlas to create a new atlas </li> <li>] Atlas(string name) - instantiates a new instance of atlas object - based on lookup of existing atlas </li> <li>+++</li> <li>] Atlas(int id,string name, ...) - instantiates a new instance of Calendar object</li> <li>OR</li> <li>] +++</li> <li>]</li> </ol> <li><strong>[METHODS-]</strong></li> <ol> <li>] GetAtlases()</li> <ol> <li>- returns all of the Atlas</li> </ol> <li>>] ListAll() -</li> <li>>] ByID</li> <li>] add () -</li> <li>] add (name,description)</li> <ol> <li>- where=? </li> </ol> <li>] delete()</li> <ol> <li>- deletes the current instance of Atlas object </li> </ol> <li>] delete(id)</li> <ol> <li>- STATIC </li> </ol> <li>] edit()</li> <ol> <li>- delete </li> </ol> <li>] edit(name,description)</li> <ol> <li>- //?=where </li> </ol></ol> <li><strong>[METHODS-STATIC]</strong></li> <ol> <li>]</li> </ol> <li><strong>[METHODS-</strong><strong>OTHER</strong><strong>]</strong></li> <ol> <li><span>] getMaxId() </span></li> <ol> <li><span>] returns the id of the last record inserted into the <br /></span></li> </ol></ol></ol> <p> </p> <h2>[where]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>] LOCATION = App_Code/Atlas.cs</li> <li>] view/atlases</li> <li>] add/atlas</li> <li>] edit/atlas</li> <li>] delete/atlas</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-14 - Atlas.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> <div>]</div> </li> </ol> <p> </p> <p> </p> <hr /> <p> </p> <pre> + CLASSEs //---------------------------------------------------------------------------------------------------------------------------// ] atlas - 2] PROPERTIES - class //---------------------------------------------------------------------------------------------------------------------------// 3] CONSTRUCTORS - //---------------------------------------------------------------------------------------------------------------------------// 4] METHODS - // CRUD, // [STATIC], //---------------------------------------------------------------------------------------------------------------------------// 2] edit () [STATIC] ] setItemsStatus(status, ids) - sets all items to the given status ] setItemsName(name, ids) - sets all user selected items "names" to the given name ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value ] 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 </pre> <p> </p> <p> </p>