<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestAnd.aspx.cs" Inherits="Consulenza.Web.TestAnd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
 <script>
     function ModelliTemplate() {
         height = document.getElementById('hModelliTemplate').value;
         height = height == '0px' ? 'auto' : '0px';
         document.getElementById('ModelliTemplate').style.height = height;
         document.getElementById('hModelliTemplate').value = height;

     }
     function Documenti() {
         height = document.getElementById('hDocumenti').value;
         height = height == '0px' ? 'auto' : '0px';
         document.getElementById('Documenti').style.height = height;
         document.getElementById('hDocumenti').value = height;

     }
     function Stampa() {
         height = document.getElementById('hStampa').value;
         height = height == '0px' ? 'auto' : '0px';
         document.getElementById('Stampa').style.height = height;
         document.getElementById('hStampa').value = height;

     }
     function Log() {
         height = document.getElementById('hLog').value;
         height = height == '0px' ? 'auto' : '0px';
         document.getElementById('Log').style.height = height;
         document.getElementById('hLog').value = height;

     }
     function load(){
         document.getElementById('ModelliTemplate').style.height = document.getElementById('hModelliTemplate').value;
         document.getElementById('Documenti').style.height = document.getElementById('hDocumenti').value;
         document.getElementById('Stampa').style.height = document.getElementById('hStampa').value;
         document.getElementById('Log').style.height = document.getElementById('hLog').value;
     }
 </script>
