<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Archives, App_Web_chtwzywl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
<style type="text/css">

.lbl_show_heading
{
   color:White;
   font-size:15px; 
    }
.shadow_five4 
{
    
       background-color:#fd9800;
        -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;



     
        
    }
    .shadow_five
    {
         background-color:#FFDDAA;
        -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;
        
        }
        .shadow_five122
          {
         background-color:White;
        -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;
        height:250px;
        }
        
        
         .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:27px;
        width: 110px;
    }
         .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:15px;
            width:202px;
        }
          .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	   
        	width:300px;
        	height:20%;
        	background-color:#ffebcc;
        	display:inline;
            z-index:999;
            margin-top:200px;
            align:center;
        	
        
        }

        
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdateProgress ID="UpdateProgress2" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1111" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
 <table class="p12" style="width:100px;" >
        <tr>
            <td  colspan="3" style="font-size:16px; font-weight: bold; color:White;" 
                >
               
              <b>  &nbsp;&nbsp; Archives </b>
                
            </td>
        </tr>
        </table>
        <br />
<%--<div class="p1"  align="left" style="width:130px;" >
      <p style="font-family:Verdana; font-size:17px; margin-top:5px;color:Red;font-weight:bold;padding-top:0px; width: 106px; height: 24px;">
    &nbsp;&nbsp;&nbsp;Archives
      </p>
           </div>--%>
    <div>
      <asp:UpdatePanel ID="update_fillreoprt" runat="server">
       <ContentTemplate>
    <table width="100%">
    <tr>
    <td align="right"><b style="color:Red;font-family:Verdana;">Select project:</b>     
    </td>
    <td>
     <asp:DropDownList ID="ddl_projectclientwise" runat="server" Font-Names="Verdana" 
                    DataTextField="PName" DataValueField="PrID"                    
                    AutoPostBack="True" AppendDataBoundItems="True" 
        onselectedindexchanged="ddl_projectclientwise_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%--<asp:Button runat="server" ID="btn_showgraphs" Text="Show graphs" CssClass="myButton" PostBackUrl="~/html/MainStagewiseProgress.aspx" />--%>
    </td>
    </tr>
    
    <tr style="" class="p12">
    
    <td colspan="2"  > 
                <asp:Panel ID="pnl_showinfo" runat="server" Visible="false" Font-Names="Verdana">
       <b style="color:#003399;font-size:15px;">Project: </b>
       <%--  <b style="color:White;font-size:15px;"><%=project_name %></b>--%>
         <asp:Label ID="lbl_project_name" runat="server" Text="" CssClass="lbl_show_heading"></asp:Label>  
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat="server" ID="lbl_client_name" ForeColor="#003399" Font-Bold="true" Font-Size="15px" Text="Client:" Font-Names="Verdana"  ></asp:Label>
        <%--  <b style="color:White;font-size:15px;"><%=Client_name %></b>--%>
          <asp:Label ID="lbl_select_client_name" runat="server" Text="" CssClass="lbl_show_heading"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
         <asp:Label runat="server" ID="lbl_emp_name" Font-Bold="true" Text="Project Manager:" Font-Size="15px" ForeColor="#003399" Font-Names="Verdana"></asp:Label>
        <%--  <b style="color:White;font-size:15px;"> <%=emp_name %></b>--%>
              <asp:Label ID="lbl_employee_name" runat="server" Text="" CssClass="lbl_show_heading"></asp:Label>
   </asp:Panel>
    </td>
        </tr>
    </table>
 

            
                
                
                <asp:Panel ID="bind_mainstage" runat="server" Visible="false">
             
            
             <div class="shadow_five122" style="height:260px; background-color:White;margin-top:10px;">
                <div style="float:left;height:230px;margin-left:20px;margin-top:5px;width:45%;" class="shadow_five4"" >
                <%--   <asp:Label runat="server" ID="lbl_total_progress" Text="" Font-Size="13" ForeColor="Black" Font-Names="Verdana" ></asp:Label>
                <asp:Label runat="server" ID="Label1" Text="" Font-Size="15" ForeColor="Red" Font-Names="Verdana"></asp:Label>--%>
                 <asp:Label runat="server" ID="lbl_total_progress" Text="" Font-Size="13" ForeColor="Black" Font-Names="Verdana" Font-Bold="true" ></asp:Label>
                <asp:Label runat="server" ID="Label1" Text="" Font-Size="13" ForeColor="Red" Font-Names="Verdana" Font-Bold="true"></asp:Label>
              <div style="overflow:auto;height:200px;">
<asp:GridView runat="server" ID="gv_bindmainstages" AutoGenerateColumns="false"   CssClass="shadow_five4" 
        onselectedindexchanging="gv_bindmainstages_SelectedIndexChanging" Font-Names="Verdana" Font-Size="12px"
        CellPadding="4" DataKeyNames="Mainstage_ID" onrowcommand="gv_bindmainstages_RowCommand"  >

<Columns>
<asp:TemplateField HeaderText="Sr.No">
<ItemTemplate>
<asp:Label runat="server" ID="lbl_srno" Text='<% # Eval("Row") %>'></asp:Label>
 </ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Main stage name">
<ItemTemplate>
<table ></table>
 <asp:LinkButton ID="lnk_mainstage" runat="server" Text='<%# Eval("Mainstage_name") %>'  
                                CommandName="Select" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Font-Underline="false" Font-Bold="true" />  
