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


<%@ Register assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.DataVisualization.Charting" tagprefix="asp" %>  
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>

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



<%--<%@ Register Assembly="System.Web.DataVisualization, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
--%>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
.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:19px;
            width:202px;
        }
        
        .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:19px;
            width:302px;
        }

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


 <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
                <ContentTemplate>  
                                      
                                      
                                       <table width="100%">
    <tr>
    <td align="right">
    <asp:Label runat="server" ID="Label3" Text="Select project:" ForeColor="Red" Font-Size="12px" Font-Names="Verdana" Font-Bold="true"></asp:Label>
        
    </td>
    <td>
     <asp:DropDownList ID="ddl_projectclientwise" runat="server" Font-Size="12px"
                    DataTextField="PName" DataValueField="PrID"                    
                    AutoPostBack="True" AppendDataBoundItems="True" 
        onselectedindexchanged="ddl_projectclientwise_SelectedIndexChanged">
                </asp:DropDownList>
    </td>
    </tr>
    <tr>
    <td align="right"><asp:Label runat="server" ID="Label2" Text="Select Graph type:" Font-Size="12px" ForeColor="Red" Font-Names="Verdana" Font-Bold="true"></asp:Label>   
    </td>
    <td>
     <asp:DropDownList ID="ddl_graph_type" runat="server" AutoPostBack="True" Font-Size="12px"
            onselectedindexchanged="ddl_graph_type_SelectedIndexChanged">
        <asp:ListItem>- Select graph type-</asp:ListItem>
         <asp:ListItem>Bar chart</asp:ListItem>
          <asp:ListItem>Pie chart</asp:ListItem>
          <asp:ListItem>Line graph</asp:ListItem>
                </asp:DropDownList>
    </td>
    </tr>

   <tr>
   <td align="right"><asp:Label runat="server" ID="lbl_main_stage" Text="Select Main stage" Font-Size="12px" ForeColor="Red" Font-Names="Verdana" Font-Bold="true" Visible="false"></asp:Label></td>
   <td>
    <asp:DropDownList ID="ddl_projectmain_stage" runat="server" Font-Size="12px"
                    DataTextField="Mainstage_name" DataValueField="Mainstage_ID"   onselectedindexchanged="ddl_projectmain_stage_SelectedIndexChanged"                  
                    AutoPostBack="True" AppendDataBoundItems="True" Visible="false">
                </asp:DropDownList>
                                   <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" InitialValue="-Select-"
                                    ControlToValidate="ddl_projectmain_stage" ErrorMessage="Select Project Main stage" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>

   </td>
   </tr>
<tr>
   <td align="right"><asp:Label runat="server" ID="lbl_select_sub_stage" Text="Select Sub Stage" ForeColor="Red" Font-Size="12px" Font-Bold="true" Font-Names="Verdana" Visible="false"></asp:Label></td>
   <td>
     <asp:DropDownList ID="ddl_sub_stages_list" runat="server"  Font-Size="12px"
                    DataTextField="sub_stage_desc" DataValueField="substage_id" AutoPostBack="True" 
                    onselectedindexchanged="ddl_sub_stages_list_SelectedIndexChanged" Visible="false" ></asp:DropDownList>
       <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" InitialValue="-Select--" ControlToValidate="ddl_sub_stages_list"  ForeColor="Red" ErrorMessage="Select Sub Stage" ValidationGroup="1"></asp:RequiredFieldValidator>
       <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator9" InitialValue="-Select--" ControlToValidate="ddl_sub_stages_list" ForeColor="Red" ErrorMessage="Select Sub Stage" ValidationGroup="all"></asp:RequiredFieldValidator>

   </td>
   </tr>    
    <tr>
    
    <td colspan="2" style="font-size: 20px; font-weight: bold; color: Blue" 
                bgcolor="#ff9966"> 
                <asp:Panel ID="pnl_showinfo" runat="server" Visible="false">
        <b style="color:Red;font-size:15px;">  <%=project_name %></b> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label runat="server" ID="lbl_client_name" ForeColor="#6600cc" Font-Bold="true" Text="Client Name:" Font-Size="15px"  ></asp:Label>  <b style="color:Red;font-size:15px;"><%=Client_name %></b>&nbsp;&nbsp;&nbsp;&nbsp;
         <asp:Label runat="server" ID="lbl_emp_name" Font-Bold="true" Text="Project Manager:" ForeColor="#6600cc" Font-Size="15px"></asp:Label> <b style="color:Red;font-size:15px;"><%=emp_name %></b></asp:Panel>
    </td>
        </tr>
    </table>

  
            

                    
                   <%--  <asp:Chart ID="Chart2"  BorderSkin-SkinStyle="Emboss"
                               runat="server"  
                               Height="715px" 
                               Width="598px" 
                         
                               Palette="SemiTransparent" 
                        
                        style="margin-top: 0px" >
                                  
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                          
                        <series>  
                            <asp:Series ChartType="Column" Name="PieSeriesghh"   
                            XValueMember="Mainstage_name" YValueMembers="t_percenates"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="4"   
                            ToolTip="Stage Name  : #VALX \nPercentages   : #VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt, style=Regular"
                            Label="#VALX #VALY%" LabelForeColor="Blue">  
                            </asp:Series>  
                       
                              
                        </series>  
      
                        <chartareas>  
                             <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" Area3DStyle-Enable3D="true"  
                                BackSecondaryColor= "Ivory" BorderDashStyle="Solid" BorderWidth="1" BorderColor="#FFFF99">  
                                 <Area3DStyle Enable3D="false" />
                            </asp:ChartArea>  
                        </chartareas>  
                          
                    </asp:Chart>  --%>
                    
                    <br />
                    <div id="piechart_div" runat="server" visible="false" style="width:100%;" >
                    <div style="width:50%;float:left;" class="boxshadow">
                    <p class="p1" style="font-family:Verdana; font-size:14px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Red;">&nbsp;&nbsp; Actual Percentages</b>
      </p>
                   
                             <%--<asp:Chart ID="piechart_acctual_work_per" runat="server" BorderSkin-SkinStyle="Emboss" Height="300px" Width="400px" Visible = "false">
            <Titles>
                <asp:Title ShadowOffset="3" Name="Items" />
            </Titles>
            <Legends>
                <asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="False" Name="Default" LegendStyle="Row" />
            </Legends>
            <Series>
                <asp:Series Name="Default" />
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BorderWidth="0" />
            </ChartAreas>
        </asp:Chart>          --%>
        
        <asp:Chart ID="Chart_actual" 
                               runat="server"  
                               Height="500px" 
                               Width="600px" 
                               
                               Palette="SemiTransparent" 
                        
                        style="margin-top: 0px" >
                             
      
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                          
                        <series>  
                            <asp:Series ChartType= "Pie" Name="PieSeries"   
                            XValueMember="Mainstage_name" YValueMembers="per_days_percentages"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="2"   
                            ToolTip="Mainstage_name  : #VALX \nper_days_percentages   : #VALY%" 
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt, style=Regular"
                            Label="#VALX-#VALY%" LabelForeColor="Blue">  
                            </asp:Series>
                              
                        </series>  
      
                        <chartareas>  
                             <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" Area3DStyle-Enable3D="false"  
                                BackSecondaryColor= "Ivory" BorderDashStyle="Solid" BorderWidth="2" BorderColor="#FFFF99">  
                                 <Area3DStyle Enable3D="true" />
                            </asp:ChartArea>  
                        </chartareas>  
                          
                    </asp:Chart> 
        
                   </div>

