<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Newstage_for_approval, App_Web_chtwzywl" enableeventvalidation="false" %>
<%@ MasterType VirtualPath="~/html/MasterPage.master" %>
<%@ 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">
    
     .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;
           width:65%;
        }
 .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;
        }
        
        .p2
        {
       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:450px;
        }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="pnl_mainstage_for_approval" runat="server">
    
      <asp:HiddenField ID="HiddenField_project_id_for_approval" runat="server" />
<div class="p2"  >
      <p style="font-family:Verdana; font-size:16px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Blue;">&nbsp;&nbsp;&nbsp;&nbsp;Request Approval for New added Main Stage  </b>
      </p>
           </div>
           <br /><br />
             
      <asp:GridView ID="gv_show_approvel_project_mainstages" runat="server" CellPadding="4"  
                            AutoGenerateColumns="false" ForeColor="#333333" GridLines="Both"  
                            Font-Names="Verdana" Font-Size="14px" 
                            Font-Bold="True" 
            onrowcommand="gv_show_approvel_project_mainstages_RowCommand">
                              <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                            <Columns>
                           <asp:TemplateField  ItemStyle-Width="30px" HeaderText='Sr.No'>
                            <ItemTemplate>
                                <asp:Label ID="lbl_rowid_main" runat="server" Text='<% # Eval("Row") %>'></asp:Label>
                                <asp:Label runat="server" ID="lbl_Mainstage_ID" Text='<%# Eval("Mainstage_ID") %>' Visible="false"></asp:Label>
                            </ItemTemplate>
                         
                               <ItemStyle Width="30px" />
                         
                            </asp:TemplateField>
                             <asp:TemplateField HeaderText="Project Name"  ItemStyle-Width="200px">
                            <ItemTemplate>
                             
                              <asp:Label runat="server" ID="lbl_PName" Text='<%# Eval("PName") %>' Width="200px"></asp:Label>
                            </ItemTemplate>
                        
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Activity"  ItemStyle-Width="200px">
                            <ItemTemplate>
                             
                              <asp:Label runat="server" ID="lbl_pname_plan" Text='<%# Eval("Mainstage_name") %>'></asp:Label>
                            </ItemTemplate>
                        
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Cost"  ItemStyle-Width="100px">
                            <ItemTemplate>
                             
                              <asp:Label runat="server" ID="lbl_mainstage_cost" align="right" Width="100px" Text='<%# Eval("mainstage_cost") %>'  ></asp:Label>
                            </ItemTemplate>
                        
                            </asp:TemplateField>
                              <asp:TemplateField HeaderText="Time <br/>(Days)"  ItemStyle-Width="50px">
                            <ItemTemplate>
                             
                              <asp:Label runat="server" ID="lbl_mainstage_percentage" Text='<%# Eval("mainstage_percentage") %>' Width="50px" align="right"></asp:Label>
                            </ItemTemplate>
                        
                               
                        
                            </asp:TemplateField>
                             
                              <asp:TemplateField HeaderText="Manager"  ItemStyle-Width="100px">
                            <ItemTemplate>
                             
                              <asp:Label runat="server" ID="lbl_EName" Text='<%# Eval("EName") %>'></asp:Label>
                            </ItemTemplate>
                        
                               
                        
                            </asp:TemplateField>
                          
                            
                            <asp:TemplateField   ItemStyle-Width="100px">
                            <ItemTemplate>
                         <%--   Approved--%>
                                    <asp:LinkButton ID="lnk_approved_plan" runat="server" CommandName="Close" Text="Show Sub Stages" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="150px" > <%--OnClientClick="javascript : return confirm('Do you really want to approved project ?');"--%>
                                         </asp:LinkButton>
                            </ItemTemplate>
                            <EditItemTemplate>
                            </EditItemTemplate>
                                <ItemStyle Width="100px" />
                            </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" />
        
        </asp:GridView>
       
       <br /><br />
       
        <asp:GridView runat="server" ID="gv_mainstages_sub_stages" AutoGenerateColumns="False"  AllowPaging="true" 
       ForeColor="#333333" GridLines="Both"  Font-Names="Verdana" Font-Size="12px" CellSpacing="5" CellPadding="5"
           RowStyle-Height="30" PageSize="20" Width="80%" >
      <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
        <Columns>
        <asp:TemplateField HeaderText="Sr.No" ItemStyle-Width="50px">
        <ItemTemplate>
        <center>
        <asp:Label runat="server" ID="lbl_srno_sub" Text='<% # Eval("Row")%>'></asp:Label>
        </center>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Project & Activity Name" ItemStyle-Width="200px">
        <ItemTemplate>
        <asp:Label ID="lbl_mantstage_name_sub" runat="server" Text='<%# Eval("PName") %>' ForeColor="#9900ff" Font-Bold="true"></asp:Label>
        <br />
            <asp:Label ID="lbl_project_name_sub" runat="server" Text='<%# Eval("Mainstage_name") %>' Width="200px" Font-Bold="true"></asp:Label>
            <br />
            
            <asp:Label ID="lbl_employee_name" runat="server" Text='<%# Eval("EName") %>' Font-Bold="true" ForeColor="#9900ff"></asp:Label>
            
      
        </ItemTemplate>
        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Stage Description" ItemStyle-Width="400px">
                                    <ItemTemplate>
                                    <asp:Label runat="server" ID="lbl_Mainstage_ID11" Text='<%# Eval("Mainstage_ID") %>' Visible="false"></asp:Label>
                                       <asp:Label runat="server" ID="lbl_subid_sub" Text='<%# Eval("substage_id") %>' Visible="false" ></asp:Label>
                                       <asp:Label ID="lblCName_sub" runat="server" Text='<%# Eval("sub_stage_desc")%>' 
                                                Width="350px"></asp:Label></ItemTemplate>
                                                <EditItemTemplate>
                                          <asp:Label runat="server" ID="lbl_subid1_sub" Text='<%# Eval("substage_id") %>' Visible="false" ></asp:Label>
                                          <asp:TextBox ID="txt_sub_desc_sub" runat="server" Text='<%# Eval("sub_stage_desc")%>' 
                                                TextMode="MultiLine" Width="350px" BorderColor="Black" BorderWidth="1px"></asp:TextBox></EditItemTemplate></asp:TemplateField>
                                                
                                                <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_startdate_sub" runat="server" Text='<%# Eval("startdate_DATE")%>' 
                                                Width="80px"></asp:Label></ItemTemplate>
                                                       </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Completion Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_pdc_sub" runat="server" Text='<%# Eval("pdc1_DATE")%>' Enabled="true"
                                                Width="80px"></asp:Label></ItemTemplate><EditItemTemplate>
                                        
                                            <asp:TextBox ID="txt_pdc_sub" runat="server" Text='<%# Eval("PDC_date")%>' 
                                                 Width="75px" Enabled="false" BorderColor="Black" BorderWidth="1px" >
                                                </asp:TextBox></EditItemTemplate></asp:TemplateField>
                                                <asp:TemplateField HeaderText="Total Days" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_totaldays_sub" runat="server" Text='<%# Eval("total_days")%>' 
                                                Width="60px"  align="right"></asp:Label></ItemTemplate><EditItemTemplate>
                                        </center>
                                            <asp:TextBox ID="txt_totaldays_sub" runat="server" Text='<%# Eval("total_days")%>' 
                                                 Width="50px" BorderColor="Black" BorderWidth="1px"></asp:TextBox></EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Cost" ItemStyle-Width="70px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_percost_sub" runat="server" Text='<%# Eval("mainstage_cost")%>' 
                                                Width="70px" align="right" ></asp:Label>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                <asp:TextBox ID="txt_percost_sub" runat="server" Text='<%# Eval("per_stage_cost")%>' 
                                                 Width="65px" BorderColor="Black" BorderWidth="1px">
                                                </asp:TextBox></EditItemTemplate></asp:TemplateField>
                                                <asp:TemplateField HeaderText="Percentages" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_sub_percentage_sub" runat="server" Text='<%# Eval("substage_percentages")%>' 
                                                Width="60px"  align="right"></asp:Label></ItemTemplate><EditItemTemplate>
                                        
                                            <asp:TextBox ID="txt_sub_percentage_sub" runat="server" Text='<%# Eval("substage_percentages")%>' BorderColor="Black" BorderWidth="1px"
                                                 Width="60px"></asp:TextBox>
                                                </EditItemTemplate></asp:TemplateField>
                                                
                                                <asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="chk_approval_request1_sub" />
