<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Person, App_Web_susspz30" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>

    <style type="text/css">
     
         .contactpanelcss
        {
        	width:65%;
        	margin:0px;
        	background-color:White;
        	border:6px solid ActiveBorder;
        	padding:5px;
        	margin-top:0px;
        	height:500px;
        	overflow:auto;
        	     	   	
        }   
        .style34
        {
            width: 11px;
           
        }
        .shadow_five {
        background-color: #FFECCE;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom:10px;
        
    }

      .p1
        {
       background-image: linear-gradient(to bottom, #fcfcfc, #f7f7f7 3%, #ff9966 12%,#ff9966 90%, #bfbfbf);
-webkit-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
-moz-box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white ;
box-shadow: 0 4px 25px rgba(0,0,0,0.32), inset 0 1px 0 white;
            height:35px;
            width:250px;
        } 
        
          .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	background-color:White;
          
        	width:300px;
        	height:150PX;
        	 background-color:#ffebcc;
        	
        
        }  
    </style>




</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">





    <asp:Panel ID="Panel1" runat="server" Width="100%" >  <%--BorderStyle="Groove"--%>
   
         <div class="p12" style="width:250px;"  align="center" >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:White;font-weight:bold;padding-top:5px;">
      Person Master <b style="color:White;">Add Person</b>
      </p>
           </div>
    
    <table width="100%"  >
        
          <tr>
            <td >
                </td>
            <td align="right">
                
                <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Client Name:" Font-Bold="true" ></asp:Label>
               
            </td>
             
                   
            <td  align="right"> <b style="color:Red;">*</b>
              
            <td >
                <div id="dvddl"><asp:DropDownList ID="ddlclient" runat="server" Font-Names="Verdana"  Font-Size="12px" Height="22px">
               </asp:DropDownList></div>
                 <asp:RequiredFieldValidator ID="req_field_vali_designation" runat="server" ControlToValidate="ddlclient" InitialValue="Select Client" 
                ErrorMessage="Select Client"  ForeColor="Red" ></asp:RequiredFieldValidator>
            </td>
                 </td>
            <td>
            
        </tr>
               <tr>
            <td >
                </td>
            <td align="right">
                
                <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Person Name" Font-Bold="true" ></asp:Label>
               
            </td>
            <td  align="right">
                 <b style="color:Red;">*</b>
             
            <td >
                <asp:TextBox ID="TextBox1" runat="server" Height="22px" Width="250px" ></asp:TextBox>
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" 
                ErrorMessage="Enter Person Name"  ForeColor="Red" ></asp:RequiredFieldValidator>
            </td>
                   </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
        <td></td>
        <td align="right">
        <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Mobile Number" Font-Bold="true" ></asp:Label>
        </td>
        <td></td>
        <td ><asp:TextBox ID="txt_mobileno" runat="server" Height="22px" Width="250px" MaxLength="12" ></asp:TextBox>
         <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers" TargetControlID="txt_mobileno">
                </cc1:FilteredTextBoxExtender>
        </td>
        <td></td>
        </tr>
        
                <tr>
            <td >
                </td>
            <td align="right">
                
                <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Designation" Font-Bold="true" ></asp:Label>
            </td>
            <td  align="right">
                &nbsp;</td>
            <td >
                <asp:TextBox ID="txtdesig" runat="server" Height="22px" Width="250px" ></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        
        <tr>
        <td></td>
        <td align="right">
         <asp:Label ID="Label10" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Email ID" Font-Bold="true" ></asp:Label>
        </td>
        <td> <b style="color:Red;"> *</b> </td>
        <td ><asp:TextBox ID="txt_emailid" runat="server" Width="248px"  ></asp:TextBox>
         <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                       ControlToValidate="txt_emailid" ErrorMessage="Enter proper email ID" 
                       ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                       ValidationGroup="1" ForeColor="Red"></asp:RegularExpressionValidator>
                   <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                       ControlToValidate="txt_emailid" ErrorMessage="Enter EmailID" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>--%>
        
        </td>
           
        <td></td>
        </tr>
       

       
              
        <tr>
            <td >
                &nbsp;</td>
            <td  align="center">
                &nbsp;</td>
            <td  align="center">
                &nbsp;</td>
            <td >
            <br/>
               <%-- <asp:Button ID="btnSave" runat="server" CssClass="myButton" 
                         OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btnSave_Click" Text="Submit" ValidationGroup="1" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--%>
                             
                   <%--  <asp:Button ID="btnShowAll" runat="server" CssClass="myButton" Button2
                       
                                UseSubmitBehavior="false" onclick="btnShowAll_Click" Text="Show All Client" />--%>
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <%--   this button is for Add Client  --%>    
                     <asp:Button ID="Button1" runat="server" CssClass="myButton"  UseSubmitBehavior="false" onclick="btnAddperson_Click" Text="Add Person" />
                       
                               
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <%--this button is for Show client--%>
                             
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <%--   this button is for Add Client  --%>    
                     <asp:Button ID="Button2" runat="server" CssClass="myButton"  UseSubmitBehavior="false" onclick="btnShowAllperson_Click1" Text="Show client wise Person" CausesValidation="False" />
                       
                               
                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                   <%--  <asp:Button ID="Button2" runat="server" CssClass="myButton" UseSubmitBehavior="false" onclick="btnShowAllperson_Click1" Text="Show All Person" />--%>
                <asp:Label ID="lblTest" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                    <br />
                     <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label>
                    <br /><b> <a style="color:Red;  padding-right:20px; float:right; ">* Indicates Compulsory Fields</a></b>
                </td>
            <td>
                &nbsp;</td>
        </tr>
 
 
       
       
    </table>
