or
If ExceedsLimit(e.Appointment, e.Appointment.Resources.GetResourceByType("Resource").Key) OrElse ConflictsWithOccurrences(e.Appointment, e.Appointment.Resources.GetResourceByType("Resurs").Key) Then
...
End If
If ExceedsLimit(e.ModifiedAppointment, e.ModifiedAppointment.Resources.GetResourceByType("Resurs").Key) OrElse ConflictsWithOccurrences(e.ModifiedAppointment, e.ModifiedAppointment.Resources.GetResourceByType("Resurs").Key) Then
...
End If
Protected Function ExceedsLimit(ByVal apt As Appointment, ByVal ResourceID As String) As Boolean
Dim appointmentsCount As Integer = 0
Dim allAppointments As New AppointmentCollection
'Fill temporary appointments collection for use in comparison
'Subjectfield is used for comparison on ResourceID
For Each dr As DataRow In cS.GetReservationsByResourceID(ResourceID)
DirectCast(allAppointments, IList).Add(New Appointment(dr("ID"), dr("Start"), dr("End"), dr("ResourceID")))
Next
'Search through all appointments from all calendar instances and compare to current moved/changed/inserted appointment
For Each existingApt As Appointment In allAppointments.GetAppointmentsInRange(apt.Start, apt.[End])
If existingApt.Visible And existingApt.Subject = ResourceID Then
appointmentsCount += 1
End If
' If this is a recurring appointment, we will also check if it's occurrences
' overlap with other appointments in the current view
Dim parsedRule As RecurrenceRule
If RecurrenceRule.TryParse(existingApt.RecurrenceRule.ToString(), parsedRule) And existingApt.Subject = ResourceID Then
parsedRule.SetEffectiveRange(RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd)
For Each occurrence As DateTime In parsedRule.Occurrences
appointmentsCount = RadScheduler1.Appointments.GetAppointmentsInRange(occurrence, occurrence.Add(existingApt.Duration)).Count
If (appointmentsCount > (AppointmentsLimit - 1)) Then
Return True
End If
Next
End If
Next
Return (appointmentsCount > AppointmentsLimit - 1)
End Function
Protected Function ConflictsWithOccurrences(ByVal apt As Appointment, ByVal ResourceID As String) As Boolean
Dim allAppointments As New AppointmentCollection
'Fill temporary appointments collection for use in comparison
'Subjectfield is used for comparison on ResourceID
For Each dr As DataRow In cS.GetReservationsByResourceID(ResourceID)
DirectCast(allAppointments, IList).Add(New Appointment(dr("ID"), dr("Start"), dr("End"), dr("ResourceID")))
Next
Dim parsedRule As RecurrenceRule
For Each existingApt As Appointment In allAppointments.GetAppointmentsInRange(apt.Start, apt.[End])
If RecurrenceRule.TryParse(existingApt.RecurrenceRule.ToString(), parsedRule) Then
'parsedRule.SetEffectiveRange(RadScheduler1.VisibleRangeStart, RadScheduler1.VisibleRangeEnd);
For Each occurrence As DateTime In parsedRule.Occurrences
'check if the start time of the occurrence is within the range of the appointment:
If (occurrence.CompareTo(apt.Start) > 0) And (occurrence.CompareTo(apt.[End]) <
0
) Then
Return True
End If
'check if the end time of the occurrence is within the range of the appointment:
If (occurrence.Add(existingApt.Duration).CompareTo(apt.Start) > 0) And (occurrence.Add(existingApt.Duration).CompareTo(apt.[End]) <
0
) Then
Return True
End If
'check if the start time of the appointment is within the range of the occurrence:
If (apt.Start.CompareTo(occurrence) > 0) And (apt.Start.CompareTo(occurrence.Add(existingApt.Duration)) <
0
) Then
Return True
End If
'check if the end time of the appointment is within the range of the occurrence:
If (apt.[End].CompareTo(occurrence) > 0) And (apt.[End].CompareTo(occurrence.Add(existingApt.Duration)) < 0) Then
Return True
End If
'check if start or end the appoitnment coincide with start or end of the occurrence
If (apt.Start.CompareTo(occurrence) = 0) OrElse (apt.Start.CompareTo(occurrence.Add(existingApt.Duration)) = 0) OrElse (apt.[End].CompareTo(occurrence) = 0) OrElse (apt.[End].CompareTo(occurrence.Add(existingApt.Duration)) = 0) Then
Return True
End If
Next
End If
Next
Return False
End Function
<
P
><
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
><
BR
> <
script
type
=
"text/javascript"
><
BR
>
$(document).ready(function ()
{<
BR
>
$(".trigger").click(function ()
{<
BR
>
$(".panel").toggle("fast");<
BR
>
$(this).toggleClass("active");<
BR
>
return
false;<
BR
>
});<
BR
>
});</
P
>
<
P
>
</
script
><
BR
>
</
telerik:RadScriptBlock
><
BR
> <
telerik:RadSplitter
ID
=
"RadSplitter1"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
Skin
=
"WebBlue"
><
BR
>
<
telerik:RadPane
ID
=
"RadPane1"
runat
=
"server"
Width
=
"100%"
Height
=
"100%"
><
BR
>
<
asp:Panel
ID
=
"panelSearchResultsAndDetails"
runat
=
"server"
><
BR
>
<
telerik:RadPanelBar
ID
=
"radPanelScripts"
runat
=
"server"
Skin
=
"WebBlue"
Height
=
"100%"
Width
=
"100%"
><
BR
>
<
Items
><
BR
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Search Results"
Width
=
"100%"
><
BR
>
<
ContentTemplate
><
BR
>
<
table
width
=
"100%"
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
class
=
"formLabel"
><
BR
>
<
telerik:RadButton
ID
=
"btnPrintSelection"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnPrintSelectionScript_Click"
<BR>
Text="Print
Preview"><
BR
>
</
telerik:RadButton
><
BR
>
<
asp:CheckBox
ID
=
"ckHideSearchResultsFilter"
AutoPostBack
=
"true"
runat
=
"server"
Text="Hide Filter
Row"<BR>
OnCheckedChanged="ckHideSearchResultsFilter_CheckChanged"
/><
BR
>
<
asp:CheckBox
ID
=
"ckHideSearchResultsGroupPanel"
AutoPostBack
=
"true"
runat
=
"server"
<BR>
Text="Hide Grouping Row"
OnCheckedChanged="ckHideSearchResultsGroupPanel_CheckChanged"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
<
telerik:RadGrid
ID
=
"radgridSearchResults"
runat
=
"server"
AllowFilteringByColumn
=
"True"
<BR>
AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"
GridLines="None"<
BR
>
PageSize="25" ShowGroupPanel="True"
OnSelectedIndexChanged="radgridSearchResults_SelectedIndexChanged"<
BR
>
Skin="WebBlue" OnNeedDataSource="radgridSearchResults_NeedDataSource"
OnItemDataBound="radgridSearchResults_ItemDataBound"><
BR
>
<
ClientSettings
AllowColumnsReorder
=
"True"
><
BR
>
<
Scrolling
AllowScroll
=
"True"
ScrollHeight
=
"420"
UseStaticHeaders
=
"True"
/><
BR
>
</
ClientSettings
><
BR
>
<
MasterTableView
><
BR
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
/><
BR
>
<
RowIndicatorColumn
FilterControlAltText="Filter RowIndicator
column"><
BR
>
<
HeaderStyle
Width
=
"20px"
/><
BR
>
</
RowIndicatorColumn
><
BR
>
<
ExpandCollapseColumn
FilterControlAltText="Filter ExpandColumn
column"><
BR
>
<
HeaderStyle
Width
=
"20px"
/><
BR
>
</
ExpandCollapseColumn
><
BR
>
<
Columns
><
BR
>
<
telerik:GridBoundColumn
DataField
=
"division"
FilterControlWidth
=
"35"
HeaderText
=
"Division"
<BR>
SortExpression="division"
UniqueName="colDivision"><
BR
>
<
HeaderStyle
Width
=
"8%"
/><
BR
>
<
ItemStyle
Width
=
"8%"
/><
BR
>
</
telerik:GridBoundColumn
><
BR
>
<
telerik:GridButtonColumn
DataTextField
=
"Title"
CommandName
=
"Select"
FilterControlAltText="Filter column
column"<BR>
HeaderText="Title" SortExpression="title"
UniqueName="column"><
BR
>
<
HeaderStyle
Width
=
"50%"
/><
BR
>
<
ItemStyle
Width
=
"50%"
/><
BR
>
</
telerik:GridButtonColumn
><
BR
>
<
telerik:GridBoundColumn
DataField
=
"authors"
FilterControlAltText="Filter
colAuthors
column"<BR>
HeaderText="Author" SortExpression="authors"
UniqueName="colAuthors"><
BR
>
<
HeaderStyle
Width
=
"25%"
/><
BR
>
<
ItemStyle
Width
=
"25%"
/><
BR
>
</
telerik:GridBoundColumn
><
BR
>
<
telerik:GridBoundColumn
DataField
=
"date_covered"
DataFormatString
=
"{0:MM/dd/yyyy}"
<BR>
FilterControlAltText="Filter colCoverageDate column" HeaderText="Coverage
Date"<
BR
>
SortExpression="date_covered"
UniqueName="colCoverageDate"><
BR
>
</
telerik:GridBoundColumn
><
BR
>
</
Columns
><
BR
>
<
EditFormSettings
><
BR
>
<
EditColumn
FilterControlAltText="Filter EditCommandColumn
column"><
BR
>
</
EditColumn
><
BR
>
</
EditFormSettings
><
BR
>
</
MasterTableView
><
BR
>
<
FilterMenu
EnableImageSprites
=
"False"
><
BR
>
</
FilterMenu
><
BR
>
<
HeaderContextMenu
CssClass="GridContextMenu
GridContextMenu_Default"><
BR
>
</
HeaderContextMenu
><
BR
>
</
telerik:RadGrid
><
BR
>
</
ContentTemplate
><
BR
>
</
telerik:RadPanelItem
><
BR
>
<
telerik:RadPanelItem
runat
=
"server"
Text
=
"Script Details"
Expanded
=
"true"
Width
=
"100%"
><
BR
>
<
ContentTemplate
><
BR
>
<!--Tab
Strip--><
BR
>
<
table
width
=
"100%"
><
BR
>
<
tr
><
BR
>
<
td
width
=
"50%"
><
BR
>
<
telerik:RadTabStrip
ID
=
"RadTabStrip1"
MultiPageID
=
"RadMultiPage1"
runat
=
"server"
<BR>
Skin="WebBlue"
SelectedIndex="1"><
BR
>
<
Tabs
><
BR
>
<
telerik:RadTab
runat
=
"server"
Text
=
"Details"
Selected
=
"true"
><
BR
>
</
telerik:RadTab
><
BR
>
<
telerik:RadTab
runat
=
"server"
Text
=
"Comments"
><
BR
>
</
telerik:RadTab
><
BR
>
</
Tabs
><
BR
>
</
telerik:RadTabStrip
><
BR
>
</
td
><
BR
>
<
td
align
=
"right"
><
BR
>
<
telerik:RadButton
ID
=
"btnSave"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnSaveScript_Click"
<BR>
ValidationGroup="valGroup1"
Text="Save"><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnDelete"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnDeleteScript_Click"
<BR>
Text="Delete"><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnResetScript"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnResetScript_Click"
<BR>
Text="Reset"><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnPrintPreview"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnPrintPreviewScript_Click"
<BR>
Text="Print
Preview"><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnPrint"
Skin
=
"WebBlue"
runat
=
"server"
OnClick
=
"btnPrintScript_Click"
<BR>
Text="Print"><
BR
>
</
telerik:RadButton
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
<
telerik:RadMultiPage
ID
=
"RadMultiPage1"
runat
=
"server"
CssClass
=
"form"
><
BR
>
<
telerik:RadPageView
ID
=
"RadPageView1"
runat
=
"server"
Selected
=
"true"
CssClass
=
"form"
<BR>
BorderColor="#2E9AFE"
BorderWidth="1"><
BR
>
<
table
width
=
"90%"
class
=
"form"
border
=
"0"
cellpadding
=
"3"
><
BR
>
<
tr
><
BR
>
<
td
valign
=
"top"
align
=
"right"
width
=
"100px"
><
BR
>
<
asp:Label
ID
=
"Label1"
runat
=
"server"
CssClass
=
"formLabel"
Text
=
"Title"
></
asp:Label
><
BR
>
</
td
><
BR
>
<
td
colspan
=
"5"
align
=
"left"
><
BR
>
<
asp:TextBox
ID
=
"txtTitle"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"575px"
></
asp:TextBox
><
BR
>
<
asp:RequiredFieldValidator
ID
=
"valTitle"
runat
=
"server"
ControlToValidate
=
"txtTitle"
<BR>
Display="None" ErrorMessage="Title is a required field."
ValidationGroup="valGroup1"></
asp:RequiredFieldValidator
><
BR
>
<
asp:ValidatorCalloutExtender
ID
=
"ValidatorCalloutExtender1"
runat
=
"server"
Enabled
=
"True"
<BR>
TargetControlID="valTitle"
/><
BR
>
<
telerik:RadWindowManager
ID
=
"RadWindowManager"
runat
=
"server"
DestroyOnClose
=
"True"
<BR>
RestrictionZoneID="RestrictionZone"><
BR
>
<
Windows
><
BR
>
<
telerik:RadWindow
ID
=
"radWindowDetailPrint"
runat
=
"server"
VisibleOnPageLoad
=
"false"
><
BR
>
</
telerik:RadWindow
><
BR
>
<
telerik:RadWindow
ID
=
"radWindowSelectionPrint"
runat
=
"server"
VisibleOnPageLoad
=
"false"
><
BR
>
</
telerik:RadWindow
><
BR
>
<
telerik:RadWindow
ID
=
"radWindowEditSynopsis"
runat
=
"server"
VisibleOnPageLoad
=
"false"
><
BR
>
<
ContentTemplate
><
BR
>
<
table
class
=
"searchForm"
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formHeader"
><
BR
>
Synopsis<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
><
BR
>
<
asp:TextBox
ID
=
"txtSynopsisPopup"
runat
=
"server"
Rows
=
"20"
TextMode
=
"MultiLine"
<BR>
CssClass="textFields"
Width="595px"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
><
BR
>
<
asp:Button
ID
=
"btnUpdateSynopsis"
runat
=
"server"
OnClick
=
"btnUpdateSynopsis_Click"
<BR>
Text="Update" Visible="True"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
</
ContentTemplate
><
BR
>
</
telerik:RadWindow
><
BR
>
</
Windows
><
BR
>
</
telerik:RadWindowManager
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
width
=
"100px"
align
=
"right"
><
BR
>
Authors<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
width
=
"250px"
><
BR
>
<
asp:TextBox
ID
=
"txtAuthors"
runat
=
"server"
Width
=
"200px"
CssClass
=
"textFields"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
width
=
"150px"
align
=
"right"
><
BR
>
Type of
Material<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
width
=
"250px"
><
BR
>
<
telerik:RadComboBox
ID
=
"cboMaterials"
runat
=
"server"
Width
=
"180px"
EmptyMessage="Type to
Select..."<BR>
MarkFirstMatch="true"
Skin="WebBlue"><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
width
=
"175px"
><
BR
>
Number of
Pages<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtNumberOfPages"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"175px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Publisher<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtPublisher"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Year
Published<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtYearPublished"
runat
=
"server"
Width
=
"175px"
CssClass
=
"textFields"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Draft<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtDraft"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"175px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Analyst<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtAnalyst"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Coverage
Date<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
telerik:RadDatePicker
ID
=
"txtCoverageDate"
runat
=
"server"
Skin
=
"WebBlue"
Width
=
"205px"
><
BR
>
<
Calendar
runat
=
"server"
Skin
=
"Outlook"
UseColumnHeadersAsSelectors
=
"False"
UseRowHeadersAsSelectors
=
"False"
<BR>
ViewSelectorText="x"><
BR
>
</
Calendar
><
BR
>
<
DateInput
runat
=
"server"
DateFormat
=
"M/d/yyyy"
DisplayDateFormat
=
"M/d/yyyy"
><
BR
>
</
DateInput
><
BR
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/><
BR
>
</
telerik:RadDatePicker
><
BR
>
<
asp:RequiredFieldValidator
ID
=
"valCoverageDate"
ForeColor
=
"Red"
runat
=
"server"
ControlToValidate
=
"txtCoverageDate"
<BR>
Display="None" ErrorMessage="<b>Coverage Date is
required</b>" ValidationGroup="valGroup1"
/><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Received
Date<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
telerik:RadDatePicker
ID
=
"txtReceivedDate"
Width
=
"205px"
runat
=
"server"
Skin
=
"WebBlue"
><
BR
>
<
Calendar
runat
=
"server"
Skin
=
"WebBlue"
UseColumnHeadersAsSelectors
=
"False"
UseRowHeadersAsSelectors
=
"False"
<BR>
ViewSelectorText="x"><
BR
>
</
Calendar
><
BR
>
<
DateInput
runat
=
"server"
DateFormat
=
"M/d/yyyy"
DisplayDateFormat
=
"M/d/yyyy"
><
BR
>
</
DateInput
><
BR
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/><
BR
>
</
telerik:RadDatePicker
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Submitted
By<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtSubmittedBy"
runat
=
"server"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Circa<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtCirca"
runat
=
"server"
Width
=
"175px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Date
Returned<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
telerik:RadDatePicker
ID
=
"txtReturnDate"
Width
=
"205px"
runat
=
"server"
Skin
=
"WebBlue"
><
BR
>
<
Calendar
runat
=
"server"
Skin
=
"WebBlue"
UseColumnHeadersAsSelectors
=
"False"
UseRowHeadersAsSelectors
=
"False"
<BR>
ViewSelectorText="x"><
BR
>
</
Calendar
><
BR
>
<
DateInput
runat
=
"server"
DateFormat
=
"M/d/yyyy"
DisplayDateFormat
=
"M/d/yyyy"
><
BR
>
</
DateInput
><
BR
>
<
DatePopupButton
HoverImageUrl
=
""
ImageUrl
=
""
/><
BR
>
</
telerik:RadDatePicker
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Submitted
To<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtSubmittedTo"
runat
=
"server"
Width
=
"200px"
CssClass
=
"textFields"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Location<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtLocation0"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"175px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Elements<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtElements0"
runat
=
"server"
CssClass
=
"textFields"
Width
=
"175px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
valign
=
"top"
class
=
"formLabel"
><
BR
>
Genre<
BR
>
</
td
><
BR
>
<
td
valign
=
"top"
><
BR
>
<
telerik:RadComboBox
ID
=
"ddlGenre"
runat
=
"server"
AutoPostBack
=
"True"
EmptyMessage="Type to
Search"<BR>
MarkFirstMatch="true"
OnSelectedIndexChanged="ddlGenre_SelectedIndexChanged"<
BR
>
Skin="WebBlue"
Width="202px"><
BR
>
</
telerik:RadComboBox
><
BR
>
<
br
/><
BR
>
<
asp:LinkButton
ID
=
"lbDeleteGenre"
runat
=
"server"
OnClick
=
"lbDeleteGenre_Click"
>Remove
Genre</
asp:LinkButton
><
BR
>
<
br
/><
BR
>
<
asp:ListBox
ID
=
"lstGenre"
runat
=
"server"
CssClass
=
"textFields"
SelectionMode
=
"Multiple"
<BR>
Width="200px"></
asp:ListBox
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
valign
=
"top"
><
BR
>
Sub-Genre<
BR
>
</
td
><
BR
>
<
td
align
=
"left"
class
=
"formLabel"
><
BR
>
<
telerik:RadComboBox
ID
=
"ddlSubGenre"
runat
=
"server"
AutoPostBack
=
"True"
EmptyMessage="Type to
Search"<BR>
MarkFirstMatch="true"
OnSelectedIndexChanged="ddlSubGenre_SelectedIndexChanged"<
BR
>
Skin="WebBlue"
Width="180px"><
BR
>
</
telerik:RadComboBox
><
BR
>
<
br
/><
BR
>
<
asp:LinkButton
ID
=
"lbDeleteSubgenre"
runat
=
"server"
OnClick
=
"lbDeleteSubgenre_Click"
>Remove
Subgenre</
asp:LinkButton
><
BR
>
<
br
/><
BR
>
<
asp:ListBox
ID
=
"lstSubGenre"
runat
=
"server"
CssClass
=
"textFields"
SelectionMode
=
"Multiple"
<BR>
Width="175px"></
asp:ListBox
><
BR
>
</
td
><
BR
>
<
td
align
=
"right"
class
=
"formLabel"
valign
=
"top"
><
BR
>
Keywords<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
telerik:RadComboBox
ID
=
"ddlKeywords"
runat
=
"server"
AutoPostBack
=
"True"
EmptyMessage="Type to
Search"<BR>
MarkFirstMatch="true"
OnSelectedIndexChanged="ddlKeywords_SelectedIndexChanged"<
BR
>
Skin="WebBlue"
Width="180px"><
BR
>
</
telerik:RadComboBox
><
BR
>
<
br
/><
BR
>
<
asp:LinkButton
ID
=
"LinkButton1"
runat
=
"server"
OnClick
=
"lbDeleteKeywords_Click"
>Remove
Keywords</
asp:LinkButton
><
BR
>
<
br
/><
BR
>
<
asp:ListBox
ID
=
"lstKeywords"
runat
=
"server"
CssClass
=
"textFields"
SelectionMode
=
"Multiple"
<BR>
Width="175px"></
asp:ListBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:CheckBox
ID
=
"ckConfidential0"
runat
=
"server"
Text
=
"Confidential"
/><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:CheckBox
ID
=
"ckDevelopment0"
runat
=
"server"
Text
=
"Development"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
<
table
width
=
"100%"
cellpadding
=
"3"
class
=
"form"
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
valign
=
"top"
class
=
"formLabel"
width
=
"100px"
><
BR
>
Log
Line<
BR
>
</
td
><
BR
>
<
td
colspan
=
"5"
><
BR
>
<
asp:TextBox
ID
=
"txtLogline"
runat
=
"server"
CssClass
=
"textFields"
Rows
=
"2"
TextMode
=
"MultiLine"
<BR>
Width="99%"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
><
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
align
=
"right"
><
BR
>
<
asp:LinkButton
ID
=
"lnkShowSynopsisPopup"
runat
=
"server"
OnClick
=
"lnkShowSynopsisPopup_Click"
<BR>
Style="text-decoration: none"
TabIndex="100">Edit</
asp:LinkButton
> <
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
valign
=
"top"
class
=
"formLabel"
><
BR
>
Synopsis<
BR
>
</
td
><
BR
>
<
td
colspan
=
"5"
><
BR
>
<
asp:TextBox
ID
=
"txtSynopsis"
runat
=
"server"
AutoPostBack
=
"true"
CssClass
=
"textFields"
<BR>
OnTextChanged="txtSynopsis_TextChanged" Rows="4" TabIndex="99"
TextMode="MultiLine"<
BR
>
Width="99%"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
valign
=
"top"
><
BR
>
<
BR
>
</
td
><
BR
>
<
td
align
=
"right"
colspan
=
"5"
valign
=
"top"
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
<
asp:ModalPopupExtender
ID
=
"ModalPopupExtender2"
runat
=
"server"
TargetControlID
=
"btnDelete"
<BR>
PopupControlID="panelDeleteScriptOuter" OkControlID="ButtonOk"
CancelControlID="ButtonCancel"<
BR
>
BackgroundCssClass="modalBackground" Enabled="True" DynamicServicePath=""
/><
BR
>
<
asp:ConfirmButtonExtender
ID
=
"ConfirmButtonExtender2"
runat
=
"server"
TargetControlID
=
"btnDelete"
<BR>
DisplayModalPopupID="ModalPopupExtender2" ConfirmText="" Enabled="True"
/><
BR
>
<!--DELETE
CONFIRM--><
BR
>
<
asp:Panel
ID
=
"panelDeleteScriptOuter"
runat
=
"server"
CssClass
=
"DeleteConfirmationOuterWindow"
<BR>
Style="display:
none;"><
BR
>
<
asp:Panel
ID
=
"panelDeleteScript"
runat
=
"server"
Width
=
"200px"
Height
=
"75px"
CssClass
=
"DeleteConfirmWindow"
><
BR
>
<
table
width
=
"100%"
><
BR
>
<
tr
><
BR
>
<
td
align
=
"center"
><
BR
>
Are you sure you want to Delete this
Script?<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"center"
><
BR
>
<
asp:Button
ID
=
"ButtonOk"
runat
=
"server"
Text
=
"Ok"
/><
BR
>
<
asp:Button
ID
=
"ButtonCancel"
runat
=
"server"
Text
=
"Cancel"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
</
asp:Panel
><
BR
>
</
asp:Panel
><
BR
>
</
telerik:RadPageView
><
BR
>
<!--SCRIPT
DETAILS---><
BR
>
<
telerik:RadPageView
ID
=
"RadPageView2"
runat
=
"server"
BorderColor
=
"#2E9AFE"
CssClass
=
"form"
<BR>
BorderWidth="1"><
BR
>
<
table
border
=
"0"
class
=
"form"
cellpadding
=
"3"
><
BR
>
<
tr
><
BR
>
<
td
width
=
"150px"
class
=
"formLabel-RightAlign"
><
BR
>
Idea<
BR
>
</
td
><
BR
>
<
td
width
=
"250px"
class
=
"formLabel"
><
BR
>
<
telerik:RadSlider
ID
=
"radslideIdea"
runat
=
"server"
CssClass
=
"ItemSlider"
Height
=
"30px"
<BR>
ItemType="Item" MaximumValue="5" MinimumValue="1" Skin="WebBlue"
Width="250px"><
BR
>
<
Items
><
BR
>
<
telerik:RadSliderItem
Text
=
"Exc."
Value
=
"1"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Good"
Value
=
"2"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Fair"
Value
=
"3"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Poor"
Value
=
"4"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"N/A"
Value
=
"5"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadSlider
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
width
=
"100px"
><
BR
>
Material<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
telerik:RadComboBox
ID
=
"cboMaterial"
runat
=
"server"
Skin
=
"WebBlue"
MarkFirstMatch
=
"true"
<BR>
EmptyMessage="Type to
Select..."><
BR
>
<
Items
><
BR
>
<
telerik:RadComboBoxItem
Value
=
"1"
Text
=
"Pass"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"2"
Text
=
"Consider"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"3"
Text
=
"Recommend"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"4"
Text
=
"N/A"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
width
=
"150px"
class
=
"formLabel"
><
BR
>
Story
Line<
BR
>
</
td
><
BR
>
<
td
align
=
"left"
><
BR
>
<
telerik:RadSlider
ID
=
"radSlideStoryLine"
runat
=
"server"
CssClass
=
"ItemSlider"
Height
=
"30px"
<BR>
ItemType="Item" MaximumValue="5" MinimumValue="1" Skin="WebBlue"
Width="250px"><
BR
>
<
Items
><
BR
>
<
telerik:RadSliderItem
Text
=
"Exc."
Value
=
"1"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Good"
Value
=
"2"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Fair"
Value
=
"3"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Poor"
Value
=
"4"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"N/A"
Value
=
"5"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadSlider
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Writer<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
telerik:RadComboBox
ID
=
"cboWriter"
runat
=
"server"
Skin
=
"WebBlue"
MarkFirstMatch
=
"true"
<BR>
EmptyMessage="Type to
Select..."><
BR
>
<
Items
><
BR
>
<
telerik:RadComboBoxItem
Value
=
"1"
Text
=
"Pass"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"2"
Text
=
"Consider"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"3"
Text
=
"Recommend"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"4"
Text
=
"N/A"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
class
=
"formLabel"
><
BR
>
Characterization<
BR
>
</
td
><
BR
>
<
td
align
=
"left"
><
BR
>
<
telerik:RadSlider
ID
=
"radSlideCharacterization"
runat
=
"server"
CssClass
=
"ItemSlider"
<BR>
Height="30px" ItemType="Item" MaximumValue="5" MinimumValue="1"
Skin="WebBlue"<
BR
>
Width="250px"><
BR
>
<
Items
><
BR
>
<
telerik:RadSliderItem
Text
=
"Exc."
Value
=
"1"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Good"
Value
=
"2"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Fair"
Value
=
"3"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Poor"
Value
=
"4"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"N/A"
Value
=
"5"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadSlider
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Concept<
BR
>
</
td
><
BR
>
<
td
><
BR
>
<
telerik:RadComboBox
ID
=
"cboConcept"
runat
=
"server"
Skin
=
"WebBlue"
MarkFirstMatch
=
"true"
<BR>
EmptyMessage="Type to
Select..."><
BR
>
<
Items
><
BR
>
<
telerik:RadComboBoxItem
Value
=
"1"
Text
=
"Pass"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"2"
Text
=
"Consider"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"3"
Text
=
"Recommend"
/><
BR
>
<
telerik:RadComboBoxItem
Value
=
"4"
Text
=
"N/A"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
class
=
"formLabel"
><
BR
>
Dialogue<
BR
>
</
td
><
BR
>
<
td
align
=
"left"
><
BR
>
<
telerik:RadSlider
ID
=
"radSlideDialog"
ItemType
=
"Item"
runat
=
"server"
Skin
=
"WebBlue"
<BR>
Width="250px" Height="30px" MaximumValue="5" MinimumValue="1"
CssClass="ItemSlider"><
BR
>
<
Items
><
BR
>
<
telerik:RadSliderItem
Text
=
"Exc."
Value
=
"1"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Good"
Value
=
"2"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Fair"
Value
=
"3"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Poor"
Value
=
"4"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"N/A"
Value
=
"5"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadSlider
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
><
BR
>
Budget<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:RadioButton
ID
=
"radioBudgetHigh"
runat
=
"server"
GroupName
=
"radioBudgetGroup"
<BR>
Text="High"
/><
BR
>
<
asp:RadioButton
ID
=
"radioBudgetMedium"
runat
=
"server"
GroupName
=
"radioBudgetGroup"
<BR>
Text="Medium"
/><
BR
>
<
asp:RadioButton
ID
=
"radioBudgetLow"
runat
=
"server"
GroupName
=
"radioBudgetGroup"
<BR>
Text="Low"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
class
=
"formLabel"
><
BR
>
Setting/Production
Values<
BR
>
</
td
><
BR
>
<
td
align
=
"left"
><
BR
>
<
telerik:RadSlider
ID
=
"radSlideProductionSettings"
runat
=
"server"
CssClass
=
"ItemSlider"
<BR>
Height="30px" ItemType="Item" MaximumValue="5" MinimumValue="1"
Skin="WebBlue"<
BR
>
Width="250px"><
BR
>
<
Items
><
BR
>
<
telerik:RadSliderItem
Text
=
"Exc."
Value
=
"1"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Good"
Value
=
"2"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Fair"
Value
=
"3"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"Poor"
Value
=
"4"
/><
BR
>
<
telerik:RadSliderItem
Text
=
"N/A"
Value
=
"5"
/><
BR
>
</
Items
><
BR
>
</
telerik:RadSlider
><
BR
>
</
td
><
BR
>
<
td
><
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
<
table
width
=
"100%"
cellpadding
=
"3"
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
align
=
"right"
valign
=
"top"
width
=
"150px"
><
BR
>
Logline
Comment<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtLoglineComment"
runat
=
"server"
CssClass
=
"textFields"
Rows
=
"6"
<BR>
TextMode="MultiLine"
Width="95%"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"formLabel"
valign
=
"top"
align
=
"right"
><
BR
>
Comment<
BR
>
</
td
><
BR
>
<
td
class
=
"formLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtComment"
runat
=
"server"
CssClass
=
"textFields"
Rows
=
"8"
TextMode
=
"MultiLine"
<BR>
Width="95%"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
</
telerik:RadPageView
><
BR
>
</
telerik:RadMultiPage
><
BR
>
</
ContentTemplate
><
BR
>
</
telerik:RadPanelItem
><
BR
>
</
Items
><
BR
>
</
telerik:RadPanelBar
><
BR
>
</
asp:Panel
><
BR
>
</
telerik:RadPane
><
BR
>
<
telerik:RadPane
ID
=
"SearchPane"
runat
=
"server"
Height
=
"100%"
Width
=
"23px"
><
BR
>
<
telerik:RadSlidingZone
ID
=
"RadSlidingZone1"
runat
=
"server"
SlideDirection
=
"Left"
><
BR
>
<
telerik:RadSlidingPane
ID
=
"RadSlidingPane1"
EnableDock
=
"false"
runat
=
"server"
Width
=
"250px"
Title
=
"Search"
Scrolling
=
"Y"
><
BR
>
<
asp:Panel
ID
=
"Panel1"
runat
=
"server"
><
BR
>
<
table
class
=
"searchForm"
width
=
"100%"
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Title<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtTitleSearch"
CssClass
=
"textFields"
runat
=
"server"
TabIndex
=
"0"
<BR>
Width="200px"></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Author<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:TextBox
ID
=
"txtAuthorSearch"
CssClass
=
"textFields"
runat
=
"server"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Submitted By<
br
/><
BR
>
<
asp:TextBox
ID
=
"txtSubmittedBySearch"
CssClass
=
"textFields"
runat
=
"server"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Submitted To<
br
/><
BR
>
<
telerik:RadComboBox
ID
=
"cboSubmittedToSearch"
Skin
=
"WebBlue"
MarkFirstMatch
=
"true"
<BR>
EmptyMessage="Type to Search..." runat="server"
Width="205px"><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Analyst<
br
/><
BR
>
<
telerik:RadComboBox
ID
=
"cboAnalystSearch"
Skin
=
"WebBlue"
EnableAutomaticLoadOnDemand
=
"true"
<BR>
MarkFirstMatch="true" EmptyMessage="Type to Search..." runat="server"
Width="205px"><
BR
>
<
WebServiceSettings
Path
=
"../Admin/Controls/AdminService.asmx"
Method
=
"GetAnalysts"
/><
BR
>
</
telerik:RadComboBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Elements<
br
/><
BR
>
<
asp:TextBox
ID
=
"txtElementsSearch"
CssClass
=
"textFields"
runat
=
"server"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Log Line (Slow)<
br
/><
BR
>
<
asp:TextBox
ID
=
"txtLogLineSearch"
CssClass
=
"textFields"
runat
=
"server"
Width
=
"200px"
></
asp:TextBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Division<
BR
>
<
asp:CheckBox
ID
=
"ckDivisionDT"
runat
=
"server"
Text
=
"DT"
Checked
=
"true"
/><
BR
>
<
asp:CheckBox
ID
=
"ckDivisionMX"
runat
=
"server"
Text
=
"MX"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
><
BR
>
<
telerik:RadButton
ID
=
"btnSearch1"
runat
=
"server"
Skin
=
"WebBlue"
Text
=
"Search"
OnClick
=
"btnSearch_Click"
><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnReset2"
runat
=
"server"
Skin
=
"WebBlue"
Text
=
"Reset"
OnClick
=
"btnResetSearch_Click"
><
BR
>
</
telerik:RadButton
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"left"
><
BR
>
<
table
><
BR
>
<
tr
><
BR
>
<
td
colspan
=
"2"
class
=
"searchSectionLabel"
><
BR
>
Coverage
Date<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Start
Date<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
telerik:RadDatePicker
ID
=
"txtCoverageStartDate"
Skin
=
"WebBlue"
runat
=
"server"
z-index
=
"0"
><
BR
>
</
telerik:RadDatePicker
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
End
Date<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
telerik:RadDatePicker
ID
=
"txtCoverageEndDate"
Skin
=
"WebBlue"
runat
=
"server"
z-index
=
"0"
><
BR
>
</
telerik:RadDatePicker
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"left"
valign
=
"top"
class
=
"searchSectionLabel"
><
BR
>
Genre
<
BR
>
<
asp:Image
ID
=
"imgGenreSearch"
runat
=
"server"
ImageUrl
=
"~/Images/Search.gif"
Visible
=
"false"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:ListBox
ID
=
"lstGenreSearch"
CssClass
=
"textFields"
SelectionMode
=
"Multiple"
runat
=
"server"
<BR>
Width="200px" OnSelectedIndexChanged="SearchListBox_SelectedIndexChanged"
AutoPostBack="true"><
BR
>
</
asp:ListBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
colspan
=
"2"
class
=
"searchSectionLabel"
><
BR
>
Recommendation<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Material<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:DropDownList
ID
=
"ddlRecommendationMaterial"
CssClass
=
"textFields"
runat
=
"server"
<BR>
Width="200px"><
BR
>
<
asp:ListItem
Value
=
"0"
Text
=
""
></
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"1"
>Pass</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"2"
>Consider</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"3"
>Recommend</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"4"
>N/A</
asp:ListItem
><
BR
>
</
asp:DropDownList
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Writer<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:DropDownList
ID
=
"ddlRecommendationWriter"
CssClass
=
"textFields"
runat
=
"server"
<BR>
Width="200px"><
BR
>
<
asp:ListItem
Value
=
"0"
Text
=
""
></
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"1"
>Pass</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"2"
>Consider</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"3"
>Recommend</
asp:ListItem
><
BR
>
<
asp:ListItem
Value
=
"4"
>N/A</
asp:ListItem
><
BR
>
</
asp:DropDownList
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Keyword
<
BR
>
<
asp:Image
ID
=
"imgKeywordSearch"
runat
=
"server"
ImageUrl
=
"~/Images/Search.gif"
Visible
=
"false"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:ListBox
ID
=
"lstKeywordSearch"
SelectionMode
=
"Multiple"
CssClass
=
"textFields"
<BR>
runat="server" Width="200px"
OnSelectedIndexChanged="SearchListBox_SelectedIndexChanged"<
BR
>
AutoPostBack="true"></
asp:ListBox
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
Notes<
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
class
=
"searchSectionLabel"
><
BR
>
<
asp:CheckBox
ID
=
"ckNotesPrivate"
runat
=
"server"
Text
=
"Private"
/><
br
/><
BR
>
<
asp:CheckBox
ID
=
"ckNotesPublic"
runat
=
"server"
Text
=
"Public"
/><
br
/><
BR
>
<
asp:CheckBox
ID
=
"ckNotesSysAdmin"
runat
=
"server"
Text
=
"System Administrator"
/><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
<
tr
><
BR
>
<
td
align
=
"right"
class
=
"searchSectionLabel"
><
BR
>
<
telerik:RadButton
ID
=
"btnSearch"
Skin
=
"WebBlue"
runat
=
"server"
Text
=
"Search"
OnClick
=
"btnSearch_Click"
><
BR
>
</
telerik:RadButton
><
BR
>
<
telerik:RadButton
ID
=
"btnReset"
Skin
=
"WebBlue"
runat
=
"server"
Text
=
"Reset"
OnClick
=
"btnResetSearch_Click"
><
BR
>
</
telerik:RadButton
><
BR
>
</
td
><
BR
>
</
tr
><
BR
>
</
table
><
BR
>
</
asp:Panel
><
BR
>
</
telerik:RadSlidingPane
><
BR
>
</
telerik:RadSlidingZone
><
BR
>
</
telerik:RadPane
><
BR
>
</
telerik:RadSplitter
><
BR
> <
BR
>
<!--=============== SEARCH PANEL
========================================================--><
BR
>
<
BR
> <!--=============== END OF SEARCH PANEL
=================================================--><
BR
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
DefaultLoadingPanelID
=
"RadAjaxLoadingPanel1"
><
BR
>
<
AjaxSettings
><
BR
>
<
telerik:AjaxSetting
AjaxControlID
=
"panelSearchResultsAndDetails"
><
BR
>
<
UpdatedControls
><
BR
>
<
telerik:AjaxUpdatedControl
ControlID
=
"panelSearchResultsAndDetails"
<BR>
LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="600px"
/><
BR
>
</
UpdatedControls
><
BR
>
</
telerik:AjaxSetting
><
BR
>
<
telerik:AjaxSetting
AjaxControlID
=
"RadSlidingPane1"
><
BR
>
<
UpdatedControls
><
BR
>
<
telerik:AjaxUpdatedControl
ControlID
=
"panelSearchResultsAndDetails"
<BR>
LoadingPanelID="RadAjaxLoadingPanel1" UpdatePanelHeight="600px"
/><
BR
>
</
UpdatedControls
><
BR
>
</
telerik:AjaxSetting
><
BR
>
</
AjaxSettings
><
BR
>
</
telerik:RadAjaxManager
><
BR
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
Skin
=
"WebBlue"
><
BR
>
</
telerik:RadAjaxLoadingPanel
></
P
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
runat
=
"server"
ID
=
"rsmQuoteDocument"
>
</
telerik:RadScriptManager
>
<
telerik:RadWindowManager
ID
=
"rwmQuoteDoc"
runat
=
"server"
>
</
telerik:RadWindowManager
>
<
input
id
=
"DcoId"
type
=
"hidden"
runat
=
"server"
/>
<
asp:Button
ID
=
"btnDOC"
runat
=
"server"
OnClick
=
"btnDOC_Click"
Style
=
"display: none"
/>
<
telerik:RadAjaxManager
runat
=
"server"
ID
=
"ramQuotesDoc"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rgQouteDocuments"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rapDocument"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadAjaxPanel
ID
=
"rapDocument"
runat
=
"server"
>
<
telerik:RadGrid
runat
=
"server"
ID
=
"rgQouteDocuments"
Skin
=
"Office2007"
Width
=
"99.5%"
ondeletecommand
=
"rgQouteDocuments_OnDeleteCommand"
oninsertcommand
=
"rgQouteDocuments_OnInsertCommand"
onitemdatabound
=
"rgQouteDocuments_OnItemDataBound"
onneeddatasource
=
"rgQouteDocuments_NeedDataSource"
onupdatecommand
=
"rgQouteDocuments_OnUpdateCommand"
AllowAutomaticInserts
=
"false"
AllowAutomaticUpdates
=
"true"
AutoGenerateColumns
=
"false"
>
<
ClientSettings
>
<
Selecting
EnableDragToSelectRows
=
"false"
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
ItemStyle
CssClass
=
"RadGridItem"
/>
<
AlternatingItemStyle
CssClass
=
"RadGridItem"
/>
<
PagerStyle
Mode
=
"NextPrevAndNumeric"
PageSizeLabelText
=
"Pages"
ShowPagerText
=
"false"
/>
<
MasterTableView
DataKeyNames
=
"QuoteDocumentID,QuoteId"
CommandItemDisplay
=
"Top"
EditMode
=
"EditForms"
>
<
NoRecordsTemplate
>
<
center
>
<
asp:Label
ID
=
"lblnoRecords"
runat
=
"server"
CssClass
=
"label"
Text
=
"No records found"
/>
</
center
>
</
NoRecordsTemplate
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"QuoteDocumentID"
HeaderText
=
"DocumentID"
DataField
=
"QuoteDocumentID"
Visible
=
"false"
ReadOnly
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"QuoteId"
HeaderText
=
"Quote ID"
DataField
=
"QuoteId"
Visible
=
"false"
ReadOnly
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridButtonColumn
UniqueName
=
"ViewAppraisal"
ButtonType
=
"ImageButton"
ImageUrl
=
"~/Images/view-inventory.png"
Text
=
"DownLoad"
HeaderStyle-Width
=
"110px"
Visible
=
"false"
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
</
telerik:GridButtonColumn
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
EditImageUrl
=
"../Images/edit.png"
HeaderStyle-Width
=
"30px"
>
</
telerik:GridEditCommandColumn
>
<
telerik:GridButtonColumn
ButtonType
=
"ImageButton"
ImageUrl
=
"../Images/delete.png"
CommandName
=
"delete"
ItemStyle-HorizontalAlign
=
"Center"
ConfirmDialogType
=
"RadWindow"
ConfirmDialogHeight
=
"25px"
ConfirmDialogWidth
=
"410px"
ConfirmTitle
=
"Delete Document"
ConfirmText
=
"Are you sure you want to delete this Inventory Documents?"
HeaderStyle-Width
=
"30px"
UniqueName
=
"30px"
>
</
telerik:GridButtonColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Document Comment"
EditFormHeaderTextFormat
=
"Comment"
UniqueName
=
"Comment"
DataField
=
"DocumentComment"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblDocumentComment"
runat
=
"server"
Text='<%# Eval("DocumentComment") as string %>' />
</
ItemTemplate
>
<
EditItemTemplate
>
<
telerik:RadTextBox
ID
=
"txbDescription"
Width
=
"250px"
runat
=
"server"
TextMode
=
"MultiLine"
Text='<%# Eval("DocumentComment") %>' Height="150px" />
</
EditItemTemplate
>
<
ItemStyle
VerticalAlign
=
"Top"
/>
</
telerik:GridTemplateColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"DateUploaded"
DataFormatString
=
"{0:dd/MM/yyyy}"
HeaderText
=
"Upload Date"
EditFormHeaderTextFormat
=
"Upload Date"
ReadOnly
=
"True"
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"UserId"
HeaderText
=
"Uploaded By"
DataField
=
"UserId"
ReadOnly
=
"True"
Visible
=
"false"
/>
<
telerik:GridBoundColumn
UniqueName
=
"UploadedBy"
HeaderText
=
"Uploaded By"
DataField
=
"UploadedBy"
EditFormHeaderTextFormat
=
"UploadedBy"
ReadOnly
=
"True"
ItemStyle-CssClass
=
"mousepointer"
/>
<
telerik:GridTemplateColumn
HeaderText
=
"Document"
EditFormHeaderTextFormat
=
"Upload Files"
UniqueName
=
"Document"
DataField
=
"DocumentComment"
Visible
=
"false"
>
<
ItemTemplate
>
<
asp:LinkButton
ID
=
"lbtnDocument"
runat
=
"server"
Text='<%#Eval("DocumentPath") %>'></
asp:LinkButton
>
</
ItemTemplate
>
<
EditItemTemplate
>
<
br
/>
<
telerik:RadAsyncUpload
HttpHandlerUrl
=
"~/CustomHandler.ashx"
ID
=
"ruDocument"
runat
=
"server"
AllowedFileExtensions
=
".doc,.docx,.xlsx,.pdf,.dox,.rtf,.txt"
>
</
telerik:RadAsyncUpload
>
(Use format .doc,.docx,.xlsx,.pdf,.dox,.rtf,.txt)
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridButtonColumn
HeaderText
=
"Documents"
ButtonType
=
"LinkButton"
UniqueName
=
"Documents"
DataTextField
=
"FileName"
/>
<
telerik:GridBoundColumn
UniqueName
=
"DocumentName"
DataField
=
"DocumentPath"
Visible
=
"false"
ReadOnly
=
"true"
/>
</
Columns
>
<
CommandItemTemplate
>
<
table
border
=
"0"
style
=
"width: 100%;"
>
<
tbody
>
<
tr
>
<
td
align
=
"left"
>
<
asp:LinkButton
ID
=
"AddNewRecordButton"
runat
=
"server"
CommandName
=
"InitInsert"
>
<
img
style
=
"border:0px"
alt
=
"Add New"
src
=
"../Images/add-icon.png"
/> Add new document
</
asp:LinkButton
>
</
td
>
</
tr
>
</
tbody
>
</
table
>
</
CommandItemTemplate
>
<
EditFormSettings
>
<
EditColumn
ButtonType
=
"ImageButton"
/>
</
EditFormSettings
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
telerik:RadAjaxPanel
>
<
telerik:RadGrid
ID
=
"competenceGrid"
runat
=
"server"
Width
=
"99%"
>
<
ClientSettings
>
<
Scrolling
AllowScroll
=
"True"
UseStaticHeaders
=
"True"
FrozenColumnsCount
=
"4"
>
</
Scrolling
>
<
ClientEvents
OnGridCreated
=
"GridCreated"
/>
</
ClientSettings
>
<
MasterTableView
TableLayout
=
"Fixed"
Width
=
"100%"
Height
=
"100%"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
</
MasterTableView
>
<
HeaderContextMenu
EnableImageSprites
=
"True"
CssClass
=
"GridContextMenu GridContextMenu_Default"
>
</
HeaderContextMenu
>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
ActiveItemStyle
HorizontalAlign
=
"Center"
/>
<
AlternatingItemStyle
HorizontalAlign
=
"Center"
/>
<
HeaderStyle
Width
=
"160px"
Height
=
"75px"
/>
</
telerik:RadGrid
>
<
style
type
=
"text/css"
>
.reToolbar.Default .InsertHotword
{
background-image: url( http://www.telerik.com/DEMOS/ASPNET/RadControls/Editor/Skins/Default/buttons/Custom.gif);
}
</
style
>
<
script
type
=
"text/javascript"
>
Telerik.Web.UI.Editor.CommandList["CustomProperties"] = function(commandName, editor, args)
{
// get the selected Html
var currentSelectedHtml = editor.getSelectionHtml();
var elem = editor.getSelectedElement();
editor.selectElement(elem);
argument = elem;
var myCallbackFunction = function(sender, args)
{
if(args.doPaste == true)
editor.pasteHtml(String.format("<
span
id={0}
contenteditable
=
'false'
class
=
'{1}'
xml
=
'{2}'
>{3}</
span
> ", args.id, args.cssclass, args.xml, args.title))
}
editor.showExternalDialog(
"Hotword.aspx",
argument,
450,
350,
myCallbackFunction,
null,
"Hotword",
true,
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
false,
false);
};
Telerik.Web.UI.Editor.CommandList["InsertHotword"] = function(commandName, editor, args)
{
// get the selected Html
var currentSelectedHtml = editor.getSelectionHtml();
var elem = editor.getSelectedElement();
if(elem.tagName == 'BODY')
{
var content = editor.getSelectionHtml();
var link = editor.get_document().createElement("FONT");
link.innerHTML = currentSelectedHtml;
argument = link;
}
var myCallbackFunction = function(sender, args)
{
if(args.doPaste == true)
editor.pasteHtml(String.format("<
span
id={0}
contenteditable
=
'false'
class
=
'{1}'
xml
=
'{2}'
>{3}</
span
> ", args.id, args.cssclass, args.xml, args.title))
}
editor.showExternalDialog(
'Hotword.aspx',
argument,
450,
350,
myCallbackFunction,
null,
'Hotword',
true,
Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move,
false,
false);
};
</
script
>
<
asp:ScriptManager
id
=
"ScriptManager"
runat
=
"server"
/>
<
telerik:RadEditor
ID
=
"rdedContent"
runat
=
"server"
Width
=
"340px"
Height
=
"450px"
SkinID
=
"DefaultSetOfTools"
ToolsFile
=
"AuthoringTools.xml"
>
<
Tools
>
<
telerik:EditorToolGroup
>
<
telerik:EditorTool
Name
=
"InsertHotword"
Text
=
"Hotword"
ShowText
=
"true"
ShowIcon
=
"false"
/>
</
telerik:EditorToolGroup
>
</
Tools
>
<
ContextMenus
>
<
telerik:EditorContextMenu
TagName
=
"A"
Enabled
=
"false"
></
telerik:EditorContextMenu
>
<
telerik:EditorContextMenu
>
<
telerik:EditorTool
name
=
"Cut"
/>
<
telerik:EditorTool
name
=
"Copy"
/>
<
telerik:EditorTool
name
=
"Paste"
/>
<
telerik:EditorTool
name
=
"CustomProperties"
/>
</
telerik:EditorContextMenu
>
</
ContextMenus
>
</
telerik:RadEditor
>
<
asp:ScriptManager
id
=
"ScriptManager"
runat
=
"server"
/>
<
div
>
Hotword Properties:
<
br
/>
title: <
input
type
=
"text"
id
=
"hotwordTitle"
>
<
br
/><
br
/>
Content:
<
telerik:RadEditor
ID
=
"rdedContent"
runat
=
"server"
Width
=
"200px"
Height
=
"150px"
SkinID
=
"DefaultSetOfTools"
ToolsFile
=
"AuthoringTools.xml"
></
telerik:RadEditor
>
<
br
/>
<
input
type
=
"button"
onclick
=
"javascript:insertContent();"
value
=
"OK"
/>
</
div
>
<
script
type
=
"text/javascript"
>
if (window.attachEvent)
{
window.attachEvent("onload", initDialog);
}
else if (window.addEventListener)
{
window.addEventListener("load", initDialog, false);
}
var hotwordTitle = document.getElementById("hotwordTitle");
var hotword = null;
function getRadWindow()
{
if (window.radWindow)
{
return window.radWindow;
}
if (window.frameElement && window.frameElement.radWindow)
{
return window.frameElement.radWindow;
}
return null;
}
function initDialog()
{
var clientParameters = getRadWindow().ClientParameters; //return the arguments supplied from the parent page
hotwordTitle.value = clientParameters.innerHTML;
hotword = clientParameters;
}
function insertContent()
{
//create an object and set some custom properties to it
hotword.id = '1';
hotword.cssclass = 'Hotword';
hotword.xml = 'Hotword';
hotword.title = hotwordTitle.value;
hotword.doPaste = true;
getRadWindow().close(hotword);
}
</
script
>