or
<%@ Register TagPrefix="uc" Namespace="MedAssets.AMS.Web.Controls" Assembly="MedAssets.AMS.Web" %> <html xmlns="http://www.w3.org/1999/xhtml" > <script type="text/javascript" src="<%= ResolveUrl("~/Javascript/jquery-1.8.2.min.js") %>"></script> <head id="Head1" runat="server"> <title></title> <script type="text/javascript"> $(document).ready(function () { $('#tblInsuranceInformation tr').each(function () { if ($(this).find('td:last-child:empty').parent().hide()); }); }); </script> <style type="text/css"> html, body, form { height: 100%; margin: 0px; padding: 0px; } .rgAltRow .rgRow { border-bottom-style:none !important; } .RadGrid_Transparent .rgRow TD, .rgAltRow TD, .rgHeader { border-bottom-style:none !important; border-left: 0px !important; background-color: white !important; padding-top: 0px !important; } </style> </head> <body style="height: 100%;margin: 0px;overflow: hidden;padding: 0px;"> <form id="form1" runat="server"> <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" oncliendloaded="SplitterLoaded" Width="100%" > <telerik:RadPane ID="RadPane1" runat="server" > <div class="formLayoutD" style="background-color:white !important; width:100% !important"> <telerik:RadScriptManager ID="ScriptManager" runat="server"/> <asp:Label runat="server" Font-Bold = "True" ForeColor="Red" ID="lblMessage" Text="" /> ***<%=FutureDateAcceptance%>Benefits reflected are valid as of <%=string.Format("{0:MM/dd/yyyy} at {0:hh:mm:ss tt}",EligibilityBenefit.BenefitRequest.FromDate)%>. <br/> <br/> <asp:Panel ID="pnlInsuranceInformation" runat="server"> <table id="tblInsuranceInformation"> <tr> <td> <asp:Label Id="lblSummary" runat="server" Text="Summary" style="font-weight: bold;font-size: 12px"/> </td> </tr> <tr> <td width ="500" valign="top"> <asp:Panel ID="pnlBasicInsuranceInfo" runat="server"> <table style="padding-left:8px !important; padding-top:0px !important; "> <tr> <td width="200" style="font-size: 12px">Payor Name: </td> <td width="300"> <% string payorName = string.Empty; if(EligibilityBenefit.BenefitResponse.Payor!=null) payorName = EligibilityBenefit.BenefitResponse.Payor.Name!=null ?EligibilityBenefit.BenefitResponse.Payor.Name.LastName: ""; %> <%=payorName%> </td> </tr> <tr> <td style="font-size: 12px">Plan Name:</td> <td> <% string planName = string.Empty; var strAry = (EligibilityBenefit.PlanDescription ?? string.Empty).Split('|'); planName = strAry[0];%> <%=planName%> </td> </tr> <tr> <td style="font-size: 12px">Plan Description:</td> <td> <%=(strAry.Count() > 1 ? strAry[1] : string.Empty)%> </td> </tr> <tr> <td style="font-size: 12px">Coverage:</td> <td> <%=EligibilityBenefit.Coverage%> </td> </tr> <tr> <td style="font-size: 12px">Eligibility Date:</td> <td > <%=EligibilityBenefit.PlanEffectiveDate.ToString("d")%> </td> </tr> </table> </asp:Panel> </td> </tr> <tr> <td> <asp:Label Id="lblInsuranceInfo" runat="server" Text="Insurance Contact" style="font-weight: bold;font-size: 12px"/> </td> </tr> <tr> <td width="500" valign="top"> <telerik:RadGrid BorderStyle="None" runat="server" Id="radPayorInformationGrid" AutoGenerateColumns="false" Width="100%" GridLines="None" AllowSorting="True" skin="Transparent" AlternatingItemStyle="false" > <HeaderStyle /> <ClientSettings EnableRowHoverStyle="false"> <Scrolling AllowScroll="false" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView ShowHeader="false" ItemStyle-VerticalAlign="top" ItemStyle-HorizontalAlign="left"> <columns > <telerik:GridBoundColumn DataField="Name" SortExpression="Name" UniqueName="Name" HeaderStyle-Width="200" /> <telerik:GridBoundColumn DataField="Value" SortExpression="Value" UniqueName="Value" HeaderStyle-Width="300" /> </columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> <br/> <asp:Panel runat="server" id="pnlSubscriber"> <table> <tr> <td > <asp:Label Id="lblSubscriberInfo" runat="server" Text="Subscriber" style="font-weight: bold;font-size: 12px"/> </td> </tr> <tr> <td valign="top"> <telerik:RadGrid BorderStyle="None" runat="server" Id="radSubscriberGrid" AutoGenerateColumns="false" Width="100%" GridLines="None" AllowSorting="True" skin="Transparent" > <HeaderStyle /> <ClientSettings EnableRowHoverStyle="false"> <Scrolling AllowScroll="false" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView ShowHeader="false"> <columns > <telerik:GridBoundColumn DataField="Name" SortExpression="Name" UniqueName="Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="200" ItemStyle-VerticalAlign="top" /> <telerik:GridBoundColumn DataField="Value" SortExpression="Value" UniqueName="Value" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="300" ItemStyle-VerticalAlign="top" /> </columns> </MasterTableView> </telerik:RadGrid> </td> </tr> <tr> <td> <asp:Label Id="lblDependentInfo" runat="server" Text="Dependent" style="font-weight: bold;font-size: 12px"/> </td> </tr> <tr> <td width = "500" valign="top"> <telerik:RadGrid runat="server" Id="radDependentGrid" AutoGenerateColumns="false" Width="100%" GridLines="None" AllowSorting="True" skin="Transparent" AlternatingItemStyle="False" > <HeaderStyle /> <ClientSettings EnableRowHoverStyle="false"> <Scrolling AllowScroll="false" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView ShowHeader="false"> <columns > <telerik:GridBoundColumn DataField="Name" SortExpression="Name" UniqueName="Name" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="200" ItemStyle-VerticalAlign="top" /> <telerik:GridBoundColumn DataField="Value" SortExpression="Value" UniqueName="Value" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="300" ItemStyle-VerticalAlign="top" /> </columns> </MasterTableView> </telerik:RadGrid> </td> </tr> </table> </asp:Panel> <br/> <asp:Panel runat="server" Id="pnlAlerts"> <asp:Label ID="lblAlerts" Text="Alerts" style="font-weight: bold;font-size: 12px;" runat="Server"/> <telerik:Radgrid Id="grdAlerts" runat = "Server" BorderStyle="None" AutoGenerateColumns="false" Width="100%" GridLines="None" AllowSorting="False" skin="Transparent" AlternatingItemStyle="False" ShowHeader="False"> <HeaderStyle /> <ClientSettings EnableRowHoverStyle="false"> <Scrolling AllowScroll="false" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView> <columns> <telerik:GridBoundColumn HeaderText="Alerts" DataField="AlertDescription" SortExpression="AlertDescription" UniqueName="AlertDescription" ItemStyle-HorizontalAlign="Left" /> </columns> </MasterTableView> </telerik:Radgrid> </asp:Panel> <br/> <asp:Panel runat="server" Id="pnlOtherPayorInfo"> <asp:Label ID="lblAdditionalPayors" Text="Other Or Additional Payor" style="font-weight: bold;font-size: 12px" runat="Server"/> <telerik:RadGrid runat="server" Id="grdOtherPayors" BorderStyle="None" ShowHeader="False" OnItemDataBound="grdOtherPayors_OnItemDataBound" skin="Transparent" Width="600" GridLines="None" AllowSorting="True" AlternatingItemStyle="None"> <HeaderStyle CssClass="GridHeader" Font-Bold="True"/> <ClientSettings EnableRowHoverStyle="false"> <Scrolling AllowScroll="false" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView TableLayout="auto"> <ItemTemplate> <div style="height: auto;"> <table style="padding-bottom: 15px !important"> <asp:Panel ID="pnl1" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("Name"))) %>' runat="server"> <tr> <td width="200">Payor Name:</td> <td width="400"><%# Eval("Name")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl2" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("EntityType")))%>' runat="server"> <tr> <td>Entity Type:</td> <td><%# Eval("EntityType")%></td> </tr> </asp:Panel> <asp:Panel ID="Panel1" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("Address")))%>' runat="server"> <tr> <td>Address:</td> <td><%# Eval("Address")%></td> </tr> </asp:Panel> <asp:Panel ID="pnlWebsites" runat="server" Visible="False"> <tr> <td valign="top">Website:</td> <td> <asp:BulletedList runat="Server" ID="bltListWebsite" BulletStyle="NotSet" DataSource='<%# Eval("Websites")%>'> </asp:BulletedList> </td> </tr> </asp:Panel> <asp:Panel ID="pnlTelephones" runat="server" Visible="False"> <tr> <td valign="top">Telephone:</td> <td> <asp:BulletedList runat="Server" ID="bltListTelephone" BulletStyle="NotSet" DataSource='<%# Eval("Telephones")%>'> </asp:BulletedList> </td> </tr> </asp:Panel> <asp:Panel ID="pnlFaxes" runat="server" Visible="False"> <tr> <td valign="top">Fax:</td> <td> <asp:BulletedList runat="Server" ID="bltListFax" BulletStyle="NotSet" DataSource='<%# Eval("Faxs")%>'> </asp:BulletedList> </td> </tr> </asp:Panel> <asp:Panel ID="pnlDates" runat="server" Visible="False"> <tr> <td valign="top">Coordination Of Benefit Dates:</td> <td> <asp:BulletedList runat="Server" ID="bltListCOBDates" BulletStyle="NotSet" DataSource='<%# Eval("Dates")%>'> </asp:BulletedList> </td> </tr> </asp:Panel> <asp:Panel ID="pnlAdditionalInformation" runat="server" Visible="False"> <tr> <td valign="top"> Other Information: </td> <td> <asp:BulletedList runat="Server" ID="bltListAdditionalInformation" BulletStyle="NotSet" DataSource='<%# Eval("AdditionalInformation")%>'> </asp:BulletedList> </td> </tr> </asp:Panel> </table> </div> </ItemTemplate> </MasterTableView> </telerik:RadGrid> </asp:Panel> <br/> <asp:Panel runat="server" id="pnlEligibilityBenefits" Visible="False"> <table> <tr> <td > <asp:Label Id="lblEligibilityBenefits" runat="server" Text="Eligibility Status" style="font-weight: bold;font-size: 12px" runat="Server"/> </td> </tr> <tr> <td valign="top"> <telerik:RadListView ID="lvEbStatus" runat="server" ItemPlaceholderID="EBStatus" > <LayoutTemplate> <fieldset style="width: 700px"> <table cellpadding="0" cellspacing="0"> <asp:PlaceHolder ID="EBStatus" runat="server"></asp:PlaceHolder> </table> </fieldset> </LayoutTemplate> <ItemTemplate> <tr> <td width="250"> <%#Eval("ServiceTypeCode")%> </td> <td width="30"> <%#Eval("Status")%> </td> <td width="30"> </td> </ItemTemplate> <AlternatingItemTemplate> <td width="250"> <%#Eval("ServiceTypeCode")%> </td> <td width="30"> <%#Eval("Status")%> </td> </tr> </AlternatingItemTemplate> </telerik:RadListView> </td></tr> </table> </asp:Panel> <br/> <asp:Panel runat ="server" Id="pnlServiceTypeBenefits"> <asp:Label ID="lblBenefitsInformation" Text="Benefits" style="font-weight: bold;font-size: 12px" runat="Server"/> <br/> </asp:Panel> </div> </telerik:RadPane> <telerik:RadSplitBar ID="sbJson" runat="server" CollapseMode="Both" Visible="False" > </telerik:RadSplitBar> <telerik:RadPane ID="pnJson" runat="server" Width="50" Visible="False" > <asp:Literal runat="server" ID="litJson" Mode="Encode"></asp:Literal> </telerik:RadPane> <telerik:RadSplitBar ID="sb271" runat="server" CollapseMode="Backward" Visible="False"> </telerik:RadSplitBar> <telerik:RadPane ID="pn271" runat="server" Width="50" Visible="False" > <asp:Literal runat="server" ID="lit271"></asp:Literal> </telerik:RadPane> </telerik:RadSplitter> </form> </body> </html> User control <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BenefitDetail.ascx.cs" Inherits="MedAssets.AMS.Web.Controls.BenefitDetail" %> <%@ Import Namespace="MedAssets.AMS.Web.ViewModels" %> <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server" > <AjaxSettings> <telerik:AjaxSetting AjaxControlID="grdServiceTypeBenefits"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="grdServiceTypeBenefits" LoadingPanelID="lp2"/> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManagerProxy> <style type="text/css"> .RadGrid { background-color: #f1f5fb !important; /* color as scrollbar in your case */ } .RadGrid .rgRow td, .RadGrid .rgAltRow td, .RadGrid .rgEditRow td, .RadGrid .rgFooter td, .RadGrid .rgFilterRow td, .RadGrid .rgHeader, .RadGrid .rgResizeCol, .RadGrid .rgGroupHeader td { padding-bottom: 0px !important; margin-bottom: 0px !important; } .RadGrid_Default .rgGroupHeader { background:#C0D6E9 !important; } .RadGrid_Transparent .rgDataDiv { height : auto !important ; } </style> <asp:Panel runat ="server" Id="pnlServiceTypeBenefits"> <telerik:RadGrid ID="grdServiceTypeBenefitNew" ShowHeader="False" skin="Transparent" AlternatingItemStyle="None" AllowPaging="False" runat="server" AllowSorting="False" OnNeedDataSource="grdServiceTypeBenefitNew_NeedDataSource" OnItemDataBound="grdServiceTypeBenefitNew_OnItemDataBound" OnItemCommand="grdServiceTypeBenefitNew_OnItemCommand"> <ClientSettings AllowGroupExpandCollapse="True" EnableRowHoverStyle="false" EnableAlternatingItems="False"> <%-- US //US29877: Expand/Collapse height--%> <Scrolling AllowScroll="True" /> <Resizing AllowResizeToFit="true"/> </ClientSettings> <MasterTableView TableLayout="auto" GroupHeaderItemStyle-Width="10" CommandItemDisplay="Top" GroupsDefaultExpanded="false" GroupLoadMode="Client" > <CommandItemTemplate> <%--<input type="button" name="btnToggle" id="btnExpandAll" value="+" onclick="toggleGroups(this)"/>--%> <telerik:RadButton ID="btnExpandAll" runat="server" CommandName="ExpandAll" Text="+ Expand" Skin="Windows7" ></telerik:RadButton> </CommandItemTemplate> <GroupHeaderTemplate > <%-- US //US29877: Expand/Collapse height--%> <asp:Label runat="server" ID="Label1" Text='<%#Eval("ServiceType")%>' ></asp:Label> </GroupHeaderTemplate> <GroupByExpressions > <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="ServiceType" ></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="ServiceType" ></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <ItemTemplate> <div style="height: auto;"> <table> <asp:Panel ID="pn0" Visible="False" runat="server" > <tr> <td width="25"></td> <td width="125">ServiceType:</td> <td width="350"><%# Eval("ServiceType")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl1" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("CoverageType"))) %>' runat="server"> <tr> <td width="25"></td> <td width="125">Coverage Type:</td> <td width="350"><%# Eval("CoverageType")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl2" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("Network"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">Network:</td> <td width="350"><%# Eval("Network")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl3" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("BenefitType"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">Benefit:</td> <td width="350"><%# Eval("BenefitType")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl4" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("TimePeriod"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">Period:</td> <td width="350"><%# Eval("TimePeriod")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl5" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("Quantity"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">Quantity:</td> <td width="350"><%# Eval("Quantity")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl6" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("QuantityType"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">QuantityType:</td> <td width="350"><%# Eval("QuantityType")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl7" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("Amount"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">Amount:</td> <td width="350"><%# Eval("Amount")%></td> </tr> </asp:Panel> <asp:Panel ID="pnl8" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("PreCertAuth"))) %>' runat="server" > <tr> <td width="25"></td> <td width="125">PreCertAuth:</td> <td width="350"><%# Eval("PreCertAuth")%></td> </tr> </asp:Panel></table> <asp:Panel ID="panelServiceDeliveryList" runat="server" Visible="False"> </asp:Panel> <asp:Panel ID="pnlDateList" runat="server" Visible="False"> <table><tr><td width="25"></td> <td width="125">Dates:</td> <td width="350"><asp:BulletedList runat="Server" ID="bltListDt" BulletStyle="NotSet"></asp:BulletedList></td> </tr></table> </asp:Panel> <asp:Panel ID="pnlrelatedEntity" runat="server" Visible="False"> <table> <tr id="tr20" runat="server" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Name"))) %>'> <td width="25"></td> <td width="125">Name: </td> <td width="350"> <asp:Label Id="lblName" runat ="server" Text='<%# Eval("RelatedEntities.Name") %>'/> </td> </tr> <tr id="tr24" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Telephones"))) && Convert.ToInt32(Eval("RelatedEntities.Telephones.Count"))>0)?true:false %>'> <td></td> <td>Telephone:</td> <td> <asp:BulletedList runat="Server" ID="BulletedList1" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Telephones") %>'> </asp:BulletedList> </td> </tr> <tr id="tr21" runat="server" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Address"))) %>'> <td></td> <td> Address: </td> <td> <asp:Label Id="lblAddress" runat ="server" Text='<%# Eval("RelatedEntities.Address") %>' /> </td> </tr> <tr id="tr22" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Faxs"))) && Convert.ToInt32(Eval("RelatedEntities.Faxs.Count"))>0)?true:false %>'> <td></td> <td> Fax: </td> <td> <asp:BulletedList runat="Server" ID="BulletedList2" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Faxs") %>'> </asp:BulletedList> </td> </tr> <tr id="tr23" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Websites"))) && Convert.ToInt32(Eval("RelatedEntities.Websites.Count"))>0)?true:false %>'> <td></td> <td> Websites: </td> <td width="350"> <asp:BulletedList runat="Server" ID="bltListWebsite" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Websites") %>'> </asp:BulletedList> </td> </tr> </table> </asp:Panel> <asp:Panel ID="pnlMessages" runat="server" Visible="False"> <table> <tr> <td width="25"></td> <td width="125" valign="top"> Messages: </td> <td width="350"> <asp:BulletedList runat="Server" ID="BulletedList4" BulletStyle="NotSet" DataSource='<%# Eval("Messages")%>'> </asp:BulletedList> </td> </tr> </table> </asp:Panel> </div> <br/> </ItemTemplate> </MasterTableView> <ClientSettings AllowDragToGroup="true"> <Scrolling AllowScroll="true" UseStaticHeaders="true"></Scrolling> </ClientSettings> </telerik:RadGrid> <br/> <asp:label runat="Server" ID="lblBenefitDesc" Text="Benefit Description" Visible="false" Font-Bold="true"></asp:label> <telerik:RadGrid ID="grdBenefitDescriptions" runat = "server" OnNeedDataSource="grdBenefitDescriptions_NeedDataSource" AutoGenerateColumns="false" Skin="Transparent" GridLines="Vertical"> <HeaderStyle CssClass="GridHeader" /> <ClientSettings AllowGroupExpandCollapse="True"/> <MasterTableView Width="100%" GroupHeaderItemStyle-Width="20"> <GroupByExpressions > <telerik:GridGroupByExpression> <SelectFields> <telerik:GridGroupByField FieldName="CoverageType"></telerik:GridGroupByField> </SelectFields> <GroupByFields> <telerik:GridGroupByField FieldName="CoverageType" ></telerik:GridGroupByField> </GroupByFields> </telerik:GridGroupByExpression> </GroupByExpressions> <Columns> <telerik:GridBoundColumn HeaderText="CoverageType" DataField="CoverageType" SortExpression="CoverageType" UniqueName="CoverageType" ItemStyle-HorizontalAlign="Left" visible="false" /> <telerik:GridBoundColumn HeaderText="Procedure Code" DataField="ProcedureCode" SortExpression="ProcedureCode" UniqueName="ProcedureCode" ItemStyle-HorizontalAlign="Left" /> <telerik:GridBoundColumn HeaderText="Procedure Modifier" DataField="ProcedureModifier" SortExpression="ProcedureModifier" UniqueName="ProcedureModifier" ItemStyle-HorizontalAlign="Left" /> <telerik:GridBoundColumn HeaderText="Description" DataField="Description" SortExpression="Description" UniqueName="Description" ItemStyle-HorizontalAlign="Left" /> <telerik:GridBoundColumn HeaderText="Benefit Begin Date" DataField="BenefitDate" SortExpression="BenefitDate" UniqueName="BenefitDate" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:d}" /> </Columns> </MasterTableView> </telerik:RadGrid> <asp:label runat="Server" ID="lblOtherBenefitTypeInfo" Text="Additional Benefit Information" Visible="false" Font-Bold="true"></asp:label> <telerik:RadGrid ID="grdAdditionalBenefitInfo" runat = "server" OnNeedDataSource="grdAdditionalBenefitInfo_NeedDataSource" ShowHeader="False" OnItemDataBound="grdAdditionalBenefitInfo_OnItemDataBound" AutoGenerateColumns="false" Skin="Transparent" GridLines="Vertical" > <HeaderStyle CssClass="GridHeader" /> <MasterTableView GroupHeaderItemStyle-Width="20" > <DetailItemTemplate> <asp:Panel ID="pnlrelatedEntity" runat="server"> <table> <tr id="tr1" runat="server" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Name"))) %>'> <td align="right" style="font-weight: normal;"> Name: </td> <td width="350" style="font-weight: normal;"> <asp:Label Id="lblName" runat ="server" Text='<%# Eval("RelatedEntities.Name") %>'/> </td> </tr> <tr id="tr2" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Telephones"))) && Convert.ToInt32(Eval("RelatedEntities.Telephones.Count"))>0)?true:false %>'> <td align="right" style="font-weight: normal;"> Telephone: </td> <td style="font-weight: normal;"> <asp:BulletedList runat="Server" ID="BulletedList1" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Telephones") %>'> </asp:BulletedList> </td> </tr> <tr id="tr3" runat="server" Visible='<%# !String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Address"))) %>'> <td align="right" style="font-weight: normal;"> Address: </td> <td style="font-weight: normal;"> <asp:Label Id="lblAddress" runat ="server" Text='<%# Eval("RelatedEntities.Address") %>' /> </td> </tr> <tr id="tr4" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Faxs"))) && Convert.ToInt32(Eval("RelatedEntities.Faxs.Count"))>0)?true:false %>'> <td align="right" style="font-weight: normal;"> Fax: </td> <td style="font-weight: normal;"> <asp:BulletedList runat="Server" ID="BulletedList2" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Faxs") %>'> </asp:BulletedList> </td> </tr> <tr id="tr5" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Websites"))) && Convert.ToInt32(Eval("RelatedEntities.Websites.Count"))>0)?true:false %>'> <td align="right" style="font-weight: normal;"> Websites: </td> <td > <asp:BulletedList runat="Server" ID="bltListWebsite" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Websites") %>'> </asp:BulletedList> </td> </tr> <tr id="tr6" runat="server" Visible='<%# (!String.IsNullOrEmpty(Convert.ToString(Eval("RelatedEntities.Dates"))) && Convert.ToInt32(Eval("RelatedEntities.Dates.Count"))>0)?true:false %>'> <td align="right" style="font-weight: normal;"> Dates: </td> <td style="font-weight: normal;"> <asp:BulletedList runat="Server" ID="bltListDates" BulletStyle="NotSet" DataSource='<%# Eval("RelatedEntities.Dates")%>'/> </td> </tr> </table> </asp:Panel> <asp:Panel ID="pnlMessages" runat="server"> <table> <tr> <td align="right" valign="top" style="font-weight: normal;"> Messages: </td> <td style="font-weight: normal;"> <asp:BulletedList runat="Server" ID="BulletedList3" BulletStyle="NotSet" DataSource='<%# Eval("Messages") %>'> </asp:BulletedList> </td> </tr> </table> </asp:Panel> </DetailItemTemplate> <Columns> <telerik:GridBoundColumn HeaderText="Benefit" DataField="BenefitType" SortExpression="BenefitType" UniqueName="BenefitType" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Bold="true"/> </Columns> </MasterTableView> </telerik:RadGrid> <br/> <br/> </asp:Panel> <telerik:RadScriptBlock ID="radScriptBlock" runat="server"> <script type="text/javascript"> function toggleGroups(btnExpand) { // var grid = $find("<%=grdServiceTypeBenefitNew.ClientID %>"); // var masterTableView = grid.get_masterTableView(); // var gridClientId = '<%= grdServiceTypeBenefitNew.ClientID %>'; // //var grid = $find("<%=grdServiceTypeBenefitNew.ClientID %>"); var masterTable = $find("<%=grdServiceTypeBenefitNew.ClientID %>").get_masterTableView(); alert(masterTable.get_dataItems().count()); for (var i = 0; i < masterTable.get_dataItems().length; i++) { if (btnExpand.value == "+") masterTable.expandItem(i); else masterTable.collapseItem(i); } //alert($find("<%=grdServiceTypeBenefitNew.ClientID %>").get_masterTableView().groupsDefaultExpanded()); //masterTable.set_GroupsDefaultExpanded(true); //toggle text if (btnExpand.value == "+") btnExpand.value = "-"; else btnExpand.value = "+"; //event.cancel = true; } </script> </telerik:RadScriptBlock>/* SITE.CSS ----------------------------------------------------------*/ /* RESETS ----------------------------------------------------------*/ body { background-color: #FFFFFF; color: #696969; font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: 12px; line-height: normal; margin-bottom: 0; margin-left: 0; margin-right: 0; margin-top: 0; padding-bottom: 0; padding-left: 0; padding-right: 0; padding-top: 0; } a:link, a:visited, a:hover, a:active { color: #505abc; } a:link { text-decoration: none; } a:hover { text-decoration: underline; } h1, h2, h3, h4, h5, h6 { color: #444; margin: 0; padding: 10px 0 5px 0; } h1 { font-size: 2em; } h2 { font-size: 1.8em; } h3 { font-size: 1.4em; } h4 { font-size: 1.1em; } h5, h6 { font-size: 1em; } ul { margin: 0px; padding-left: 0px; list-style: none; } img { border: none; border-style: none; } /* GLOBAL SPECIALS ----------------------------------------------------------*/ .clear { clear: both; } .inline { display: inline !important; } .ok { color: green; } .warning { color: orangered; } .error { color: Red; } div#title { display: block; float: left; text-align: left; } .selected { font-weight: bold; } .nooverflow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .round { border-radius: 4px 4px 4px 4px; -webkit-border-radius: 4px 4px 4px 4px; -moz-border-radius: 4px 4px 4px 4px; } .loading { cursor: wait; } .overlay, .spinner { background-color: #999; height: 100%; width: 100%; position: absolute; top: 0; left: 0; z-index: 800; filter:alpha(opacity=10); opacity: 0.1; } .spinner { background: transparent url(images/spinner.gif) no-repeat center center; cursor: wait; filter:alpha(opacity=100); opacity: 1; } /* FORM ELEMENTS ----------------------------------------------------------*/ fieldset { border: 1px solid #ddd; padding: 0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; } legend { font-size: 1.2em; font-weight: bold; } textarea { min-height: 75px; } input[name^="UserName"] { width: 300px; border: 1px solid #CCC; } input[name^="Password"] { width: 300px; border: 1px solid #CCC; } select { width: auto;max-width: 500px; border: 1px solid #CCC; } select[multiple="multiple"] { width: 303px; } .input-date { width: 140px !important; } .input-datetime { width: 160px !important; } .input-float { width: 100px !important; } .input-float input[type="text"] { width: 100px !important; } .input-integer { width: 100px !important; } .input-integer input[type="text"] { width: 100px !important; } .float-editor-row { clear: both; display: table; } .float-editor-label { float: left; margin: 13px 5px 0 0; width: 120px; text-align: right; font-weight: bold; margin-right: 10px; } .float-editor-field { float: left; margin: 10px 5px 0 0; } .float-editor-buttons { clear: both; } .float-editor-row-set { clear: both; margin-left: 120px; } .float-editor-row-set .float-editor-row { clear: none; display: inline; } .float-editor-row-set .float-editor-row .float-editor-label { width: auto; } fieldset.large .float-editor-row .float-editor-label { width: 200px; } fieldset.large .float-editor-row-set { clear: both; margin-left: 200px; } fieldset.large .float-editor-row-set .float-editor-row .float-editor-label { width: auto; } .editor-buttons a, .float-editor-buttons a { font-weight: bold; } p.editor-buttons, p.float-editor-buttons { margin-bottom: 5px; } .display-label, .editor-label { margin: 1em 0 0 0; } .editor-field { margin: 0.5em 0 0 0; } .display-row { clear: both; } .display-label { float: left; width: 100px; } .display-field { float: left; margin: 1em 0 0 0; width: 500px; } .text-box { width: 30em; } .text-box.multi-line { height: 6.5em; font-family: Helvetica,Arial,sans-serif; } .tri-state { width: 6em; } /* SPECIFIC OVERRIDES */ div.input-integer div.t-state-empty { display: none !important; } div.input-float div.t-state-empty { display: none !important; } /* UI Components -----------------------------------------------------------*/ /* Icons */ .icon, [class^="icon-"], [class*=" icon-"] { display: inline-block; width: 18px; height: 18px; line-height: 18px; vertical-align: middle; background: url('images/icon-x16-sprite.png') no-repeat top left;} .icon-small { width: 14px; height: 14px; line-height: 14px; background: url('images/icon-x12-sprite.png') no-repeat top left;} .icon-action_add{ background-position: 0 -20px; } .icon-action_back{ background-position: 0 -40px; } .icon-action_clear{ background-position: 0 -60px; } .icon-action_details{ background-position: 0 -80px; } .icon-action_execute{ background-position: 0 -100px; } .icon-action_redo{ background-position: 0 -120px; } .icon-action_sync{ background-position: 0 -140px; } .icon-action_undo{ background-position: 0 -160px; } .icon-help{ background-position: 0 -180px; } .icon-information{ background-position: 0 -200px; } .icon-report_result{ background-position: 0 -220px; } .icon-report_schedule{ background-position: 0 -240px; } .icon-report_schedule_edit{ background-position: 0 -260px; } .icon-report_share{ background-position: 0 -280px; } .icon-report_unshare{ background-position: 0 -300px; } .icon-state_active{ background-position: 0 -320px; } .icon-state_dead{ background-position: 0 -340px; } .icon-state_deleted{ background-position: 0 -360px; } .icon-state_expired{ background-position: 0 -380px; } .icon-state_favorite{ background-position: 0 -400px; } .icon-state_inactive{ background-position: 0 -420px; } .icon-state_new{ background-position: 0 -440px; } .icon-state_notfavorite{ background-position: 0 -460px; } .icon-status_archived{ background-position: 0 -480px; } .icon-status_complete{ background-position: 0 -500px; } .icon-status_failed{ background-position: 0 -520px; } .icon-status_inprogress{ background-position: 0 -540px; } .icon-status_pending{ background-position: 0 -560px; } /* VALIDATION HELPERS */ .field-validation-error { color: #ff0000; margin-left: 5px; } .field-validation-valid { display: none; } .input-validation-error { border: 1px solid #ff0000; background-color: #ffeeee; } .validation-summary-errors { font-weight: bold; color: #ff0000; } .validation-summary-valid { display: none; } /* SITE MESSAGING */ div.alert-box { position: fixed; top: 0; left: 0; width: 100%; z-index: 100001; display: block; padding: 10px 15px; font-weight: bold; font-size: 1.5em; line-height: 30px; color: #000; background: #eee; opacity: .80; filter: alpha(opacity=80); } div.alert-box.success { background-color: #009900; color: #fff; } div.alert-box.warning { background-color: #EE9A00; color: #fff; } div.alert-box.error { background-color: #EE0000; color: #fff; } div.alert-box span { float: left; margin-right: 55px; } div.alert-box a.close { position: absolute; top: 10px; right: 45px; color: #fff; text-decoration: none; font-size: 1.2em; } /* MODAL */ .modal-top { height: 500px; overflow: auto; position: relative /*ie7-fix*/; } .modal-header { } .modal-center, .modal-footer { margin-top: -16px; } .modal-bottom { text-align: center; } /* BOXED LAYOUT */ .boxtop { background-color: #3e558e; height: 24px; padding: 8px 8px; } .boxtop span { vertical-align: middle; color: white; font-weight: bold; font-size: 1.5em; } .box { border-left: 1px solid #bbb; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; background-color: #f5f5f5; padding: 8px; } /* listboxes */ .listboxgroup { margin-top: 10px; } .listboxgroup select { height: 300px; } .listboxgroup div { float: left; } .listboxgroup .listboxgroup-icons { margin-left: 8px; margin-right: 8px; padding-top: 30px; } .listboxgroup div img { float: left; clear: left; padding-top: 8px; } /* message */ .message { padding: 20px 0; } /* Main */ #container { position: relative; } #main { padding: 15px 15px 45px 15px; background-color: #fff; min-height: 600px; position: relative;} #leftnav { float: left; width: 250px; } #centercontent { margin-left: 260px; } /* Brandzone Footer todo Delete this block #brandzoneFooter { clear: both; } #brandzoneFooter .footer { background: url(images/bottomShadow.gif) top repeat-x #dfe9f7; padding: 10px 16px 10px 0; color: #144884; text-align: right; line-height: 15px; font-size: 0.9em; font-family: Arial, 'Liberation Sans' , 'DejaVu Sans' ,sans-serif; } #brandzoneFooter .footer a { color: #144884; text-decoration: none; } #brandzoneFooter .footer a:hover { color: #144884; text-decoration: underline; } #brandzoneFooter .footer span.mute { color: #dfe9f7; }*/ /* PAGE SPECIFIC ----------------------------------------------------------*/ /* Operational Reports Tab */ #operationalReports h2 { padding-top: 0px; } #reportResults a:hover{ text-decoration: none;} #grdReportTitle a:hover{ text-decoration: underline;} #operationalReports p, #operationalReports ul { line-height: 1.6em; } #operationalReports .page-column { padding: 15px 15px 45px 15px; border: #AAA 1px dashed; background-color: #F9F9F9; } #operationalReports #leftWrapper { float: left; width: 200px; } #operationalReports #leftWrapper a, #operationalReports #leftWrapper .t-in { color: #696969; } #operationalReports #leftWrapper .t-state-hover, #operationalReports #leftWrapper .t-state-hover:hover { background-color: transparent; border: transparent 1px solid; text-decoration: underline;cursor: pointer; } #operationalReports #leftWrapper .t-treeview .t-state-selected { background-color: transparent; border: transparent 1px solid; font-weight: bold; } #operationalReports #searchWrapper input { padding: 5px; margin-right: -20px; width: 190px; } #operationalReports #searchWrapper a { color: #AAA; font-size: 1.4em; font-weight: bold; } #operationalReports #filterWrapper h2, #catalogs h2 { padding-top: 15px; } #operationalReports #catalogs h4 { display: none; } #operationalReports #rightWrapper { margin-left: 235px; } #operationalReports #rightWrapper .contentHeader { position: relative; padding: 7px 0 15px 0; } #operationalReports #rightWrapper .toolbar .button { margin-right: 15px; } #operationalReports #rightWrapper #reportsSortbar { padding-top: 5px; } #operationalReports #rightWrapper #reportsSortbar a { color: #08C; } #operationalReports #rightWrapper .contentBody { border-top: #555 1px dotted; line-height: 1.6em; } #operationalReports #rightWrapper .contentPagination { text-align: center; padding: 10px; margin-top: 15px; } #operationalReports div.report { border-left: #555 1px dotted; border-bottom: #555 1px dotted; border-right: #555 1px dotted; list-style: none; padding: 10px; background-color: #FFF; position: relative; } #operationalReports div.report.unread { border-left: 3px solid green; padding-left: 7px; background-color: #F6FFF6; } #operationalReports div.report .favoriteAction { display: inline; } #operationalReports div.report h3 { display: inline; } #operationalReports div.report h3 a { color: #555; } #operationalReports div.report.disable, #operationalReports div.report.disable h3 a { color: #888; } #operationalReports div.report .templateTitle { margin-right: 230px;word-wrap: break-word; } #operationalReports div.report .reportDesc { margin-top: 3px; word-wrap: break-word; } #operationalReports div.report .reportAgo { padding: 10px 10px 0 0; margin-top: 5px;} #operationalReports div.report .reportCatalogs div { display: inline; } #operationalReports div.report .reportActions { margin-top: 5px; } #operationalReports div.report .reportActions li { font-size: 1.0em; } #operationalReports .reportDetails div.report { list-style: none; padding: 10px; background-color: #FFF; position: relative; } #operationalReports .reportDetails .report.unread { background-color: #FFF; border-left: #555 1px dotted; padding-left: 10px; } #operationalReports #reportDetailsMain div.report { border-bottom: none; } #operationalReports #reportDetailsParts div.report { border-bottom: none; } #operationalReports #reportDetailsParts { border-bottom: #D8D8D8 1px solid;} #operationalReports #reportDetailsMain h4, #reportDetailsParts h4 { padding-top: 0px; } /* Change Password */ #changePasswordInfo { float: left; } #changePasswordRules { float: left; margin-left: 15px; } /* ReportCreate */ #reportcreateform div.RadioButton { margin-right: 5px; float: left; } #reportcreateform div#schedule { padding-bottom: 150px;} #reportcreateform .formatMessage { clear: both; margin-left: 135px;margin-top: 3px; font-size: 1.0em;color: red;} /*Add Catalog */ #ParentCatalogId { width: 30em;} /*Portal Home Page*/ .widget_PageWrapper {width: 100%; height:80%; position:relative; float: left; padding-top:200px; padding-bottom:25px; -moz-border-radius: 8px 8px 0 0; -webkit-border-radius: 8px 8px 0 0; -o-border-radius: 8px 8px 0 0; -ms-border-radius: 8px 8px 0 0; -khtml-border-radius: 8px 8px 0 0; border-radius: 8px 8px 0 0; background-color: #CCCCCC; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjUwJSIgeTE9IjAlIiB4Mj0iNTAlIiB5Mj0iMTAwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2NjY2NjYyIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA=='); background-size: 100%; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #CCCCCC), color-stop(100%, #ffffff)); background-image: -webkit-linear-gradient(#CCCCCC, #ffffff); background-image: -moz-linear-gradient(#CCCCCC, #ffffff); background-image: -o-linear-gradient(#CCCCCC, #ffffff); background-image: -ms-linear-gradient(#CCCCCC, #ffffff); background-image: linear-gradient(#CCCCCC, #ffffff); filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFCCCCCC', endColorstr='#FFFFFFFF');} .widget_Body { height: 275px; z-index:1; background-color: white; margin: 0px 0px 25px 25px; width: 280px; float: left; color: #666666; position:relative; } .widget_Desc { height:55px; overflow: hidden; padding-left:10px; padding-right:10px; margin: 0px 0px 0.3em; } .button:hover { color:#000 } .potal_Widget{ float: left; width: 40%; height: 269px; margin-left: 2.5%; } .widget_HomeHeader{text-align:center; margin-top: -140px;} .widget_Marketinglink{ color: #0c5494 !important; font-style: bold; padding-right: 5px;} /* 'standard' class is a default CSS class for portal widget and used as a default value for a constant parameter */ .standard{ /* Common code for all widget-start*/ position: relative; height: 50px; padding: 9px 0px 0px 15px; line-height: 89%; font-family: 'Web-NimbusSanNovCon-SemBol',Helvetica,Arial,sans-serif; height: 40px; color: white; font-size: 139%; cursor: move; font-weight: normal; /* Common code for all widget-end*/ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #1A7895), color-stop(100%, #009BB8)); background-image: -webkit-linear-gradient(#1A7895, #009BB8); background-image: -moz-linear-gradient(#1A7895, #009BB8); background-image: -o-linear-gradient(#1A7895, #009BB8); background-image: -ms-linear-gradient(#1A7895, #009BB8); background-image: linear-gradient(#1A7895, #009BB8); filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#1A7895', endColorstr='#009BB8'); } .readmission { /* Common code for all widget-start*/ position: relative; height: 50px; padding: 9px 0px 0px 15px; line-height: 89%; font-family: 'Web-NimbusSanNovCon-SemBol',Helvetica,Arial,sans-serif; height: 40px; color: white; font-size: 139%; cursor: move; font-weight: normal; /* Common code for all widget-end*/ background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #56722c), color-stop(100%, #758d3a)); background-image: -webkit-linear-gradient(#56722c, #758d3a); background-image: -moz-linear-gradient(#56722c, #758d3a); background-image: -o-linear-gradient(#56722c, #758d3a); background-image: -ms-linear-gradient(#56722c, #758d3a); background-image: linear-gradient(#56722c, #758d3a); filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#56722c', endColorstr='#758d3a'); } .widget_Header{ font-family: 'Web-NimbusSanNovCon-SemBol',Helvetica,Arial,sans-serif; font-size: 18px; line-height: 300%; text-align: center !important; } .widget_Bottom { clear: both; position: absolute; padding-left: 12px; padding-right: 12px; padding-bottom: 4px; bottom: 8px; width: 256px; padding-top: 8px; border-top: #d6d6d6 3px solid; } .widget_Image { display: block; margin: auto; cursor: pointer; position:relative; } .padding_Bottom_15PX {padding-bottom: 15px; clear:both;} .widget_headerText{color:#FFFFFF !important; line-height: 100% !important;} #widgetHeader > h1 {border-bottom:none !important;font-weight: bold !important;} .widget_ImageContainer{ width: 96px; height: 85px; margin-top: 25px; margin-left: 92px;} /* Stylesheet.CSS ----------------------------------------------------------*/ html, body { margin: 0; padding: 0; color: #333333 !important; font-family: Helvetica,Arial,sans-serif; font-size: 12px; font-style: normal; font-weight: normal; text-align:left; background-color: white; /* EAF0FC DEE8FA D7E3F9 CDDCF7 205CCA change to the light blue later */ height: 100%; width: 99.9%; min-width: 1000px; max-width: 1200px; } h1 { font-size: 18pt; margin: 5px 3px 3px 3px; } h2 { font-size: 14pt; margin: 5px 3px 3px 3px; } h3 { font-size: 12pt; margin: 5px 3px 3px 3px; } h4 { font-size: 11pt; margin: 4px 2px 2px 2px; } input /* necessary for the text boxes */ { font-family: Helvetica,Arial,sans-serif; font-size: 100%; background-color: white; } select /* necessary for the drop down lists */ { font-family: Helvetica,Arial,sans-serif; font-size: 100%; } /* fieldset styling */ fieldset { padding: 1em; /* padding-left: 1em; padding-right: 1em; padding-bottom: 1em; */ border : 0px solid #ccc; /* background-color:#EAF0FC; */ } /* legend styling */ legend { font-weight: normal; font-size: 11pt; /*color: #002C76; /* #002C76; */ /*margin: 5px 3px 3px 3px;*/ border-bottom: solid 1px #002C76; /* #437BE1 */ width: 90%; } /* -------- Form Layout --------------------------- */ .formLayout { border: 0px solid #989898; padding: 0px 0px ; /* padding: 5px 5px ; */ background: white; /* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ /* border-left: 1px solid #87CEFA; */ /* border-right: 1px solid #87CEFA; */ width: 100%; height: 100% !important; } .formLayoutB { border: 0px solid #989898; background: #EAF0FC; /* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ /* border: 1px solid #87CEFA; */ width: 100%; font-size: 12px; } .formLayoutC { border: 0px solid #989898; height: 500px; } .formLayoutNote { background: white; /* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ } .formLayoutB .label, .formLayoutB .labelTop { font-weight: normal; text-align: right; /* vertical-align: top; */ height: 10px; /* border: .1em dotted black; */ padding-right: .5em; /* color: #002C76; */ font-weight: bold; } .formLayout td { padding: 1px; } .formLayout .label, .formLayout .labelTop { font-weight: normal; text-align: right; /* vertical-align: top; */ height: 10px; /* border: .1em dotted black; */ padding-right: .5em; } .formLayoutD td { padding: 1px; } .formLayoutD .label, .formLayout .labelTop { font-weight: normal; text-align: right; /* vertical-align: top; */ height: 10px; /* border: .1em dotted black; */ padding-right: .5em; } .formLayoutD { border: 0px solid #989898; padding: 0px 0px ; /* padding: 5px 5px ; */ background: #EAF0FC; /* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ /* border-left: 1px solid #87CEFA; */ /* border-right: 1px solid #87CEFA; */ width: 100.5%; } .formLayoutE { border: 0px solid #989898; padding: 0px 0px ; /* padding: 5px 5px ; */ /* background: #EAF0FC; /* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ /* border-left: 1px solid #87CEFA; */ /* border-right: 1px solid #87CEFA; */ width: 1000px; overflow:hidden; } .formLayoutE_status, .formLayoutE_statusheader { width: 350px; float:left; } .formLayoutE_status { /*border-right: 1px solid #989898;*/ } .formLayoutE_statusheader, .formLayoutE_functionsheader { white-space: nowrap; text-align: left; font-weight: bold; font-size: 8pt; } .formLayoutE_functions, .formLayoutE_functionsheader { width: 640px; float:left; } .formLayout .label { /* vertical-align: top; */ } .formLayout .labelTop { vertical-align: top; } .formButtons { padding: .5em 0em .5em 0em; text-align: left; } .formButtonsLeft { padding: .5em 0em .5em 0em; text-align: left; } .formButtonsRight { padding: .5em 0em .5em 0em; text-align: right; } .formLayout .formButtons td { padding-top: 1em; text-align: left; } .formColumn { float: left; margin-right: 40px; } .RadTreeView_Office2010Blue .rtEdit .rtIn input { color: #000000 !important; } .RadCalendar_Default .rcMain .rcWeekend a { color: #333333 !important; } .leftPanelBarContainer { float: left; width: 250px; height:250px; overflow: auto; position:relative; /* Required to workaround IE rendering bug*/ } .TimeOutCounter { Left: 130px; top:90px; POSITION: absolute; font-weight:bold } /* ----------------------------------- */ #container { vertical-align: top; } #header { width: 100%; } #menu { height: 25px; } #navigation { float: left; width: 19%; height: 500px; } #content { float: right; width: 99%; /*height: 500px; */ } #footer { clear: both; width: 100%; } /*********************** Master Page Styles *******************/ #wrapper { width: 100%; min-width: 1000px; margin: 0 auto; text-align: left; background-color: white; /* Make footer sticks to the bottom */ min-height: 100%; position: relative; height: auto !important; /* IE6 compatibility for footer*/ height: 100%; /* IE6 compatibility for footer*/ display: inline-table; } /* Make footer sticks to the bottom */ #headerBody { padding-bottom: 40px; } .MasterTop { position: relative; /*background: #C0DEDD;*/ /*padding-bottom: .3em;*/ overflow: auto; z-index: 3000; /*this is needed to enure the menu is always above everything else */ background: #E0E0E0; /*url(images/bgAccuroGradient.gif) top left repeat-y; */ } .MasterTop a { font-weight: bold; font-size: 98%; color: white; text-decoration: none; } .MasterTop a:hover { text-decoration: underline; } .MasterTop a:visited { } .MasterTop .EnterpriseInfo { float: right; color: #999999; clear: both; } .MasterTop .UserInfo { float: right; color: DarkBlue; margin-top: 2em; margin-right: .4em; clear: both; } .MasterTop .Header { float: left; vertical-align: bottom; color: #999999; font-weight: bold; font-size: 2.2em; padding-left: 1em; padding-top: .6em; } .MasterTop .HeaderReg { display: inline; color: #999999; font-weight: bold; font-size: 0.66em; } .MasterTop .SubHeader { float: right; color: #999999; font-weight: bold; font-size: 1.6em; } .Logo { float: left; background: url(images/MedAssets.gif); background-repeat: no-repeat; width: 135px; height: 35px; margin-top: .5em; margin-left: .5em; } .BeveledRule { clear: both; width: 100%; height: 4px; background: transparent url(images/bgBeveledBorder.gif) repeat-x; } .MasterTop .LinkGroup { margin-right: .4em; float: right; clear: both; } /***********************Start: MASTER MENU *******************/ .MasterMenu { /* background-color: #cccccc;*/ font-weight: bold; font-size: 100%; left: 0em; top: 0em; position: relative; /* padding: 2em 0 0 0 ; */ vertical-align: bottom; z-index: 2000; /*this is needed to enure the menu is always above everything else */ } .MasterMenu table { background-color: #cccccc; } .MasterMenu table tr td a { color: Black; background-color: #cccccc; } .MasterMenu table tr:hover td:hover a:hover { background: #7795BD; color: White; } .MasterMenu table tr td { /* width: 6.0em; */ } /*********************** MASTER Content *******************/ .MasterContent { margin: 0; width: 100%; /* margin-left: 1em; */ /* padding: .5em; */ width: auto; height: auto; border-right-width: 1px; border-color: gainsboro; /*min-height: 700px; */ /* QQ Does not seem to be needed */ } .MasterNestedContent { margin: 1em; } .MasterFooter { clear: both; position: relative; text-align: center; color: #777777; font-weight: normal; font-size: 70%; margin-top: 2em; margin-bottom: 1em; padding-top: .5em; border-top: solid 1px black; } /************************ Grid ****************************/ .Grid { font-size: .9em; border: solid 1px #7f7f7f; width: 99%; } .GridHeader th { /* background: url(../../images/sprite.png) repeat-x 0px 0px; color: #000; */ background: #328AA4 url(images/grid_tr_back.gif) repeat-x; color: #FFFFFF; border-color: #989898 #cbcbcb #989898 #989898; border-style: solid solid solid none; border-width: 1px 1px 1px medium; padding: 4px 5px 4px 10px; text-align: left; vertical-align: bottom; } .GridHeader th a { text-decoration: none; display: block; padding-right: 0px; color: #FFFFFF; } .GridHeader .sortAsc a { background: url(images/sort-up.png) no-repeat right 90%; } .GridHeader .sortDesc a { background: url(images/sort-down.png) no-repeat right 90%; } .Grid td { padding: 4px 10px 4px 10px; /* border-right: solid 1px #cbcbcb; */ } .Grid .GridAltDataRow { background-color: #E5F1F4; /* #edf5ff; /* #CFECEC;*/ } /* mouseover row style */ .Grid .GridRowOver { background-color: #b2d2ff; } /* select row style */ .Grid .GridRowSelected { background-color: #FFFFCC; font-weight: bold; } /**US16291 Changes **/ .RadGrid .rgGroupHeader td { padding-left:0px !important; } .RadGrid .rgGroupHeader td p { padding-left:0px !important; } /**US16291 Changes End**/ /** hack for DE6570 **/ /** GridClientSelectColumn in a RadGrid and set it to allow scroll, it will get a scroll bar for the outer body**/ /**This behavior comes from the way checkboxes are decorated. display:block css is needed to fix checkbox styling **/ .Grid input.rfdRealInput { display:block; position: static !important; float: right; outline: 0; width: 0; height: 0; margin-top: -5px; FILTER: alpha(opacity=0); -moz-opacity: 0; opacity: 0; } div.RadGrid .rgFilterRow .rgFilterBox { width: 100%; } div.RadGrid .rgFilterRow td { padding-right: 30px; } /************************ Benefit Grid ****************************/ .BenefitGrid { font-size: .8em; border: solid 1px #7f7f7f; width: 99%; } .BenefitGridHeader th { /* background: url(../../images/sprite.png) repeat-x 0px 0px; color: #000; */ background: #328AA4 url(images/grid_tr_back.gif) repeat-x; color: #FFFFFF; border-color: #989898 #cbcbcb #989898 #989898; border-style: solid solid solid none; border-width: 1px 1px 1px medium; padding: 4px 5px 4px 10px; text-align: left; vertical-align: bottom; } .BenefitGridHeader th a { text-decoration: none; display: block; padding-right: 0px; color: #FFFFFF; } .BenefitGridHeader .sortAsc a { background: url(images/sort-up.png) no-repeat right 90%; } .BenefitGridHeader .sortDesc a { background: url(images/sort-down.png) no-repeat right 90%; } .BenefitGrid td { padding: 4px 10px 4px 10px; border-right: solid 1px #cbcbcb; } .BenefitGrid .GridAltDataRow { background-color: #E5F1F4; /* #edf5ff; /* #CFECEC;*/ } /* mouseover row style */ .BenefitGrid .GridRowOver { background-color: #b2d2ff; } /* select row style */ .BenefitGrid .GridRowSelected { background-color: #FFFFCC; font-weight: bold; } /**************************************************************** ValidationSummary ****************************************************************/ .validationSummary { display: block; border: 1px solid; margin: 0px 0px 5px 0px; font-weight: bold; color: #D8000C; background-color: #FFBABA; background-image: url(images/error.png); background-repeat: no-repeat; background-position: .7em .5em; padding: 1em 0em 1em 4em; } .validationSummary img { border: none; } /**************************************************************** MessageBox Panel ****************************************************************/ .msgInfo, .msgSuccess, .msgWarning, .msgError, .msgValidation { display: block; border: 1px solid; /* margin: 10px 0px; */ font-weight: bold; background-repeat: no-repeat; background-position: 5px 3px; } .msgInfo { color: #00529B; background-color: #BDE5F8; background-image: url(images/information.png); } .msgSuccess { color: #4F8A10; background-color: #DFF2BF; background-image: url(images/checkmark.png); } .msgWarning { color: #9F6000; background-color: #FEEFB3; background-image: url(images/warning.png); } .msgError { color: #D8000C; background-color: #FFBABA; background-image: url(images/error.png); } .msgInfo p, .msgSuccess p, .msgWarning p, .msgError p { padding: 0px 35px; margin: .8em 0 } .msgInfo a, .msgSuccess a, .msgWarning a, .msgError a { cursor: pointer; } .msgContainer img { border: none; } /****************************************************/ .LoginStatus a { padding-right: 2px; vertical-align: text-bottom; font-weight: normal; } /*******************************************************/ .modalBackground, #progressBackgroundFilter { position:absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; overflow: hidden; padding: 0; margin: 0; background-color: #D8D8D8; filter: alpha(opacity=50); opacity: 0.5; z-index: 1000; } #processMessage { position: absolute; top: 30%; left: 43%; padding: 1em; width: 7em; height: 1em; z-index: 1001; background-color: #fff; background: #fff url(images/loading.gif) 95% 80% no-repeat; border: 1px solid black } .ModalPopupX { border: solid 1px #c0c0c0; background: #f0f0f0; padding: 10px; position: absolute; top: -1000px; } .ModalPopup { padding: 2px; background: #00529B; border: solid 1px black; } .ModalPopupHeader { padding: 2px; cursor: move; width: 100%; } .ModalPopupHeaderTitle { font-size: 12pt; font-weight: bold; width: 100%; } .ModalPopupHeaderCancel { text-align: right; cursor: pointer; /* background-image: url(images/cancel.gif); background-repeat: no-repeat; border: 1px solid black; */ } /*** .ModalPopup th { background: #328AA4 url(images/grid_tr_back.gif) repeat-x; font-size: 120%; color: White; font-weight: bold; } */ .tabStrip { font-size: 4pt; } div.RadListBox .rlbText{ white-space: nowrap; font-Size: 12px; } div.RadListBox { width: 250px; display: block; } div.RadTabStripVertical .rtsLink { text-align:left; } .HeaderTitle { font-size: 11pt; color: #002C76; /*margin: 5px 3px 3px 3px;*/ } .HeaderSubTitleNotBold { font-size: 9pt; color: #002C76; /*margin: 5px 3px 3px 3px;*/ } .LabelText { font-size: 8pt; color: #002C76; /*margin: 5px 3px 3px 3px;*/ } .HeaderSubTitle { font-weight: bold; font-size: 10pt; /* margin: 5px 3px 3px 3px; */ } .verticalMenu { border-style: none; width: 170px; background-color: gainsboro; min-height: 400px; max-height: 400px; } .rtsSelected { background: white !important; border-left: solid 1px Gray !important; border-top: solid 1px Gray !important; border-right: none 0px Gray !important; } .rtsSelected .rtsOut { background: transparent !important; } .rtsSelected .rtsIn { background: transparent !important; } .rtsSelected .rtsTxt { background: transparent !important; } div.RadTabStripVertical .verticalTab { color: #808080; border-right: solid 1px Gray !important; } div.RadTabStripVertical .verticalTabSelected { color: #808080; background: white !important; border-left: solid 1px Gray !important; border-top: solid 1px Gray !important; border-right: none 0px Gray !important; } div.RadTabStripVertical .verticalTabHighlight { border-right: solid 1px Gray !important; } div.RadTabStripVertical .verticalHighlightedTabSelected { background: white !important; border-left: solid 1px Gray !important; border-top: solid 1px Gray !important; border-right: none 0px Gray !important; } .formLayoutLogin { border: 0px solid #989898; padding: 0px 0px; /* padding: 5px 5px ; */ /* background: #EAF0FC; *//* #E3F0F0; #FBFDFD; #D3E8E8; #E5F1F4; #F7FBFB; */ /* border-left: 1px solid #87CEFA; */ /* border-right: 1px solid #87CEFA; */ background: #CDDCF7; /* #B7C8F6; *//* for non-css3 browsers */ width: 100%; height: 100%; } .formPadding { padding-top: 40px; padding-left: 20px; } .tableTitle { font-size: 12pt; font-weight:bold; } .tableLabel { font-Size: 10pt; font-family:Helvetica,Arial,sans-serif; font-weight:normal; } .tableInput { font-family:Helvetica,Arial,sans-serif; font-size:8pt; } html body form .RadInput { Font-Size: 8pt; font-family: Helvetica,Arial,sans-serif; font-weight: normal; } .tableAnnouncement { font-size: 14pt; } .failureNotification { color: Red; } /* Brandzone Header styles start here */ #brandzoneHeader .topBar{ height:18px; border-bottom:#0b4988 1px solid; background-color:#dfe9f7; font-family:Helvetica,Arial,sans-serif; font-size:80%; } #brandzoneHeader .topBar .welcomeMsg{ margin:4px 0 0 10px; float:left; } #brandzoneHeader .topBar .facilityInfo{ float:right; margin:4px 20px 0 0; } #brandzoneHeader .topBar .facilityInfo a{ text-decoration:underline; font-weight:bold; color:#144884; } #brandzoneHeader .topBar .LogOut{ float:right; margin:4px 45px 0 0; } #brandzoneHeader .topBar .LogOut a{ text-decoration:underline; font-weight:bold; } #brandzoneHeader .topBar .topLinks{ float:right; margin:5px 0 0 0; } #brandzoneHeader .topBar .topLinks img{ margin:0 16px 0 0; border:0; } #brandzoneHeader .bannerContainer{ background:url(brandZoneImages/bannerBack.gif) repeat-x; height:47px; } #brandzoneHeader .banner{ background:url(brandZoneImages/productName.jpg) no-repeat; height:46px; /*border-bottom:#0b4988 1px solid;*/ } #brandzoneHeader .banner .search{ float:right; margin:10px 20px 0 0; } #brandzoneHeader .banner .logo{ background:url(brandZoneImages/logo.png) no-repeat; float:right; width:110px; height:46px; margin-right:22px; } /* Brandzone Footer styles start here */ #brandzoneFooter .footer{ background:url(brandZoneImages/bottomShadow.gif) 0 0 repeat-x #EAF0FC; padding:10px 0px 5px 0px; color:#333333; font-size:80%; text-align:right; line-height:15px; font-size: 11px; font-family:Helvetica,Arial,sans-serif; /* Stick footer to bottom */ height: 30px; position:absolute; bottom:0px; width:99.9%; } #brandzoneFooter .footer a{ color:#144884; text-decoration:none; } #brandzoneFooter .footer a:hover{ color:#144884; text-decoration:underline; } /***************Main menu styles starts here***************/ #mainMenu { MARGIN: 0 0 0 10px; float:left; padding:0px; height:19px; background:url(brandZoneImages/topNavBack.gif) repeat-x; margin-top:27px; } #mainMenu UL { PADDING: 0px; MARGIN: 0px; WHITE-SPACE: nowrap; LIST-STYLE-TYPE: none; TEXT-ALIGN: left; DISPLAY: inline; } #mainMenu LI { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none; DISPLAY: inline } #mainMenu UL UL { LEFT: -9999px; POSITION: absolute; margin:0px; padding:0px; } #mainMenu UL.level1 { MARGIN: 0; } #mainMenu UL.level2{ margin-left:-2px; } #mainMenu UL.level2, #mainMenu UL.level3, #mainMenu UL.level4{ background:url(brandZoneImages/topSubNavBack.gif); margin-top:0px; border:#304682 1px solid; margin-top:1px; } #mainMenu UL.level2 li a, #mainMenu UL.level3 li a, #mainMenu UL.level4 li a{ font-weight:normal; color: #304682; margin-top:0px; padding:0 15px 1px 10px; } #mainMenu UL.level1 LI.level1-li { DISPLAY: block; FLOAT: left; POSITION: relative; border-right:#a4bad8 1px solid; border-left:#FFFFFF 1px solid; margin-top:1px; } #mainMenu li.level1-li-selected { background: #FFFFFF; border-top:#165790 1px solid; border-right:#165790 1px solid; border-left:#165790 1px solid; text-decoration:none; DISPLAY: block; FLOAT: left; POSITION: relative; padding:0 0 2px 0; margin-top:-1px; } #mainMenu .level1-li-selected > a{ font-size:75%; font-family:Tahoma; font-weight:bold; color:#165790; text-decoration:none; } #mainMenu A { PADDING-RIGHT: 25px; DISPLAY: block; PADDING-LEFT: 15px; PADDING-BOTTOM: 0px; FONT: 11px/25px Tahoma,arial,sans-serif; font-weight:bold; color:#501d47; PADDING-TOP: 0px; TEXT-DECORATION: none; line-height:18px; } #mainMenu UL.level1 LI.level1-li A.level1-a { FLOAT: left } #mainMenu UL LI:hover > UL { LEFT: 0px; VISIBILITY: visible; TOP: 18px } #mainMenu UL UL LI:hover > UL { MARGIN-TOP: -20px; LEFT: 100%; VISIBILITY: visible; TOP: auto } #mainMenu LI.left:hover > UL { RIGHT: 0px; LEFT: auto; VISIBILITY: visible; TOP: 18px } #mainMenu LI.left UL LI:hover > UL { MARGIN-TOP: -20px; RIGHT: 100%; LEFT: auto; VISIBILITY: visible; TOP: auto } #mainMenu A:hover UL { LEFT: 0px; TOP: 18px } #mainMenu LI.left A:hover UL { RIGHT: -1px; LEFT: auto; TOP: 18px } #mainMenu LI.left UL A { PADDING-RIGHT: 10px; PADDING-LEFT: 20px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; TEXT-ALIGN: right } #mainMenu A:hover A:hover UL { LEFT: 100%; VISIBILITY: visible } #mainMenu A:hover A:hover A:hover UL { LEFT: 100%; VISIBILITY: visible } #mainMenu LI.left A:hover A:hover UL { RIGHT: 0px; LEFT: auto; VISIBILITY: visible } #mainMenu LI.left A:hover A:hover A:hover UL { RIGHT: 0px; LEFT: auto; VISIBILITY: visible } #mainMenu A:hover UL UL { LEFT: -9999px } #mainMenu A:hover A:hover UL UL { LEFT: -9999px } #mainMenu LI.left A:hover UL UL { LEFT: -9999px } #mainMenu LI.left A:hover A:hover UL UL { LEFT: -9999px } #mainMenu LI A:hover { text-decoration:none; DIRECTION: ltr } #mainMenu LI A.fly:hover { text-decoration:none; DIRECTION: ltr } #mainMenu LI:hover > A { text-decoration:none } #mainMenu UL LI:hover > A.fly { text-decoration:none } #mainMenu TABLE { MARGIN-TOP: -4px; LEFT: 0px; WIDTH: 0px; POSITION: absolute; BORDER-COLLAPSE: collapse; HEIGHT: 0px } #mainMenu TABLE TABLE { MARGIN-TOP: -29px; LEFT: 99%; WIDTH: 0px; POSITION: absolute; BORDER-COLLAPSE: collapse; HEIGHT: 0px } #mainMenu LI.left TABLE { MARGIN-TOP: -4px; RIGHT: 0px; LEFT: auto; WIDTH: 0px; POSITION: absolute; BORDER-COLLAPSE: collapse; HEIGHT: 0px } #mainMenu LI.left TABLE TABLE { MARGIN-TOP: -29px; RIGHT: 100%; LEFT: auto; WIDTH: 0px; POSITION: absolute; BORDER-COLLAPSE: collapse; HEIGHT: 0px } /***************Main menu styles ends here***************/ .RadListBox li.rlbItem, .RadListBox li.rlbSelected, .RadListBox span.rlbText { padding:0 0 0 1; line-height:12px; } .RadListBox span.rlbText { padding:0 0 0 1; line-height:12px; } .RadTreeView { line-height: 16px; } .RadTreeView .rtSp { height: 14px; } .RadTreeView .rtHover .rtIn, .RadTreeView .rtSelected .rtIn { padding: 0px 1px 0px; } .RadTreeView .rtIn { padding: 1px 2px 1px; } .rcbSeparator { background: lightblue !important; height:1px !important; min-height: 1px !important; padding:0px !important; margin:0px !important; }<Resizing AllowColumnResize="true" ClipCellContentOnResize="true"ResizeGridOnColumnResize="false" AllowRowResize="false" />column.Resizable = false;|
Requirements |
|
| RadControls version | |
| .NET version | |
| Visual Studio version | |
| programming language | |
| browser support |
all browsers supported by RadControls |

