| protected void RemoveAppropriateTabs() |
| { |
| switch (LoginIndType.Trim()) |
| { |
| case "A": // Admin |
| // Do nothing - Admins can view all tabs |
| break; |
| case "G": // Group Leaders can view Service Summary, Call Delivery Settings, Group Leader and Billing Info tabs |
| tabProfile.Tabs.Remove(tabProfile.Tabs[4]); |
| tabProfile.Tabs.Remove(tabProfile.Tabs[4]); |
| mvwProfile.PageViews.Remove(vwFeatures); |
| mvwProfile.PageViews.Remove(vwStatusChanges);; |
| break; |
| case "M": // Messengers can view Group Leader tab |
| case "R": // Sales Reps can view Group Leader tab |
| case "S": // Sponsors can view Group Leader tab |
| case "L": // Resellers can vew Group Leader tab |
| tabProfile.Tabs.Remove(tabProfile.Tabs[0]); |
| tabProfile.Tabs.Remove(tabProfile.Tabs[0]); |
| tabProfile.Tabs.Remove(tabProfile.Tabs[1]); |
| tabProfile.Tabs.Remove(tabProfile.Tabs[1]); |
| tabProfile.Tabs.Remove(tabProfile.Tabs[1]); |
| mvwProfile.PageViews.Remove(vwServiceSummary); |
| mvwProfile.PageViews.Remove(vwDeliverySettings); |
| mvwProfile.PageViews.Remove(vwBillingInfo); |
| mvwProfile.PageViews.Remove(vwFeatures); |
| mvwProfile.PageViews.Remove(vwStatusChanges); |
| break; |
| } |
| } |
| <%@ Page Language="C#" MasterPageFile="~/App_MasterPages/DesignTimeMaster.master" |
| AutoEventWireup="true" CodeFile="Profile.aspx.cs" Inherits="CustomerCare_Group_Profile" |
| Title="Profile" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <%@ Register Assembly="RadTabStrip.Net2" Namespace="Telerik.WebControls" TagPrefix="radTS" %> |
| <%@ Register Src="~/CustomerCare/Messaging/UserControls/WhenToSend.ascx" TagName="WhenToSend" |
| TagPrefix="uc1" %> |
| <%@ Register Src="~/CustomerCare/Group/MessengerEditorCtrl.ascx" TagName="MessengerEditor" |
| TagPrefix="uc1" %> |
| <%@ Register Src="~/Admin/Product/PackageFeaturesCtrl.ascx" TagName="PackageFeaturesCtrl" |
| TagPrefix="uc1" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="bodyContent" runat="Server"> |
| <telerik:RadAjaxPanel ID="pnlAll" runat="server"> |
| <div style="float: right; padding-right: 20px;"> |
| <div class="label-required" style="float: left; padding-bottom: 10px; text-align: left; |
| width: 100%;"> |
| Indicates a required field |
| </div> |
| </div> |
| <telerik:RadTabStrip ID="tabProfile" runat="server" MultiPageID="mvwProfile" SelectedIndex="0" |
| Skin="Telerik"> |
| <Tabs> |
| <telerik:RadTab PageViewID="vwServiceSummary" runat="server" Text="Service Summary" /> |
| <telerik:RadTab PageViewID="vwDeliverySettings" runat="server" Text="Call Delivery Settings" /> |
| <telerik:RadTab PageViewID="vwGroupLeader" runat="server" Text="Group Leader" /> |
| <telerik:RadTab PageViewID="vwBillingInfo" runat="server" Text="Billing Info" /> |
| <telerik:RadTab PageViewID="vwFeatures" runat="server" Text="Features" /> |
| <telerik:RadTab PageViewID="vwStatusChanges" runat="server" Text="Status Changes" /> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <asp:Panel ID="pnlProfile" runat="server" HorizontalAlign="left"> |
| <telerik:RadMultiPage ID="mvwProfile" runat="server" SelectedIndex="0" Style="border-right: solid 1px #ccc; |
| border-top: solid 1px #ccc; margin-top: -1px; border-left: solid 1px #ccc; border-bottom: solid 1px #ccc; |
| padding: 6px; margin-right: 15px;"> |
| <%-- Service Summary --%> |
| <telerik:RadPageView ID="vwServiceSummary" runat="server"> |
| <div class="header-label" style="margin-bottom: 15px; margin-top: 15px;"> |
| Service Plan Summary |
| </div> |
| <div style="width: 100%;"> |
| <div style="float: left; width: 45%;"> |
| <table border="0" style="margin-left: 10px;"> |
| <tr> |
| <td> |
| Group Status: |
| </td> |
| <td> |
| <asp:Label ID="lblGroupStatus" runat="server" Text="Active" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Expiration Date: |
| </td> |
| <td> |
| <asp:Label ID="lblExpirationDate" runat="server" Text="March 1, 2008" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Credits purchased: |
| </td> |
| <td> |
| <asp:Label ID="lblNumCreditsPurchased" runat="server" Text="1000" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Credits used: |
| </td> |
| <td> |
| <asp:Label ID="lblNumCreditsUsed" runat="server" Text="325" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Phone Numbers: |
| </td> |
| <td> |
| <asp:Label ID="lblNumPhoneNumbers" runat="server" Text="400" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Service Plan: |
| </td> |
| <td> |
| <asp:Label ID="lblServicePlan" runat="server" Text="Some Plan" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblNumSubGroups" runat="server" Text="300" /> |
| Sub Groups |
| </td> |
| <td> |
| <asp:Label ID="lblNumSubGroupsUsed" runat="server" Text="12" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblMessageLength" runat="server" Text="45" /> |
| Second Messages |
| </td> |
| </tr> |
| </table> |
| </div> |
| <div style="float: right; width: 45%"> |
| <table border="0" style="height: 100%; width: 90%;"> |
| <tr> |
| <td> |
| <asp:Label ID="lblTextToSpeech" runat="server" Text="Text to Speech<br />" /> |
| <asp:Label ID="lblAutoCall" runat="server" Text="Auto Call<br />" /> |
| </td> |
| <td valign="bottom"> |
| <asp:Button ID="btnRenewUpgrade" runat="server" Text="Renew/Upgrade" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <div style="float: left; margin-top: 10px; width: 100%;"> |
| <div style="float: left; width: 45%;"> |
| <div class="header-label" style="float: left; margin-bottom: 15px; width: 90%;"> |
| Group Leader Information |
| </div> |
| |
| <asp:HyperLink ID="lnkEditGroupLeaderInfo" runat="server" NavigateUrl="~/customercare/group/profile.aspx?vw=2" |
| Text="Edit" /> |
| <div style="float: left; width: 80%;"> |
| <table border="0" style="margin-left: 10px; width: 100%;"> |
| <tr> |
| <td> |
| <asp:Label ID="lblGroupLeaderGroupName" runat="server" Text="Test Group Name" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblGroupLeaderName" runat="server" Text="Jack Nimble" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblGroupLeaderStreet" runat="server" Text="123 Sesame St." /> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <asp:Label ID="lblGroupLeaderCity" runat="server" Text="Playland, OH 44094" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblGroupLeaderPhone" runat="server" Text="440.205.9920" /> |
| </td> |
| <td> |
| <asp:Button ID="btnVerifyPhone" runat="server" Text="Verify Phone Number" Visible="false" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblGroupLeaderEmail" runat="server" Text="jnimble@onecallnow.com" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| PIN: |
| <asp:Label ID="lblPIN" runat="server" Text="1234" /> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <asp:Label ID="lblReceivesEmailedCallReports" runat="server" Text="Receives Emailed Call Reports" /> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2"> |
| <asp:Label ID="lblTimeZone" runat="server" Text="Eastern Time Zone" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <div style="float: right; width: 45%"> |
| <div class="header-label" style="float: left; margin-bottom: 15px; width: 90%;"> |
| Billing Information |
| </div> |
| |
| <asp:HyperLink ID="lnkEditBillingInfo" runat="server" NavigateUrl="~/CustomerCare/Group/profile.aspx?vw=3" |
| Text="Edit" /> |
| <table border="0" style="float: left; margin-left: 10px; width: 100%;"> |
| <tr> |
| <td> |
| <asp:Label ID="lblBillingInfoName" runat="server" Text="Jack Nimble" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblBillingInfoStreet" runat="server" Text="123 Sesame St." /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblBillingInfoCity" runat="server" Text="Playland, OH 44094" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblBillingInfoPhone" runat="server" Text="440.205.9920" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Label ID="lblBillingInfoEmail" runat="server" Text="jnimble@onecallnow.com" /> |
| </td> |
| </tr> |
| </table> |
| <div class="header-label" style="float: left; margin-bottom: 15px; margin-top: 10px; |
| width: 90%;"> |
| Payment Information |
| </div> |
| <table border="0" style="float: left; margin-left: 10px; padding-right: 10px; width: 90%;"> |
| <tr> |
| <td> |
| Name On Card: |
| </td> |
| <td> |
| <asp:Label ID="lblCardName" runat="server" Text="John Doe" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Card Number: |
| </td> |
| <td> |
| <asp:Label ID="lblCreditCard" runat="server" Text="XXXX-XXXX-XXXX-1234" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Expiration Date: |
| </td> |
| <td> |
| <asp:Label ID="lblCreditCardDate" runat="server" Text="1/2009" /> |
| </td> |
| </tr> |
| <tr> |
| <asp:Panel ID="pnlAutoRenewal" runat="server" Visible="true"> |
| <td colspan="2" style="width: 40%;"> |
| <div style="padding-top: 10px; width: 80%;"> |
| <span style="font-weight: bold;">Auto-Renewal is enabled.</span> Your service will |
| be automatically extended 2 weeks prior to your expiration date using the payment |
| information above. |
| </div> |
| </td> |
| </asp:Panel> |
| </tr> |
| </table> |
| </div> |
| </div> |
| </telerik:RadPageView> |
| <%-- Call Delivery Settings --%> |
| <telerik:RadPageView ID="vwDeliverySettings" runat="server"> |
| <div style="margin-top: 20px;"> |
| <asp:Label ID="lblDeliverySettingsErrors" CssClass="error" runat="server" Text="Here is where the error messages go." |
| Visible="false" /> |
| </div> |
| <div class="header-label" style="margin-bottom: 15px; margin-top: 15px;"> |
| Call Delivery Settings |
| </div> |
| <div style="padding-left: 10px; padding-right: 10px;"> |
| <table> |
| <tr> |
| <td> |
| Caller ID: |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtCallerID" ReadOnly="true" runat="server" /> |
| </td> |
| </tr> |
| </table> |
| <p> |
| Caller ID is the telephone number that will appear as the origination number on |
| voice notification messages. Telephone numbers need to be verified before they can |
| be set as the Caller ID. |
| </p> |
| <h3> |
| Standard Call Delivery Hours |
| </h3> |
| <div style="width: 300px;"> |
| <uc1:WhenToSend ID="ucCallDeliveryHours" runat="server" /> |
| </div> |
| <asp:RadioButtonList ID="rdoCallLocation" RepeatDirection="Vertical" runat="server" |
| Visible="false"> |
| <%-- Add Values!! --%> |
| <asp:ListItem Selected="true" Text="All calls are local – deliver using my time zone and these set calling times for everyone." /> |
| <asp:ListItem Text="Calls go out to people across the country. Send calls based on the destination's local time." /> |
| </asp:RadioButtonList> |
| <h3 style="padding-top: 10px;"> |
| Standard Message Parts |
| </h3> |
| <telerik:RadToolTipManager ID="CDSManager" runat="server"> |
| </telerik:RadToolTipManager> |
| <table border="0"> |
| <tr valign="middle"> |
| <td> |
| <asp:CheckBox ID="chkPlayTones" runat="server" Text="Play Tones" /> |
| </td> |
| <td> |
| <telerik:RadToolTip runat="server" RelativeTo="Element" Text="Play Tones" TargetControlID="imgPlayTonesInfo" /> |
| <asp:Image ID="imgPlayTonesInfo" ImageUrl="~/Images/Icons/16x16/feature-more-information-16.gif" |
| runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkPlayGreeting" runat="server" Text="Play Greeting" /> |
| </td> |
| <td> |
| <telerik:RadToolTip runat="server" RelativeTo="Element" Text="Play Greeting" TargetControlID="imgPlayGreeting" /> |
| <asp:Image ID="imgPlayGreeting" ImageUrl="~/Images/Icons/16x16/feature-more-information-16.gif" |
| runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkPlayClosing" runat="server" Text="Play Closing" /> |
| </td> |
| <td> |
| <telerik:RadToolTip runat="server" RelativeTo="Element" Text="Play Closing" TargetControlID="imgPlayClosing" /> |
| <asp:Image ID="imgPlayClosing" ImageUrl="~/Images/Icons/16x16/feature-more-information-16.gif" |
| runat="server" /> |
| </td> |
| <td> |
| <asp:DropDownList ID="ddlClosing" runat="server" Visible="false" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkPollingEnabled" runat="server" Text="Enable Polling" /> |
| </td> |
| <td> |
| <telerik:RadToolTip runat="server" RelativeTo="Element" Text="Enable Polling" TargetControlID="imgPollingEnabled" /> |
| <asp:Image ID="imgPollingEnabled" ImageUrl="~/Images/Icons/16x16/feature-more-information-16.gif" |
| runat="server" /> |
| </td> |
| </tr> |
| </table> |
| <div style="float: right;"> |
| <asp:Button ID="btnSaveCallDeliverySettings" OnClick="btnSaveCallDeliverySettings_Click" |
| runat="server" Text="Save" /> |
| <asp:Button ID="btnCancelCallDeliverySettings" OnClick="btnCancelCallDeliverySettings_Click" |
| runat="server" Text="Cancel" /> |
| </div> |
| </div> |
| </telerik:RadPageView> |
| <%-- Group Leader --%> |
| <telerik:RadPageView ID="vwGroupLeader" runat="server"> |
| <div class="header-label" style="margin-bottom: 15px; margin-top: 15px; padding-left: 10px;"> |
| Group Leader Information |
| </div> |
| <div style="width: 100%;"> |
| <div style="float: left; padding-left: 10px;"> |
| <uc1:MessengerEditor ID="ucGroupLeaderInfo" runat="server" /> |
| </div> |
| <table> |
| <tr> |
| <td> |
| <asp:Button ID="btnVerifyGroupLeaderPhone" runat="server" Text="Verify Phone Number" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:Button ID="btnVerifyGroupLeaderEmail" runat="server" Text="Verify Email" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| <div style="float: right; padding-right: 10px; text-align: right; width: 100%;"> |
| <asp:Button ID="btnSaveGroupLeader" OnClick="btnSaveGroupLeader_Click" runat="server" |
| Text="Save" /> |
| <asp:Button ID="btnCancelGroupLeader" OnClick="btnCancelGroupLeader_Click" runat="server" |
| Text="Cancel" /> |
| </div> |
| </telerik:RadPageView> |
| <%-- Billing Info --%> |
| <telerik:RadPageView ID="vwBillingInfo" runat="server"> |
| <div style="float: left; width: 100%;"> |
| <div class="header-label" style="float: left; margin-top: 10px; width: 350px;"> |
| Billing Information |
| </div> |
| <div class="header-label" style="float: right; margin-top: 10px; width: 450px;"> |
| Payment Information |
| </div> |
| </div> |
| <div style="float: left; width: 100%;"> |
| <asp:Label ID="lblBillingInfoErrors" CssClass="error" runat="server" Text="Here is where the error messages go." |
| Visible="false" /> |
| <div style="float: left; padding-bottom: 10px; padding-left: 10px;"> |
| <table> |
| <tr> |
| <td> |
| <uc1:MessengerEditor ID="ucBillingIndividual" runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td align="right"> |
| <asp:Button ID="btnVerifyBillingInfoEmail" runat="server" Text="Verify Email" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| <div style="float: right; padding-right: 10px;"> |
| <table border="0" style="margin-bottom: 10px; padding-bottom: 10px;"> |
| <tr> |
| <td class="main"> |
| <table width="100%" cellspacing="0" cellpadding="0" border="0"> |
| <tr style="height: 30px"> |
| <td class="green-bold" colspan="2"> |
| Select Payment Type |
| </td> |
| </tr> |
| <tr class="form-label"> |
| <td class="input" style="width: 30%"> |
| <asp:RadioButton ID="rbtCC" runat="server" GroupName="PaymentMethod" Text="Credit Card" |
| Checked="True" /> |
| </td> |
| <td align="right"> |
| <div runat="server" id="divKeepInfoCell"> |
| <asp:CheckBox runat="server" ID="chkKeepInfo" Text="Save Payment information for fututre transactions." /> |
| </div> |
| </td> |
| </tr> |
| </table> |
| <div id="divCCInfo" class="indent" runat="server"> |
| <table width="100%" cellspacing="0" cellpadding="0" border="0"> |
| <tr style="height: 30px"> |
| <td class="green-bold" colspan="2"> |
| Credit Card Information |
| </td> |
| </tr> |
| <tr> |
| <td class="input"> |
| <div class="label-required"> |
| <asp:Label ID="lblCCName" Text="Name as it appears on card" Font-Bold="True" runat="server" /> |
| </div> |
| <telerik:RadTextBox ID="txtCCName" runat="server" Width="225px" MaxLength="30" InvalidStyleDuration="100" |
| LabelCssClass="" /> |
| </td> |
| <td class="input"> |
| <div class="label-required"> |
| <asp:Label ID="lblCCNumber" Text="Credit Card Number" Font-Bold="True" runat="server" /> |
| </div> |
| <telerik:RadMaskedTextBox ID="txtCCNumber" runat="server" SelectionOnFocus="CaretToBeginning" |
| Width="180px" InvalidStyleDuration="100" PromptChar=" " Mask="####################" |
| DisplayPromptChar=" " Rows="1" LabelCssClass="" /> |
| </td> |
| </tr> |
| <tr style="padding-top: 5px;"> |
| <td class="input"> |
| <div class="label-required"> |
| <asp:Label ID="lblCCExpiration" runat="server" Font-Bold="True" Text="Expiration Date" /> |
| </div> |
| <table width="100%" cellspacing="0" cellpadding="0" border="0"> |
| <tr> |
| <td> |
| <telerik:RadComboBox ID="cmbCCMonth" runat="server" Width="140px" Height="200px" |
| MarkFirstMatch="True"> |
| <Items> |
| <telerik:RadComboBoxItem runat="server" Value="1" Text="Janunary" /> |
| <telerik:RadComboBoxItem runat="server" Value="2" Text="February" /> |
| <telerik:RadComboBoxItem runat="server" Value="3" Text="March" /> |
| <telerik:RadComboBoxItem runat="server" Value="4" Text="April" /> |
| <telerik:RadComboBoxItem runat="server" Value="5" Text="May" /> |
| <telerik:RadComboBoxItem runat="server" Value="6" Text="June" /> |
| <telerik:RadComboBoxItem runat="server" Value="7" Text="July" /> |
| <telerik:RadComboBoxItem runat="server" Value="8" Text="August" /> |
| <telerik:RadComboBoxItem runat="server" Value="9" Text="September" /> |
| <telerik:RadComboBoxItem runat="server" Value="10" Text="October" /> |
| <telerik:RadComboBoxItem runat="server" Value="11" Text="November" /> |
| <telerik:RadComboBoxItem runat="server" Value="12" Text="December" /> |
| </Items> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </td> |
| <td> |
| <telerik:RadComboBox ID="cmbCCYear" runat="server" Width="80px" MarkFirstMatch="True" |
| Height="200px"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </telerik:RadComboBox> |
| </td> |
| </tr> |
| </table> |
| </td> |
| <td class="input"> |
| <div class="label-required"> |
| <asp:Label ID="lblCCCode" Text="Security Code" Font-Bold="True" runat="server" /> |
| </div> |
| <telerik:RadMaskedTextBox ID="txtCCCode" runat="server" SelectionOnFocus="CaretToBeginning" |
| Width="50px" Mask="#####" InvalidStyleDuration="100" PromptChar=" " LabelCssClass="" /> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" align="right"> |
| <asp:Image ID="imgCCCode" runat="server" ImageUrl="~/images/shared/cardid.gif" AlternateText="Find the security code on your card as shown" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <%-- <div style="float: left; width: 100%;"> |
| <div style="float: left; padding-left: 10px;"> |
| <asp:RadioButtonList ID="rdoPaymentInformation" AutoPostBack="true" OnSelectedIndexChanged="rdoPaymentInformation_SelectedIndexChanged" |
| runat="server"> |
| <asp:ListItem Value="C" Text="Credit Card" Selected="True" /> |
| <asp:ListItem Value="E" Text="Electric Transfer" /> |
| </asp:RadioButtonList> |
| </div> |
| <div style="float: left;"> |
| <asp:Panel ID="pnlCreditCard" runat="server" Visible="true"> |
| <table border="0"> |
| <tr> |
| <td> |
| <div class="label-required" style="float: left; padding-bottom: 10px; text-align: left; |
| width: 100%;"> |
| Name as is appears on card: |
| </div> |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtCardName" runat="server" Width="145" EmptyMessage="John Doe" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <div class="label-required" style="float: left; padding-bottom: 10px; text-align: left; |
| width: 100%;"> |
| Credit Card Number: |
| </div> |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtCreditCardNum" runat="server" Width="145" /> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <div class="label-required" style="float: left; padding-bottom: 10px; text-align: left; |
| width: 100%;"> |
| Expiration Date: |
| </div> |
| </td> |
| <td valign="top"> |
| <telerik:RadTextBox ID="txtExpirationMonth" EmptyMessage="Month" runat="server" Width="65" /> |
| |
| <telerik:RadTextBox ID="txtExpiractionYear" runat="server" EmptyMessage="Year" Width="65" /> |
| </td> |
| </tr> |
| <tr> |
| <td colspan="2" rowspan="3"> |
| <asp:Image ID="imgCreditCard" runat="server" ImageUrl="~/Images/cardid.gif" /> |
| </td> |
| </tr> |
| </table> |
| </asp:Panel> |
| </div> |
| </div>--%> |
| <div style="float: left; width: 100%; overflow: visible; margin-bottom: 10px;"> |
| <div style="margin-bottom: 10px; margin-right: 10px; padding-bottom: 10px; text-align: right; |
| overflow: visible; width: 100%;"> |
| <asp:Button ID="btnSaveBillingInfo" OnClick="btnSaveBillingInfo_Click" runat="server" |
| Text="Save" /> |
| <asp:Button ID="btnCancelBillingInfo" OnClick="btnCancelBillingInfo_Click" runat="server" |
| Text="Cancel" /> |
| </div> |
| </div> |
| </telerik:RadPageView> |
| <%-- Features --%> |
| <telerik:RadPageView ID="vwFeatures" runat="server"> |
| <asp:Label ID="lblFeaturesErrors" CssClass="error" runat="server" Text="Here is where the error messages go." |
| Visible="false" /> |
| <div class="header-label" style="margin-bottom: 15px; margin-top: 15px;"> |
| No Cost Features |
| </div> |
| <div style="width: 100%;"> |
| <div style="float: left; padding-left: 10px;"> |
| <uc1:PackageFeaturesCtrl ID="ctrlFeatures" runat="server" /> |
| </div> |
| <div style="float: right; padding-bottom: 10px; margin-bottom: 10px;"> |
| <table border="0"> |
| <tr> |
| <td> |
| Call Delivery Settings: |
| </td> |
| <td> |
| <telerik:RadComboBox ID="cmbCallDeliverySettings" runat="server" Skin="OCN" EnableEmbeddedSkins="false" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| </div> |
| <div class="header-label" style="float: left; margin-bottom: 15px; margin-top: 10px; |
| width: 100%;"> |
| For Cost Features |
| </div> |
| <div style="float: left; width: 100%;"> |
| <table border="0" style="float: left;"> |
| <tr> |
| <td> |
| <div class="label-required"> |
| Max Phone Numbers: |
| </div> |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtMaxPhoneNumbers" runat="server" Width="50" /> |
| </td> |
| <td> |
| <asp:CheckBox ID="chkUnlimitedPhoneNumbers" AutoPostBack="true" OnCheckedChanged="chkUnlimitedPhoneNumbers_OnCheckedChanged" |
| runat="server" Text="Unlimited" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <div class="label-required"> |
| Max Subgroups: |
| </div> |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtMaxSubgroups" runat="server" Width="50" /> |
| </td> |
| <td> |
| <asp:CheckBox ID="chkUnlimitedSubgroups" AutoPostBack="true" OnCheckedChanged="chkUnlimitedSubgroups_OnCheckedChanged" |
| runat="server" Text="Unlimited" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <div class="label-required"> |
| Max Messages Seconds: |
| </div> |
| </td> |
| <td> |
| <telerik:RadComboBox ID="cmbMaxMessageSeconds" runat="server" Width="50" /> |
| </td> |
| </tr> |
| </table> |
| <table border="0" style="float: left; margin-left: 50px;"> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkAutoCallInitiation" runat="server" Text="Auto Call Initiation" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkHighPriority" runat="server" Text="High Priority Messages" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| <asp:CheckBox ID="chkMessageBuilder" runat="server" Text="Message Builder" /> |
| </td> |
| </tr> |
| </table> |
| </div> |
| <div class="header-label" style="float: left; margin-bottom: 15px; margin-top: 10px; |
| width: 100%;"> |
| Service Adjustments |
| </div> |
| <table border="0" style="float: left; margin-left: 10px; margin-right: 10px; padding-right: 10px;"> |
| <tr> |
| <td> |
| Expiration Date: |
| </td> |
| <td> |
| <asp:Label ID="lblFeaturesExpirationDate" runat="server" Text="08/01/2008" /> |
| </td> |
| <td> |
| Call Credits Purchased: |
| </td> |
| <td> |
| <asp:Label ID="lblCallCreditsPurchased" runat="server" Text="100" /> |
| (<asp:Label ID="lblCallCreditsRemaining" runat="server" Text="25" /> |
| Remaining) |
| </td> |
| </tr> |
| <tr> |
| <td> |
| New Expiration Date: |
| </td> |
| <td> |
| <telerik:RadDatePicker ID="dteExpiration" runat="server" Skin="WebBlue" /> |
| </td> |
| <td> |
| Add/Subtract Call Credits: |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtAddSubtractCallCredits" runat="server" /> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <div class="label-required"> |
| <asp:Label ID="lblFeaturesMemo" runat="server" Text="Memo:" /> |
| </div> |
| </td> |
| <td colspan="5"> |
| <telerik:RadTextBox ID="txtMemo" runat="server" TextMode="MultiLine" Rows="3" /> |
| </td> |
| </tr> |
| </table> |
| <div style="float: right; text-align: right; margin-right: 10px; padding-right: 10px; |
| padding-top: 10px; width: 100%;"> |
| <asp:Button ID="btnSaveFeatures" OnClick="btnSaveFeatures_Click" runat="server" Text="Save" /> |
| <asp:Button ID="btnCancelFeatures" OnClick="btnCancelFeatures_Click" runat="server" |
| Text="Cancel" /> |
| </div> |
| </telerik:RadPageView> |
| <%-- Status Changes --%> |
| <telerik:RadPageView ID="vwStatusChanges" runat="server"> |
| <asp:Label ID="lblStatusChangesErrors" CssClass="error" runat="server" Text="Here is where the error messages go." |
| Visible="false" /> |
| <div class="header-label" style="margin-bottom: 15px; margin-top: 15px;"> |
| Group Status Changes |
| </div> |
| <asp:RadioButtonList ID="rdoStatus" runat="server" RepeatDirection="Horizontal"> |
| <asp:ListItem Text="Cancel Group" Value="C" /> |
| <asp:ListItem Text="Put On Hold" Value="H" /> |
| <asp:ListItem Text="Mark as Fraud" Value="F" /> |
| <asp:ListItem Text="Make Active" Value="A" /> |
| </asp:RadioButtonList> |
| <table border="0" style="margin-left: 10px; padding-bottom: 10px;"> |
| <tr> |
| <td> |
| <div class="label-required"> |
| <asp:Label ID="lblStatusChangesReason" runat="server" Text="Reason:" /> |
| </div> |
| </td> |
| <td> |
| <telerik:RadComboBox ID="cmbStatusReason" runat="server" Width="255"> |
| <Items> |
| <telerik:RadComboBoxItem Text="Select a Cancel or Hold Reason" Value="N" /> |
| <telerik:RadComboBoxItem Text="Spite" Value="S" /> |
| <telerik:RadComboBoxItem Text="Bad Karma" Value="B" /> |
| </Items> |
| </telerik:RadComboBox> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <div class="label-required"> |
| <asp:Label ID="lblStatusChangesMemo" runat="server" Text="Memo:" /> |
| </div> |
| </td> |
| <td colspan="2"> |
| <telerik:RadTextBox ID="txtStatusMemo" runat="server" TextMode="MultiLine" Width="250" |
| Rows="5" /> |
| </td> |
| </tr> |
| <tr> |
| <td> |
| Caller Name: |
| </td> |
| <td> |
| <telerik:RadTextBox ID="txtCallerName" runat="server" Width="250" /> |
| </td> |
| </tr> |
| </table> |
| <div style="float: right"> |
| <asp:Button ID="btnSaveStatusChanges" OnClick="btnSaveStatusChanges_Click" runat="server" |
| Text="Save" /> |
| <asp:Button ID="btnCancelStatusChanges" OnClick="btnCancelStatusChanges_Click" runat="server" |
| Text="Cancel" /> |
| </div> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| </asp:Panel> |
| </telerik:RadAjaxPanel> |
| </asp:Content> |
| protected void RadGrid1_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) |
| { |
| GridDataItem parentItem = (GridDataItem)e.Item.OwnerTableView.ParentItem; |
| LoggerCapture.tblLoggerCaptureRow newDSrow = (LoggerCapture.tblLoggerCaptureRow)captureDS.tblLoggerCapture.NewRow(); |
| newDSrow.bitSummed = Convert.ToBoolean(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["bitSummed"]); //row.bitSummed; |
| newDSrow.iBoardNumber = Convert.ToInt32(parentItem.OwnerTableView.DataKeyValues[parentItem.ItemIndex]["iBoardNumber"]); //row.iBoardNumber; |
| captureDS.tblLoggerCapture.Rows.Add(newDSrow); |
I am using the example code at:
http://www.telerik.com/help/aspnet-ajax/grdconditionalimagedisplayingridcolumn.html
to try to disable/non-visible a GridButtonColumn based on the value of another column value. However it is not working as advertised. I'm creating my grid in the code-behind thus:
public void AddParentFields(RadGrid RadGrid1)
{
string SqlCmd = "exec dbo.wa_AddFields 'PTTICKETS'";
DataAccess sda = new DataAccess();
GridBoundColumn boundColumn;
sda.RunSelectCmd(SqlCmd);
foreach (DataRow dr in sda.dtResult.Rows)
{
if (dr["fieldtype"].ToString().Trim() == "HYPERLINK")
{
GridHyperLinkColumn hyperLinkColumn = new GridHyperLinkColumn();
hyperLinkColumn.DataTextField = dr["datafield"].ToString().Trim();
hyperLinkColumn.HeaderText = dr["header"].ToString().Trim();
hyperLinkColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
hyperLinkColumn.Display = Convert.ToBoolean(dr["visible"]);
//hyperLinkColumn.DataNavigateUrlField = "sh_track_url";
string[] fieldArray;
fieldArray = new string[2];
fieldArray[0] = "sh_track_url";
fieldArray[1] = "pcktrackno";
hyperLinkColumn.DataNavigateUrlFields = fieldArray;
hyperLinkColumn.DataNavigateUrlFormatString = "{0}{1}";
hyperLinkColumn.Target = "_blank";
RadGrid1.MasterTableView.Columns.Add(hyperLinkColumn);
}
else
{
boundColumn = new GridBoundColumn();
boundColumn.DataField = dr["datafield"].ToString().Trim();
boundColumn.HeaderText = dr["header"].ToString().Trim();
boundColumn.DataFormatString = dr["fieldformat"].ToString().Trim();
boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
boundColumn.Display = Convert.ToBoolean(dr["visible"]);
boundColumn.HeaderButtonType = GridHeaderButtonType.TextButton;
RadGrid1.MasterTableView.Columns.Add(boundColumn);
}
}
GridButtonColumn buttonColumn = new GridButtonColumn();
buttonColumn.ButtonType = GridButtonColumnType.PushButton;
buttonColumn.Text = "Confirm Receipt";
buttonColumn.CommandName = "ConfirmReceipt";
buttonColumn.UniqueName = "ConfirmReceipt";
RadGrid1.MasterTableView.Columns.Add(buttonColumn);
boundColumn = new GridBoundColumn();
boundColumn.DataField = "patient_verified";
boundColumn.Display = false;
RadGrid1.MasterTableView.Columns.Add(boundColumn);
}
---------------------
Then I try to set the visibility of the 'ConfirmReceipt' button based on the value of the 'patient_verified' column with:
------------------------
private void RadGrid1_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem dataItem = e.Item as GridDataItem;
GridBoundColumn boundColumn = dataItem["patient_verified"].Controls[0] as GridBoundColumn;
if (boundColumn.Value == 1)
{
dataItem["ConfirmReceipt"].Controls[0].Visible = false;
}
}
}
------------------------
But, the errors are:
on e.item
Cannot convert type 'Telerik.Web.UI.GidItem' to 'Telerik.WebContrtols.GridDataItem' via a reference conversion....
and on dataItem["patient_verified"].
Cannot convert type 'Systenm.Web.UI.Control' to 'Telerik.WebControls.GridBoundColumn' via a reference conversion....
Can you help me? Thanks.
Dan

| <telerik:RadPanelBar |
| ID="rpbCSRLists" |
| runat="server" |
| ExpandMode="SingleExpandedItem" |
| AllowCollapseAllItems="true" |
| Width="100%" |
| PersistStateInCookie="true" |
| OnClientItemExpand="OnClientItemExpand"> |
| <Items> |
| <telerik:RadPanelItem Text="Alternative Words to Search In Plan Documents" Selected="true"> |
| <Items> |
| <telerik:RadPanelItem> |
| <ItemTemplate> |
| <CSR:AlternativeWords ID="uctAlternativeWords" runat="server" /> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelBar> |