home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
66.142.0.142
/
66.142.0.142.tar
/
66.142.0.142
/
askScheduleRecurringform.aspx
< prev
next >
Wrap
Text File
|
2012-03-18
|
19KB
|
594 lines
<%@ Page Language="VB" MasterPageFile="masterpage.master" ValidateRequest="false" AutoEventWireup="false" CodeFile="askScheduleRecurringform.aspx.vb" Inherits="askScheduleRecurringform" CodeFileBaseClass="AspNetMaker7_tfpssnet" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
<!--
// Create page object
var askScheduleRecurring_form = new ew_Page("askScheduleRecurring_form");
// page properties
askScheduleRecurring_form.PageID = "list"; // page ID
var EW_PAGE_ID = askScheduleRecurring_form.PageID; // for backward compatibility
// extend page with validate function for search
askScheduleRecurring_form.ValidateSearch = function(fobj) {
if (!this.ValidateRequired)
return true; // ignore validation
var infix = "";
elm = fobj.elements["x" + infix + "_startDate"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Start Date");
elm = fobj.elements["x" + infix + "_startDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - Start Date");
elm = fobj.elements["x" + infix + "_endDate"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - End Date");
elm = fobj.elements["x" + infix + "_endDate"];
if (elm && !ew_CheckUSDate(elm.value))
return ew_OnError(this, elm, "Incorrect date, format = mm/dd/yyyy - End Date");
// elm = fobj.elements["x" + infix + "_schCallTime"];
// if (elm && !ew_CheckTime(elm.value))
// return ew_OnError(this, elm, "Incorrect time (hh:mm:ss) - Call Time");
// elm = fobj.elements["x" + infix + "_schStartTime"];
// if (elm && !ew_CheckTime(elm.value))
// return ew_OnError(this, elm, "Incorrect time (hh:mm:ss) - Start Time");
// elm = fobj.elements["x" + infix + "_schEndTime"];
// if (elm && !ew_CheckTime(elm.value))
// return ew_OnError(this, elm, "Incorrect time (hh:mm:ss) - End Time");
// elm = fobj.elements["x" + infix + "_schOutTime"];
// if (elm && !ew_CheckTime(elm.value))
// return ew_OnError(this, elm, "Incorrect time (hh:mm:ss) - Out Time");
elm = fobj.elements["x" + infix + "_schEvtID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Event");
elm = fobj.elements["x" + infix + "_schPartsID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Part");
elm = fobj.elements["x" + infix + "_schLocID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Location");
elm = fobj.elements["x" + infix + "_schEmpID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Employee");
elm = fobj.elements["x" + infix + "_schPosID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Position");
elm = fobj.elements["x" + infix + "_schTypID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Type");
elm = fobj.elements["x" + infix + "_schDepID"];
if (elm && !ew_HasValue(elm))
return ew_OnError(this, elm, "Please enter required field - Department");
for (var i=0;i<fobj.elements.length;i++) {
var elem = fobj.elements[i];
if (elem.name.substring(0,2) == "s_" || elem.name.substring(0,3) == "sv_")
elem.value = "";
}
elm = fobj.elements["key_m"];
if (!ew_KeySelected(elm)) {
return ew_OnError(this, elm, "No checkboxes selected for recuring dates");
}
return true;
}
<% If EW_CLIENT_VALIDATE Then %>
askScheduleRecurring_form.ValidateRequired = true; // uses JavaScript validation
<% Else %>
askScheduleRecurring_form.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"></script>
<%
' Load recordset
Rs = askScheduleRecurring_form.LoadRecordset()
askScheduleRecurring_form.lStartRec = 1
If askScheduleRecurring_form.lDisplayRecs <= 0 Then ' Display all records
askScheduleRecurring_form.lDisplayRecs = askScheduleRecurring_form.lTotalRecs
End If
%>
<p><span class="aspnetmaker" style="white-space: nowrap;">SCHEDULE MASTER: Recurring Shifts
</span></p>
<a href="tblSchedulelist.aspx">Go Back</a></span></p>
<% askScheduleRecurring_form.ShowMessage()%>
<form name="faskScheduleReportlistsrch" id="faskScheduleReportlistsrch" class="ewForm" onsubmit="return askScheduleRecurring_form.ValidateSearch(this);">
<input type="hidden" id="t" name="t" value="u" />
<%
' Render for search
askScheduleReport.RowType = EW_ROWTYPE_SEARCH
' Render row
askScheduleRecurring_form.RenderRow()
%>
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<!-- Start Date -->
<tr>
<td class="ewTableHeader">Starting Date<span class="ewRequired"> *</span></td>
<td><span id="el_startDate">
<input type="text" name="x_startDate" id="x_startDate" value="<%= ew_CurrentDate %>" />
<img src="images/calendar.png" id="cal_x_startDate" name="cal_x_startDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField: "x_startDate", // ID of the input field
ifFormat: "%m/%d/%Y", // the date format
button: "cal_x_startDate" // ID of the button
});
</script>
</span></td>
</tr>
<!-- End Date -->
<tr>
<td class="ewTableHeader">Ending Date<span class="ewRequired"> *</span></td>
<td><span id="el_endDate">
<input type="text" name="x_endDate" id="x_endDate" value="<%= ew_FormatDateTime(tlcLastDayOfMonth(ew_CurrentDate),6) %>" />
<img src="images/calendar.png" id="Img1" name="cal_x_endDate" alt="Pick a date" style="cursor:pointer;cursor:hand;" />
<script type="text/javascript">
Calendar.setup({
inputField: "x_endDate", // ID of the input field
ifFormat: "%m/%d/%Y", // the date format
button: "cal_x_endDate" // ID of the button
});
</script>
</span></td>
</tr>
</table>
<!-- checkbox matrix -->
<table cellspacing="0" class="ewTable">
<tr>
<td>
</td>
<td>
Sun
</td>
<td>
Mon
</td>
<td>
Tue
</td>
<td>
Wed
</td>
<td>
Thu
</td>
<td>
Fri
</td>
<td>
Sat
</td>
</tr>
<tr>
<td>
All
</td>
<td>
<input type="checkbox" id="key_1" name="key_1" value="1" />
</td>
<td>
<input type="checkbox" id="key_2" name="key_2" value="2" />
</td>
<td>
<input type="checkbox" id="key_3" name="key_3" value="3" />
</td>
<td>
<input type="checkbox" id="key_4" name="key_4" value="4" />
</td>
<td>
<input type="checkbox" id="key_5" name="key_5" value="5" />
</td>
<td>
<input type="checkbox" id="key_6" name="key_6" value="6" />
</td>
<td>
<input type="checkbox" id="key_7" name="key_7" value="7" />
</td>
</tr>
<tr>
<td>
1st
</td>
<td>
<input type="checkbox" id="key_8" name="key_8" value="8" />
</td>
<td>
<input type="checkbox" id="key_9" name="key_9" value="9" />
</td>
<td>
<input type="checkbox" id="key_10" name="key_10" value="10" />
</td>
<td>
<input type="checkbox" id="key_11" name="key_11" value="11" />
</td>
<td>
<input type="checkbox" id="key_12" name="key_12" value="12" />
</td>
<td>
<input type="checkbox" id="key_13" name="key_13" value="13" />
</td>
<td>
<input type="checkbox" id="key_14" name="key_14" value="14" />
</td>
</tr>
<tr>
<td>
2nd
</td>
<td>
<input type="checkbox" id="key_15" name="key_15" value="15" />
</td>
<td>
<input type="checkbox" id="key_16" name="key_16" value="16" />
</td>
<td>
<input type="checkbox" id="key_17" name="key_17" value="17" />
</td>
<td>
<input type="checkbox" id="key_18" name="key_18" value="18" />
</td>
<td>
<input type="checkbox" id="key_19" name="key_19" value="19" />
</td>
<td>
<input type="checkbox" id="key_20" name="key_20" value="20" />
</td>
<td>
<input type="checkbox" id="key_21" name="key_21" value="21" />
</td>
</tr>
<tr>
<td>
3rd
</td>
<td>
<input type="checkbox" id="key_22" name="key_22" value="22" />
</td>
<td>
<input type="checkbox" id="key_23" name="key_23" value="23" />
</td>
<td>
<input type="checkbox" id="key_24" name="key_24" value="24" />
</td>
<td>
<input type="checkbox" id="key_25" name="key_25" value="25" />
</td>
<td>
<input type="checkbox" id="key_26" name="key_26" value="26" />
</td>
<td>
<input type="checkbox" id="key_27" name="key_27" value="27" />
</td>
<td>
<input type="checkbox" id="key_28" name="key_28" value="28" />
</td>
</tr>
<tr>
<td>
4th
</td>
<td>
<input type="checkbox" id="key_29" name="key_29" value="29" />
</td>
<td>
<input type="checkbox" id="key_30" name="key_30" value="30" />
</td>
<td>
<input type="checkbox" id="key_31" name="key_31" value="31" />
</td>
<td>
<input type="checkbox" id="key_32" name="key_32" value="32" />
</td>
<td>
<input type="checkbox" id="key_33" name="key_33" value="33" />
</td>
<td>
<input type="checkbox" id="key_34" name="key_34" value="34" />
</td>
<td>
<input type="checkbox" id="key_35" name="key_35" value="35" />
</td>
</tr>
<tr>
<td>
5th
</td>
<td>
<input type="checkbox" id="key_36" name="key_36" value="36" />
</td>
<td>
<input type="checkbox" id="key_37" name="key_37" value="37" />
</td>
<td>
<input type="checkbox" id="key_38" name="key_38" value="38" />
</td>
<td>
<input type="checkbox" id="key_39" name="key_39" value="39" />
</td>
<td>
<input type="checkbox" id="key_40" name="key_40" value="40" />
</td>
<td>
<input type="checkbox" id="key_41" name="key_41" value="41" />
</td>
<td>
<input type="checkbox" id="key_42" name="key_42" value="42" />
</td>
</tr>
</table></div></table>
<br /><br />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable" width="50px">
<tr>
<td style="width:10px">
<input type="checkbox" id="x_biweekly" name="x_biweekly" value="Y" />
</td>
<td>
Bi-weekly (from Start Date)
</td>
</tr>
</table>
</div>
</table>
<br /><br />
<table cellspacing="0" class="ewGrid"><tr><td class="ewGridContent">
<div class="ewGridMiddlePanel">
<table cellspacing="0" class="ewTable">
<!-- Event -->
<tr>
<td class="ewTableHeader">Event<span class="ewRequired"> *</span></td>
<td><span id="el_schEvtID">
<select id="x_schEvtID" name="x_schEvtID"<%= askScheduleReport.schEvtID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schEvtID.EditValue) Then
arwrk = askScheduleReport.schEvtID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schEvtID.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></td>
</tr>
<!-- Parts -->
<tr>
<td class="ewTableHeader">Part<span class="ewRequired"> *</span></td>
<td><span id="Span1">
<select id="_schPartsID" name="x_schPartsID"<%= askScheduleReport.schPartsID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schPartsID.EditValue) Then
arwrk = askScheduleReport.schPartsID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schPartsID.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></td>
</tr>
<!-- Call Time -->
<tr>
<td class="ewTableHeader">Call Time</td>
<td><span id="el_schCallTime">
<input type="text" id="x_schCallTime" name="x_schCallTime">
</span></td>
</tr>
<!-- Start Time -->
<tr>
<td class="ewTableHeader">Start Time</td>
<td><span id="el_schStartTime">
<input type="text" name="x_schStartTime" id="x_schStartTime" />
</span></td>
</tr>
<!-- End Time -->
<tr>
<td class="ewTableHeader">End Time</td>
<td><span id="el_schEndTime">
<input type="text" name="x_schEndTime" id="x_schEndTime" />
</span></td>
</tr>
<!-- Out Time -->
<tr>
<td class="ewTableHeader">Out Time</td>
<td><span id="el_schOutTime">
<input type="text" name="x_schOutTime" id="x_schOutTime" />
</span></td>
</tr>
<!-- Location -->
<tr>
<td class="ewTableHeader">Location<span class="ewRequired"> *</span></td>
<td><span id="el_schLocID">
<select id="x_schLocID" name="x_schLocID">
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schLocID.EditValue) Then
arwrk = askScheduleReport.schLocID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schLocID.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></td>
</tr>
<!-- Employee -->
<tr>
<td class="ewTableHeader">Employee<span class="ewRequired"> *</span></td>
<td><span class="el_schEmpID">
<select id="x_schEmpID" name="x_schEmpID"<%= askScheduleReport.schEmpID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schEmpID.EditValue) Then
arwrk = askScheduleReport.schEmpID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schEmpID.AdvancedSearch.SearchValue) 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></td>
</tr>
<!-- Position -->
<tr>
<td class="ewTableHeader">Position<span class="ewRequired"> *</span></td>
<td><span id="el_schPosID">
<select id="x_schPosID" name="x_schPosID">
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schPosID.EditValue) Then
arwrk = askScheduleReport.schPosID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schPosID.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></td>
</tr>
<!-- Type -->
<tr>
<td class="ewTableHeader">Type<span class="ewRequired"> *</span></td>
<td><span id="el_schTypID">
<select id="x_schTypID" name="x_schTypID"<%= askScheduleReport.schTypID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schTypID.EditValue) Then
arwrk = askScheduleReport.schTypID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schTypID.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></td>
</tr>
<!-- Department -->
<tr>
<td class="ewTableHeader">Department<span class="ewRequired"> *</span></td>
<td><span id="el_schDepID">
<select id="x_schDepID" name="x_schDepID"<%= askScheduleReport.schDepID.EditAttributes %>>
<%
emptywrk = True
If ew_IsArrayList(askScheduleReport.schDepID.EditValue) Then
arwrk = askScheduleReport.schDepID.EditValue
For rowcntwrk As Integer = 0 To arwrk.Count - 1
If ew_SameStr(arwrk(rowcntwrk)(0), askScheduleReport.schDepID.CurrentValue) Then
selwrk = " selected=""selected"""
emptywrk = False
Else
selwrk = ""
End If
%>
<option value="<%= ew_HtmlEncode(arwrk(rowcntwrk)(0)) %>"<%= selwrk %>>
<%= arwrk(rowcntwrk)(1) %>
<% If ew_NotEmpty(arwrk(rowcntwrk)(2)) Then %>
<%= ew_ValueSeparator(rowcntwrk) %><%= arwrk(rowcntwrk)(2) %>
<% End If %>
</option>
<%
Next
End If
%>
</select>
</span></td>
</tr>
<!-- notes -->
<tr>
<td class="ewTableHeader">Notes</td>
<td><span id="el_schNotes">
<textarea name="x_schNotes" id="x_schNotes" cols="35" rows="4"></textarea>
</span></td>
</tr>
</table>
</div>
</td></tr></table>
<p />
<input type="submit" name="btnAction" id="btnAction" value=" Submit " />
</form>
</asp:Content>