edit-task
Home
Up
Delete
Task Name:
Task Description:
CLASS sApp, object to manage sApp instances
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;">[ CLASS app_code/sApp.cs ]</h1> <h2>[WHAT]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>[ def ] class to work with system server sApp objects</li> <li>[ args ]</li> </ol> <h2>[WHY]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li style="font-size: 10px; font-weight: normal;"><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 style="font-size: 10px; font-weight: normal;"><strong>[Properties]</strong></li> <ol> <li>] id_sApp - </li> <li>] name_app - </li> <li>] description_app -</li> <li>] parent_id - </li> <li>] database - </li> <li>] qryGetApps - all apps</li> <li>] qryGetAppsInServer - all apps in a given warehouse</li> <li>] qryAddApp</li> <li>] qryDeleteApp </li> <li>] qryUpdateApp</li> <li>[+++] </li> <li>] count - non-persistent -</li> <li>] lastIn - </li> <li>[objects]</li> <li>] sServer - </li> </ol> <li style="font-size: 10px; font-weight: normal;"><strong>[Constructor] </strong></li> <ol> <li style="font-size: 10px; font-weight: normal;"> <div style="font-weight: normal; display: inline !important;">] App() - default, empty </div> </li> <li style="font-size: 10px; font-weight: normal;"> <div style="font-weight: normal; display: inline !important;">] App(string name, string description)- takes name and description args of server to create a new server OR</div> </li> <li style="font-size: 10px; font-weight: normal;"> <div style="font-weight: normal; display: inline !important;">] App(string name) - instantiates a new instance of server object - based on lookup of existing server </div> </li> <li style="font-size: 10px; font-weight: normal;"> <div style="font-weight: normal; display: inline !important;">+] App(int id,string name, ...) - instantiates a new instance of Server object</div> </li> <li style="font-size: 10px; font-weight: normal;"> <div style="font-weight: normal; display: inline !important;">] App(int id) - takes id of existing server, instantiates this.server with properties of existing server</div> </li> </ol> <li style="font-size: 10px; font-weight: normal;"><strong>[Methods]</strong></li> <ol> <li style="font-size: 10px; font-weight: normal;">] GetApps()</li> <li style="font-size: 10px; font-weight: normal;">] ListAll()</li> <li style="font-size: 10px; font-weight: normal;">] ById() - </li> <li style="font-size: 10px; font-weight: normal;">] GetAppsInServer()</li> <li style="font-size: 10px; font-weight: normal;">] add () - add using the currently instantiated instance</li> <li style="font-size: 10px; font-weight: normal;">] static add (name,description) - where=?, change to STATIC</li> <li style="font-size: 10px; font-weight: normal;">] delete() </li> <li style="font-size: 10px; font-weight: normal;">] static delete(id) - </li> <li style="font-size: 10px; font-weight: normal;">] edit() </li> <li style="font-size: 10px; font-weight: normal;">] static edit(name,description)</li> <li style="font-size: 10px; font-weight: normal;">] edit () </li> <li style="font-size: 10px; font-weight: normal;"><strong>[STATIC]</strong></li> <li style="font-size: 10px; font-weight: normal;">] setItemsStatus(status, ids) - sets all items to the given status</li> <li style="font-size: 10px; font-weight: normal;">] setItemsName(name, ids) - sets all user selected items "names" to the given name</li> <li style="font-size: 10px; font-weight: normal;">] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description</li> <li style="font-size: 10px; font-weight: normal;">] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value</li> <li style="font-size: 10px; font-weight: normal;">] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value</li> <li style="font-size: 10px; font-weight: normal;">] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value</li> <li style="font-size: 10px; font-weight: normal;"><strong>] METHODS - OTHER</strong></li> <li style="font-size: 10px; font-weight: normal;">] getMaxId - returns the id of the last record inserted into the </li> </ol></ol> <h2>[WHERE]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li>[ called from] </li> <ol> <li>] PAGE add/app - </li> <li>] PAGE view/apps - </li> <li>] PAGE import_systems - </li> </ol></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>] FILE sApp.cs</li> <li>[2012-mm-dd] sApp <a href="/view/task?id=5630" target="_blank">-v-001</a> - ] </li> <li>[2015-09-21] sApp <a href="/view/task?id=5631" target="_blank">-v-002</a> - ] NEW import() method ] REMOVE comments-detailed, comments format, comments content</li> </ol><hr style="font-size: 10px; font-weight: normal; text-align: start;" /> <h1 style="text-align: center;">developer implementation</h1> <h2>[.process]</h2> <ol style="font-size: 10px; font-weight: normal; text-align: start;"> <li> </li> </ol> <h2>[.notes]</h2> <div> <div><ol> <li> </li> </ol></div> </div> <hr style="font-size: 10px; font-weight: normal; text-align: start;" /> <h1 style="text-align: center;">status<span style="font-size: 10px;"> </span></h1> <h2>[previously]</h2> <ol> <li><strong>[2015-09-22]</strong></li> <ol> <li>] # # - move CLASS documentation from src code file to here</li> </ol> <li><strong>[00:00]</strong></li> <ol> <li>] # # - new METHOD GetAppsInServer(src_db, svr_id) - for import functionality, </li> </ol></ol> <h2>[currently]</h2> <ol> <li>] </li> </ol> <h2>[next]</h2> <ol> <li>] FINISH clean up comments/documentation </li> <li>] REMOVE App, _App</li> </ol> <p> </p>