<%--<asp:HyperLink ID="hl_mainstage" runat="server" Text='<%# Eval("Mainstage_name") %>' ></asp:HyperLink>
<--%></ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Days">
<ItemTemplate>
<asp:Label ID="lbl_mainstime" runat="server" Text='<%# Eval("mainstage_percentage") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Cost<br/>(Rupees)" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:Label ID="lbl_mainstage_cost" runat="server" Text='<%# Eval("mainstage_cost") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:TemplateField HeaderText="% To Total">

<ItemTemplate>
<asp:Label ID="lbl_mainstagewise_percentages" runat="server" Text='<%# Eval("per_days_percentages") %>' ></asp:Label>
</ItemTemplate>
</asp:TemplateField>--%>
<asp:TemplateField HeaderText="Completion<br/>(%)">
<ItemTemplate>
<%--<asp:Label ID="lbl_total_progress" runat="server" Text='<%# Eval("mainstage_progress_percentages") %>' ForeColor="Red"></asp:Label>
--%>
<asp:Label ID="lbl_total_progress" runat="server" Text='<%# Eval("main_progress_hundred") %>' ForeColor="Red"></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" />

<%-- <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" Height="20" />
--%> 
 <SelectedRowStyle BackColor="Yellow" ForeColor="Black" />
</asp:GridView>
</div>
</div>
<div style="float:left; height:250px; margin-left:10px;margin-top:-10px;">
<asp:Panel runat="server" ID="pnl_total_per_graph" Visible="false">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label runat="server" ID="lbl_total_competion" Text="Total Completion %" CssClass="" ForeColor="" Font-Names="Verdana" Font-Size="15px" Font-Bold="true" ></asp:Label>
<br />
  <asp:Chart ID="Chart2" runat="server"  Height="240px" Width="237px"   
        BackColor="#fd9800"   BorderSkin-SkinStyle="Emboss" Palette="Bright"  
        style="margin-top: 0px;margin-left:-10px;" >
                                  
                        <BorderSkin SkinStyle="Emboss"  />
                          
                        <series>  
                            <asp:Series Name="PieSeriesghh"  
                            YValueMembers="total"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="4"   
                            ToolTip="Stage Name  : #VALX \nPercentages   : #VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 7pt"
                            LabelForeColor="#000066" Label="#VALY%">  
                            </asp:Series>       
                        </series>  
      
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                        <ChartAreas>
                            <asp:ChartArea BackGradientStyle="TopBottom" BackSecondaryColor="Ivory"  Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" Area3DStyle-IsRightAngleAxes="true"
                Area3DStyle-LightStyle="Simplistic"
                                BorderColor="255, 255, 153" BorderDashStyle="Solid" Name="ChartArea1">
                                 <AxisX LabelAutoFitMaxFontSize="10" Enabled="True" Crossing="Auto"  Interval="1" >
                <LabelStyle  ForeColor="Blue" />
                </AxisX>
                            </asp:ChartArea>
                            
                        </ChartAreas>
                          
                    </asp:Chart> 
    
    </asp:Panel>
    <asp:Panel runat="server" ID="pnl_main_stage_wise_graph" Visible="false">
    <asp:Chart ID="Main_stage_wise" runat="server"  Height="250px" Width="241px"  BackColor="#fd9800"   BorderSkin-SkinStyle="Emboss" Palette="Bright" style="margin-top: 0px" >
                                  
                        <BorderSkin SkinStyle="Emboss" />
                          
                        <series>  
                           
                              <asp:Series Name="PieSeriesghh11"   
                            YValueMembers="per_hundred"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="4"   
                            ToolTip="Stage Name  : #VALX \nPercentages   : #VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 7pt"
                            LabelForeColor="Blue" Label="#VALY%">  
                            </asp:Series>    
                        </series>  
      
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                        <ChartAreas>
                            <asp:ChartArea BackGradientStyle="TopBottom" BackSecondaryColor="Ivory" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" Area3DStyle-IsRightAngleAxes="true"
                Area3DStyle-LightStyle="Simplistic" 
                                BorderColor="255, 255, 153" BorderDashStyle="Solid" Name="ChartArea1">
                                 <AxisX LabelAutoFitMaxFontSize="10" Enabled="True" Crossing="Auto"  Interval="1" >
                <LabelStyle  ForeColor="Blue" />
                </AxisX>
                            </asp:ChartArea>
                        </ChartAreas>
                          
                    </asp:Chart>
    
    </asp:Panel>
     
                   
             
                    </div>
<div style="float:right;height:215px;">
  <asp:Chart ID="target_achievement" runat="server" Palette="Bright" Visible="false" 
        BorderSkin-SkinStyle="Emboss" AntiAliasing="All" BackColor="#ff9479" 
        Width="354px" Height="241px" >
            <BorderSkin SkinStyle="Emboss" />
            <Titles>
                <asp:Title ShadowOffset="3" Name="Items" />
            </Titles>
              <Legends>
                <asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="true" Name="Default" LegendStyle="Row" />
            </Legends>
            <Series>
               
            </Series>
           
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" AlignmentOrientation="Horizontal">
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart><br />
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <%--  <asp:LinkButton runat="server" ID="btn_showgraphs" Text="More graphs"  PostBackUrl="~/html/MainStagewiseProgress.aspx"  />--%>
<asp:Button runat="server" ID="btn_more_graph" Text="More graphs" PostBackUrl="~/html/Archives_graphs.aspx" CssClass="myButton" Visible="false" />
</div>

</div>

</asp:Panel>
                
<asp:Panel ID="pnlInfo" runat="server"   Width="880px"  ForeColor="" Font-Names="Verdana" Font-Size="11px">

<%=sbody %>
<b style="color:Green;"></b>

</asp:Panel>

        </ContentTemplate>
</asp:UpdatePanel>
</div>

</asp:Content>