</ItemTemplate>
</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" />
    
  </asp:GridView>
  
   <div align="center">
    <asp:Button runat="server" ID="btn_approved_main_stgaes" Text="Approve"  
         CssClass="myButton" onclick="btn_approved_main_stgaes_Click" />
</div>
    
    </asp:Panel>

<asp:Panel ID="pnl_show_sub_stage_approval" runat="server">
  <%--  <asp:UpdatePanel runat="server" ID="updatepnl_stage" UpdateMode="Always">
   <ContentTemplate>
   --%>
   <asp:Panel ID="pnl_show_stage_list_approval" runat="server">

    <div class="p2"  >
      <p style="font-family:Verdana; font-size:16px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Blue;">&nbsp;&nbsp;&nbsp;&nbsp;Request Approval for New added Task  </b>
      </p>
           </div>
           <br />
           
         
  
  
 
   
       <asp:GridView runat="server" ID="gv_palnningdeatils" 
         AutoGenerateColumns="False"  AllowPaging="true" 
       ForeColor="#333333" GridLines="Both"  Font-Names="Verdana" Font-Size="12px" 
         CellSpacing="5" CellPadding="5"
           RowStyle-Height="30" PageSize="20" Width="60%" 
         onrowcommand="gv_palnningdeatils_RowCommand" onpageindexchanging="gv_palnningdeatils_PageIndexChanging" >
      <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
        <Columns>
        <asp:TemplateField HeaderText="Sr.No" ItemStyle-Width="50px">
        <ItemTemplate>
        <center>
        <asp:Label runat="server" ID="lbl_srno" Text='<% # Eval("Row")%>'></asp:Label>
        </center>
        </ItemTemplate>
        </asp:TemplateField>
            
           <asp:TemplateField HeaderText="Employee Name" ItemStyle-Width="250px">
        <ItemTemplate>
        <asp:Label ID="lbl_employee_name" runat="server" Text='<%# Eval("EName") %>' ></asp:Label>
           </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Project Name" ItemStyle-Width="150px">
        <ItemTemplate>
                <asp:Label ID="lbl_mantstage_name" runat="server" Text='<%# Eval("PName") %>' Width="150px" ></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Activity name <br/>Sub Stage" ItemStyle-Width="250px">
        <ItemTemplate>
            <asp:Label ID="lbl_project_name" runat="server" Text='<%# Eval("Mainstage_name") %>' ForeColor="#CC00FF" Width="300px"></asp:Label>
            <br />
              <asp:Label ID="lb_l_sub_sta_ge_desc" runat="server" Text='<%# Eval("sub_stage_desc") %>' Width="300px"></asp:Label>                  
        </ItemTemplate>
        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Task Name" ItemStyle-Width="350px">
                                    <ItemTemplate>
                                       <asp:Label runat="server" ID="lbl_subid" Text='<%# Eval("subsubstage_id") %>' Visible="false" ></asp:Label>
                                       <asp:Label ID="lblCName" runat="server" Text='<%# Eval("sub_sub_stage_desc")%>' 
                                                Width="340px"></asp:Label></ItemTemplate>                                                                                         
                                                </asp:TemplateField>
                                                
                                                <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                           <asp:Label ID="lbl_startdate" runat="server" Text='<%# Eval("startdate_DATE")%>' 
                                                Width="80px"></asp:Label></ItemTemplate>                                            
                                             </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Completion Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_pdc" runat="server" Text='<%# Eval("pdc1_DATE")%>' Enabled="true"
                                                Width="80px"></asp:Label></ItemTemplate><EditItemTemplate>
                                        
                                            <asp:TextBox ID="txt_pdc" runat="server" Text='<%# Eval("PDC_date")%>' 
                                                 Width="75px" Enabled="false" BorderColor="Black" BorderWidth="1px" >
                                                </asp:TextBox></EditItemTemplate></asp:TemplateField>
                                                <asp:TemplateField HeaderText="Total Days" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_totaldays" runat="server" Text='<%# Eval("total_days")%>' 
                                                Width="60px"  align="right"></asp:Label></ItemTemplate><EditItemTemplate>
                                        </center>
                                            <asp:TextBox ID="txt_totaldays" runat="server" Text='<%# Eval("total_days")%>' 
                                                 Width="50px" BorderColor="Black" BorderWidth="1px"></asp:TextBox></EditItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Cost" ItemStyle-Width="70px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_percost" runat="server" Text='<%# Eval("mainstage_cost")%>' 
                                                Width="70px" align="right" ></asp:Label>
                                                </ItemTemplate>
                                                <EditItemTemplate>
                                                <asp:TextBox ID="txt_percost" runat="server" Text='<%# Eval("per_stage_cost")%>' 
                                                 Width="65px" BorderColor="Black" BorderWidth="1px">
                                                </asp:TextBox></EditItemTemplate></asp:TemplateField>                                      
                                                

