home *** CD-ROM | disk | FTP | other *** search
/ 66.142.0.142 / 66.142.0.142.tar / 66.142.0.142 / ltgFixtureNoteedit.aspx < prev    next >
Text File  |  2014-01-25  |  9KB  |  205 lines

  1. <%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="ltgFixtureNoteedit.aspx.vb" Inherits="ltgFixtureNoteedit" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
  2. <asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
  3. <script type="text/javascript">
  4. <!--
  5. // Create page object
  6. var ltgFixtureNote_edit = new ew_Page("ltgFixtureNote_edit");
  7. // page properties
  8. ltgFixtureNote_edit.PageID = "edit"; // page ID
  9. var EW_PAGE_ID = ltgFixtureNote_edit.PageID; // for backward compatibility
  10. // extend page with ValidateForm function
  11. ltgFixtureNote_edit.ValidateForm = function(fobj) {
  12.     if (!this.ValidateRequired)
  13.         return true; // ignore validation
  14.     if (fobj.a_confirm && fobj.a_confirm.value == "F")
  15.         return true;
  16.     var i, elm, aelm, infix;
  17.     var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
  18.     for (i=0; i<rowcnt; i++) {
  19.         infix = (fobj.key_count) ? String(i+1) : "";
  20.         elm = fobj.elements["x" + infix + "_notFixID"];
  21.         if (elm && !ew_HasValue(elm))
  22.             return ew_OnError(this, elm, "Please enter required field - Fixture");
  23.         elm = fobj.elements["x" + infix + "_notFixID"];
  24.         if (elm && !ew_CheckInteger(elm.value))
  25.             return ew_OnError(this, elm, "Incorrect integer - Fixture");
  26.         elm = fobj.elements["x" + infix + "_notTypeID"];
  27.         if (elm && !ew_HasValue(elm))
  28.             return ew_OnError(this, elm, "Please enter required field - Note Type");
  29.         elm = fobj.elements["x" + infix + "_notShortDesc"];
  30.         if (elm && !ew_HasValue(elm))
  31.             return ew_OnError(this, elm, "Please enter required field - Short Desc");
  32.     }
  33.     return true;
  34. }
  35. <% If EW_CLIENT_VALIDATE Then %>
  36. ltgFixtureNote_edit.ValidateRequired = true; // uses JavaScript validation
  37. <% Else %>
  38. ltgFixtureNote_edit.ValidateRequired = false; // no JavaScript validation
  39. <% End If %>
  40. //-->
  41. </script>
  42. <link rel="stylesheet" type="text/css" media="all" href="calendar/calendar-win2k-1.css" title="win2k-1" />
  43. <script type="text/javascript" src="calendar/calendar.js"></script>
  44. <script type="text/javascript" src="calendar/lang/calendar-en.js"></script>
  45. <script type="text/javascript" src="calendar/calendar-setup.js"></script>
  46. <script language="JavaScript" type="text/javascript">
  47. <!--
  48. // Write your client script here, no need to add script tags.
  49. // To include another .js script, use:
  50. // ew_ClientScriptInclude("my_javascript.js"); 
  51. //-->
  52. </script>
  53. <p><span class="aspnetmaker">Edit TABLE: ltg Fixture Note<br /><br />
  54. <a href="<%= ltgFixtureNote.ReturnUrl %>">Go Back</a></span></p>
  55. <% ltgFixtureNote_edit.ShowMessage() %>
  56. <form name="fltgFixtureNoteedit" id="fltgFixtureNoteedit" method="post" onsubmit="this.action=location.pathname;return ltgFixtureNote_edit.ValidateForm(this);">
  57. <p />
  58. <input type="hidden" name="a_table" id="a_table" value="ltgFixtureNote" />
  59. <input type="hidden" name="a_edit" id="a_edit" value="U" />
  60. <table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
  61. <div class="ewGridMiddlePanel">
  62. <table cellspacing="0" class="ewTable">
  63. <% If ltgFixtureNote.notFixID.Visible Then ' notFixID %>
  64.     <tr<%= ltgFixtureNote.notFixID.RowAttributes %>>
  65.         <td class="ewTableHeader">Fixture<span class="ewRequired"> *</span></td>
  66.         <td<%= ltgFixtureNote.notFixID.CellAttributes %>><span id="el_notFixID">
  67. <% If ltgFixtureNote.notFixID.SessionValue <> "" Then %>
  68. <div<%= ltgFixtureNote.notFixID.ViewAttributes %>><%= ltgFixtureNote.notFixID.ViewValue %></div>
  69. <input type="hidden" id="x_notFixID" name="x_notFixID" value="<%= ew_HtmlEncode(ltgFixtureNote.notFixID.CurrentValue) %>">
  70. <% Else %>
  71. <input type="text" name="x_notFixID" id="x_notFixID" size="30" value="<%= ltgFixtureNote.notFixID.EditValue %>"<%= ltgFixtureNote.notFixID.EditAttributes %> />
  72. <% End If %>
  73. </span><%= ltgFixtureNote.notFixID.CustomMsg %></td>
  74.     </tr>
  75. <% End If %>
  76. <% If ltgFixtureNote.notTypeID.Visible Then ' notTypeID %>
  77.     <tr<%= ltgFixtureNote.notTypeID.RowAttributes %>>
  78.         <td class="ewTableHeader">Note Type<span class="ewRequired"> *</span></td>
  79.         <td<%= ltgFixtureNote.notTypeID.CellAttributes %>><span id="el_notTypeID">
  80. <select id="x_notTypeID" name="x_notTypeID"<%= ltgFixtureNote.notTypeID.EditAttributes %>>
  81. <%
  82. emptywrk = True
  83. If ew_IsArrayList(ltgFixtureNote.notTypeID.EditValue) Then
  84.     arwrk = ltgFixtureNote.notTypeID.EditValue
  85.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  86.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notTypeID.CurrentValue) Then
  87.             selwrk = " selected=""selected"""
  88.             emptywrk = False
  89.         Else
  90.             selwrk = ""
  91.         End If
  92. %>
  93. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  94. <%= arwrk(rowcntwrk)(1) %>
  95. </option>
  96. <%
  97.     Next
  98. End If
  99. %>
  100. </select>
  101. </span><%= ltgFixtureNote.notTypeID.CustomMsg %></td>
  102.     </tr>
  103. <% End If %>
  104. <% If ltgFixtureNote.notShortDesc.Visible Then ' notShortDesc %>
  105.     <tr<%= ltgFixtureNote.notShortDesc.RowAttributes %>>
  106.         <td class="ewTableHeader">Short Desc<span class="ewRequired"> *</span></td>
  107.         <td<%= ltgFixtureNote.notShortDesc.CellAttributes %>><span id="el_notShortDesc">
  108. <input type="text" name="x_notShortDesc" id="x_notShortDesc" size="30" maxlength="255" value="<%= ltgFixtureNote.notShortDesc.EditValue %>"<%= ltgFixtureNote.notShortDesc.EditAttributes %> />
  109. </span><%= ltgFixtureNote.notShortDesc.CustomMsg %></td>
  110.     </tr>
  111. <% End If %>
  112. <% If ltgFixtureNote.notNote.Visible Then ' notNote %>
  113.     <tr<%= ltgFixtureNote.notNote.RowAttributes %>>
  114.         <td class="ewTableHeader">Note</td>
  115.         <td<%= ltgFixtureNote.notNote.CellAttributes %>><span id="el_notNote">
  116. <textarea name="x_notNote" id="x_notNote" cols="70" rows="6"<%= ltgFixtureNote.notNote.EditAttributes %>><%= ltgFixtureNote.notNote.EditValue %></textarea>
  117. </span><%= ltgFixtureNote.notNote.CustomMsg %></td>
  118.     </tr>
  119. <% End If %>
  120. <% If ltgFixtureNote.notLPRStatusID.Visible Then ' notLPRStatusID %>
  121.     <tr<%= ltgFixtureNote.notLPRStatusID.RowAttributes %>>
  122.         <td class="ewTableHeader">Problem Status</td>
  123.         <td<%= ltgFixtureNote.notLPRStatusID.CellAttributes %>><span id="el_notLPRStatusID">
  124. <select id="x_notLPRStatusID" name="x_notLPRStatusID"<%= ltgFixtureNote.notLPRStatusID.EditAttributes %>>
  125. <%
  126. emptywrk = True
  127. If ew_IsArrayList(ltgFixtureNote.notLPRStatusID.EditValue) Then
  128.     arwrk = ltgFixtureNote.notLPRStatusID.EditValue
  129.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  130.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notLPRStatusID.CurrentValue) Then
  131.             selwrk = " selected=""selected"""
  132.             emptywrk = False
  133.         Else
  134.             selwrk = ""
  135.         End If
  136. %>
  137. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  138. <%= arwrk(rowcntwrk)(1) %>
  139. </option>
  140. <%
  141.     Next
  142. End If
  143. %>
  144. </select>
  145. </span><%= ltgFixtureNote.notLPRStatusID.CustomMsg %></td>
  146.     </tr>
  147. <% End If %>
  148. <% If ltgFixtureNote.notPriority.Visible Then ' notPriority %>
  149.     <tr<%= ltgFixtureNote.notPriority.RowAttributes %>>
  150.         <td class="ewTableHeader">Priority</td>
  151.         <td<%= ltgFixtureNote.notPriority.CellAttributes %>><span id="el_notPriority">
  152. <select id="x_notPriority" name="x_notPriority"<%= ltgFixtureNote.notPriority.EditAttributes %>>
  153. <%
  154. emptywrk = True
  155. If ew_IsArrayList(ltgFixtureNote.notPriority.EditValue) Then
  156.     arwrk = ltgFixtureNote.notPriority.EditValue
  157.     For rowcntwrk As Integer = 0 To arwrk.Count - 1
  158.         If ew_SameStr(arwrk(rowcntwrk)(0), ltgFixtureNote.notPriority.CurrentValue) Then
  159.             selwrk = " selected=""selected"""
  160.             emptywrk = False
  161.         Else
  162.             selwrk = ""
  163.         End If
  164. %>
  165. <option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
  166. <%= arwrk(rowcntwrk)(1) %>
  167. </option>
  168. <%
  169.     Next
  170. End If
  171. %>
  172. </select>
  173. </span><%= ltgFixtureNote.notPriority.CustomMsg %></td>
  174.     </tr>
  175. <% End If %>
  176. <% If ltgFixtureNote.notIsActive.Visible Then ' notIsActive %>
  177.     <tr<%= ltgFixtureNote.notIsActive.RowAttributes %>>
  178.         <td class="ewTableHeader">Is Active</td>
  179.         <td<%= ltgFixtureNote.notIsActive.CellAttributes %>><span id="el_notIsActive">
  180. <%
  181. If ew_SameStr(ltgFixtureNote.notIsActive.CurrentValue, "1") Then
  182.     selwrk = " checked=""checked"""
  183. Else
  184.     selwrk = ""
  185. End If
  186. %>
  187. <input type="checkbox" name="x_notIsActive" id="x_notIsActive" value="1"<%= selwrk %><%= ltgFixtureNote.notIsActive.EditAttributes %> />
  188. </span><%= ltgFixtureNote.notIsActive.CustomMsg %></td>
  189.     </tr>
  190. <% End If %>
  191. </table>
  192. </div>
  193. </td></tr></table>
  194. <input type="hidden" name="x_notID" id="x_notID" value="<%= ew_HTMLEncode(ltgFixtureNote.notID.CurrentValue) %>" />
  195. <p />
  196. <input type="submit" name="btnAction" id="btnAction" value="   Edit   " />
  197. </form>
  198. <script language="JavaScript" type="text/javascript">
  199. <!--
  200. // Write your table-specific startup script here
  201. // document.write("page loaded");
  202. //-->
  203. </script>
  204. </asp:Content>
  205.