<div style="width:50%;float:right;" class="boxshadow">
          <p class="p2" style="font-family:Verdana; font-size:14px; margin-top:10px;color:Blue;font-weight:bold;padding-top:10px;">
     <b style="color:Red;">&nbsp;&nbsp; Work progress percentages
</b>
      </p>                  
        <%--   <asp:Chart ID="PieCategoryChart" runat="server" BorderSkin-SkinStyle="Emboss" Height="300px" Width="400px" Visible = "false">
            <Titles>
                <asp:Title ShadowOffset="3" Name="Items" />
            </Titles>
            <Legends>
                <asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="False" Name="Default" LegendStyle="Row" />
            </Legends>
            <Series>
                <asp:Series Name="Default" />
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" BorderWidth="0" />
            </ChartAreas>
        </asp:Chart>--%>
        
          <asp:Chart ID="Chart_work_progress" 
                               runat="server"  
                               Height="500px" 
                               Width="600px" 
                               
                               Palette="SemiTransparent" 
                        
                        style="margin-top: 0px" >
                             
      
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                          
                        <series>  
                            <asp:Series ChartType= "Pie" Name="PieSeries"   
                            XValueMember="Mainstage_name" YValueMembers="t_percenates"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="2"   
                            ToolTip="Mainstage_name  : #VALX \nt_percenates   : #VALY%" 
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt, style=Regular"
                            Label="#VALX-#VALY%" LabelForeColor="Blue">  
                            </asp:Series>
                              
                        </series>  
      
                        <chartareas>  
                             <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" Area3DStyle-Enable3D="false"  
                                BackSecondaryColor= "Ivory" BorderDashStyle="Solid" BorderWidth="2" BorderColor="#FFFF99">  
                                 <Area3DStyle Enable3D="true" />
                            </asp:ChartArea>  
                        </chartareas>  
                          
                    </asp:Chart> 

</div> 

 