<%--<asp:TemplateField >
<ItemTemplate>
    
<asp:LinkButton ID="lnk_approved" runat="server"  CommandName="Approve" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" >Approve</asp:LinkButton>    
<br />    <br /> 
    <asp:LinkButton ID="lnk_Notapproved" runat="server"  CommandName="NotApprove" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="80px" >Not approve</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>--%>


<asp:TemplateField >
<ItemTemplate>
    <asp:CheckBox ID="chk_approve" runat="server" />
    
     

</ItemTemplate>

 <HeaderTemplate>
                            <asp:CheckBox ID="selectAll" runat="server" AutoPostBack="True" 
                                oncheckedchanged="selectAll_CheckedChanged"  />
                        </HeaderTemplate>
                        
</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" />
    
  </asp:GridView>  
  
  
  <div align="right" id="div_approve_not_approve" runat="server" >  
  <br />
     <asp:Button ID="btn_approve" runat="server" Text="Approve" 
         onclick="btn_approve_Click"  CssClass="myButton"  />
         &nbsp;&nbsp;
           <asp:Button ID="btn_not_approved" runat="server" Text="Not approve" 
           CssClass="myButton" onclick="btn_not_approved_Click"  />
         
         


         </div>
    <br />
       <br /><br />
    
       &nbsp;&nbsp;&nbsp;  <asp:Button ID="btn_task_list_for_without_stage" runat="server" 
            Text="Task list for approval without stage"  CssClass="myButton" 
            onclick="btn_task_list_for_without_stage_Click"  />
           <br /><br />
         
       <div runat="server" id="div_without_stage_task_approval" visible="false">
       
        
           
           <table style="font-family:Verdana;font-size:11px;">
           <tr>
           <td>
           <label for="inputemployeemna" class="col-lg-2 control-label">select Employee Name</label> 
              
           </td>
            <td>
              <a style="color:Red;">*</a>
            </td>
             <td>
             <asp:DropDownList ID="ddl_employee_name_list" runat="server"  Width="200px" AppendDataBoundItems="true"
           DataTextField="Ename" DataValueField="EID"  AutoPostBack="true"
           onselectedindexchanged="ddl_employee_name_list_SelectedIndexChanged">
       </asp:DropDownList>
             </td>
           </tr>
           <tr>
           <td align="right">
             <label for="inputEmail" class="col-lg-2 control-label">Select Client Name&nbsp;</label> 
           </td>
            <td>
            <a style="color:Red;">*</a>
            </td>
            <td>
            
                 <asp:DropDownList ID="ddl_client" runat="server" 
                    DataTextField="CName" DataValueField="CID"   Width="200px"               
                    AutoPostBack="True" AppendDataBoundItems="True" 
                    onselectedindexchanged="ddl_client_SelectedIndexChanged" CssClass="form-control1">
                </asp:DropDownList>
    <asp:RequiredFieldValidator runat="server" ID="rfv_ddl_client" InitialValue="-Select-" ControlToValidate="ddl_client" ErrorMessage="Select Client" ValidationGroup="45"
     ForeColor="Red"></asp:RequiredFieldValidator>
                    
            </td>
           
           </tr>
           
             <tr>
           <td align="right">
             <label for="inputEmail" class="col-lg-2 control-label">Select Project Name&nbsp;</label>
           </td>
            <td>
            <a style="color:Red;">*</a>
            </td>
            <td>
                 <asp:DropDownList ID="ddl_projectclientwise" runat="server" Width="200px" 
                    DataTextField="PName" DataValueField="PrID"                    
                    AutoPostBack="True" AppendDataBoundItems="True" 
                    onselectedindexchanged="ddl_projectclientwise_SelectedIndexChanged" CssClass="form-control1">
                </asp:DropDownList>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" InitialValue="-Select-" ControlToValidate="ddl_projectclientwise"
                     ErrorMessage="Select Project Name" ValidationGroup="45" ForeColor="Red"></asp:RequiredFieldValidator>
                 
            </td>
           
           </tr>
             <tr>
           <td align="right">
             <label for="inputEmail" class="col-lg-2 control-label">Select Activity&nbsp;</label>
           </td>
            <td>
            <a style="color:Red;">*</a>
            </td>
            <td>
               <asp:DropDownList ID="ddl_projectmain_stage" runat="server" 
                    DataTextField="Mainstage_name" DataValueField="Mainstage_ID" CssClass="form-control1" Width="200px"                   
                    AutoPostBack="True" AppendDataBoundItems="True" onselectedindexchanged="ddl_projectmain_stage_SelectedIndexChanged" >
                </asp:DropDownList>
                
                 <asp:RequiredFieldValidator runat="server" ID="Re_ddl_projectmain_stage" InitialValue="-Select-" ControlToValidate="ddl_projectmain_stage"
                                  ErrorMessage="Select Activity" ValidationGroup="45" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
           
           </tr>
             <tr>
           <td align="right">
               <label for="inputEmail" class="col-lg-2 control-label">Enter Stage&nbsp;</label>
           </td>
            <td>
            <a style="color:Red;">*</a>
            </td>
            <td>        
                        
                <asp:TextBox ID="txt_sub_stage_name" runat="server" TextMode="MultiLine" Width="200px"></asp:TextBox>                        
                         
                 <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator7"  ControlToValidate="txt_sub_stage_name"
                                  ErrorMessage="Enter Stage Name" ValidationGroup="45" ForeColor="Red"></asp:RequiredFieldValidator>

            </td>
           
           </tr>
           
           
                     <tr>
        <td align="right">
       Start Date
        </td>
        <td>
     
      <b style="color:Red;">*</b>
        </td>
        <td colspan="2">
         <asp:TextBox ID="txtstartdate11" runat="server"  Width="110px" ></asp:TextBox><%--Enabled="false"--%>
         <cc1:CalendarExtender ID="CalendarExtender2" runat="server"
                    Enabled="True" TargetControlID="txtstartdate11" Format="dd/MM/yyyy">
                    </cc1:CalendarExtender>
                     <asp:RequiredFieldValidator ID="RequiredFieldValidator36" runat="server" ErrorMessage="Select  Start Date" 
        ControlToValidate="txtstartdate11" ValidationGroup="45" ForeColor="Red"></asp:RequiredFieldValidator>
                   </td>
                  
        
        </tr>
        
    
  <tr>
        <td align="right" >Days</td>
        <td><b style="color:Red;">*</b></td>
        <td colspan="2">
        
         <asp:TextBox ID="Dayscount" runat="server" Width="110px" MaxLength="4" 
                ontextchanged="Dayscount_TextChanged" AutoPostBack="true"></asp:TextBox> <%--ontextchanged="txt_Dayscount_days_TextChanged" AutoPostBack="true"--%>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Enter days count" ControlToValidate="Dayscount"
                         ValidationGroup="45" ForeColor="Red"></asp:RequiredFieldValidator>
                         
                          <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender5" runat="server" FilterType="Numbers" TargetControlID="Dayscount">
                </cc1:FilteredTextBoxExtender>

                      <br />
            <%--  <asp:Label ID="lbl_total_days_msgnew" runat="server" Text="" Font-Names="Verdana" Font-Size="12px" ForeColor="Red" ></asp:Label>--%>
        </td>
   
        </tr>
            <tr>
        <td  align="right">
            End Date
                    </td><td>     
    
        </td>
                                      <td colspan="2">
             <asp:TextBox ID="txtDate11" runat="server"  Width="110px"   Enabled="false" ></asp:TextBox>
             <cc1:CalendarExtender ID="CalendarExtender3" runat="server"
                    Enabled="false" TargetControlID="txtDate11" Format="dd-MMM-yyyy">
                </cc1:CalendarExtender>
               <%--  <br />
              <asp:Label ID="lbl_end_date_msg" runat="server" Text="" Font-Names="Verdana" Font-Size="12px" ForeColor="Red" ></asp:Label>
