or
| <%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucEventHistory.ascx.cs" |
| Inherits="uc_mas_ucEventHistory" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
| <style type="text/css"> |
| .style1 |
| { |
| width: 114px; |
| } |
| </style> |
| Data from mastermind here, rules need to be defined by <b>BUSINESS</b> |
| <div id="EventHistoryContainer"> |
| <asp:Table runat="server" ID="Eventhistorytable" Width="593px" Style="vertical-align: top"> |
| <asp:TableRow> |
| <asp:TableCell ColumnSpan="4" HorizontalAlign="center" Style="border-bottom-style: double; |
| border-bottom-width: thin; border-bottom-color: Navy"> |
| <h3> |
| <asp:Label ID="LabelTitle" runat="server">Event history Selection</asp:Label></h3> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow Style="vertical-align: top; height: 25px;" VerticalAlign="top"> |
| <asp:TableCell CssClass="style1"> |
| <asp:Label ID="Label1" runat="server" Text="Start Date :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadDatePicker ID="RadDatePicker1" runat="server" Skin="Office2007" Culture="English (United States)" |
| ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True"> |
| <DateInput ID="DateInput1" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" |
| runat="server" CausesValidation="True"> |
| </DateInput> |
| <Calendar ID="Calendar1" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x" Skin="Office2007" runat="server"> |
| </Calendar> |
| <DatePopupButton runat="server"></DatePopupButton> |
| </telerik:RadDatePicker> |
| </asp:TableCell> |
| <asp:TableCell> |
| <asp:Label ID="Label2" runat="server" Text="Start Time :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| |
| <telerik:RadTimePicker ID="RadTimePicker1" runat="server" Culture="English (United States)" |
| Skin="Office2007" ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| <TimeView runat="server" CellSpacing="-1"> |
| </TimeView> |
| <TimePopupButton runat="server" CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton> |
| <DateInput runat="server" Width="" LabelCssClass="" CausesValidation="True" ValidationGroup="1"> |
| </DateInput> |
| </telerik:RadTimePicker> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow> |
| <asp:TableCell CssClass="style1"> |
| <asp:Label ID="Label3" runat="server" Text="End Date :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadDatePicker ID="RadDatePicker2" runat="server" Skin="Office2007" Culture="English (United States)" |
| ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <DateInput ID="DateInput2" LabelCssClass="radLabelCss_Office2007" Skin="Office2007" |
| runat="server"> |
| </DateInput> |
| <Calendar ID="Calendar2" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x" Skin="Office2007" runat="server"> |
| </Calendar> |
| <DatePopupButton runat="server"></DatePopupButton> |
| </telerik:RadDatePicker> |
| </asp:TableCell> |
| <asp:TableCell> |
| <asp:Label ID="Label4" runat="server" Text="End Time :"></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| |
| <telerik:RadTimePicker ID="RadTimePicker2" runat="server" Culture="English (United States)" |
| Skin="Office2007" ValidationGroup="1" CausesValidation="True" DateInput-CausesValidation="True" |
| DateInput-ValidationGroup="1"> |
| <Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
| ViewSelectorText="x"> |
| </Calendar> |
| <DatePopupButton Visible="False" CssClass="" ImageUrl="" HoverImageUrl=""></DatePopupButton> |
| <TimeView runat="server" CellSpacing="-1"> |
| </TimeView> |
| <TimePopupButton runat="server" CssClass="" ImageUrl="" HoverImageUrl=""></TimePopupButton> |
| <DateInput runat="server" Width="" LabelCssClass="" CausesValidation="True" ValidationGroup="1"> |
| </DateInput> |
| </telerik:RadTimePicker> |
| </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblMaxEvents" Text="Max Events to Return: "></asp:Label></asp:TableCell> |
| <asp:TableCell> |
| <telerik:RadComboBox ID="rdcMaxEvents" runat="server" ValidationGroup="1" CausesValidation="True"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Selected="True" Text="make a selection" Value="(none)" /> |
| <telerik:RadComboBoxItem runat="server" Text="10" Value="10" /> |
| <telerik:RadComboBoxItem runat="server" Text="20" Value="20" /> |
| <telerik:RadComboBoxItem runat="server" Text="50" Value="50" /> |
| <telerik:RadComboBoxItem runat="server" Text="100" Value="100" /> |
| <telerik:RadComboBoxItem runat="server" Text="250" Value="250" /> |
| <telerik:RadComboBoxItem runat="server" Text="500" Value="500" /> |
| <telerik:RadComboBoxItem runat="server" Text="1000" Value="1000" /> |
| </Items> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadComboBox> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblGroupBy" Text="Group By Incident? "></asp:Label></asp:TableCell><asp:TableCell> |
| <asp:RadioButtonList ID="rblGroupBy" runat="server" RepeatDirection="Horizontal" |
| RepeatLayout="Flow"> |
| <asp:ListItem>Yes</asp:ListItem> |
| <asp:ListItem Selected="True">No</asp:ListItem> |
| </asp:RadioButtonList> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Label runat="server" ID="lblEntireSite" Text="Entire Site? "></asp:Label></asp:TableCell><asp:TableCell> |
| <asp:RadioButtonList ID="rblEntireSite" runat="server" RepeatDirection="Horizontal" |
| RepeatLayout="Flow"> |
| <asp:ListItem>Yes</asp:ListItem> |
| <asp:ListItem Selected="True">No</asp:ListItem> |
| </asp:RadioButtonList> |
| </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow VerticalAlign="top"> |
| <asp:TableCell> |
| <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" /> |
| </asp:TableCell><asp:TableCell> </asp:TableCell> |
| <asp:TableCell ColumnSpan="2"> </asp:TableCell> |
| </asp:TableRow> |
| <asp:TableRow> |
| <asp:TableCell ColumnSpan="4"> |
| <asp:Label runat="server" ID="lblError" Text="" Font-Bold="True" ForeColor="Red"></asp:Label></asp:TableCell> |
| </asp:TableRow> |
| </asp:Table> |
| <asp:UpdatePanel ID="UpdatePanel2" runat="server"> |
| <ContentTemplate> |
| <table> |
| <tr> |
| <td> |
| <telerik:RadGrid ID="RadGrid2" runat="server" Visible="True" Skin="Vista" AllowPaging="True" |
| AutoGenerateColumns="False" AllowFilteringByColumn="True" PageSize="5" BorderColor="Black" |
| BorderStyle="Solid" OnPageIndexChanged="RadGrid2_PageIndexChanged"> |
| <HeaderContextMenu EnableTheming="True" Skin="Vista"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </HeaderContextMenu> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn HeaderText="additional_info" UniqueName="additional_info" |
| DataField="additional_info"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="alarminc_no" UniqueName="alarminc_no" DataField="alarminc_no"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="event_date" UniqueName="event_date" DataField="event_date"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="event_id" UniqueName="event_id" DataField="event_id"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="phone" UniqueName="phone" DataField="phone"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="system_no" UniqueName="system_no" DataField="system_no"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <ClientSettings> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True" Skin="Vista"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| </div> |
| <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="WebBlue" DecoratedControls="All" /> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadTabStrip ID="tsTableBudget" runat="server" Skin="WebBlue" MultiPageID="mpBudget" |
| Width="100%"> |
| <Tabs> |
| <telerik:RadTab Text="Tab1" PageViewID="Tab1" /> |
| <telerik:RadTab Text="Tab2" PageViewID="Tab2" /> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="mpBudget" runat="server"> |
| <telerik:RadPageView ID="Tab1" runat="server" Width="100%"> |
| <telerik:RadAjaxPanel ID="AjaxPanelSuivi" runat="server"> |
| <asp:Button ID="Button1" runat="server" Text="Button1 Style not well apply" /> |
| </telerik:RadAjaxPanel> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView1" runat="server" Width="100%"> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" > |
| <asp:Button ID="Button3" runat="server" Text="Button2 Style not well apply" /> |
| </telerik:RadAjaxPanel> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| <asp:Button ID="Button2" runat="server" Text="Button rendered ok" /> |
| <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > | |
| <AjaxSettings> | |
| <telerik:AjaxSetting AjaxControlID="btnConfirmYes"> | |
| <UpdatedControls> | |
| <telerik:AjaxUpdatedControl ControlID="pnlDocumentInfo" LoadingPanelID="AjaxLoadingPanel1" /> | |
| </UpdatedControls> | |
| </telerik:AjaxSetting> | |
| </AjaxSettings> | |
| </telerik:RadAjaxManagerProxy> |
| <cc1:ModalPopupExtender | |
| ID="mpeDocumentInfoLinkButton" | |
| runat="server" | |
| PopupControlID="pnlEditDocumentInfo" | |
| TargetControlID="lbEditDocInfo" | |
| OkControlID="btnConfirmYes" | |
| BackgroundCssClass="modalBackground" | |
| CancelControlID="btnCancel" /> |
| <asp:Panel | |
| ID="pnlEditDocumentInfo" | |
| runat="server" | |
| HorizontalAlign="Left" | |
| CssClass="modalPopup" | |
| style="display:none;"> | |
| <table> | |
| <tr> | |
| <td> | |
| <asp:Label ID="lblDocumentName" runat="server" Text="Version Identifer Name:" Font-Bold="true" /><br /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <asp:TextBox ID="tbxDocumentName" runat="server" Width="200px" /> | |
| <asp:RequiredFieldValidator ID="rfvDocumentName" runat="server" | |
| ErrorMessage="Required!" | |
| ControlToValidate="tbxDocumentName" /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <strong>Document Revision Date</strong><br /> | |
| MM/DD/YYYY<br /> | |
| <telerik:RadDatePicker ID="rdpRevisionDate" runat="server" Skin="Office2007" /><br /> | |
| <br /> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td> | |
| <asp:Button ID="btnConfirmYes" runat="server" Text="Save" Width="75px" /> <asp:Button ID="btnCancel" runat="server" Text="Cancel" Width="75px" /> | |
| </td> | |
| </tr> | |
| </table> | |
| </asp:Panel> |
| <asp:Panel ID="pnlDocumentInfo" runat="server"> | |
| <table id="tblDocumentInfo" width="100%" border="0"> | |
| <tr> | |
| <td> | |
| Title: <asp:Label ID="lblDocName" runat="server" /> | |
| </td> | |
| <td align="right"> | |
| <asp:ImageButton runat="server" ID="ibDocInfo" AlternateText="Edit Document Information" ImageUrl="~/images/btn_edit.gif" /><asp:LinkButton ID="lbEditDocInfo" runat="server" Text="Edit" /> | |
| </td> | |
| </tr> | |
| </table></panel> |
| _242 is null |
| getCellByColumnUniqueName()(null, "iPackageId")ScriptRe...220000000 (line 3399) |
| getDataItemKeyValue(Object, null)Default.aspx (line 235) |
| RowSelected(Object, Object)Default.aspx (line 229) |
| _handler()(Object, Object)ScriptRe...594496661 (line 2503) |
| raiseEvent()("rowSelected", Object)ScriptRe...220000000 (line 794) |
| (?)()()ScriptRe...220000000 (line 6551) |
| _selectRowInternal()(tr#ctl00_ctl00_baseContentPlaceHolder1_cpContentArea_~/Configurations/RecordingConfiguration/TabControls/TabPackageSelection.ascxuserControl_RadGrid1_ctl00__1.GridAltRow_Vista, Object rawEvent=Event click altKey=false button=0, false, false, true, true)ScriptRe...220000000 (line 2578) |
| _click()(Object rawEvent=Event click altKey=false button=0)ScriptRe...220000000 (line 2485) |
| (?)()()ScriptRe...594496661 (line 50) |
| browserHandler()(click clientX=231, clientY=223)ScriptRe...594496661 (line 3034) |
| [Break on this error] return _242.get_element().cells[i]; |
| <asp:Label runat="server" ID="RESX_lblChooseTelephonyEnviroment" meta:resourcekey="RESX_lblChooseTelephonyEnviroment"></asp:Label> |
| <br /> |
| <br /> |
| <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="PackagesDataSource" GridLines="None" |
| Skin="Vista" Width="100%" BorderWidth="0px" ShowHeader="False" AllowAutomaticDeletes="True" |
| AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowMultiRowEdit="false" |
| AllowMultiRowSelection="false"> |
| <HeaderContextMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="TopAndBottom" DataKeyNames="iPackageId" |
| DataSourceID="PackagesDataSource" EditMode="InPlace"> |
| <CommandItemTemplate> |
| <div style="padding: 0 5px;"> |
| <asp:LinkButton ID="btnCancel" runat="server" CommandName="CancelAll" CausesValidation="false" |
| Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'><img style="border:0px;vertical-align:middle;" alt="" src="./Img/Cancel.gif" />Cancel</asp:LinkButton> |
| <asp:LinkButton ID="Add" runat="server" CommandName="InitInsert" CausesValidation="false" |
| Enabled='<%# !RadGrid1.MasterTableView.IsItemInserted %>'><img style="border:0px;vertical-align:middle;" alt="" src="/Img/AddRecord.gif" />Add Telephony Enviroment</asp:LinkButton> |
| <asp:LinkButton ID="LinkButton1" CausesValidation="false" OnClientClick="javascript:return confirm('Delete Selected package?')" |
| runat="server" CommandName="DeleteSelected"><img style="border:0px;vertical-align:middle;" alt="" src="/Img/Delete.gif" />Delete</asp:LinkButton> |
| <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="false" CommandName="PerformInsert" |
| Visible='<%# RadGrid1.MasterTableView.IsItemInserted %>'>Add this Customer</asp:LinkButton> |
| </div> |
| </CommandItemTemplate> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridBoundColumn DataField="iPackageId" DataType="System.Int32" HeaderText="iPackageId" |
| ReadOnly="True" SortExpression="iPackageId" UniqueName="iPackageId" Display="false" |
| ForceExtractValue="None"> |
| </telerik:GridBoundColumn> |
| <telerik:GridDropDownColumn DataSourceID="PackageTypesDataSource" SortExpression="iPackageType" |
| UniqueName="" DataField="iPackageType" meta:resourcekey="RESX_iPackageType" ListValueField="iPackageTypeID" |
| ListTextField="nvcPackageName" DropDownControlType="RadComboBox"> |
| </telerik:GridDropDownColumn> |
| <telerik:GridBoundColumn DataField="nvcPackageName" HeaderText="nvcPackageName" SortExpression="nvcPackageName" |
| UniqueName="nvcPackageName" Display="true" meta:resourcekey="RESX_nvcPackageName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="iSwitchID" DataType="System.Int32" HeaderText="iSwitchID" |
| SortExpression="iSwitchID" UniqueName="iSwitchID" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="iWizardStep" DataType="System.Int32" HeaderText="iWizardStep" |
| SortExpression="iWizardStep" UniqueName="iWizardStep" Display="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete"> |
| </telerik:GridButtonColumn> |
| </Columns> |
| <EditFormSettings CaptionDataField="iCaptureId"> |
| <FormTableItemStyle Width="100%" Height="29px"></FormTableItemStyle> |
| <FormTableStyle GridLines="None" CellSpacing="0" CellPadding="2"></FormTableStyle> |
| <FormStyle Width="100%" BackColor="#eef2ea"></FormStyle> |
| <EditColumn ButtonType="ImageButton" /> |
| </EditFormSettings> |
| </MasterTableView> |
| <SelectedItemStyle BorderWidth="1px" Font-Bold="True" Wrap="True" /> |
| <ClientSettings> |
| <ClientEvents OnRowSelected="RowSelected" /> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| <asp:ObjectDataSource ID="PackagesDataSource" runat="server" DeleteMethod="Delete" |
| InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="Fill" |
| TypeName="NPEWebApplication.Configurations.RecordingConfiguration.CustomDataSources.PackageDataSource" |
| UpdateMethod="Update"> |
| <DeleteParameters> |
| <asp:Parameter Name="iPackageId" Type="String" /> |
| <asp:Parameter Name="original_iPackageId" Type="Int32" /> |
| </DeleteParameters> |
| <UpdateParameters> |
| <asp:Parameter Name="iPackageType" Type="Int32" /> |
| <asp:Parameter Name="nvcPackageName" Type="String" /> |
| <asp:Parameter Name="iSwitchID" Type="Int32" /> |
| <asp:Parameter Name="iWizardStep" Type="Int32" /> |
| <asp:Parameter Name="original_iPackageId" Type="Int32" /> |
| </UpdateParameters> |
| <InsertParameters> |
| <asp:Parameter Name="iPackageId" Type="Int32" /> |
| <asp:Parameter Name="iPackageType" Type="Int32" /> |
| <asp:Parameter Name="nvcPackageName" Type="String" /> |
| <asp:Parameter Name="iSwitchID" Type="Int32" /> |
| <asp:Parameter Name="iWizardStep" Type="Int32" /> |
| </InsertParameters> |
| </asp:ObjectDataSource> |
| <asp:ObjectDataSource ID="PackageTypesDataSource" runat="server" OldValuesParameterFormatString="original_{0}" |
| SelectMethod="Fill" TypeName="NPEWebApplication.Configurations.RecordingConfiguration.CustomDataSources.PackageTypesDataSource"> |
| </asp:ObjectDataSource> |
| <asp:HiddenField runat="server" ID="hdnSelectedIndex" Value="-1" /> |
| <script language="javascript" type="text/javascript"> |
| function RowSelected(sender, eventArgs) { |
| var indexField = document.getElementById("<%=hdnSelectedIndex.ClientID %>"); |
| if (indexField) { |
| indexField.value = getDataItemKeyValue(sender, eventArgs.get_gridDataItem()); |
| } |
| alert(indexField.value); |
| } |
| function getDataItemKeyValue(radGrid, item) { |
| alert("hey"); |
| alert(radGrid.get_masterTableView().getCellByColumnUniqueName(item, "iPackageId")); |
| return parseInt(radGrid.get_masterTableView().getCellByColumnUniqueName(item, "iPackageId").innerHTML); |
| } |
| </script> |