<%@ Page Title="Quick Entry" Language="VB" MasterPageFile="~/AIR.master" AutoEventWireup="false" CodeFile="quick_report.aspx.vb" Inherits="quick_report" %> <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script type="text/javascript"> function OnClientItemsRequestingHandler(sender, eventArgs) { var context = eventArgs.get_context(); var hiddenField = document.getElementById("<%= hidEmpLocation.ClientID %>"); context["FilterValue"] = hiddenField.value; } function show_vehicle_involved_help() { var oWnd = $find("<%=winItem3.ClientID %>"); oWnd.set_height(500); oWnd.setUrl('vehicle_involved_help.htm'); oWnd.show(); } function open_password() { var oWnd = $find("<%=winItem3.ClientID %>"); oWnd.set_height(200); oWnd.setUrl('change_password.aspx'); oWnd.show(); } function set_data_changed() { var myHidDC = document.getElementById("<%= hidDataChanged.ClientID %>") myHidDC.value = "1"; } function check_data_changed() { var myHidDC = document.getElementById("<%= hidDataChanged.ClientID %>") if (myHidDC.value == "1") { return confirm('Discard changes?'); } else { return true; } } function set_dtofaccident_focus(sender, eventArgs) { var myD = $find("<%=txtDateOfAccident.DateInput.ClientID%>"); if (myD != null) { myD.focus(); } } function set_dtreported_focus(sender, eventArgs) { var myD = $find("<%=txtDateReported.DateInput.ClientID%>"); if (myD != null) { myD.focus(); } } function show_severity_help() { var oWnd = $find("<%=winItem3.ClientID %>"); oWnd.set_height(500); oWnd.setUrl('severity_help.htm'); oWnd.show(); //radopen("severity_help.htm","HELP"); } function show_item3_help() { var oWnd = $find("<%=winItem3.ClientID %>"); oWnd.set_height(250); oWnd.setUrl('item3_help.htm'); oWnd.show(); //radopen("item3_help.htm", "winItem3"); } function radpopup(msg) { var win = radalert(msg); win.add_close(function() { window.location = 'quick_report.aspx?userid=<%=Session("userid") %>'; }); } </script> <style type="text/css"> .readonly { color: Maroon; } .tbl_left { width: 30%; text-align: right; vertical-align:top; } .tbl_right { width: 70%; text-align: left; vertical-align:top; } .tbl_middle { width: 70%; text-align: left; vertical-align:top; } .RadPicker { vertical-align:middle; } .RadPicker .rcTable { table-layout:auto; } .RadPicker .RadInput { vertical-align:baseline; } .RadInput { vertical-align:middle; } .RadInput_Default { font:12px "segoe ui",arial,sans-serif; } .RadPicker .rcCalPopup { display:block; overflow:hidden; width:22px; height:22px; background-color:transparent; background-repeat:no-repeat; text-indent:-2222px; text-align:center; } .RadPicker_Default .rcCalPopup { background-image:url('mvwres://Telerik.Web.UI, Version=2010.1.309.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.Calendar.sprite.gif'); } .RadPicker_Default .rcCalPopup { background-position:0 0; } .style1 { width: 70%; text-align: left; vertical-align: top; font-weight: bold; } </style> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MenuBar" Runat="Server"> <asp:LinkButton ID="cmdChangePassword" runat="server" Visible="true" OnClientClick="open_password(); return false;">Change Password</asp:LinkButton> <telerik:RadWindow runat="server" ID="winItem3" Height="2px" Width="800px" OffsetElementID="" Modal="true" Behaviors="Close" EnableShadow="true" VisibleStatusbar="false"> </telerik:RadWindow> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server"> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="Body" Runat="Server"> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="100%" width="100%"> <asp:UpdatePanel ID="UP1" runat="server"> <ContentTemplate> <asp:HiddenField ID="hidDataChanged" runat="server" Value="0" /> <asp:HiddenField ID="hidCallerTitleId" runat="server" Value="0" /> <asp:HiddenField ID="hidEmpLocation" runat="server" Value="0" /> <table style="width:100%; text-align:center; vertical-align:top;"> <tr> <td class="tbl_left" style="text-align:left; color: #FF0000; font-weight: bold;"> * = required fields</td> <td width="35%" style="text-align:left;"> <b><asp:Literal runat="server" ID="qe_item1"></asp:Literal></b></td> </tr> <tr> <td class="tbl_left" style="text-align:left;"> </td> <td width="35%" style="text-align: left;"> <b> <asp:Literal runat="server" ID="qe_item2"></asp:Literal></b> </td> </tr> <tr> <td class="tbl_left" style="text-align:left;"> </td> <td width="35%" style="text-align: left;"> <asp:Label ID="lblItem3" runat="server" style="font-weight: 700" Text="3. Was there a fatality involved or other serious incident ( Follow SOP 3-017 ) ?" ToolTip=""></asp:Label> <asp:ImageButton ID="imgItem3Help" runat="server" ImageAlign="Middle" ImageUrl="~/Images/help2.png" OnClientClick="show_item3_help()" ToolTip="Help" /> </td> </tr> <tr> <td class="tbl_left" style="text-align:left;"> </td> <td class="tbl_middle"> <asp:Button ID="cmdSubmitTop" runat="server" Text="Submit" /> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> What is your GSN?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Caller's GSN:</td> <td class="tbl_middle"> <telerik:RadComboBox ID="cboCallersGSN" Runat="server" EnableLoadOnDemand="True" EnableVirtualScrolling="True" ShowMoreResultsBox="True" ForeColor="Maroon" MarkFirstMatch="True" TabIndex="1" AutoPostBack="True"> <WebServiceSettings Method="Get_Caller_GSN" Path="DPSG_Data.asmx" /> </telerik:RadComboBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> What is your name?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Caller's Name:</td> <td class="tbl_middle"> <asp:TextBox ID="txtCallerName" runat="server" Width="200px" ReadOnly="True" CssClass="readonly" TabIndex="1"></asp:TextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> What is your title?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Caller's Title:</td> <td class="tbl_middle"> <asp:TextBox ID="txtCallerTitle" runat="server" CssClass="readonly" TabIndex="1" Width="300px" ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> What is your best contact phone number?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Caller's Phone #:</td> <td class="tbl_middle"> <telerik:RadMaskedTextBox ID="txtCallerPhone" runat="server" LabelCssClass="" Mask="(###) ###-####" TabIndex="1" TextWithLiterals="() -" Width="80px" ForeColor="Maroon"> </telerik:RadMaskedTextBox> Ext: <telerik:RadMaskedTextBox ID="txtCallerExt" runat="server" LabelCssClass="" Mask="###-####" TabIndex="1" TextWithLiterals="" Width="50px" ForeColor="Maroon"> </telerik:RadMaskedTextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle"> <b>What is your e-mail address?</b> <br /> <i>Please have the caller spell out and repeat back to ensure it is correct.</i></td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Caller's E-Mail:</td> <td class="tbl_middle"> <asp:TextBox ID="txtCallerEMail" runat="server" TabIndex="1" width="300px" CssClass="readonly" ReadOnly="True"></asp:TextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="style1"> Was the person involved a DPSG employee?</td> </tr> <tr> <td class="tbl_left"> DPSG Employee?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgDPSGEmployee" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1" ForeColor="Maroon"> <asp:ListItem Selected="True" Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle"> <b>Who was the person involved?</b><br /> <span style="font-weight: normal; font-style: italic">Please say and spell the first and last name.</span></td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Name of Person Involved:</td> <td class="tbl_middle"> <telerik:RadComboBox ID="cboPersonInvolved" Runat="server" TabIndex="1" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EnableLoadOnDemand="True" ForeColor="Maroon" AutoPostBack="True"> <WebServiceSettings Method="Get_Employees" Path="DPSG_Data.asmx" /> </telerik:RadComboBox> <asp:TextBox ID="txtPersonInvolved" runat="server" TabIndex="1" Visible="False" Width="300px" ForeColor="Maroon"></asp:TextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> What is the person's best contact phone number?</td> </tr> <tr> <td class="tbl_left"> Person's Phone #:</td> <td class="tbl_middle"> <telerik:RadMaskedTextBox ID="txtEmpPhone" runat="server" LabelCssClass="" Mask="(###) ###-####" TabIndex="1" TextWithLiterals="() -" Width="80px" ForeColor="Maroon"> </telerik:RadMaskedTextBox> Ext: <telerik:RadMaskedTextBox ID="txtEmpExt" runat="server" LabelCssClass="" Mask="###-####" TabIndex="1" TextWithLiterals="" Width="50px" ForeColor="Maroon"> </telerik:RadMaskedTextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> At which DPSG location or site does this person report to?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Location/Site:</td> <td class="tbl_middle"> <telerik:RadComboBox ID="cboLocation" Runat="server" TabIndex="1" ShowMoreResultsBox="true" EnableVirtualScrolling="true" EnableLoadOnDemand="True" ForeColor="Maroon" OnClientItemsRequesting="OnClientItemsRequestingHandler"> <WebServiceSettings Method="Get_Caller_Location" Path="DPSG_Data.asmx" /> </telerik:RadComboBox> <asp:Label ID="lblNA" runat="server" ForeColor="Maroon" Text="N/A" Visible="False"></asp:Label> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> When did this incident occur, date & time?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Date of Incident:</td> <td class="tbl_middle"> <telerik:RadDatePicker ID="txtDateOfAccident" runat="server" Culture="English (United States)" TabIndex="1" Width="100px" ForeColor="Maroon"> <Calendar ShowRowHeaders="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DateInput DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy" LabelCssClass="" TabIndex="1" Width="" forecolor="Maroon"> </DateInput> <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" TabIndex="9999" /> <ClientEvents OnPopupClosing="set_dtofaccident_focus" /> </telerik:RadDatePicker> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Time of Incident:</td> <td class="tbl_middle"> <telerik:RadTimePicker ID="txtTimeOfAccident" runat="server" Culture="English (United States)" TabIndex="1" Width="80px" ForeColor="Maroon"> <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" TabIndex="1" Visible="False" /> <TimeView CellSpacing="-1"> </TimeView> <TimePopupButton CssClass="" HoverImageUrl="" ImageUrl="" /> <DateInput DateFormat="hh:mm tt" DisplayDateFormat="hh:mm tt" LabelCssClass="" TabIndex="1" Width="" forecolor="Maroon"> </DateInput> </telerik:RadTimePicker> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Where did this incident occur?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Place of Incident:</td> <td class="tbl_middle"> <asp:TextBox ID="txtPlaceOfAccident" runat="server" TabIndex="1" Width="300px" ForeColor="Maroon"></asp:TextBox> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> When was this incident reported to you, date & time?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Date Reported:</td> <td class="tbl_middle"> <telerik:RadDatePicker ID="txtDateReported" runat="server" Culture="English (United States)" TabIndex="1" Width="100px" ForeColor="Maroon"> <Calendar ShowRowHeaders="False" UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DateInput DateFormat="MM/dd/yyyy" DisplayDateFormat="MM/dd/yyyy" LabelCssClass="" TabIndex="1" Width="" forecolor="Maroon"> </DateInput> <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" TabIndex="9999" /> <ClientEvents OnPopupClosing="set_dtreported_focus" /> </telerik:RadDatePicker> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Time Reported:</td> <td class="tbl_middle"> <telerik:RadTimePicker ID="txtTimeReported" runat="server" Culture="English (United States)" TabIndex="1" Width="80px" ForeColor="Maroon"> <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"> </Calendar> <DatePopupButton CssClass="" HoverImageUrl="" ImageUrl="" TabIndex="1" Visible="False" /> <TimeView CellSpacing="-1"> </TimeView> <TimePopupButton CssClass="" HoverImageUrl="" ImageUrl="" /> <DateInput DateFormat="hh:mm tt" DisplayDateFormat="hh:mm tt" LabelCssClass="" TabIndex="1" Width="" forecolor="Maroon"> </DateInput> </telerik:RadTimePicker> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Was the person injured?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Is Injury Involved?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgInjury" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1" ForeColor="Maroon"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Severity:</td> <td class="tbl_middle"> <asp:DropDownList ID="cboSeverity" runat="server" AutoPostBack="True" TabIndex="1" ForeColor="Maroon"> </asp:DropDownList> <asp:ImageButton ID="imgHelp" runat="server" ImageAlign="Middle" ImageUrl="~/Images/help2.png" OnClientClick="show_severity_help()" /> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Was a company owned or leased vehicle involved?</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Was Vehicle Involved?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgVehicle" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1" ForeColor="Maroon"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> <asp:ImageButton ID="imgHelpVehicleInvolved" runat="server" ImageAlign="Middle" ImageUrl="~/Images/help2.png" OnClientClick="show_vehicle_involved_help()" /> </td> </tr> </table> <asp:Panel runat="server" ID="pnlT3" Visible="False"> <table ID="table1" style="width: 100%; text-align: center; vertical-align: top;"> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Was any vehicle towed from the scene of the accident?</td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Vehicle Towed?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgVehicleTowed" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Was any medical treatment required or provided away from the scene of the accident?</td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Medical Away from Scene?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgMedicalAway" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Other?</td> <td class="tbl_middle"> <asp:RadioButtonList ID="opgOther" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle" style="font-weight: bold"> Was a 3rd party involved - either a 3rd party's vehicle, property damage or bodily injury?</td> <td class="tbl_right"> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_middle"> </td> <td class="tbl_right" style="font-weight: bold"> </td> </tr> </table> </asp:Panel> <table style="width: 100%; text-align: center; vertical-align: top;"> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Is Third Party Involved?</td> <td class="tbl_right"> <asp:RadioButtonList ID="opgThirdParty" runat="server" AutoPostBack="True" RepeatDirection="Horizontal" RepeatLayout="Flow" TabIndex="1" ForeColor="Maroon"> <asp:ListItem Value="1">Yes</asp:ListItem> <asp:ListItem Value="0">No</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_right" style="font-weight: bold"> Please describe what happened.</td> </tr> <tr> <td class="tbl_left"> <span style="color: #FF0000">* </span>Initial Incident Description:</td> <td class="tbl_right"> <table ID="table2" cellpadding="3" cellspacing="0" style="width: 100%; border: solid 1px black"> <tr> <td> <asp:TextBox ID="txtInv" runat="server" BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial" Font-Size="10pt" Rows="5" TabIndex="1" TextMode="MultiLine" Width="100%" ForeColor="Maroon"></asp:TextBox> </td> </tr> <tr> <td> <telerik:RadSpell ID="RadSpell1" runat="server" ControlsToCheck="txtInv" Height="28px" SupportedLanguages="en-US,English" /> </td> </tr> </table> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_right" style="font-weight: bold"> Once the report is complete, click "Submit".<br /> <i>If report meets critical criteria, do not submit - follow callout rules.</i></td> </tr> <tr> <td class="tbl_left" style="height: 25px"> </td> <td class="tbl_right" style="height: 25px"> </td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_right"> <b><asp:Literal runat="server" ID="qe_bottom_notes_1"></asp:Literal></b> <i> <asp:Literal runat="server" ID="qe_bottom_notes_2"></asp:Literal></i></td> </tr> <tr> <td class="tbl_left"> </td> <td class="tbl_right"> <asp:Button ID="cmdSubmitBottom" runat="server" Text="Submit" /> </td> </tr> </table> <br /> </ContentTemplate> </asp:UpdatePanel> </telerik:RadAjaxPanel> </asp:Content> Imports DRP_Data Imports System.Web.Configuration Imports Functions Imports Telerik.Web.UI Partial Class quick_report Inherits System.Web.UI.Page Friend mySD As DRP_DataAdapter Friend Error_Email As String = "" Friend ReportID As String = "" Friend AH As New DRP_DataReader Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload mySD.DataSet.Clear() mySD.CloseConn() mySD = Nothing End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Dim myBody As HtmlGenericControl = Master.FindControl("pageBody") myBody.Attributes.Add("onkeydown", "javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;") If Request.Params("userid") IsNot Nothing Then Session("userid") = Request.Params("userid") End If Dim lblReportStatus As Label = CType(Master.FindControl("lblReportStatus"), Label) lblReportStatus.Visible = False Dim lblSave As Label = CType(Master.FindControl("lblSave"), Label) lblSave.Visible = False Dim imgSave As ImageButton = CType(Master.FindControl("imgSave"), ImageButton) imgSave.Visible = False Dim imgHome As ImageButton = CType(Master.FindControl("imgHome"), ImageButton) imgHome.Visible = False Dim lblHome As Label = CType(Master.FindControl("lblHome"), Label) lblHome.Visible = False If Session("db_server") = Nothing Then Session("db_server") = WebConfigurationManager.AppSettings("db_server").ToString.Trim Session("db_name") = WebConfigurationManager.AppSettings("db_name").ToString.Trim Session("db_user") = WebConfigurationManager.AppSettings("db_user").ToString.Trim Session("db_password") = WebConfigurationManager.AppSettings("db_password").ToString.Trim End If qe_item1.Text = WebConfigurationManager.AppSettings("qe_item1_text").ToString.Trim qe_item2.Text = WebConfigurationManager.AppSettings("qe_item2_text").ToString.Trim qe_bottom_notes_1.Text = WebConfigurationManager.AppSettings("qe_bottom_notes_1").ToString.Trim qe_bottom_notes_2.Text = WebConfigurationManager.AppSettings("qe_bottom_notes_2").ToString.Trim Error_Email = WebConfigurationManager.AppSettings("error_email").ToString.Trim CType(Master.FindControl("lblReportStatus"), Label).Text = "Report Status: Open" CType(Master.FindControl("lblUserName"), Label).Text = Session("username") mySD = New DRP_DataAdapter mySD.Database_Server = Session("db_server") mySD.Database_Name = Session("db_name") mySD.Database_UserID = Session("db_user") mySD.Database_Passwrod = Session("db_password") Session("mode") = "ADD" Try mySD.OpenConn() If Page.IsPostBack = False Then opgVehicleTowed.SelectedValue = Nothing opgMedicalAway.SelectedValue = Nothing 'opgFatality.SelectedValue = Nothing opgOther.SelectedValue = Nothing opgThirdParty.SelectedValue = Nothing opgInjury.SelectedValue = Nothing cboCallersGSN.Focus() Load_Severity() End If Catch ex As Exception End Try End Sub Private Sub Load_Severity() If mySD.DataSet.Tables.Contains("c_severity") Then mySD.DataSet.Tables("c_severity").Clear() End If mySD.Select_Command = "select 'select one...' as severity, 0 as severityid, 0 as sortby union all select severity, severityid, sortby from accidentseverity order by 3, 1" mySD.Fill("c_severity") cboSeverity.DataSource = mySD.DataSet cboSeverity.DataMember = "c_severity" cboSeverity.DataTextField = "severity" cboSeverity.DataValueField = "severityid" cboSeverity.DataBind() cboSeverity.Items.Remove(cboSeverity.Items.FindByText("Major Medical")) End Sub Private Sub Go_Home() Response.Redirect("~/main.aspx", False) End Sub Private Sub Save_Record() AH.Server_Address = Session("db_server") AH.Server_Database = Session("db_name") AH.Server_UserId = Session("db_user") AH.Server_Password = Session("db_password") Try AH.OpenConn() 'Save air_header record so we have a valid air_header_id value Dim newReportID As String = "" Dim insert_str As String = "" insert_str += "0," insert_str += cboLocation.SelectedValue.ToString.Trim + "," insert_str += "1," insert_str += cboSeverity.SelectedValue.ToString.Trim + "," If txtDateOfAccident.SelectedDate IsNot Nothing Then insert_str += "'" + Date.Parse(txtDateOfAccident.SelectedDate.Value.ToShortDateString + " " + Format(txtTimeOfAccident.SelectedDate, "hh:mm tt").ToString).ToString + "'" + "," Else insert_str += "''" + "," End If If txtDateReported.SelectedDate IsNot Nothing Then insert_str += "'" + Date.Parse(txtDateReported.SelectedDate.Value.ToShortDateString + " " + Format(txtTimeReported.SelectedDate, "hh:mm tt").ToString).ToString + "'" + "," Else insert_str += "''" + "," End If If opgDPSGEmployee.SelectedValue = "1" Then insert_str += Session("emp_no").ToString + "," insert_str += "'" + cboPersonInvolved.Text.Replace("'", "''") + "'" + "," Else insert_str += "0," insert_str += "'" + txtPersonInvolved.Text.Trim.Replace("'", "''") + "'" + "," End If insert_str += "'" + txtEmpPhone.Text.Trim + "'" + "," insert_str += "'" + txtEmpExt.Text.Trim + "'" + "," insert_str += "-1," insert_str += "-1," insert_str += "''" + "," insert_str += "'" + txtPlaceOfAccident.Text.Trim.Replace("'", "''") + "'" + "," insert_str += Session("callers_gsn").ToString + "," insert_str += "'" + txtCallerName.Text.Trim.Replace("'", "''") + "'" + "," insert_str += "''" + "," 'insert_str += IIf(cboSeverity.SelectedItem.Text.Contains("Medical"), "5,", "-1,") insert_str += IIf(cboSeverity.SelectedItem.Text.Contains("Medical"), "5,", "6,") insert_str += "0," insert_str += "0," insert_str += "0," insert_str += "''" + "," insert_str += "0," insert_str += "0," insert_str += "-1," insert_str += "''" + "," insert_str += "''" + "," insert_str += "''" + "," insert_str += "''" + "," insert_str += "''" + "," insert_str += Session("YAC").ToString + "," 'Yrs At Co insert_str += Session("MAC").ToString + "," 'Mos At Co Dim cur_pos_id As Integer = -1 cur_pos_id = get_cur_pos_id(Session("YACJ"), Session("MACJ")) insert_str += cur_pos_id.ToString + "," 'cur_pos_id insert_str += "''" + "," insert_str += "''" + "," insert_str += "''" + "," insert_str += "''" + "," insert_str += "0" + "," insert_str += "0" + "," insert_str += "0" + "," insert_str += "0" + "," insert_str += "0" + "," insert_str += "'A'" + "," 'happenedat insert_str += "0," insert_str += "''" + "," insert_str += "''" + "," insert_str += hidCallerTitleId.Value.ToString + "," insert_str += "'" + txtCallerPhone.Text.Trim + "'" + "," insert_str += "'" + txtCallerExt.Text.Trim + "'" + "," insert_str += "'" + txtCallerEMail.Text.Trim.ToLower + "'" + "," If opgInjury.SelectedValue = "" Then insert_str += "0," Else insert_str += opgInjury.SelectedValue.Trim + "," End If If opgVehicle.SelectedValue = "" Then insert_str += "0," Else insert_str += opgVehicle.SelectedValue.Trim + "," End If 'If opgVehicleTowed.SelectedValue = "" Then ' insert_str += "0," 'Else ' insert_str += opgVehicleTowed.SelectedValue.Trim + "," 'End If insert_str += "0," 'If opgMedicalAway.SelectedValue = "" Then ' insert_str += "0," 'Else ' insert_str += opgMedicalAway.SelectedValue.Trim + "," 'End If insert_str += "0," 'If opgFatality.SelectedValue = "" Then ' insert_str += "0," 'Else ' insert_str += opgFatality.SelectedValue.Trim + "," 'End If insert_str += "0," 'If opgOther.SelectedValue = "" Then ' insert_str += "0," 'Else ' insert_str += opgOther.SelectedValue.Trim + "," 'End If insert_str += "0," If opgThirdParty.SelectedValue = "" Then insert_str += "0," Else insert_str += opgThirdParty.SelectedValue.Trim + "," End If insert_str += Session("YACJ").ToString + "," insert_str += Session("MACJ").ToString + "," insert_str += Session("YAC").ToString + "," insert_str += Session("MAC").ToString + "," insert_str += Session("userid").ToString + "," insert_str += cboCallersGSN.SelectedValue.ToString If Session("mode").ToString.ToUpper = "ADD" Then AH.Select_Command = "exec a_air_header " + insert_str AH.ExecuteReader() If AH.DataReader.HasRows Then AH.DataReader.Read() Session("air_header_id") = AH.DataReader("air_header_id") CType(Master.FindControl("lblReportNo"), Label).Text = "Incident Report No. " + AH.DataReader("reportid").ToString ReportID = AH.DataReader("reportid").ToString End If If txtCallerEMail.Text.Trim.Length > 0 Then Send_EMail() End If AH.CloseReader() 'Save inv_text insert_str = "" insert_str += Session("air_header_id").ToString.Trim + "," insert_str += "'" + txtInv.Text.Trim.Replace("'", "''") + "'" + "," insert_str += "0" + "," insert_str += "''" + "," insert_str += "''" If Session("mode").ToString.ToUpper = "ADD" Then AH.Insert_Command = "exec a_air_investigation " + insert_str AH.ExecuteNonQuery("INSERT") End If Dim msg As String = "<div style=""font-family: Arial; font-size: 12pt; text-alignment:center;"">The Report ID is\n</div><div style=""font-family: Arial; font-size: 18pt;"">" + ReportID + "</div>" 'ScriptManager.RegisterStartupScript(Me, Me.GetType(), "report_no", "radalert('" + msg + "');window.location = 'quick_report.aspx';", True) ScriptManager.RegisterStartupScript(Me, Me.GetType(), "report_no", "radpopup('" + msg + "')", True) End If 'Response.Redirect("~/quick_report.aspx", True) Catch ex As Exception Dim errmsg As String = "" errmsg = ex.Message + vbCrLf + ex.Source + vbCrLf + ex.StackTrace EMail_Class.Class1.Send_eMail(Error_Email, WebConfigurationManager.AppSettings("email_username").ToString.Trim, "", "Application Error", errmsg) Finally AH.CloseConn() Session("callers_gsn") = "" Session("emp_no") = "" Session("YACJ") = 0 Session("MACJ") = 0 Session("YAC") = 0 Session("MAC") = 0 Session("userid") = 0 End Try End Sub Private Function get_cur_pos_id(ByVal Yrs As Integer, ByVal mos As Integer) As Integer Dim RetVal As Integer = -1 Select Case Yrs Case Is < 1 RetVal = 1 Case 1 To 5 RetVal = 2 Case Is > 5 RetVal = 3 End Select Return RetVal End Function Private Sub Send_EMail() Dim Email_Msg As String = "" If System.IO.File.Exists(Server.MapPath("body_text.txt")) Then Email_Msg = System.IO.File.ReadAllText(Server.MapPath("body_text.txt")) Email_Msg = Email_Msg.Replace("<<ReportID>>", ReportID) Email_Msg = Email_Msg.Replace("<<CallerName>>", txtCallerName.Text.Trim) Email_Msg = Email_Msg.Replace("<<CallerTitle>>", hidCallerTitleId.Value.ToString.Trim) Email_Msg = Email_Msg.Replace("<<CallerPhone>>", txtCallerPhone.Text.Trim) Email_Msg = Email_Msg.Replace("<<CallerExt>>", txtCallerExt.Text.Trim) Email_Msg = Email_Msg.Replace("<<CallerEmail>>", txtCallerEMail.Text.Trim) Email_Msg = Email_Msg.Replace("<<EmpName>>", txtPersonInvolved.Text.Trim) Email_Msg = Email_Msg.Replace("<<EmpPhone>>", txtEmpPhone.Text.Trim) Email_Msg = Email_Msg.Replace("<<EmpExt>>", txtEmpExt.Text.Trim) Email_Msg = Email_Msg.Replace("<<Location>>", cboLocation.Text.Trim) Email_Msg = Email_Msg.Replace("<<DateOfIncident>>", Format(txtDateOfAccident.SelectedDate, "MM/dd/yyyy").ToString) Email_Msg = Email_Msg.Replace("<<TimeOfIncident>>", Format(txtTimeOfAccident.SelectedDate, "hh:mm tt").ToString) Email_Msg = Email_Msg.Replace("<<PlaceOfIncident>>", txtPlaceOfAccident.Text.ToString) Email_Msg = Email_Msg.Replace("<<DateReported>>", Format(txtDateReported.SelectedDate, "MM/dd/yyyy").ToString) Email_Msg = Email_Msg.Replace("<<TimeReported>>", Format(txtTimeReported.SelectedDate, "hh:mm tt").ToString) Email_Msg = Email_Msg.Replace("<<InjuryInvolved>>", IIf(opgInjury.SelectedValue = "1", "Injury: Yes", "Injury: No")) Email_Msg = Email_Msg.Replace("<<Severity>>", cboSeverity.SelectedItem.Text.Trim) Email_Msg = Email_Msg.Replace("<<VehicleInvolved>>", IIf(opgVehicle.SelectedValue = "1", "Vehicle Involved: Yes", "Vehicle Involved: No")) Email_Msg = Email_Msg.Replace("<<VehicleTowed>>", IIf(opgVehicleTowed.SelectedValue = "1", "Vehicle Towed: Yes", "Vehicle Towed: No")) Email_Msg = Email_Msg.Replace("<<MedicalAway>>", IIf(opgMedicalAway.SelectedValue = "1", "Medical Away: Yes", "Medical Away: No")) Email_Msg = Email_Msg.Replace("<<Other>>", IIf(opgOther.SelectedValue = "1", "Other: Yes", "Other: No")) Email_Msg = Email_Msg.Replace("<<ThirdPartyInvolved>>", IIf(opgThirdParty.SelectedValue = "1", "Third Party Involved: Yes", "Third Party Involved: No")) Email_Msg = Email_Msg.Replace("<<IncidentDescription>>", txtInv.Text.Trim) Else Email_Msg = "Please log into SAFE in the next 24 hours and update the report. If there are any questions, please contact your EH&S contact." + vbCrLf End If EMail_Class.Class1.Send_eMail(txtCallerEMail.Text.Trim.ToLower(), WebConfigurationManager.AppSettings("email_username").ToString.Trim, "", "Your SAFE ID # is " + ReportID.ToString, Email_Msg) End Sub Protected Sub opgInjury_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles opgInjury.SelectedIndexChanged If opgInjury.SelectedValue.Length > 0 Then If opgInjury.SelectedValue = "0" Then For X As Integer = 0 To (cboSeverity.Items.Count - 1) cboSeverity.Items(X).Enabled = False Next cboSeverity.Items.FindByText("Near Miss").Enabled = True cboSeverity.SelectedValue = cboSeverity.Items.FindByText("Near Miss").Value Else For X As Integer = 0 To (cboSeverity.Items.Count - 1) cboSeverity.Items(X).Enabled = True Next 'cboSeverity.Items.FindByText("Major Medical").Enabled = False cboSeverity.Items.FindByText("Near Miss").Enabled = False cboSeverity.SelectedValue = 0 End If End If opgInjury.Focus() End Sub Protected Sub opgVehicle_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles opgVehicle.SelectedIndexChanged If opgVehicle.SelectedValue.Length > 0 Then 'pnlT3.Visible = (opgVehicle.SelectedValue = "1") 'opgThirdParty.Enabled = (opgVehicle.SelectedValue = "1") 'opgThirdParty.SelectedValue = Nothing 'If pnlT3.Visible Then ' opgVehicleTowed.Focus() 'End If End If End Sub Protected Sub opgVehicleTowed_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles opgVehicleTowed.SelectedIndexChanged, opgMedicalAway.SelectedIndexChanged, opgOther.SelectedIndexChanged If opgVehicleTowed.SelectedValue = "0" And opgMedicalAway.SelectedValue = "0" Then opgOther.SelectedValue = "1" Else opgOther.SelectedValue = "0" End If End Sub Protected Sub cmdSubmitTop_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSubmitTop.Click, cmdSubmitBottom.Click If Page_IsValid() Then Save_Record() End If End Sub Private Function Page_IsValid() As Boolean Dim RetVal As Boolean = True Dim Cont As Boolean = True If txtCallerName.Text.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('A Caller is required.');", True) cboCallersGSN.Focus() Exit Function End If If txtCallerPhone.Text.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Caller\'s Phone # is required.');", True) txtCallerPhone.Focus() Exit Function Else If txtCallerPhone.Text.Trim.Length < 10 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Caller\'s Phone # must be complete.');", True) txtCallerPhone.Focus() Exit Function End If End If If txtCallerEMail.Text.Length > 0 Then If Not EmailAddressCheck(txtCallerEMail.Text) Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Caller\'s E-Mail Address is invalid.');", True) txtCallerEMail.Focus() Exit Function End If Else Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Caller\'s E-Mail is required.');", True) txtCallerEMail.Focus() Exit Function End If If opgDPSGEmployee.SelectedValue = "1" Then If cboPersonInvolved.SelectedValue = "0" Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Person Involved is required.');", True) cboPersonInvolved.Focus() Exit Function End If If cboLocation.SelectedValue = "0" Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Location is required.');", True) cboLocation.Focus() Exit Function End If Else If txtPersonInvolved.Text.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Person Involved is required.');", True) txtPersonInvolved.Focus() Exit Function End If End If If txtDateOfAccident.SelectedDate Is Nothing Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of Incident are required.');", True) txtDateOfAccident.Focus() Exit Function Else If txtDateOfAccident.SelectedDate > Today() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of Incident cannot be a future date or time.');", True) txtDateOfAccident.Focus() Exit Function End If End If 'If txtTimeOfAccident.Text.Trim.Length = 2 Then If Format(txtTimeOfAccident.SelectedDate, "hh:mm tt").ToString.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of Incident are required.');", True) txtTimeOfAccident.Focus() Exit Function Else If New Date(Year(txtDateOfAccident.SelectedDate), Month(txtDateOfAccident.SelectedDate), Day(txtDateOfAccident.SelectedDate), Hour(txtTimeOfAccident.SelectedDate), Minute(txtTimeOfAccident.SelectedDate), 0) > Now() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of Incident cannot be a future date or time.');", True) txtTimeOfAccident.Focus() Exit Function End If End If If txtPlaceOfAccident.Text.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Place of Incident is required.');", True) txtPlaceOfAccident.Focus() Exit Function End If If txtDateReported.SelectedDate Is Nothing Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of when Incident was Reported are required.');", True) txtDateReported.Focus() Exit Function Else If txtDateReported.SelectedDate > Today() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of when Incident was Reported cannot be a future date or time.');", True) txtDateReported.Focus() Exit Function End If End If 'If txtTimeReported0.Text.Trim.Length = 2 Then If Format(txtTimeReported.SelectedDate, "hh:mm tt").ToString.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of when Incident was Reported are required.');", True) 'txtTimeReported0.Focus() txtTimeReported.Focus() Exit Function Else If New Date(Year(txtDateReported.SelectedDate), Month(txtDateReported.SelectedDate), Day(txtDateReported.SelectedDate), Hour(txtTimeReported.SelectedDate), Minute(txtTimeReported.SelectedDate), 0) > Now() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Date & Time of when Incident was Reported cannot be a future date or time.');", True) txtTimeReported.Focus() Exit Function End If End If 'Compare Date/Time of Accident vs. Date/Time Reported Dim ADT As DateTime = Date.Parse(Format(txtDateOfAccident.SelectedDate, "MM/dd/yyyy").ToString + " " + Format(txtTimeOfAccident.SelectedDate, "hh:mm tt").ToString) Dim RDT As DateTime = Date.Parse(Format(txtDateReported.SelectedDate, "MM/dd/yyyy").ToString + " " + Format(txtTimeReported.SelectedDate, "hh:mm tt").ToString) If ADT.Date() > Today() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "vals", "alert('Date of Incident cannot be after today.');", True) txtDateOfAccident.Focus() Exit Function Else If RDT.Date() > Today() Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "vals", "alert('Date Reported cannot be after today.');", True) txtDateReported.Focus() Exit Function End If If RDT < ADT Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "vals", "alert('Date & Time of Incident must be before Date & Time Reported.');", True) txtDateOfAccident.Focus() Exit Function End If End If If opgInjury.SelectedValue = Nothing Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Is Injury Involved"" is required.');", True) opgInjury.Focus() Exit Function End If If cboSeverity.SelectedItem.Text.Contains("select one") Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Severity is required.');", True) cboSeverity.Focus() Exit Function End If If opgVehicle.SelectedValue = Nothing Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Was Vehicle Involved"" is required.');", True) opgVehicle.Focus() Exit Function End If If opgVehicle.SelectedValue = "1" Then 'If opgVehicleTowed.SelectedValue = Nothing Then ' Cont = False ' ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Vehicle Towed"" is required.');", True) ' opgVehicleTowed.Focus() ' Exit Function 'End If 'If opgMedicalAway.SelectedValue = Nothing Then ' Cont = False ' ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Medical Away From Scene"" is required.');", True) ' opgMedicalAway.Focus() ' Exit Function 'End If ''If opgFatality.SelectedValue = Nothing Then '' Cont = False '' ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Fatality"" is required.');", True) '' opgFatality.Focus() '' Exit Function ''End If If opgThirdParty.SelectedValue = Nothing Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('""Is Third Party Involved"" is required.');", True) opgThirdParty.Focus() Exit Function End If End If If txtInv.Text.Trim.Length = 0 Then Cont = False ScriptManager.RegisterClientScriptBlock(Me, Me.GetType(), "reqfields", "alert('Initial Incident Description is required.');", True) txtInv.Focus() Exit Function End If Return RetVal End Function Protected Sub cboCallersGSN_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles cboCallersGSN.SelectedIndexChanged Session("callerid") = cboCallersGSN.SelectedValue Populate_Fields() cboCallersGSN.Focus() End Sub Private Sub Populate_Fields() Dim myED As New DRP_Data.DRP_DataReader myED.Server_Address = mySD.Database_Server myED.Server_Database = mySD.Database_Name myED.Server_UserId = mySD.Database_UserID myED.Server_Password = mySD.Database_Passwrod Try myED.OpenConn() myED.Select_Command = "exec s_callers_info '" + Session("callerid").ToString.Trim + "'" myED.ExecuteReader() If myED.DataReader.HasRows Then myED.DataReader.Read() Session("callers_gsn") = myED.DataReader("gsn").ToString.Trim txtCallerEMail.Text = myED.DataReader("email").ToString.Trim txtCallerTitle.Text = myED.DataReader("title").ToString txtCallerName.Text = myED.DataReader("name").ToString hidCallerTitleId.Value = myED.DataReader("titleid").ToString Else Session("callers_gsn") = 0 txtCallerTitle.Text = "" txtCallerName.Text = "" txtCallerEMail.Text = "" hidCallerTitleId.Value = 0 End If myED.CloseReader() 'Load_Employees() Catch ex As Exception Finally myED.CloseConn() End Try End Sub Protected Sub opgDPSGEmployee_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles opgDPSGEmployee.SelectedIndexChanged If opgDPSGEmployee.SelectedValue IsNot Nothing Then If opgDPSGEmployee.SelectedValue = "1" Then cboPersonInvolved.Visible = True cboPersonInvolved.SelectedValue = 0 cboPersonInvolved.Text = "" hidEmpLocation.Value = "" cboLocation.Visible = True lblNA.Visible = False txtPersonInvolved.Visible = False txtPersonInvolved.Text = "" cboPersonInvolved.Focus() Else Session("YACJ") = 0 Session("MACJ") = 0 Session("YAC") = 0 Session("MAC") = 0 cboPersonInvolved.Visible = False cboPersonInvolved.SelectedValue = 0 cboPersonInvolved.Text = "" hidEmpLocation.Value = "" cboLocation.Visible = False lblNA.Visible = True txtPersonInvolved.Visible = True txtPersonInvolved.Text = "" txtPersonInvolved.Focus() End If End If End Sub Protected Sub cboPersonInvolved_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles cboPersonInvolved.SelectedIndexChanged If cboPersonInvolved.SelectedValue <> "0" Then Dim myED As New DRP_Data.DRP_DataReader myED.Server_Address = mySD.Database_Server myED.Server_Database = mySD.Database_Name myED.Server_UserId = mySD.Database_UserID myED.Server_Password = mySD.Database_Passwrod Try myED.OpenConn() myED.Select_Command = "exec s_emps_info '" + cboPersonInvolved.SelectedValue.ToString.Trim + "'" myED.ExecuteReader() If myED.DataReader.HasRows Then myED.DataReader.Read() Session("emp_no") = myED.DataReader("emp_no") Session("YACJ") = myED.DataReader("yrs_at_current_job") Session("MACJ") = myED.DataReader("mos_at_current_job") Session("YAC") = myED.DataReader("yrs_at_company") Session("MAC") = myED.DataReader("mos_at_company") hidEmpLocation.Value = myED.DataReader("location").ToString cboLocation.SelectedValue = 0 cboLocation.Text = "" Else Session("emp_no") = 0 Session("YACJ") = 0 Session("MACJ") = 0 Session("YAC") = 0 Session("MAC") = 0 cboPersonInvolved.SelectedValue = "0" hidEmpLocation.Value = "" cboLocation.SelectedValue = 0 cboLocation.Text = "" End If myED.CloseReader() Catch ex As Exception Finally myED.CloseConn() End Try cboPersonInvolved.Focus() Else Session("YACJ") = 0 Session("MACJ") = 0 Session("YAC") = 0 Session("MAC") = 0 End If End Sub End Class 
cboChambreA.Text = NothingcboChambreA.ClearSelection()