--%>
          
            
         </td>
</tr>
    <tr>
        <td align="right" >Cost</td>
        <td>
    
        </td>
        <td>
         <asp:TextBox ID="txtCost" runat="server" Width="110px" MaxLength="10" ></asp:TextBox>

<cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" runat="server" FilterType="Numbers" TargetControlID="txtCost">
                </cc1:FilteredTextBoxExtender>

        </td>
         <td> 
               
</td>
        </tr>         
             <tr>
           <td>
         
           </td>
            <td>
            </td>
            <td></td>
           
           </tr>
                     
              
                 
           </table>
           
          
           <asp:GridView runat="server" ID="gv_task_list_without_stage_approval" 
         AutoGenerateColumns="False"  AllowPaging="true" 
       ForeColor="#333333" GridLines="Both"  Font-Names="Verdana" Font-Size="12px" 
         CellSpacing="5" CellPadding="5"
           RowStyle-Height="30" PageSize="20" Width="60%" 
         onpageindexchanging="gv_task_list_without_stage_approval_PageIndexChanging" >
      <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
        <Columns>
        <asp:TemplateField HeaderText="Sr.No" ItemStyle-Width="50px">
        <ItemTemplate>
        <center>
        <asp:Label runat="server" ID="lbl_with_out_srno" Text='<% # Eval("Row")%>'></asp:Label>
        </center>
        </ItemTemplate>
        </asp:TemplateField>
            
           <asp:TemplateField HeaderText="Employee Name" ItemStyle-Width="250px">
        <ItemTemplate>
        <asp:Label ID="lbl_empl_with_outoyee_name" runat="server" Text='<%# Eval("EName") %>' ></asp:Label>
           </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Project Name" ItemStyle-Width="150px">
        <ItemTemplate>
                <asp:Label ID="lbl_mants_with_outtage_name" runat="server" Text='<%# Eval("PName") %>' Width="150px" ></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
        
        <asp:TemplateField HeaderText="Activity name <br/>Sub Stage" ItemStyle-Width="250px">
        <ItemTemplate>
            <asp:Label ID="lbl_proj_with_outect_name" runat="server" Text='<%# Eval("Mainstage_name") %>' ForeColor="#CC00FF" Width="300px"></asp:Label>
            <br />
              <asp:Label ID="lb_l_su_with_outb_sta_ge_desc" runat="server" Text='<%# Eval("sub_stage_desc") %>' Width="300px"></asp:Label>                  
        </ItemTemplate>
        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Task Name" ItemStyle-Width="350px">
                                    <ItemTemplate>
                                       <asp:Label runat="server" ID="lbl_su_with_outbid" Text='<%# Eval("subsubstage_id") %>' Visible="false" ></asp:Label>
                                       <asp:Label ID="lbl_with_outCName" runat="server" Text='<%# Eval("sub_sub_stage_desc")%>' 
                                                Width="340px"></asp:Label>
                                                </ItemTemplate>                                                                                         
                                                </asp:TemplateField>
                                                
                                                <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                           <asp:Label ID="lbl_sta_with_outrtdate" runat="server" Text='<%# Eval("startdate_DATE")%>' 
                                                Width="80px"></asp:Label>
                                                </ItemTemplate>                                            
                                             </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Completion Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_p_with_outdc" runat="server" Text='<%# Eval("pdc1_DATE")%>' Enabled="true"
                                                Width="80px"></asp:Label>
                                                </ItemTemplate>
                                               
                                                </asp:TemplateField>
                                                
                                                <asp:TemplateField HeaderText="Total Days" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_tota_with_outldays" runat="server" Text='<%# Eval("total_days")%>' 
                                                Width="60px"  align="right"></asp:Label>
                                                </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Cost" ItemStyle-Width="70px">
                                    <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_pe_with_outrcost" runat="server" Text='<%# Eval("mainstage_cost")%>' 
                                                Width="70px" align="right" ></asp:Label>
                                                </ItemTemplate>                                              
                                                </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" />
    
  </asp:GridView>
  
   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   
        <asp:Button ID="btn_submit_new_stage_update_task" runat="server" Text="Approve" 
               onclick="btn_submit_new_stage_update_task_Click"  CssClass="myButton" Visible="false" ValidationGroup="45" />
 
  </div>
    
    </asp:Panel>
    
  <%--  </ContentTemplate>
   </asp:UpdatePanel>--%>
 
   
    </asp:Panel>