</asp:Panel>

     <asp:Panel ID="Panel4" runat="server" CssClass="contactpanelcss" Width="95%">
               <table align="center"> 
                   
                   <tr>
                       
            <td >
                </td>
            <td align="center">
                
                <asp:Label ID="Label5" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text="Client Name:" Font-Bold="true" ></asp:Label>
               
            </td>
             
                   
            <td  align="center" > <b style="color:Red;">*</b>
              
            <td >
                <div id="dvddl"><asp:DropDownList ID="DropDownList1" runat="server" Font-Names="Verdana" AutoPostBack="True"   Font-Size="12px" Height="22px" OnSelectedIndexChanged="ddl1selected_index_change"  CausesValidation="False">
               </asp:DropDownList></div>
                 <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlclient" InitialValue="Select Client" 
                ErrorMessage="Select Client"  ForeColor="Red" ></asp:RequiredFieldValidator>
            </td>
                 </td>
            <td>
            
        </tr>
                   <tr align="center"><td align="center"> <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="14px" ForeColor="Green"></asp:Label></td></tr>
                   </table> 

         
                    <div style="height:350px">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false"  AllowPaging="true" 
                            CellPadding="4"  ForeColor="#333333" GridLines="Both" Font-Names="Verdana" Font-Size="12px" 
                            onrowcancelingedit="CancelEdit" onrowediting="EditCustomer" 
                            onrowupdating="UpdateCustomer"
                            onpageindexchanging="GridView1_PageIndexChanging">
                        <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />

                            <Columns>

                              
                                <%--fIRST record--%>
                                <asp:TemplateField HeaderText="Person Name." ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <center>
                                            <asp:Label ID="lblCCode" runat="server" Text='<%# Eval("PName")%>' Width="50px"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                      <EditItemTemplate>
                                        
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("PName")%>' 
                                                TextMode="MultiLine" Width="250px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                  
                                </asp:TemplateField>
                                <%-- 2nd record--%>
                                <asp:TemplateField HeaderText="Designation." ItemStyle-Width="250px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lblCName" runat="server" Text='<%# Eval("Designation")%>' 
                                                Width="250px"></asp:Label>
                                      
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        
                                            <asp:TextBox ID="txtdesig" runat="server" Text='<%# Eval("Designation")%>' 
                                                TextMode="MultiLine" Width="250px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                <%--  3rd record--%>
                                <asp:TemplateField HeaderText="Mobile Number." ItemStyle-Width="220px">
                                    <ItemTemplate>
                                        
                                            <asp:Label ID="lblCAddr" runat="server" Text='<%# Eval("MoNo")%>' 
                                                Width="170px"></asp:Label>
                                       
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txt_mobileno" runat="server" Text='<%# Eval("MoNo")%>' 
                                                Width="160px"></asp:TextBox>
                                        
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                
                                  <%--  3rd record--%>
                                <asp:TemplateField HeaderText="Email Id." ItemStyle-Width="150px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="txt_emailid" runat="server" Text='<%# Eval("Email")%>' 
                                                Width="150px"></asp:Label>
                                     
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                       
                                            <asp:TextBox ID="txt_emailid" runat="server" Text='<%# Eval("Email")%>' 
                                                Width="140px"></asp:TextBox>
                                       
                                    </EditItemTemplate>
                                 
                                </asp:TemplateField>
                                
                                



                                <%--  End entry of records--%>
                              <asp:CommandField ShowEditButton="True" ItemStyle-ForeColor="Blue" ItemStyle-Width="60px" /> 
                                <asp:TemplateField  ItemStyle-Width="60px">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkRemove" runat="server" 
                                            CommandArgument='<%# Eval("PName")%>' OnClick="DeleteCustomer" 
                                            OnClientClick="return confirm('Do you want to delete?')" Text="Delete">
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                   </asp:TemplateField>
                               
                            </Columns>
                              <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="cssPager" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                            
                        </asp:GridView>
                    </div>
                <%--    <asp:Button ID="btn_Close1" runat="server"   CssClass="myButton"
                        Font-Size="Medium" Text="Close" />--%>
                </asp:Panel>
</asp:Content>

