<%@ Page Language="vb" AutoEventWireup="true" MasterPageFile="~/FiniqAppMasterPage.Master" CodeBehind="Troubleshoot_Helpdesk.aspx.vb" Inherits="FinIQWebApp.Troubleshoot_Helpdesk" EnableViewState="true" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />   
    <style>
        

       

        .alignLeft {
            text-align: left !important;
        }

        .alignRight {
            text-align: right !important;
        }

        .alignCenter {
            text-align: center !important;
        }
       
        .Grid {
            table-layout: fixed;
        }

            .Grid th, .Grid td {
                word-wrap: break-word;
            }

       
        .CheckboxListCore_Field_VisibilityPanel {
            width: 150px;
            border-bottom-width: thin;
        }

        .CheckboxListHedging_TypePanel {
            width: 190px;
            border-bottom-width: thin;
        }
               .Enabled-button {
            width: 90px;
            /*  margin-left: 5px;*/
        }

        .tablespace {
            margin-top: 10px;
        }

        /*.lblDisp
        {
            text-align:left;    
            height:20px;
        }*/

        .panel {
            top: 250px;
            left: 580px;
            position: absolute;
            display: none;
        }

        .displayNone {
            display: none;
        }

        .panelContainer {
            /*background-color: #CCCCCC;*/
            background-color: whitesmoke;
        }

       
        .divLoading {
            position: absolute;
            top: 48px;
            left: 260px;
        }

      

        .topTable {
            /*margin-left: 10px;
            margin-top: 10px;
            margin-bottom: 20px;*/
        }

        .MiddleContainer {
            margin-left: 10px;
        }

        /*.Grid td {
            white-space:normal;
        }*/
        .Gridview {
            table-layout: fixed;
            /*width:100%;*/
        }
        /*.ctl00_MainContent_gvTemplateMaster a, .Grid a:link {
            color: #3B66D6;
        }*/
        .paddingLarge {
            padding-left: 20px;
        }

        .paddingSmall {
            padding-left: 10px;
        }

        .width_Name {
            width: 95px;
        }

        .width_txtName {
            width: 320px;
        }

        .EditColWidthPayoff {
            min-width: 100px !important;
            max-width: 500px !important;
        }

        .EditColWidthDynamicHedgingGroupingKey {
            min-width: 100px !important;
            max-width: 500px !important;
        }

        .DeleteContainer {
            padding: 10px 10px 10px 10px;
            margin-left: 574.5px;
            margin-top: 181.5px;
            display: none;
            border-radius: 10px;
            width: 280px;
            height: 100px;
            position: absolute;
            box-shadow: 3px 3px 4px #666;
            border: solid 1px #ddd;
            border-collapse: collapse;
        }

        /*Added by TejaswiniB 09-Feb-2021*/
        .width_4_char{  
                    width: 4ch;
            max-width: 4ch;
            min-width: 4ch;
        }
		/*Added by Bhagyashri B 03-01-2020*/
        .width_8_char {
            width: 8ch;
            max-width: 8ch;
            min-width: 8ch;
        }

        .width_64_char {
            width: 64ch;
            max-width: 64ch !important;
            min-width: 64ch;
        }

        .width_32_char {
            width: 32ch;
            max-width: 32ch;
            min-width: 32ch;
        }

        .width_24_char {
            width: 24ch;
            max-width: 32ch;
            min-width: 24ch;
        }

        .width_16_char {
            width: 16ch;
            max-width: 16ch;
            min-width: 16ch;
        }

        /*Added to hide Beneficiary column by Bhagyashri B 10-01-2020*/
        .visibleFalse {
            display: none;
        }
        /*End By bhagyashri B*/

        .GridHeader {
            background-color: #ededed !important;
        }

        /*Added by Bhagyashri B 27-01-2020 BNPINT-295*/
        .showToggle {
            background-image: url("../App_Resources/Embedded_Actions.png");
        }

        .hideToggle, .showToggle, .EnableToggle, .DisableToggle {
            width: 196px !important;
            height: 28px !important;
            border: none 0px #FFF !important;
            color: #FFF !important;
            outline: 0 !important;
            background-color: #FFFFFF;
            background-repeat: no-repeat;
            background-size: contain;
        }

        .hideToggle {
            background-image: url("../App_Resources/Regular_Action.png");
        }

