home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
ltgFixtureNoteedit.aspx
< prev
next >
Wrap
Text File
|
2014-01-25
|
9KB
|
205 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="ltgFixtureNoteedit.aspx.vb" Inherits="ltgFixtureNoteedit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var ltgFixtureNote_edit = new ew_Page("ltgFixtureNote_edit");
// page properties
ltgFixtureNote_edit.PageID = "edit"; // page ID
var EW_PAGE_ID = ltgFixtureNote_edit.PageID; // for backward compatibility
// extend page with ValidateForm function
ltgFixtureNote_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 + "_notFixID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Fixture");
elm = fobj.elements["x" + infix + "_notFixID"];
if (elm && !ew_CheckInteger(elm.value))
return ew_OnError(this, elm, "Incorrect integer - Fixture");
elm = fobj.elements["x" + infix + "_notTypeID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Note Type");
elm = fobj.elements["x" + infix + "_notShortDesc"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Short Desc");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
ltgFixtureNote_edit.ValidateRequired = true; // uses JavaScript validation
<% Else %>
ltgFixtureNote_edit.ValidateRequired = false; // no JavaScript validation
<% End If %>
//-->
</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">Edit TABLE: ltg Fixture Note<br /><br />
<a href="<%= ltgFixtureNote.ReturnUrl %>">Go Back</a></span></p>
<% ltgFixtureNote_edit.ShowMessage() %>
<form name="fltgFixtureNoteedit" id="fltgFixtureNoteedit" method="post" onsubmit="this.action=location.pathname;return ltgFixtureNote_edit.ValidateForm(this);">
<p />
<input type="hidden" name="a_table" id="a_table" value="ltgFixtureNote" />
<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 ltgFixtureNote.notFixID.Visible Then ' notFixID %>
<tr<%= ltgFixtureNote.notFixID.RowAttributes %>>
<td class="ewTableHeader">Fixture<span class="ewRequired"> *</span></td>
<td<%= ltgFixtureNote.notFixID.CellAttributes %>><span id="el_notFixID">
<% If ltgFixtureNote.notFixID.SessionValue <> "" Then %>
<div<%= ltgFixtureNote.notFixID.ViewAttributes %>><%= ltgFixtureNote.notFixID.ViewValue %></div>
<input type="hidden" id="x_notFixID" name="x_notFixID" value="<%= ew_HtmlEncode(ltgFixtureNote.notFixID.CurrentValue) %>">
<% Else %>
<input type="text" name="x_notFixID" id="x_notFixID" size="30" value="<%= ltgFixtureNote.notFixID.EditValue %>"<%= ltgFixtureNote.notFixID.EditAttributes %> />
<% End If %>
</span><%= ltgFixtureNote.notFixID.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notTypeID.Visible Then ' notTypeID %>
<tr<%= ltgFixtureNote.notTypeID.RowAttributes %>>
<td class="ewTableHeader">Note Type<span class="ewRequired"> *</span></td>
<td<%= ltgFixtureNote.notTypeID.CellAttributes %>><span id="el_notTypeID">
<select id="x_notTypeID" name="x_notTypeID"<%= ltgFixtureNote.notTypeID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(ltgFixtureNote.notTypeID.EditValue) Then
arwrk = ltgFixtureNote.notTypeID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notTypeID.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><%= ltgFixtureNote.notTypeID.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notShortDesc.Visible Then ' notShortDesc %>
<tr<%= ltgFixtureNote.notShortDesc.RowAttributes %>>
<td class="ewTableHeader">Short Desc<span class="ewRequired"> *</span></td>
<td<%= ltgFixtureNote.notShortDesc.CellAttributes %>><span id="el_notShortDesc">
<input type="text" name="x_notShortDesc" id="x_notShortDesc" size="30" maxlength="255" value="<%= ltgFixtureNote.notShortDesc.EditValue %>"<%= ltgFixtureNote.notShortDesc.EditAttributes %> />
</span><%= ltgFixtureNote.notShortDesc.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notNote.Visible Then ' notNote %>
<tr<%= ltgFixtureNote.notNote.RowAttributes %>>
<td class="ewTableHeader">Note</td>
<td<%= ltgFixtureNote.notNote.CellAttributes %>><span id="el_notNote">
<textarea name="x_notNote" id="x_notNote" cols="70" rows="6"<%= ltgFixtureNote.notNote.EditAttributes %>><%= ltgFixtureNote.notNote.EditValue %></textarea>
</span><%= ltgFixtureNote.notNote.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notLPRStatusID.Visible Then ' notLPRStatusID %>
<tr<%= ltgFixtureNote.notLPRStatusID.RowAttributes %>>
<td class="ewTableHeader">Problem Status</td>
<td<%= ltgFixtureNote.notLPRStatusID.CellAttributes %>><span id="el_notLPRStatusID">
<select id="x_notLPRStatusID" name="x_notLPRStatusID"<%= ltgFixtureNote.notLPRStatusID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(ltgFixtureNote.notLPRStatusID.EditValue) Then
arwrk = ltgFixtureNote.notLPRStatusID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notLPRStatusID.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><%= ltgFixtureNote.notLPRStatusID.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notPriority.Visible Then ' notPriority %>
<tr<%= ltgFixtureNote.notPriority.RowAttributes %>>
<td class="ewTableHeader">Priority</td>
<td<%= ltgFixtureNote.notPriority.CellAttributes %>><span id="el_notPriority">
<select id="x_notPriority" name="x_notPriority"<%= ltgFixtureNote.notPriority.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(ltgFixtureNote.notPriority.EditValue) Then
arwrk = ltgFixtureNote.notPriority.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notPriority.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><%= ltgFixtureNote.notPriority.CustomMsg %></td>
</tr>
<% End If %>
<% If ltgFixtureNote.notIsActive.Visible Then ' notIsActive %>
<tr<%= ltgFixtureNote.notIsActive.RowAttributes %>>
<td class="ewTableHeader">Is Active</td>
<td<%= ltgFixtureNote.notIsActive.CellAttributes %>><span id="el_notIsActive">
<%
If ew_SameStr(ltgFixtureNote.notIsActive.CurrentValue, "1") Then
selwrk = " checked=""checked"""
Else
selwrk = ""
End If
%>
<input type="checkbox" name="x_notIsActive" id="x_notIsActive" value="1"<%= selwrk %><%= ltgFixtureNote.notIsActive.EditAttributes %> />
</span><%= ltgFixtureNote.notIsActive.CustomMsg %></td>
</tr>
<% End If %>
</table>
</div>
</td></tr></table>
<input type="hidden" name="x_notID" id="x_notID" value="<%= ew_HTMLEncode(ltgFixtureNote.notID.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>