Advertisement
Advertisement
| 07.07.2008 at 06:47AM PDT, ID: 23543307 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: 123: 124: 125: 126: 127: 128: 129: 130: 131: 132: 133: 134: 135: 136: 137: 138: 139: 140: 141: 142: 143: 144: 145: 146: 147: 148: 149: 150: 151: 152: 153: 154: 155: 156: 157: 158: 159: 160: 161: 162: 163: 164: 165: 166: 167: 168: 169: 170: 171: 172: 173: 174: 175: 176: 177: 178: 179: 180: 181: 182: 183: 184: 185: 186: 187: 188: 189: 190: 191: 192: 193: 194: 195: 196: 197: 198: 199: 200: 201: 202: 203: 204: 205: 206: 207: 208: 209: 210: 211: 212: 213: 214: 215: 216: 217: 218: 219: 220: 221: 222: 223: 224: 225: 226: 227: 228: 229: 230: 231: 232: 233: 234: 235: 236: 237: 238: 239: 240: 241: 242: 243: 244: 245: 246: 247: 248: 249: 250: 251: 252: 253: 254: 255: 256: 257: 258: 259: 260: 261: 262: 263: 264: 265: 266: 267: 268: 269: 270: 271: 272: 273: 274: 275: 276: 277: 278: 279: 280: 281: 282: 283: 284: 285: 286: 287: 288: 289: 290: 291: 292: 293: 294: 295: 296: 297: 298: 299: 300: 301: 302: 303: 304: 305: 306: 307: 308: 309: 310: 311: 312: 313: 314: 315: 316: 317: 318: 319: 320: 321: 322: 323: 324: 325: 326: 327: 328: 329: 330: 331: 332: 333: 334: 335: 336: 337: |
this is the root page, its a cfform with tabs....
<!--- Check EventID was passed --->
<!--- If yes, edit, else add --->
<cfset EditMode=IsDefined("URL.EventID")>
<!--- If edit mode, get row to edit --->
<cfif EditMode>
<!--- Get Record --->
<cfquery name="Get_Event" datasource="Pearson">
SELECT *
FROM Events, Site
WHERE Events.EventID = #URL.EventID# AND Events.Site = Site.ID
</cfquery>
<!--- Save variables --->
<cfset Name=trim(Get_Event.Name)>
<cfset Desc=trim(Get_Event.Event_Desc)>
<cfset event_type=trim(Get_Event.Name)>
<cfset Start_Date=DateFormat(Get_Event.Start_Date, "MM/DD/YYYY")>
<cfset End_Date=DateFormat(Get_Event.End_Date, "MM/DD/YYYY")>
<cfset building=trim(Get_Event.site)>
<cfset Start_Time=trim(Get_Event.Start_Time)>
<cfset End_Time=trim(Get_Event.End_Time)>
<cfset Event_ID=trim(Get_Event.EventID)>
<cfset Status=trim(Get_Event.Status)>
<cfset Opened_By=trim(Get_Event.Opened_By)>
<cfset Comments=trim(Get_Event.Comments)>
<cfset MODE="UPDATE">
<cfset FormTitle="Update An Event">
<cfset ButtonText="Update">
<cfelse>
<!--- Save variables --->
<cfset Name="">
<cfset Desc="">
<cfset event_type="">
<cfset Start_Date="">
<cfset End_Date="">
<cfset building="">
<cfset Start_Time="">
<cfset End_Time="">
<cfset Event_ID="0">
<cfset Status="">
<cfset Opened_By="">
<cfset Comments="">
<cfset MODE="INSERT">
<cfset FormTitle="Add A Event">
<cfset ButtonText="Insert">
</cfif>
<cfquery name="Get_Building" datasource="Pearson">
SELECT *
FROM Site
ORDER BY ID
</cfquery>
<cfquery name="GetEventType" datasource="4NYPElectrical">
SELECT *
FROM EventTypes
</cfquery>
<cfform format="flash" method="post" name="EventData" skin="haloblue" action="EventAddUpdate.cfm">
<cfif EditMode>
<!--- Hide Primary Key (must change EventID to something public and use EventID as Hidden 3-20-08 --->
<cfinput type="hidden" name="EventID" value="#Get_Event.EventID#">
</cfif>
<!---Tab Nav.--->
<cfformgroup type="tabnavigator">
<!---Page 1 General--->
<cfformgroup type="page" label="General Info">
<cfselect name="building"
label="Building:"
query="Get_Building"
value="ID"
display="SiteName"
message="BUILDING is required!"
required="yes"
selected="#VARIABLES.building#" >
<option value="">Select Building</option>
</cfselect>
<cfinput type="text"
label="Description:"
name="Description"
value="#Desc#"
message="Description is required!"
required="yes"
validateat="onserver, onsubmit">
<cfformitem type="text">Select Event Parameters:</cfformitem>
<cfformgroup type="horizontal">
<cfformgroup type="vertical">
<cfinput name="E_Call" type="checkbox" label="Emergency Call" />
<cfinput name="WO_Repair" type="checkbox" label="Work Order:Repair" />
<cfinput name="WO_Stby" type="checkbox" label="Work Order:Stand-By" />
</cfformgroup>
<cfformgroup type="vertical">
<cfinput name="Maint" type="checkbox" label="Scheduled Maintenance" />
<cfinput name="ElecTest" type="checkbox" label="Electrical Testing" />
<cfinput name="Other" type="checkbox" label="Other" />
</cfformgroup>
</cfformgroup>
<cfformitem type="text">Select Date and Time Parameters:</cfformitem>
<cfformgroup type="horizontal">
<cfformgroup type="vertical">
<cfinput type="datefield"
label="Start Date:"
name="Start_Date"
value="#Start_Date#"
message="START DATE is required!"
required="yes"
validateat="onserver, onsubmit"
maxlength="150">
<cfinput type="text"
label="Start Time:"
name="Start_Time"
value="#Start_Time#"
validateat="onserver, onsubmit"
maxlength="25" >
</cfformgroup>
<cfformgroup type="vertical">
<cfinput type="datefield"
label="End Date:"
name="End_Date"
value="#End_Date#"
message="END DATE is required!"
required="yes"
validateat="onserver, onsubmit"
maxlength="150">
<cfinput type="text"
name="End_Time"
value="#End_Time#"
maxlength="25"
label="End Time:"
validateat="onserver, onsubmit" validate="time">
</cfformgroup>
</cfformgroup>
<cfselect name="Status" label="Status:">
<option value="0">Select Status</option>
<option value="1">Scheduled</option>
<option value="2">Completed</option>
<option value="3">Cancelled</option>
</cfselect>
<cfinput type="text"
label="Opened By:"
name="Opened_By"
bind="#SESSION.auth.firstName# #SESSION.auth.lastName#"
validateat="onserver, onsubmit"
maxlength="25">
<cftextarea value="#Comments#" name="Comments" label="Comments:" height="90"></cftextarea>
<cfinput type="hidden" name="UserID" bind="#SESSION.auth.UserID#">
<cfinput type="hidden" name="MODE" value="#MODE#">
</cfformgroup>
<!---Page 2 Equipment--->
<cfformgroup type="page" label="Equipment">
<cfformitem type="html"><b>Equipment Scheduled For This Event</b></cfformitem>
<cfquery name="Equip_Grid" datasource="Pearson">
SELECT *
FROM Events, Event_Sched_Equip, Assets, Interval
WHERE Events.EventID=Event_Sched_Equip.Event_Number AND Assets.ID=Event_Sched_Equip.Asset AND Event_Sched_Equip.Event_Number=#Event_ID# AND Interval.Interval_ID=Event_Sched_Equip.Service_Type
</cfquery>
<cfgrid name="Equip"
query="Equip_Grid"
height="350">
<cfgridcolumn name="DeviceName" header="Device Type">
<cfgridcolumn name="Label" header="Device Label">
<cfgridcolumn name="Floor" header="Floor">
<cfgridcolumn name="Room" header="Room">
<cfgridcolumn name="Interval_Name" header="Service Type">
</cfgrid>
<cfformgroup type="horizontal">
<cfinput type="button" name="UPS_ADD" value="ADD" onclick="getURL('Event_Equip_Select.cfm?Event_ID=#URLEncodedFormat(Trim(Event_ID))#','_blank')">
<cfinput type="button" name="UPS_DEL" value="DELETE" enabled="false">
</cfformgroup>
</cfformgroup>
<!---Page 3 Proposals--->
<cfformgroup type="page" label="Proposals"></cfformgroup>
<!---Page 4 MOP--->
<cfformgroup type="page" label="M.O.P.'s">
<cfquery name="Events" datasource="4NYPElectrical">
SELECT *
FROM Event_MOPs
WHERE EventID = #Event_ID#
ORDER BY MOP_Rev
</cfquery>
<body>
<cfoutput query="Events">
<cfformitem type="html" height="20">#Name# - Rev. #MOP_Rev# - <a href="#MOP#">Click Here to View</a> </cfformitem>
</cfoutput></cfformgroup>
<!---Page 5 Sup Docs--->
<cfformgroup type="page" label="Supporting Documents"></cfformgroup>
<!---Page 6 Comp Reports--->
<cfformgroup type="page" label="Completion Reports"></cfformgroup>
<!---Page 7 history--->
<cfformgroup type="page" label="Event History"></cfformgroup>
</cfformgroup>
<cfinput type="submit" name="BtnSubmit" value="#ButtonText#">
</cfform>
this is the pop-up window. it's a little cumbersome since I have two dependent select boxes.
<body>
<cfquery name="Get_Site" datasource="Pearson">
Select *
From Site
</cfquery>
<cfquery name="Get_DeviceType" datasource="Pearson">
SELECT *
FROM Assets, Site
WHERE Assets.Site=Site.SiteAbrev
ORDER By DeviceType
</cfquery>
<cfquery name="Get_Devices" datasource="Pearson">
SELECT *
FROM Assets
ORDER BY Label
</cfquery>
<cfquery name="Get_Interval" datasource="Pearson">
SELECT *
FROM Interval
ORDER BY Interval_Name
</cfquery>
<cfsavecontent variable="actionPopulateDeviceType">
if(_global.arrDeviceType == undefined) _global.arrDeviceType = selectDeviceType.dataProvider.slice(0);
var arrDeviceType:Array = _global.arrDeviceType;
selectDeviceType.removeAll();
for(var i = 0; i < arrDeviceType.length; i++)
{
var item = arrDeviceType[i].data.split('|');
if(item[1] == selectSite.value )
{
selectDeviceType.addItem(arrDeviceType[i].label,item[0]);
}
}
selectDeviceType.enabled = (selectDeviceType.length >0) ? true:false;
</cfsavecontent>
<cfsavecontent variable="actionPopulateDevice">
if(_global.arrDevice == undefined) _global.arrDevice = selectDevice.dataProvider.slice(0);
var arrDevice:Array = _global.arrDevice;
selectDevice.removeAll();
for(var i = 0; i < arrDevice.length; i++)
{
var item = arrDevice[i].data.split('|');
if(item[1] == selectDeviceType.value )
{
selectDevice.addItem(arrDevice[i].label,item[0]);
}
}
selectDevice.enabled = (selectDevice.length >0) ? true:false;
</cfsavecontent>
Use the form below to assign equipment to this event.
<cfoutput>#Event_ID#</cfoutput>
<p>
<cfform name="EquipAdd" format="flash" action="Event_Equip_Add.cfm">
<cfselect queryPosition="below" label="Site:"
name="selectSite" query="Get_Site" value="SiteAbrev"
display="SiteName" width="300" required="yes" message="Select Site Please!" onChange="#actionPopulateDeviceType#">
<option value="">Please select a Site</option>
</cfselect>
<cfselect queryPosition="below" disabled="true" label="Device Type:"
name="selectDeviceType" query="Get_DeviceType" value="DeviceType"
display="DeviceName" width="300" required="yes" message="Select Device Type Please!" onChange="#actionPopulateDevice#">
<cfoutput query="Get_DeviceType" group="DeviceType">
<option value="">Please select a Device Type</option>
<option value="#DeviceType#|#Site#">#DeviceName#</option>
</cfoutput>
</cfselect>
<cfselect queryPosition="below" disabled="true" label="Select Device:"
name="selectDevice" query="Get_Devices" value="ID"
display="Label" width="300" required="yes" message="Select Device Please!" onChange="">
<cfoutput query="Get_Devices">
<option value="">Please select a Device</option>
<option value="#ID#|#DeviceType#">#Label#</option>
</cfoutput>
</cfselect>
<cfselect queryPosition="below" disabled="false" label="Select Service Type:"
name="selectInterval" query="Get_Interval" value="Interval_ID"
display="Interval_Name" width="300" required="yes" message="Select Device Interval!">
</cfselect>
<cfinput type="hidden" name="EventID" value="#Event_ID#">
<cfinput type="submit" name="BtnSubmit" value="Submit">
</cfform>
|