</style>
         <asp:Label ID="lblsearchissue" runat="server" Style="margin-right: 2px;" Text="Issue"></asp:Label>
        <asp:TextBox ID="txtsearchissue" Style="width: 55ch;" runat="server" AutoPostBack="True"></asp:TextBox>
    <br />
    <br />
    <asp:Button ID="btnload" runat="server" Text="Load" CssClass="btn" Width="90px" Style="margin-right: 2px;"/>
        
        <asp:Button ID="btninsert" runat="server" Text="Insert" CssClass="btn" Width="90px" Style="margin-right: 2px;"/>
        <asp:Button ID="btnexport" runat="server" Text="Export" CssClass="btn" Width="90px" Style="margin-right: 2px;" />
    
    <asp:DropDownList ID="ddltype" runat="server" AutoPostBack="True" Style="margin-right: 2px;">
                <asp:ListItem Text="UCP DealEntry" Value="UCP DealEntry">Deal Entry</asp:ListItem>
                <asp:ListItem Text="Function" Value="Function">Function</asp:ListItem>
                <asp:ListItem Text="Layout" Value="Layout">Layout</asp:ListItem>
                <asp:ListItem Text="Workflow" Value="Workflow">Workflow</asp:ListItem>
                <asp:ListItem Value="NULL" Text="All">All</asp:ListItem>
            </asp:DropDownList>

           
      <asp:TextBox ID="txtpaging1" runat="server" AutoPostBack="True" Width="32px">99</asp:TextBox>
        Records Per Page                                                                                  
        <asp:Label ID="lblError" runat="server" Style="padding-left: 25px; margin-left: 10px;" CssClass="lblError" Width="250px"></asp:Label>
       <br />
    <br />
    <br />

    <asp:GridView ID="gvtroubleshoot" runat="server" AutoGenerateColumns="False"   CssClass="Grid"
                      
                     DataKeyNames="Issue_ID"   
                    AutoGenerateEditButton="True"  
                       OnPageIndexChanging="OnPageIndexChanging" onrowcancelingedit="gvtroubleshoot_RowCancelingEdit"   
                     onrowediting="gvtroubleshoot_RowEditing"   
                    onrowupdating="gvtroubleshoot_RowUpdating"
                     AllowSorting="True" ShowHeaderWhenEmpty="True"  AllowPaging="True"  ForeColor="Black" CellPadding="1" PageSize="99"> 
                    <SelectedRowStyle CssClass="GridItemSelect" />
                                <RowStyle CssClass="GridItem" />
                                <HeaderStyle CssClass="GridHeader" />
                                <FooterStyle CssClass="GridFooter" />
                                <PagerStyle CssClass="GridPager" />
                                <PagerSettings Mode="NumericFirstLast"
                                    FirstPageText="First"
                                    LastPageText="Last"
                                    Position="Bottom" />
        
                    <Columns>  
                        <asp:TemplateField HeaderText="ID" > 
                            <HeaderStyle CssClass="width_8_char" Wrap="true" />
                            <ItemStyle Wrap="true" HorizontalAlign="Center"  />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtId" runat="server" Text='<%# Bind("Issue_ID") %>' Enabled="False"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblId" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Issue_ID").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:LinkButton ID="Insertlnkbtn" runat="server" OnClick="Insert">Insert</asp:LinkButton>
                                <asp:LinkButton ID="Cancellnkbtn" runat="server" OnClick="CancelInsert">Cancel</asp:LinkButton>
                            </FooterTemplate>
                            
                        </asp:TemplateField>  
                        <asp:TemplateField HeaderText="Issue">  
                            <HeaderStyle CssClass="width_16_char" />
                            <%--<ItemStyle Wrap="true" HorizontalAlign="left" CssClass="width_64_char" />--%>
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtIssue" runat="server" Text='<%# Bind("Issue") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>
                            <ItemTemplate>  
                                <asp:Label ID="lblIssue" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Issue").ToString) %>'  CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditIssue" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Type"> 
                            <HeaderStyle CssClass="width_8_char" />
                            <ItemStyle Wrap="true" HorizontalAlign="left" CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtType" runat="server" Text='<%# Bind("Type") %>' width="80px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblType" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Type").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditType" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Label">
                            <HeaderStyle CssClass="width_16_char" />
                                        
                            <EditItemTemplate>  
                                <%--<asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("UCIF_Active_YN") %>' CssClass="txt"></asp:TextBox>--%>
                                <asp:DropDownList ID="ddltype1" runat="server">
                                <asp:ListItem Text="UCP DealEntry" Value="UCP DealEntry">UCP DealEntry</asp:ListItem>
                                <asp:ListItem Text="Function" Value="Function">Function</asp:ListItem>
                                <asp:ListItem Text="Layout" Value="Layout">Layout</asp:ListItem>
                                <asp:ListItem Text="Workflow" Value="Workflow">Workflow</asp:ListItem>
                                </asp:DropDownList>
                            </EditItemTemplate>  
                            <ItemStyle CssClass="width_16_char" HorizontalAlign="Left" />
                            <ItemTemplate>  
                                <asp:Label ID="lblLabel" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Label").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>
                            <FooterTemplate>
                                <%--<asp:TextBox ID="TextBoxE4" runat="server"></asp:TextBox>--%>
                                <asp:DropDownList ID="ddltype1" runat="server">
                <asp:ListItem Text="UCP DealEntry" Value="UCP DealEntry">UCP DealEntry</asp:ListItem>
                <asp:ListItem Text="Function" Value="Function">Function</asp:ListItem>
                <asp:ListItem Text="Layout" Value="Layout">Layout</asp:ListItem>
                <asp:ListItem Text="Workflow" Value="Workflow">Workflow</asp:ListItem>
            </asp:DropDownList>
                              
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution1">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution1" runat="server" Text='<%# Bind("Solution1") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution1" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution1").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution1" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution2">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution2" runat="server" Text='<%# Bind("Solution2") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution2" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution2").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution2" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution3">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution3" runat="server" Text='<%# Bind("Solution3") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution3" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution3").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution3" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution4">  
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution4" runat="server" Text='<%# Bind("Solution4") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution4" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution4").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate>  
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution4" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution5"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution5" runat="server" Text='<%# Bind("Solution5") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution5" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution5").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution5" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution6"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution6" runat="server" Text='<%# Bind("Solution6") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution6" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution6").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution6" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution7"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution7" runat="server" Text='<%# Bind("Solution7") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution7" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution7").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution7" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution8"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution8" runat="server" Text='<%# Bind("Solution8") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution8" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution8").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution8" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Solution9"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution9" runat="server" Text='<%# Bind("Solution9") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution9" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution9").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution9" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>
                    </asp:TemplateField>
                            <asp:TemplateField HeaderText="Solution10"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtSolution10" runat="server" Text='<%# Bind("Solution10") %>' TextMode ="MultiLine" Width="200px"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblSolution10" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Solution10").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditSolution10" TextMode ="MultiLine" runat="server"></asp:TextBox>
                            </FooterTemplate>

                        </asp:TemplateField>
                    <asp:TemplateField HeaderText="Updated By"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtCreatedby" runat="server" Text='<%# Bind("Created_By") %>' TextMode ="MultiLine" Width="200px" Enabled="False"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblCreatedby" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Created_By").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditCreatedby" Enabled="False" runat="server"></asp:TextBox>
                            </FooterTemplate>

                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Updated At"> 
                            <HeaderStyle CssClass="width_16_char" />
                            <EditItemTemplate>  
                                <asp:TextBox ID="txtCreatedAt" runat="server" Text='<%# Bind("Created_at") %>' CssClass="txt" Enabled="False"></asp:TextBox>  
                            </EditItemTemplate>  
                            <ItemTemplate>  
                                <asp:Label ID="lblCreatedAt" runat="server" Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Created_at").ToString) %>' CssClass="lbl"></asp:Label>  
                            </ItemTemplate> 
                            <FooterTemplate>
                                <asp:TextBox ID="txtEditCreatedAt" Enabled="False" runat="server"></asp:TextBox>
                            </FooterTemplate>

                        </asp:TemplateField>
                        
                    </Columns>  
                    
                </asp:GridView>
    </asp:content>