home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
tblFixtureMasteredit.aspx
< prev
next >
Wrap
Text File
|
2010-08-26
|
8KB
|
163 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="tblFixtureMasteredit.aspx.vb" Inherits="tblFixtureMasteredit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var tblFixtureMaster_edit = new ew_Page("tblFixtureMaster_edit");
// page properties
tblFixtureMaster_edit.PageID = "edit"; // page ID
var EW_PAGE_ID = tblFixtureMaster_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
tblFixtureMaster_edit.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 + "_lfxMFG"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Manufacturer");
elm = fobj.elements["x" + infix + "_lfxModelType"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Model / Type");
elm = fobj.elements["x" + infix + "_lfxLocationID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Location");
elm = fobj.elements["x" + infix + "_lfxHangPos"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Hang Pos");
elm = fobj.elements["x" + infix + "_lfxChannel"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Channel");
elm = fobj.elements["x" + infix + "_lfxChannel"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Channel");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
tblFixtureMaster_edit.ValidateRequired = true; // uses JavaScript validation
<% Else %>
tblFixtureMaster_edit.ValidateRequired = false; // no JavaScript validation
<% End If %>
//-->
</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">Edit TABLE: Fixture Master<br /><br />
<a href="<%= tblFixtureMaster.ReturnUrl %>">Go Back</a></span></p>
<% tblFixtureMaster_edit.ShowMessage() %>
<form name="ftblFixtureMasteredit" id="ftblFixtureMasteredit" method="post" onsubmit="this.action=location.pathname;return tblFixtureMaster_edit.ValidateForm(this);">
<p />
<input type="hidden" name="a_table" id="a_table" value="tblFixtureMaster" />
<input type="hidden" name="a_edit" id="a_edit" value="U" />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<% If tblFixtureMaster.lfxMFG.Visible Then ' lfxMFG %>
<tr<%= tblFixtureMaster.lfxMFG.RowAttributes %>>
<td class="ewTableHeader">Manufacturer<span class="ewRequired"> *</span></td>
<td<%= tblFixtureMaster.lfxMFG.CellAttributes %>><span id="el_lfxMFG">
<input type="text" name="x_lfxMFG" id="x_lfxMFG" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxMFG.EditValue %>"<%= tblFixtureMaster.lfxMFG.EditAttributes %> />
</span><%= tblFixtureMaster.lfxMFG.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxModelType.Visible Then ' lfxModelType %>
<tr<%= tblFixtureMaster.lfxModelType.RowAttributes %>>
<td class="ewTableHeader">Model / Type<span class="ewRequired"> *</span></td>
<td<%= tblFixtureMaster.lfxModelType.CellAttributes %>><span id="el_lfxModelType">
<input type="text" name="x_lfxModelType" id="x_lfxModelType" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxModelType.EditValue %>"<%= tblFixtureMaster.lfxModelType.EditAttributes %> />
</span><%= tblFixtureMaster.lfxModelType.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxSerialNumber.Visible Then ' lfxSerialNumber %>
<tr<%= tblFixtureMaster.lfxSerialNumber.RowAttributes %>>
<td class="ewTableHeader">Serial Number</td>
<td<%= tblFixtureMaster.lfxSerialNumber.CellAttributes %>><span id="el_lfxSerialNumber">
<input type="text" name="x_lfxSerialNumber" id="x_lfxSerialNumber" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxSerialNumber.EditValue %>"<%= tblFixtureMaster.lfxSerialNumber.EditAttributes %> />
</span><%= tblFixtureMaster.lfxSerialNumber.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxLamp.Visible Then ' lfxLamp %>
<tr<%= tblFixtureMaster.lfxLamp.RowAttributes %>>
<td class="ewTableHeader">Lamp</td>
<td<%= tblFixtureMaster.lfxLamp.CellAttributes %>><span id="el_lfxLamp">
<input type="text" name="x_lfxLamp" id="x_lfxLamp" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxLamp.EditValue %>"<%= tblFixtureMaster.lfxLamp.EditAttributes %> />
</span><%= tblFixtureMaster.lfxLamp.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxLocationID.Visible Then ' lfxLocationID %>
<tr<%= tblFixtureMaster.lfxLocationID.RowAttributes %>>
<td class="ewTableHeader">Location<span class="ewRequired"> *</span></td>
<td<%= tblFixtureMaster.lfxLocationID.CellAttributes %>><span id="el_lfxLocationID">
<select id="x_lfxLocationID" name="x_lfxLocationID"<%= tblFixtureMaster.lfxLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(tblFixtureMaster.lfxLocationID.EditValue) Then
arwrk = tblFixtureMaster.lfxLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), tblFixtureMaster.lfxLocationID.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><%= tblFixtureMaster.lfxLocationID.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxHangPos.Visible Then ' lfxHangPos %>
<tr<%= tblFixtureMaster.lfxHangPos.RowAttributes %>>
<td class="ewTableHeader">Hang Pos<span class="ewRequired"> *</span></td>
<td<%= tblFixtureMaster.lfxHangPos.CellAttributes %>><span id="el_lfxHangPos">
<input type="text" name="x_lfxHangPos" id="x_lfxHangPos" size="30" maxlength="255" value="<%= tblFixtureMaster.lfxHangPos.EditValue %>"<%= tblFixtureMaster.lfxHangPos.EditAttributes %> />
</span><%= tblFixtureMaster.lfxHangPos.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxChannel.Visible Then ' lfxChannel %>
<tr<%= tblFixtureMaster.lfxChannel.RowAttributes %>>
<td class="ewTableHeader">Channel<span class="ewRequired"> *</span></td>
<td<%= tblFixtureMaster.lfxChannel.CellAttributes %>><span id="el_lfxChannel">
<input type="text" name="x_lfxChannel" id="x_lfxChannel" size="30" value="<%= tblFixtureMaster.lfxChannel.EditValue %>"<%= tblFixtureMaster.lfxChannel.EditAttributes %> />
</span><%= tblFixtureMaster.lfxChannel.CustomMsg %></td>
</tr>
<% End If %>
<% If tblFixtureMaster.lfxNotes.Visible Then ' lfxNotes %>
<tr<%= tblFixtureMaster.lfxNotes.RowAttributes %>>
<td class="ewTableHeader">Notes</td>
<td<%= tblFixtureMaster.lfxNotes.CellAttributes %>><span id="el_lfxNotes">
<textarea name="x_lfxNotes" id="x_lfxNotes" cols="35" rows="4"<%= tblFixtureMaster.lfxNotes.EditAttributes %>><%= tblFixtureMaster.lfxNotes.EditValue %></textarea>
</span><%= tblFixtureMaster.lfxNotes.CustomMsg %></td>
</tr>
<% End If %>
</table>
</div>
</td></tr></table>
<input type="hidden" name="x_lfxID" id="x_lfxID" value="<%= ew_HTMLEncode(tblFixtureMaster.lfxID.CurrentValue) %>" />
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Submit " />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
</asp:Content>