<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="AddEnquiryEndStatusMaster, App_Web_susspz30" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
   
<%--    <link href="../CSS/style.css" type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForButton.css" type="text/css" rel="Stylesheet" />
    <link href="../CSS/ForButton1.css" type="text/css" rel="Stylesheet" />

    <link href="../CSS/ForTextBox.css" type="text/css" rel="Stylesheet" /> 
      <script type="text/javascript" src="../js/JScript.js"></script>
   
    <link href="../CSS/Widthset.css" rel="stylesheet" type="text/css" />--%>
    
    
    
<link href="../css/ForTextBox.css" rel="stylesheet" type="text/css" />
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
    <link href="../css/Widthset.css" rel="stylesheet" type="text/css" />
    
    
<style type="text/css">
 .shadow_five444 
      		 {
        background-color: #FFF0DB;
        -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-right:10px;
        margin-left:3px;
        margin-bottom: 10px;
    }
</style>

   
    <style type="text/css">
    .pnl1
    {
     background-color: #FFC56C;
         -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;
         margin-bottom: 10px;
    }
       .modelbackground
        {
        	background-color:Gray;
	        filter:alpha(opacity=70);
	        opacity:0.7;
        }
        .categorypanel
        {
        	background-color:White;
        	border:2px solid black;
        	
        		}
       .style2
       {
            width: 100%;
         
      }
     
    
      		 .shadow_five 
      		 {
        background-color: #B3EBF4;
        -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: 0px;
        margin-right:0px;
        margin-left:0px;
        margin-bottom: 10px;
    }
        .shadow_five1 {
            background-color: #F2FFC6;
            -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;
        }
        .lb
    {
            clear: left;
            margin: 5px 2px 0 0;
            text-align: right;
            font-size: 14px;
            color: #660033;
            text-transform: capitalize;
            text-shadow: 0px 0.5px 0px #444;
            font-weight:normal;
            font-family:Eurostile LT;
        }
    .Label
    {
 /* IE10 Consumer Preview */ 
background-image: -ms-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Mozilla Firefox */ 
background-image: -moz-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Opera */ 
background-image: -o-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* Webkit (Safari/Chrome 10) */ 
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #FFCE47), color-stop(1, #F2813F));

/* Webkit (Chrome 11+) */ 
background-image: -webkit-linear-gradient(bottom, #FFCE47 0%, #F2813F 100%);

/* W3C Markup, IE10 Release Preview */ 
background-image: linear-gradient(to top, #FFCE47 0%, #F2813F 100%);
}
     
          .contactpanelcss
        {
        	width:80%;
        	margin:0px;
        	background-color:White;
        	border:10px solid ActiveBorder;
        	padding:10px;
        	margin-top:50px;
        	     	   	
        }   
     .shadow_five2 {
            background-color: #FFF0DB;      
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 0px 0px 0px #B1A59A;
            -webkit-box-shadow: 0px 0px 0px #B1A59A;
            -o-box-shadow: 0px 0px 0px #B1A59A;
            -ms-box-shadow: 0px 0px 0px #B1A59A;
            box-shadow: 0px 0px 0px #B1A59A;
            padding: 10px;
            width: 780px;
            border:5px solid Orange;
        }
        .style3
        {
        }
     
        .style4
        {
            width: 29px;
        }
     
        .style6
        {
            width: 333px;
            height: 37px;
        }
        .style9
        {
            height: 28px;
        }
             
        .style14
        {
            width: 207px;
        }
        .style16
        {
            width: 27px;
        }
     
        .style17
        {
        }
     
        .style19
        {
            width: 509px;
        }
     .font
{
	font-size:12px;
	font-family:Verdana;
	}
        .style22
        {
            height: 41px;
        }
        .myButton1 {
        
        -moz-box-shadow: 0px 1px 0px 0px #fff6af;
        -webkit-box-shadow: 0px 1px 0px 0px #fff6af;
        box-shadow: 0px 1px 0px 0px #fff6af;
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffec64), color-stop(1, #ffab23));
        background:-moz-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-webkit-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-o-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:-ms-linear-gradient(top, #ffec64 5%, #ffab23 100%);
        background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec64', endColorstr='#ffab23',GradientType=0);
        
        background-color:#ffec64;
        
        -moz-border-radius:6px;
        -webkit-border-radius:6px;
        border-radius:6px;
        
        border:1px solid #ffaa22;
        
        display:inline-block;
        color:#333333;
        font-family:arial;
        font-size:15px;
        font-weight:bold;
        padding:6px 24px;
        text-decoration:none;
        
        text-shadow:0px 1px 0px #ffee66;
        cursor:pointer;
    }
    .myButton1:hover {
        
        background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffab23), color-stop(1, #ffec64));
        background:-moz-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-webkit-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-o-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:-ms-linear-gradient(top, #ffab23 5%, #ffec64 100%);
        background:linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);
        filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffec64',GradientType=0);
        
        background-color:#ffab23;
    }
    .myButton1:active {
        position:relative;
        top:1px;
    }
    .pnl {
            background-color: #FFF0DB;      
           

        }
        .style26
        {
            
        }
        .style27
        {
            width: 287px;
        }
        .style29
        {
            width: 180px;
        }
        .style30
        {
            width: 216px;
        }
        .style32
        {
            width: 250px;
        }
        .style33
        {
            width: 333px;
        }
        .style34
        {
            width: 43px;
        }
        .style35
        {
            width: 196px;
        }
        .style36
        {
            width: 196px;
            height: 37px;
        }
        .style37
        {
            height: 28px;
            width: 387px;
        }
        .style38
        {
            width: 300px;
        }
        .style39
        {
            width: 387px;
        }
        </style>

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


<%--<div style="float:right;">
    
        <div id="inner-block" class="help_div">
       <div style="font-family:Verdana;font-size:12px;">
                     
                  <p align="left"  style="font-weight:bold;width:300px;margin-left:10px; "  > 
                    Help - Enquiry/Quotation End Status Master
                     </p>
                   
                 <ul  >                            
                    <li style="">        
                     For closing Leads/enquiries/quotations, you can assign specific reasons for closing, 
                     so that later on it helps sorting the closed enquiries/quotations for specific reasons and do the analysis.

                     </li>
                 
                       </ul> 
                      </div>
           
        </div> 
</div> --%>


<asp:UpdateProgress ID="UpdateProgress2" runat="server" AssociatedUpdatePanelID="UpdatePanel1" 
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1update" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
    <asp:Panel ID="Panel1" runat="server" Width="100%" CssClass="shadow_five444">  
    <table class="style2">
        <tr>
            <td align="justify" valign="middle">
            
               <div class="p12" style="width:200px;"  align="center" >
      <p style="font-family:Verdana; font-size:14px; margin-top:0px;color:White;font-weight:bold;padding-top:5px;">
 End Status Master
      </p>
           </div>
           
                <%--<asp:Label ID="lbl_heading_top_msg" runat="server" CssClass="Label" 
                    Height="50px" Width="100%" ForeColor="White" Font-Bold="True" 
                    Font-Size="X-Large" Text="End Status Master"></asp:Label>--%>
                  </td>
        </tr>
               <tr>
            <td align="center">
                &nbsp;</td>
        </tr>
        </table>
        
        <div align="center">
        <table style="width: 1021px">
        <tr>
        <td></td>
         <td align="right">
         Select Categoury:<b style="color:Red;">*</b>
         </td>
          <td>
         
                       <asp:DropDownList ID="ddltitle" runat="server" CssClass="txtarea" 
                           AppendDataBoundItems="True">
                           <asp:ListItem >-Select-</asp:ListItem>
                              <asp:ListItem Value="1">Enquiry/Quotation</asp:ListItem>
                            <%-- <asp:ListItem Value="2">Lead</asp:ListItem>
                             <asp:ListItem Value="3">Order Booking</asp:ListItem>
                             <asp:ListItem Value="4">Invoice</asp:ListItem>--%>
                             <asp:ListItem Value="2">Supply Order Monitoring</asp:ListItem>
                         </asp:DropDownList>
                      
          </td>
           <td></td>
        </tr>
         <tr>
        <td></td>
         <td align="right"> Enter End Status Description:<b style="color:Red;">*</b>
         </td>
          <td>  <asp:TextBox ID="txtdesc_status" runat="server" Height="41px" 
                  TextMode="MultiLine" Width="183px"></asp:TextBox>
                  <br />
                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtdesc_status"
                      runat="server" ErrorMessage=" Enter  Enquiry End Status Description" ValidationGroup="1"></asp:RequiredFieldValidator></td>
           <td></td>
        </tr>
         <tr>
        <td></td>
         <td></td>
          <td>
              <asp:Button ID="btn_submit" runat="server" Text="Submit" 
                  CssClass="myButton" Width="80px"      OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btn_submit_Click" ValidationGroup="1"  />
                  &nbsp;   &nbsp;   &nbsp;   
                  <asp:Button ID="btnShow" runat="server" Text="Show" 
                  CssClass="myButton" Width="80px" 
                                UseSubmitBehavior="false" onclick="btnShow_Click"   />
                  <br />
                  <br />
                  <asp:Label ID="lbl_message" runat="server" Text="" ForeColor="Red"></asp:Label>
              <asp:Label ID="Label1" runat="server" Text="" ForeColor="Red"></asp:Label>
          </td>
           <td></td>
        </tr>
         <tr>
        <td></td>
         <td></td>
          <td>
              <asp:Panel ID="pnlShow" runat="server" Visible="true">
           <asp:Label ID="lbl_message1" runat="server" ForeColor="Red" Text="" Font-Bold="false" Font-Names="Verdana" Font-Size="14px"></asp:Label>
          <br /><br />
          <div align="center" style="width:300px">
           <asp:Label ID="lbl_delete_update_msg" runat="server" Text="" ForeColor="Red"></asp:Label>
          </div>
          
             
                  </asp:Panel>
          </td>
           <td></td>
        </tr>
        </table>
         <asp:GridView ID="gv_end_status_details" runat="server"
               BackColor="LightGoldenrodYellow" BorderColor="Tan" AutoGenerateColumns="false"
                    BorderWidth="1px" CellPadding="2" Font-Names="vani" Font-Size="13px" 
                    ForeColor="Black" GridLines="Both" 
                     Width="600px" 
                  onrowcancelingedit="gv_end_status_details_RowCancelingEdit" 
                  onrowediting="gv_end_status_details_RowEditing" 
                  onrowupdating="gv_end_status_details_RowUpdating" Visible="false">
                     <Columns>
                     <asp:TemplateField Visible="false">
                                    <ItemTemplate>
                                        <center>
                                             <asp:Label ID="lbl_status_id1" runat="server" Text='<% # Eval("status_id")%>' Visible="false"></asp:Label>
                                        </center>
                                    </ItemTemplate>
                                 
                                </asp:TemplateField>
                          <asp:TemplateField HeaderText="Categoury" >
                     <ItemTemplate>
                       
                         
                         <asp:Label ID="lbl_status_Name" runat="server" Text='<% # Eval("Status_Name")%>' Width="240px"></asp:Label>
                        
                          
                     </ItemTemplate>
                     <EditItemTemplate>
                     <%--   <asp:Label ID="lbl_status_id1" runat="server" Text='<% # Eval("status_id")%>' Visible="false"></asp:Label>--%>
                     <asp:Label ID="lblddlname_val_update" runat="server" Text='<%# Eval("Status_Name")%>' 
                                                Width="100%" Visible="false"></asp:Label>
                      <asp:DropDownList ID="ddltitle11" runat="server" CssClass="txtarea" 
                          >
                              <asp:ListItem >-Select-</asp:ListItem>
                              <%--<asp:ListItem Value="1">Enquiry/Quotation</asp:ListItem>
                             <asp:ListItem Value="2">Lead</asp:ListItem>
                             <asp:ListItem Value="3">Order Booking</asp:ListItem>
                             <asp:ListItem Value="4">Invoice</asp:ListItem>--%>
                             
                                 <asp:ListItem Value="1">Enquiry/Quotation</asp:ListItem>
                           <%--  <asp:ListItem Value="2">Lead</asp:ListItem>
                             <asp:ListItem Value="3">Order Booking</asp:ListItem>
                             <asp:ListItem Value="4">Invoice</asp:ListItem>--%>
                             <asp:ListItem Value="5">Supply Order Monitoring</asp:ListItem>
                         </asp:DropDownList>
                       
                     </EditItemTemplate>
                     </asp:TemplateField>
                     <asp:TemplateField HeaderText="End Status Description" >
                     <ItemTemplate>
                       
                         
                         <asp:Label ID="lbl_status_desc" runat="server" Text='<% # Eval("status_desc")%>' Width="240px"></asp:Label>
                        
                          
                     </ItemTemplate>
                     <EditItemTemplate>
                     
                       <asp:Label ID="lbl_status_id" runat="server" Text='<% # Eval("status_id")%>' Visible="false"></asp:Label>
                     <asp:TextBox ID="txt_status_desc" runat="server" Text='<% # Eval("status_desc")%>' Height="41px"   TextMode="MultiLine" Width="183px"></asp:TextBox>
                     <br />
                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_status_desc" ErrorMessage="Enter Description" ValidationGroup="up11"></asp:RequiredFieldValidator>
                     </EditItemTemplate>
                     </asp:TemplateField>
                     
                        <asp:TemplateField >
        <ItemTemplate> 
           <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit" Text="Edit" ></asp:LinkButton><%--OnClientClick="javascript : return confirm('Do you really want to \ndelect the quotation?');"--%>


        <asp:LinkButton ID="lnkDelete" runat="server"  CommandArgument='<%# Eval("status_id") %>'   Text="Delete" onclick="lnkDelete_Click" OnClientClick="return confirm('Do you want to delete?')" 
                ></asp:LinkButton>
       
    </ItemTemplate>
    <EditItemTemplate>
          <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="true" CommandName="Update" Text="Update" ValidationGroup="up11"></asp:LinkButton><br />
        <asp:LinkButton ID="lnkcancel" runat="server" CausesValidation="true" CommandName="Cancel" Text="Cancel"></asp:LinkButton>
        </EditItemTemplate>
        </asp:TemplateField>
                     </Columns>
                     
                     <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" />
                                <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
             
              </asp:GridView>
        
        </div>
        <script type="text/javascript">
            $(document).ready(function() {
            $('#<%= lbl_message.ClientID %>').fadeOut(16000, function() {
                    $(this).html(""); //reset the label after fadeout
                });
            });
    </script>
    
      <script type="text/javascript">
          $(document).ready(function() {
          $('#<%= lbl_delete_update_msg.ClientID %>').fadeOut(16000, function() {
                  $(this).html(""); //reset the label after fadeout
              });
          });
    </script>
    
    
    
        

        </asp:Panel>
     </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

