home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
ltgFixtureMasteredit.aspx
< prev
next >
Wrap
Text File
|
2014-01-25
|
9KB
|
188 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="ltgFixtureMasteredit.aspx.vb" Inherits="ltgFixtureMasteredit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var ltgFixtureMaster_edit = new ew_Page("ltgFixtureMaster_edit");
// page properties
ltgFixtureMaster_edit.PageID = "edit"; // page ID
var EW_PAGE_ID = ltgFixtureMaster_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
ltgFixtureMaster_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) : "";
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
ltgFixtureMaster_edit.ValidateRequired = true; // uses JavaScript validation
<% Else %>
ltgFixtureMaster_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: ltg Fixture Master<br /><br />
<a href="<%= ltgFixtureMaster.ReturnUrl %>">Go Back</a></span></p>
<% ltgFixtureMaster_edit.ShowMessage() %>
<form name="fltgFixtureMasteredit" id="fltgFixtureMasteredit" method="post" onsubmit="this.action=location.pathname;return ltgFixtureMaster_edit.ValidateForm(this);">
<p />
<input type="hidden" name="a_table" id="a_table" value="ltgFixtureMaster" />
<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 ltgFixtureMaster.lfxCode.Visible Then ' lfxCode %>
<tr<%= ltgFixtureMaster.lfxCode.RowAttributes %>>
<td class="ewTableHeader">Code</td>
<td<%= ltgFixtureMaster.lfxCode.CellAttributes %>><span id="el_lfxCode">
<input type="text" name="x_lfxCode" id="x_lfxCode" size="30" maxlength="50" value="<%= ltgFixtureMaster.lfxCode.EditValue %>"<%= ltgFixtureMaster.lfxCode.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxCode.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxDescription.Visible Then ' lfxDescription %>
<tr<%= ltgFixtureMaster.lfxDescription.RowAttributes %>>
<td class="ewTableHeader">Description</td>
<td<%= ltgFixtureMaster.lfxDescription.CellAttributes %>><span id="el_lfxDescription">
<input type="text" name="x_lfxDescription" id="x_lfxDescription" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxDescription.EditValue %>"<%= ltgFixtureMaster.lfxDescription.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxDescription.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxMFG.Visible Then ' lfxMFG %>
<tr<%= ltgFixtureMaster.lfxMFG.RowAttributes %>>
<td class="ewTableHeader">MFG</td>
<td<%= ltgFixtureMaster.lfxMFG.CellAttributes %>><span id="el_lfxMFG">
<input type="text" name="x_lfxMFG" id="x_lfxMFG" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxMFG.EditValue %>"<%= ltgFixtureMaster.lfxMFG.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxMFG.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxModel.Visible Then ' lfxModel %>
<tr<%= ltgFixtureMaster.lfxModel.RowAttributes %>>
<td class="ewTableHeader">Model</td>
<td<%= ltgFixtureMaster.lfxModel.CellAttributes %>><span id="el_lfxModel">
<input type="text" name="x_lfxModel" id="x_lfxModel" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxModel.EditValue %>"<%= ltgFixtureMaster.lfxModel.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxModel.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxSerialNumber.Visible Then ' lfxSerialNumber %>
<tr<%= ltgFixtureMaster.lfxSerialNumber.RowAttributes %>>
<td class="ewTableHeader">Serial Number</td>
<td<%= ltgFixtureMaster.lfxSerialNumber.CellAttributes %>><span id="el_lfxSerialNumber">
<input type="text" name="x_lfxSerialNumber" id="x_lfxSerialNumber" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxSerialNumber.EditValue %>"<%= ltgFixtureMaster.lfxSerialNumber.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxSerialNumber.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxLamp.Visible Then ' lfxLamp %>
<tr<%= ltgFixtureMaster.lfxLamp.RowAttributes %>>
<td class="ewTableHeader">Lamp</td>
<td<%= ltgFixtureMaster.lfxLamp.CellAttributes %>><span id="el_lfxLamp">
<input type="text" name="x_lfxLamp" id="x_lfxLamp" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxLamp.EditValue %>"<%= ltgFixtureMaster.lfxLamp.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxLamp.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxFixtureTypeID.Visible Then ' lfxFixtureTypeID %>
<tr<%= ltgFixtureMaster.lfxFixtureTypeID.RowAttributes %>>
<td class="ewTableHeader">Fixture Type</td>
<td<%= ltgFixtureMaster.lfxFixtureTypeID.CellAttributes %>><span id="el_lfxFixtureTypeID">
<select id="x_lfxFixtureTypeID" name="x_lfxFixtureTypeID"<%= ltgFixtureMaster.lfxFixtureTypeID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(ltgFixtureMaster.lfxFixtureTypeID.EditValue) Then
arwrk = ltgFixtureMaster.lfxFixtureTypeID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.lfxFixtureTypeID.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><%= ltgFixtureMaster.lfxFixtureTypeID.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxLocationID.Visible Then ' lfxLocationID %>
<tr<%= ltgFixtureMaster.lfxLocationID.RowAttributes %>>
<td class="ewTableHeader">Location</td>
<td<%= ltgFixtureMaster.lfxLocationID.CellAttributes %>><span id="el_lfxLocationID">
<select id="x_lfxLocationID" name="x_lfxLocationID"<%= ltgFixtureMaster.lfxLocationID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(ltgFixtureMaster.lfxLocationID.EditValue) Then
arwrk = ltgFixtureMaster.lfxLocationID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureMaster.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><%= ltgFixtureMaster.lfxLocationID.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxChannel.Visible Then ' lfxChannel %>
<tr<%= ltgFixtureMaster.lfxChannel.RowAttributes %>>
<td class="ewTableHeader">Channel</td>
<td<%= ltgFixtureMaster.lfxChannel.CellAttributes %>><span id="el_lfxChannel">
<input type="text" name="x_lfxChannel" id="x_lfxChannel" size="30" maxlength="255" value="<%= ltgFixtureMaster.lfxChannel.EditValue %>"<%= ltgFixtureMaster.lfxChannel.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxChannel.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureMaster.lfxIsActive.Visible Then ' lfxIsActive %>
<tr<%= ltgFixtureMaster.lfxIsActive.RowAttributes %>>
<td class="ewTableHeader">Is Active</td>
<td<%= ltgFixtureMaster.lfxIsActive.CellAttributes %>><span id="el_lfxIsActive">
<%
If ew_SameStr(ltgFixtureMaster.lfxIsActive.CurrentValue, "1") Then
selwrk = " checked=""checked"""
Else
selwrk = ""
End If
%>
<input type="checkbox" name="x_lfxIsActive" id="x_lfxIsActive" value="1"<%= selwrk %><%= ltgFixtureMaster.lfxIsActive.EditAttributes %> />
</span><%= ltgFixtureMaster.lfxIsActive.CustomMsg %></td>
</tr>
<% End If %>
</table>
</div>
</td></tr></table>
<input type="hidden" name="x_lfxID" id="x_lfxID" value="<%= ew_HTMLEncode(ltgFixtureMaster.lfxID.CurrentValue) %>" />
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Edit " />
</form>
<script language="JavaScript" type="text/javascript">
<!--
// Write your table-specific startup script here
// document.write("page loaded");
//-->
</script>
</asp:Content>