</head>
<body style="background-color:Silver;" onload="load();">
<form id="form1" runat="server">
    <asp:HiddenField id="hModelliTemplate" runat="server"/>
    <asp:HiddenField id="hDocumenti" runat="server"/>
    <asp:HiddenField id="hStampa" runat="server"/>
     <asp:HiddenField id="hLog" runat="server"/>

   <div style="background-color:Lime;"><a  onclick="ModelliTemplate();" >Modelli Template</a></div>
   
   <div id="ModelliTemplate" style="overflow-y: scroll;height: 392px;background-color:White;">
        <br />Modelli 
        <asp:Panel ID="Panel3" runat="server" Height="100px" ScrollBars="Vertical" BorderStyle="Double">
            <asp:GridView ID="gwModelli" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" AutoGenerateSelectButton="True" 
                onselectedindexchanged="gwModelli_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </asp:Panel>
        <br />Schede del Modello
        <asp:Panel ID="Panel4" runat="server" Height="100px" ScrollBars="Vertical" BorderStyle="Double">
            <asp:GridView ID="gwSchedeModello" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </asp:Panel>
        <br />CodicePb <asp:TextBox ID="txtCodicePb" runat="server"></asp:TextBox>
        <br />Template
        <asp:Panel ID="Panel1" runat="server" Height="100px" ScrollBars="Vertical" BorderStyle="Double">
    <asp:GridView ID="gwTemplate" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" AutoGenerateSelectButton="True" 
                onselectedindexchanged="gwTemplate_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </asp:Panel>
        <br />Schede del Template
        <asp:Panel ID="Panel2" runat="server" Height="100px" ScrollBars="Vertical" BorderStyle="Double">
            <asp:GridView ID="gwSchedeTemplate" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" 
                onselectedindexchanged="gwTemplate_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </asp:Panel> 
     <br />
   <div style="background-color:White;>    
        IdTemplate <asp:TextBox ID="txtIdTemplate" runat="server" ReadOnly="True" Width="42px"></asp:TextBox>
        IsDefault  <asp:TextBox ID="txtIsDefault" runat="server" ReadOnly="True" Width="36px">S</asp:TextBox>
        Nome       <asp:TextBox ID="txtNomeTamplate" runat="server" Width="158px"></asp:TextBox>
        <asp:Button ID="butSalvaTemplate" runat="server" Text="Salva Template" onclick="butSalvaTemplate_Click" />
        <asp:Button ID="butCancellaTemplate" runat="server" Text="Cancella Template" onclick="butCancellaTemplate_Click" />
        ChiaveclientePb <asp:TextBox ID="txtChiaveClientePb" runat="server" ReadOnly="True" Width="82px">641</asp:TextBox>
        <%--<asp:Button ID="butGeneraPdf" runat="server" Text="Genera Pdf" onclick="butGeneraPdf_Click" />--%>
         Note  <asp:TextBox ID="txtSalvaPdf" runat="server"  Width="158px"></asp:TextBox>
         <asp:Button ID="butSalvaPdf" runat="server" onclick="butSalvaPdf_Click" Text="SalvaPdf" />

          <asp:Button ID="butVincoli" runat="server"  Text="Vincoli" 
           onclick="butVincoli_Click" />
   </div>     
    </div>
  
   <br />     
  
   <div style="background-color:Lime;"><a  onclick="Documenti();" >Documenti</a></div>
            
  <div id="Documenti" style="overflow-y: scroll;height: 392px;background-color:White;">

  <div style="background-color:White;">    
    <table width="100%">
        <tr>
            <td width="0px">idPdf<asp:TextBox ID="txtIdPdf" runat="server"></asp:TextBox></td>            
            <td width="0px"><asp:Button ID="butCercaPdf" runat="server" Text="Cerca Pdf" onclick="butCercaPdf_Click" /></td>
            <td width="0px"><asp:Button ID="txtGetLog" runat="server" onclick="txtGetLog_Click" Text="GetLog" /></td>
            <td></td>
        </tr>    
        <tr>
            <td>IdModello<asp:TextBox ID="trIdModello" runat="server"></asp:TextBox></td>
            <td>IdProvenienza<asp:TextBox ID="trIdProvenienza" runat="server"></asp:TextBox></td>             
            <td>IdStato<asp:TextBox ID="trIdStato" runat="server"></asp:TextBox></td>
            <td>IdArchivio<asp:TextBox ID="trIdArchivio" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>CodiceFiscale<asp:TextBox ID="trCodiceFiscale" runat="server"></asp:TextBox></td>
            <td>CognomeCliente<asp:TextBox ID="trCognomeCliente" runat="server"></asp:TextBox></td>             
            <td>NomeCliente<asp:TextBox ID="trNomeCliente" runat="server"></asp:TextBox></td>
            <td></td>
        </tr>
        <tr>          
             <td>DtInizio<asp:TextBox ID="trDtInizio" runat="server"></asp:TextBox></td>
             <td></td>
             <td>ChiaveClientePb<asp:TextBox ID="trChiaveClientePb" runat="server"></asp:TextBox></td>
             <td>ChiaveNucleo<asp:TextBox ID="trChiaveNucleo" runat="server"></asp:TextBox></td>      
        </tr>
      
        <tr>
            <td>DtFine<asp:TextBox ID="trDtFine" runat="server"></asp:TextBox></td>
            
            <td>CodiceContratto<asp:TextBox ID="trCodiceContratto" runat="server"></asp:TextBox></td>
            <td>CodicePb<asp:TextBox ID="trCodicePb" runat="server"></asp:TextBox></td>
            <td><asp:Button ID="butCercaTuttiPdf" runat="server" Text="Cerca Tutti Pdf" onclick="butCercaTuttiPdf_Click"  /></td>
        </tr>

        

      
     </table>



            </div>
        <br />DocumentiPdf<asp:Label ID="lbnumdoc" runat="server"></asp:Label>
        <asp:Panel ID="Panel6" runat="server" Height="300px" ScrollBars="Vertical" BorderStyle="Double">
            <asp:GridView ID="gwDocumentoPdf" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" 
                onselectedindexchanged="gwTemplate_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
        </asp:Panel>
         <br />
           
 
             <asp:Panel ID="Panel5" runat="server" Height="100px" ScrollBars="Vertical" BorderStyle="Double">
            <asp:GridView ID="gwPdf" runat="server" 
        Width="100%" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" 
                onselectedindexchanged="gwTemplate_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </asp:Panel> 
   </div>

    
    <br />     
  
   <div style="background-color:Lime;"><a  onclick="Stampa();" >Stampa</a></div>    
    <div id="Stampa" style="overflow-y: scroll;height: 392px;background-color:White;">
             <%--006803 BLDRRT35S23A632O F 9367239--%>
             <%--007115	MRTGPP40H23A794N F 20020215 GIUSEPPE	MARIETTI--%>

            
         <asp:Panel ID="Panel8" runat="server" Height="300px" ScrollBars="Vertical" BorderStyle="Double">
            codiceAgente <asp:TextBox ID="codiceAgente" runat="server"  Width="200px">013520</asp:TextBox><br />
            codiceFiscale <asp:TextBox ID="codiceFiscale" runat="server"  Width="200px">MGNMRA45A01H823K</asp:TextBox><br />
            codiceMandato <asp:TextBox ID="codiceMandato" runat="server"  Width="200px"></asp:TextBox><br />
            codiceRete <asp:TextBox ID="codiceRete" runat="server"  Width="200px">F</asp:TextBox><br />
            chiave Nucleo/Proposta <asp:TextBox ID="chiave" runat="server"  Width="200px">29469892</asp:TextBox><br />           
            Mock <asp:TextBox ID="Moktemplate" runat="server" Width="200px">andrea</asp:TextBox> <br />
            <asp:Button ID="CreateReport" runat="server" Text="Genera Pdf" onclick="CreateReport_Click" />
            <asp:Button ID="CreateReportPO" runat="server" Text="Genera PO " onclick="CreateReportPO_Click" />
            
       
                                            <div>
         <asp:Button ID="Button1" runat="server" Text="ROBERTO BIANCHI"  onclick="Button1_Click" />
         <asp:Button ID="Button2" runat="server" Text="MARCO LUCA UMBERT DONA' DALLE ROSE"  onclick="Button2_Click" />
         <asp:Button ID="Button3" runat="server" Text="ERMANNO PICCOLO"  onclick="Button3_Click" />
         <asp:Button ID="Button4" runat="server" Text="RENZO PRAZZOLI"  onclick="Button4_Click" />
         <asp:Button ID="Button5" runat="server" Text="PASQUALE	ESPOSITO"  onclick="Button5_Click" />
         <asp:Button ID="Button6" runat="server" Text="Matelli Enzo"  onclick="Button6_Click" />
         <asp:Button ID="Button9" runat="server" Text="ADRIANO AZZALIN"  onclick="Button9_Click" />
        </div>
                        <div>
         <asp:Button ID="Button10" runat="server" Text="MARCO ANGELERI"  onclick="Button10_Click" />
           <asp:Button ID="Button14" runat="server" Text="ROBERTO	BECHERI 9254151"  onclick="Button11_Click" />
        </div>
                        <div>
         <asp:Button ID="Button7" runat="server" Text="Paola e Giovanni"  onclick="Button7_Click" />
         <asp:Button ID="Button8" runat="server" Text="Dona e Carta"  onclick="Button8_Click" />
        </div>
         </asp:Panel>



         
     </div>


      <br />     
  
    <div style="background-color:Lime;"><a  onclick="Log();" >Log</a></div>    
    <div id="Log" style="overflow-y: scroll;height: 392px;background-color:White;">

     <asp:Button ID="Button11" runat="server" Text="LOGSVILUPPO" onclick="butLog_Click" />
     <asp:Button ID="Button15" runat="server" Text="LOGTEST" onclick="butLog_Click" />
     <asp:Button ID="Button12" runat="server" Text="LOGCOLLAUDO" onclick="butLog_Click" />
     <asp:Button ID="Button13" runat="server" Text="LOGPREPRO" onclick="butLog_Click" />
     ChiaveclientePb <asp:TextBox ID="ChiaveClientePb" runat="server"  Width="200px"></asp:TextBox>
     <asp:Button ID="Vincoli" runat="server" Text="Vincoli" onclick="butVincoli_Click" />
     <asp:Panel ID="Panel7" runat="server" Height="1000px" ScrollBars="Vertical" BorderStyle="Double">
      
       <asp:GridView ID="GridView1" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" 
        BorderWidth="1px" CellPadding="3" CellSpacing="2" 
        HorizontalAlign="Center" 
                onselectedindexchanged="gwTemplate_SelectedIndexChanged">      
            
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
     </asp:Panel>
     
     </div>
     </div>
  

    </form>
</body>
</html>