<div>

      <asp:Button ID="btn_show_popup" runat="server"  style="display:none;" />
    <cc1:ModalPopupExtender runat="server" ID="popup_for_date_approval" CancelControlID="img_btn" TargetControlID="btn_show_popup" 
    PopupControlID="pnl_show_link"></cc1:ModalPopupExtender>
        <asp:Panel ID="pnl_show_link" runat="server" CssClass="shadow_five2" Width="400px" Height="200px" BorderColor="Green" BorderWidth="2" BorderStyle="Solid">
          <table width="400px" style="height:200px">   
        
          
         <tr>
         <td>
            
         </td>
         <td align="center">
      <asp:Label ID="Label1" runat="server" Text="Reason for not approved" Font-Bold="true"></asp:Label>
             <asp:HiddenField ID="hf_row_id" runat="server" />
         </td>
         <td align="right">
         <asp:ImageButton ID="img_btn" runat="server" ImageUrl="~/images/Close_Box_Red12.png" />
         </td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:TextBox ID="txt_reason" runat="server" TextMode="MultiLine" Width="250px" Height="100px"></asp:TextBox>
             <br />
             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Reason" ControlToValidate="txt_reason" ValidationGroup="gp1"></asp:RequiredFieldValidator>
         </td>
          <td></td>
         </tr>
          <tr>
         <td>
            
         </td>
         <td align="center">
             <asp:Button ID="btn_submit_reason" runat="server" Text="Submit" 
                 CssClass="myButton" onclick="btn_submit_reason_Click" ValidationGroup="gp1" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <%-- <asp:Button ID="Button1" runat="server" Text="Close" CssClass="myButton" />--%>
         </td>
          <td></td>
         </tr>
         </table>                   
        </asp:Panel>  
</div>
    
</asp:Content>

