home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
tblLPRadd.aspx
< prev
next >
Wrap
Text File
|
2012-02-19
|
15KB
|
341 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblLPRadd.aspx.vb" Inherits="tblLPRadd" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var tblLPR_add = new ew_Page("tblLPR_add");
// page properties
tblLPR_add.PageID = "add"; // page ID
var EW_PAGE_ID = tblLPR_add.PageID; // for backward compatibility
// extend page with ValidateForm function
tblLPR_add.ValidateForm = function(fobj) {
if (!this.ValidateRequired)
return true; // ignore validation
if (fobj.a_confirm && fobj.a_confirm.value == "F")
return true;
var i, elm, aelm, infix;
var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
for (i=0; i<rowcnt; i++) {
infix = (fobj.key_count) ? String(i+1) : "";
elm = fobj.elements["x" + infix + "_lprEmpID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Employee");
elm = fobj.elements["x" + infix + "_lprDate"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Date");
elm = fobj.elements["x" + infix + "_lprDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Date");
elm = fobj.elements["x" + infix + "_lprLocationID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Location");
elm = fobj.elements["x" + infix + "_lprFixtureLocationID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Fixture Location");
elm = fobj.elements["x" + infix + "_lprFixtureTypeID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Fixture Type");
elm = fobj.elements["x" + infix + "_lprFixtureNumber"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Fixture Number");
elm = fobj.elements["x" + infix + "_lprChannelNumber"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Channel Number");
elm = fobj.elements["x" + infix + "_lprChannelNumber"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Channel Number");
elm = fobj.elements["x" + infix + "_lprPriority"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Priority");
elm = fobj.elements["x" + infix + "_lprShortDesc"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Short Desc");
elm = fobj.elements["x" + infix + "_lprSTID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Status");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
tblLPR_add.ValidateRequired = true; // uses JavaScript validation
<% Else %>
tblLPR_add.ValidateRequired = false; // no JavaScript validation
<% End If %>
// search highlight properties
tblLPR_add.ShowHighlightText = "Show highlight";
tblLPR_add.HideHighlightText = "Hide highlight";
//-->
</script>
<link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
<script type="text/javascript" src="calendar/calendar.js"></script>
<script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="calendar/calendar-setup.js"></script>
<script language="JavaScript" type="text/javascript">
<!--
// Write your client script here, no need to add script tags.
// To include another .js script, use:
// ew_ClientScriptInclude("my_javascript.js");
//-->
</script>
<p><span class="aspnetmaker">Add to TABLE: Lighting Problem Reporting<br /><br />
<a href="<%= tblLPR.ReturnUrl %>">Go Back</a></span></p>
<% tblLPR_add.ShowMessage() %>
<form name="ftblLPRadd" id="ftblLPRadd" method="post" onsubmit="this.action=location.pathname;return tblLPR_add.ValidateForm(this);">
<p />
<input type="hidden" name="t" id="t" value="tblLPR" />
<input type="hidden" name="a_add" id="a_add" value="A" />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<% If tblLPR.lprEmpID.Visible Then ' lprEmpID %>
<tr<%= tblLPR.lprEmpID.RowAttributes %>>
<td class="ewTableHeader">Employee<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprEmpID.CellAttributes %>><span id="el_lprEmpID">
<% If Not Security.IsAdmin And Security.IsLoggedIn() Then ' Non system admin %>
<div<%= tblLPR.lprEmpID.ViewAttributes %>><%= tblLPR.lprEmpID.EditValue %></div>
<input type="hidden" name="x_lprEmpID" id="x_lprEmpID" value="<%= ew_HTMLEncode(tblLPR.lprEmpID.CurrentValue) %>" />
<% Else %>
<select id="x_lprEmpID" name="x_lprEmpID"<%= tblLPR.lprEmpID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprEmpID.EditValue) Then
arwrk = tblLPR.lprEmpID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprEmpID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
<% End If %>
</span><%= tblLPR.lprEmpID.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprDate.Visible Then ' lprDate %>
<tr<%= tblLPR.lprDate.RowAttributes %>>
<td class="ewTableHeader">Date<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprDate.CellAttributes %>><span id="el_lprDate">
<input type="text" name="x_lprDate" id="x_lprDate" value="<%= tblLPR.lprDate.EditValue %>"<%= tblLPR.lprDate.EditAttributes %> />
<img src="images/calendar.png" id="cal_x_lprDate" name="cal_x_lprDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField : "x_lprDate", // ID of the input field
ifFormat : "%m/%d/%Y", // the date format
button : "cal_x_lprDate" // ID of the button
});
</script>
</span><%= tblLPR.lprDate.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprLocationID.Visible Then ' lprLocationID %>
<tr<%= tblLPR.lprLocationID.RowAttributes %>>
<td class="ewTableHeader">Location<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprLocationID.CellAttributes %>><span id="el_lprLocationID">
<select id="x_lprLocationID" name="x_lprLocationID"<%= tblLPR.lprLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprLocationID.EditValue) Then
arwrk = tblLPR.lprLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprLocationID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblLPR.lprLocationID.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprFixtureLocationID.Visible Then ' lprFixtureLocationID %>
<tr<%= tblLPR.lprFixtureLocationID.RowAttributes %>>
<td class="ewTableHeader">Fixture Location<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprFixtureLocationID.CellAttributes %>><span id="el_lprFixtureLocationID">
<select id="x_lprFixtureLocationID" name="x_lprFixtureLocationID"<%= tblLPR.lprFixtureLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprFixtureLocationID.EditValue) Then
arwrk = tblLPR.lprFixtureLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprFixtureLocationID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblLPR.lprFixtureLocationID.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprFixtureTypeID.Visible Then ' lprFixtureTypeID %>
<tr<%= tblLPR.lprFixtureTypeID.RowAttributes %>>
<td class="ewTableHeader">Fixture Type<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprFixtureTypeID.CellAttributes %>><span id="el_lprFixtureTypeID">
<select id="x_lprFixtureTypeID" name="x_lprFixtureTypeID"<%= tblLPR.lprFixtureTypeID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprFixtureTypeID.EditValue) Then
arwrk = tblLPR.lprFixtureTypeID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprFixtureTypeID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblLPR.lprFixtureTypeID.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprFixtureNumber.Visible Then ' lprFixtureNumber %>
<tr<%= tblLPR.lprFixtureNumber.RowAttributes %>>
<td class="ewTableHeader">Fixture Number</td>
<td<%= tblLPR.lprFixtureNumber.CellAttributes %>><span id="el_lprFixtureNumber">
<input type="text" name="x_lprFixtureNumber" id="x_lprFixtureNumber" size="30" maxlength="255" value="<%= tblLPR.lprFixtureNumber.EditValue %>"<%= tblLPR.lprFixtureNumber.EditAttributes %> />
</span><%= tblLPR.lprFixtureNumber.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprChannelNumber.Visible Then ' lprChannelNumber %>
<tr<%= tblLPR.lprChannelNumber.RowAttributes %>>
<td class="ewTableHeader">Channel Number<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprChannelNumber.CellAttributes %>><span id="el_lprChannelNumber">
<input type="text" name="x_lprChannelNumber" id="x_lprChannelNumber" size="30" value="<%= tblLPR.lprChannelNumber.EditValue %>"<%= tblLPR.lprChannelNumber.EditAttributes %> />
</span><%= tblLPR.lprChannelNumber.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprSTID.Visible Then ' lprSTID %>
<% If Session("tfpssnet_Status_Userlevel") = -1 Or Session("tfpssnet_Status_UserLevel") = 3 Or Session("tfpssnet_Status_Userlevel") = 4 Then%>
<tr<%= tblLPR.lprSTID.RowAttributes %>>
<td class="ewTableHeader">Status<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprSTID.CellAttributes %>><span id="el_lprSTID">
<select id="x_lprSTID" name="x_lprSTID"<%= tblLPR.lprSTID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprSTID.EditValue) Then
arwrk = tblLPR.lprSTID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprSTID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblLPR.lprSTID.CustomMsg %></td>
</tr>
<% End If %>
<% End If %>
<% If tblLPR.lprPriority.Visible Then ' lprPriority %>
<% If Session("tfpssnet_Status_Userlevel") = -1 Or Session("tfpssnet_Status_UserLevel") = 3 Or Session("tfpssnet_Status_Userlevel") = 4 Then%>
<tr<%= tblLPR.lprPriority.RowAttributes %>>
<td class="ewTableHeader">Priority<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprPriority.CellAttributes %>><span id="el_lprPriority">
<select id="x_lprPriority" name="x_lprPriority"<%= tblLPR.lprPriority.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblLPR.lprPriority.EditValue) Then
arwrk = tblLPR.lprPriority.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblLPR.lprPriority.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
</option>
<%
Next
End If
%>
</select>
</span><%= tblLPR.lprPriority.CustomMsg %></td>
</tr>
<% End If %>
<% End If %>
<% If tblLPR.lprShortDesc.Visible Then ' lprShortDesc %>
<tr<%= tblLPR.lprShortDesc.RowAttributes %>>
<td class="ewTableHeader">Short Desc<span class="ewRequired"> *</span></td>
<td<%= tblLPR.lprShortDesc.CellAttributes %>><span id="el_lprShortDesc">
<input type="text" name="x_lprShortDesc" id="x_lprShortDesc" size="30" maxlength="255" value="<%= tblLPR.lprShortDesc.EditValue %>"<%= tblLPR.lprShortDesc.EditAttributes %> />
</span><%= tblLPR.lprShortDesc.CustomMsg %></td>
</tr>
<% End If %>
<% If tblLPR.lprDesc.Visible Then ' lprDesc %>
<tr<%= tblLPR.lprDesc.RowAttributes %>>
<td class="ewTableHeader">Description</td>
<td<%= tblLPR.lprDesc.CellAttributes %>><span id="el_lprDesc">
<textarea name="x_lprDesc" id="x_lprDesc" cols="70" rows="10"<%= tblLPR.lprDesc.EditAttributes %>><%= tblLPR.lprDesc.EditValue %></textarea>
</span><%= tblLPR.lprDesc.CustomMsg %></td>
</tr>
<% End If %>
</table>
<td width="10px"> </td>
<td width="250px"><font style="font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: x-small; color: #FF0000">Be sure to inital and date your entry!</font>
<font style="font-size: xx-small; font-family: Arial, Helvetica, sans-serif">
<p>Give a short description of the problem that INCLUDES the answers to the following applicable questions;</p>
<p>- How long was the light powered on before the problem occurred?</p>
<p>- Did a reset temporarily resolve the problem?</p>
<p>- Does the light continue to respond to the board despite the problem or outage?</p>
<p>- Are there any errors displayed on the light? If yes and you can read the errors, what are they?</p>
<p>- Was there anything different than normal during startup leading to the fault?</p>
<p>- Did the fixture have any audible or visibile indications leading up to the fault?</p>
<p> </p></font></td>
</tr></table>
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Add " />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
</asp:Content>