</div>
                    
                    <br />
                    
                    <%-- <asp:Chart ID="PieCategoryChart" 
                               runat="server"  
                               Height="715px" 
                               Width="998px" 
                              
                               Palette="SemiTransparent" 
                        
                        style="margin-top: 0px" >
                                 
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                          
                        <series>  
                            <asp:Series ChartType="Pie" Name="PieSeries"   
                            XValueMember="Mainstage_name" YValueMembers="t_percenates"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="2"   
                            ToolTip="Stage Name  : #VALX \nPercentages   : #VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt, style=Regular"
                            Label="#VALX #VALY%" LabelForeColor="Blue">  
                            </asp:Series>  
                        </series>  
      
                        <chartareas>  
                             <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" Area3DStyle-Enable3D="true"  
                                BackSecondaryColor= "Ivory" BorderDashStyle="Solid" BorderWidth="2" BorderColor="#FFFF99">  
                                 <Area3DStyle Enable3D="True" />
                            </asp:ChartArea>  
                        </chartareas>  
                          
                    </asp:Chart>  --%>
                                 
                        
                        
                         <%-- <asp:Chart ID="Chart3" 
                               runat="server"  
                               Height="715px" 
                               Width="998px" 
                        
                               Palette="SemiTransparent" 
                        
                        style="margin-top: 0px" >
                          
      
                        <MapAreas>
                            <asp:MapArea Coordinates="100,100,100,100" />
                        </MapAreas>
                          
                        <series>  
                            <asp:Series ChartType="StackedBar" Name="PieSeries"   
                            XValueMember="Mainstage_name" YValueMembers="t_percenates"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="4"   
                            ToolTip="Stage Name  : #VALX \nPercentages   : #VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt, style=Regular"
                            Label="#VALX-#VALY%" LabelForeColor="Blue">  
                            </asp:Series>  
                        </series>  
      
                        <chartareas>  
                             <asp:ChartArea Name="ChartArea1" BackGradientStyle="TopBottom" Area3DStyle-Enable3D="true"  
                                BackSecondaryColor= "Ivory" BorderDashStyle="Solid" BorderWidth="1" BorderColor="#FFFF99">  
                                 <Area3DStyle Enable3D="false" />
                            </asp:ChartArea>  
                        </chartareas>  
                          
                    </asp:Chart>  --%>
                        
            
            
         <%--  <asp:chart id="Chart1" runat="server" Height="296px" Width="512px" 
        BorderDashStyle="Solid" BackSecondaryColor="White" 
        BackGradientStyle="TopBottom" BorderWidth="2px" backcolor="211, 223, 240" 
        BorderColor="#1A3B69" DataMember="DefaultView"  >  
       <legends>  
           <asp:Legend IsTextAutoFit="false"  Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold"></asp:Legend>  
       </legends>  
       <borderskin skinstyle="Sunken"></borderskin>  
       
       <chartareas>  
           <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" 
                BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" 
                BackGradientStyle="TopBottom">  
               <area3dstyle Rotation="10" perspective="10" Inclination="15" IsRightAngleAxes="False" 
                    wallwidth="0" IsClustered="False"></area3dstyle>  
               <axisy linecolor="64, 64, 64, 64">  
                   <labelstyle font="Trebuchet MS, 8.25pt, style=Bold" />  
                   <majorgrid linecolor="64, 64, 64, 64" />  
               </axisy>  
               <axisx linecolor="64, 64, 64, 64">  
                   <labelstyle font="Trebuchet MS, 8.25pt, style=Bold" />  
                   <majorgrid linecolor="64, 64, 64, 64" />  
               </axisx>  
               <Position Height="79.02613" Width="61.26034" X="5.55474472" Y="14.414547" />
           </asp:ChartArea>  
       </chartareas>  
   </asp:chart>--%>
   
   
   
   <asp:Panel runat="server" ID="pnl_bar_graph" Visible="false">
          <asp:Chart ID="Chart_dispaly_per_curr_prog" runat="server" Palette="Bright"  BorderSkin-SkinStyle="Emboss" BackColor="#ffddaa"  Width="700px" Height="500px">
            <Titles>
                <asp:Title ShadowOffset="3" Name="Items" />
            </Titles>
              <Legends>
                <asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="true" Name="Default" LegendStyle="Row" />
            </Legends>
             <series> 
             
              <asp:Series Name="Assign Percentages"   
                            YValueMembers="per_days_percentages" XValueMember="Mainstage_name" 
                            ChartArea="ChartArea1"  ShadowOffset="0"   
                            ToolTip="percentages:#VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 7pt"
                            Label="#VALY%" Color="Green" >  
                          
                          
                            </asp:Series>   
                          
                           <asp:Series Name="Work Progress percentages"   YValueMembers="mainstage_progress_percentages" XValueMember="Mainstage_name"  
                            ChartArea="ChartArea1"  ShadowOffset="0"   
                            ToolTip="percentages:#VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 7pt"
                            Label="#VALY%" Color="Blue" ></asp:Series>    
                        </series> 
                       <%-- <Series>
                          <asp:Series Name="bareSeriesg1"   YValueMembers="mainstage_progress_percentages" XValueMember="Mainstage_name"  
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="0"   
                            ToolTip="percentages:#VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 11pt"
                            Label="#VALY%" Color="Red" ></asp:Series>    
                        </Series>--%>
           
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" >
                <%--  <AxisX >
                <LabelStyle Format="{#}%" />
            </AxisX>--%>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        </asp:Panel>
   <br /><br />
   
   <asp:Panel runat="server" ID="pnl_line_graph" Visible="false">
  
     <asp:Chart ID="target_achievement" runat="server" Palette="Bright" BorderSkin-SkinStyle="Emboss" AntiAliasing="All" BackColor="#ffddaa" Width="654px">
            <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>
   
   </asp:Panel>
</ContentTemplate>   
            </asp:UpdatePanel>            
</asp:Content>

