<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_ListofProjectForApproval, App_Web_fz5gj3qy" %>
<%@ MasterType VirtualPath="~/html/MasterPage.master"%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="p12" style="width:220px;"  >
      <p style="font-family:Verdana; font-size:14px; margin-top:5px;color:Blue;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;Projects for Approval</b>
      </p>
  
      
           </div>
           <br /><br />

  <asp:HiddenField ID="HiddenField_project_id_for_approval" runat="server" />
 <asp:Panel ID="pnl_show_project_plan_approval" runat="server" BackColor="White" BorderColor="Blue" BorderStyle="Solid" BorderWidth="2" 
                    Width="600px" >
                    <br />
                       &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                    <b>List of Project Plans </b>
                     <br />
                
        <asp:GridView ID="gv_show_approvel_project_plan_list" runat="server" CellPadding="4"  
                            AutoGenerateColumns="false" ForeColor="#333333" GridLines="Both"  
                            Font-Names="Verdana" Font-Size="14px" 
                            Font-Bold="True" 
            onrowcommand="gv_show_approvel_project_plan_list_RowCommand">
                            <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                            <Columns>
                           <asp:TemplateField  ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_pcode_plan" Text='<%# Eval("Row") %>'></asp:Label>
                            </ItemTemplate>
                         
                               <ItemStyle Width="30px" />
                         
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Project Name"  ItemStyle-Width="400px">
                            <ItemTemplate>
                               <asp:Label runat="server" ID="lbl_prid_plan" Text='<%# Eval("PrID") %>' Visible="false"></asp:Label>
                              <asp:Label runat="server" ID="lbl_pname_plan" Text='<%# Eval("PName") %>'></asp:Label>
                            </ItemTemplate>
                        
                                <ItemStyle Width="400px" />
                        
                            </asp:TemplateField>
                            <asp:TemplateField   ItemStyle-Width="100px">
                            <ItemTemplate>
                         <%--   Approved--%>
                                    <asp:LinkButton ID="lnk_approved_plan" runat="server" CommandName="Close" Text="Plan For Approval" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Width="200px" > <%--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>
            
    </asp:Panel>
  
  <br />
  <br />
  <br />
  <asp:Panel ID="pnl_allproject_plan" runat="server" BackColor="White" BorderColor="Blue" BorderStyle="Solid" BorderWidth="2" 
                      Width="80%"  >
      <br />  <br />
   <asp:GridView runat="server" ID="gv_show_all_project_plan" 
          AutoGenerateColumns="False"  AllowPaging="true" 
             RowStyle-Height="30" 
           Font-Names="Verdana" Font-Size="12px"  PageSize="20"
           Width="80%" 
          onpageindexchanging="gv_show_all_project_plan_PageIndexChanging" ><%--DataSourceID="SqlDataSource4"--%>
      <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
        <Columns>
        <asp:TemplateField HeaderText="Sr.No" ItemStyle-Width="50px">
        <ItemTemplate>
        <center>
        <asp:Label runat="server" ID="lbl_srno11" Text='<% # Eval("Row")%>'></asp:Label>
        </center>
        </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Activity Name" ItemStyle-Width="200px">
        <ItemTemplate>
            <asp:Label ID="lbl_mainstagename" runat="server" Text='<%# Eval("Mainstage_name") %>'  Width="200px"></asp:Label>
        </ItemTemplate>
        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Stage Description" ItemStyle-Width="300px">
                                    <ItemTemplate>
                                       <asp:Label runat="server" ID="lbl_subid11" Text='<%# Eval("substage_id") %>' Visible="false" ></asp:Label>
                                       <asp:Label ID="lblCName11" runat="server" Text='<%# Eval("sub_stage_desc")%>' 
                                                Width="350px"></asp:Label>
                                                </ItemTemplate>
                                               
                                               </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_startdate11" 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_pdc11" runat="server" Text='<%# Eval("pdc1_DATE")%>' Enabled="true"
                                                Width="80px"></asp:Label>
                                                </ItemTemplate>
                                                
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Total Days" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                    
                                            <asp:Label ID="lbl_totaldays11" 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_percost11" runat="server" Text='<%# Eval("mainstage_cost")%>' 
                                                Width="70px" align="right" ></asp:Label>
                                                </ItemTemplate>
                                              </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Percentages" ItemStyle-Width="60px">
                                    <ItemTemplate>
                                       
                                            <asp:Label ID="lbl_sub_percentage11" runat="server" Text='<%# Eval("substage_percentages")%>' 
                                                Width="60px"  align="right" ></asp:Label>
                                                </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>
     <br />
    <asp:Label ID="lbl_suggetion" runat="server" Text="Suggestion:-" Font-Bold="true" ForeColor="Red"></asp:Label>
    <asp:TextBox ID="txt_sueggtion" runat="server" TextMode="MultiLine" Width="400px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Enter Suggestion" ControlToValidate="txt_sueggtion"
     ValidationGroup="10" ForeColor="Red"></asp:RequiredFieldValidator>
     <br /> <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     
    <asp:Button ID="btn_approve" runat="server" Text="Approve" CssClass="myButton" 
          onclick="btn_approve_Click" />
    <asp:Button ID="btn_Not_approve" runat="server" Text="Not Approve" 
          CssClass="myButton" ValidationGroup="10" onclick="btn_Not_approve_Click" />
    
   <%-- <asp:Button ID="Button3" runat="server" Text="Close" CssClass="myButton" />--%>
      <br />
         <br />
   </asp:Panel>
  
</asp:Content>

