 <%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_Show_graph, App_Web_fz5gj3qy" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
    <style type="text/css">
        .lbl_textinitial
        {
            display:inline;
       }
 .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:230px;
        }
         .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>
<asp:UpdatePanel ID="update_fillreoprt" runat="server">
       <ContentTemplate>
    <asp:Panel  runat="server" ID="pnl_all_panel"  >
        
         <asp:Panel  runat="server" ID="pnl_gridview_display" >
           
    <asp:GridView runat="server" ID="gv_palnningdeatils" AutoGenerateColumns="False" 
            RowStyle-Height="30" DataKeyNames="prid" 
            Font-Names="Verdana" Font-Size="12px" 
             Width="80%" 
                 onselectedindexchanging="gv_palnningdeatils_SelectedIndexChanging" 
                 onrowcommand="gv_palnningdeatils_RowCommand" onrowdatabound="gv_palnningdeatils_RowDataBound"  >
        <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
        <Columns>
        <asp:TemplateField HeaderText="Sr.No" ItemStyle-Width="30px">
        <ItemTemplate>
        <center>
        <asp:Label runat="server" ID="lbl_srno" Text='<% # Eval("Row")%>' Width="30px"></asp:Label>
        </center>
        </ItemTemplate>
        </asp:TemplateField>
                       <asp:TemplateField HeaderText="Code" ItemStyle-Width="30px">
                                    <ItemTemplate>
                                    <center>
                                     <asp:Label runat="server" ID="lbl_projectid" Text='<%# Eval("prid") %>' Visible="false" ></asp:Label>
                                       <asp:Label ID="lblCName" runat="server" Text='<%# Eval("PCode")%>' 
                                                Width="30px"></asp:Label>
                                                </center>
                                                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Project Name" ItemStyle-Width="200px">
                                    <ItemTemplate>
                                                 
                                                <asp:LinkButton ID="lnk_mainstage" runat="server" Text='<%# Eval("PName") %>' 
                                CommandName="Select" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" Font-Underline="false" ForeColor="#000099" Font-Bold="true" />  
                                                
                                                </ItemTemplate>
                                               </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Start Date" ItemStyle-Width="80px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_pdc" runat="server" Text='<%# Eval("startdate")%>' Enabled="true"
                                                Width="80px"></asp:Label>
                                                </center>
                                                </ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="P D C" ItemStyle-Width="80px">
                                                <ItemTemplate>
                                                <center>
                                                <asp:Label ID="lbl_totaldays" runat="server" Text='<%# Eval("p_d_c")%>' 
                                                Width="80px"></asp:Label></ItemTemplate>
                                                </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Cost(Rs.)" ItemStyle-Width="50px" ItemStyle-HorizontalAlign="Right">
                                                <ItemTemplate>
                                      
                                            <asp:Label ID="lbl_percost" runat="server" Text='<%# Eval("project_cost")%>' 
                                                 align="right" CssClass="lbl_textinitial" ></asp:Label>&nbsp;
                                                </ItemTemplate>
                                               </asp:TemplateField>
              <asp:TemplateField HeaderText="Expenses" ItemStyle-Width="100px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_sub_percentage1" runat="server" Text='<%# Eval("TotalExpenses")%>' 
                                                Width="80px"></asp:Label>
                                                </center>
                                                </ItemTemplate>
                                                </asp:TemplateField>
            <asp:TemplateField HeaderText="Total Time" ItemStyle-Width="50px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_time" runat="server" Text='<%# Eval("Actual_total_time")%>'  
                                                Width="50px"></asp:Label>
                                                </center>
                                                </ItemTemplate>
            </asp:TemplateField>
                                                <asp:TemplateField HeaderText="Project Head" ItemStyle-Width="160px">
                                    <ItemTemplate>
                                       <center>
                                            <asp:Label ID="lbl_sub_percentage" runat="server" Text='<%# Eval("EName")%>' 
                                                Width="160px"></asp:Label>
                                                </center>
                                                </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" Height="30px" />
                            <AlternatingRowStyle BackColor="White" />
    
    </asp:GridView>
      
    </asp:Panel>
  <br /><br />

        <asp:Panel ID="pnl_project_graph" runat="server">
       
    <div class="p12" style="width:180px;"  >
      <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;A.  Status of Projects</b>
      </p>
     
      
           </div>
           <div style="margin-left:70px;">
          <br />
                    <asp:Chart ID="Chart_dispaly_per_curr_prog" runat="server"  Palette="BrightPastel"   BorderSkin-SkinStyle="Emboss" BackColor="#fd9800"  Width="900px" Height="500px">
            <Titles>
                <asp:Title ShadowOffset="0" Name="Items" />
            </Titles>
                   
<BorderSkin SkinStyle="Emboss"></BorderSkin>
          
             <series>  
                            <asp:Series Name="PieSeriesghh"    
                            YValueMembers="total" XValueMember="PCode" XValueType="String"  
                             
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="0"   
                            ToolTip="Percentages:#VALY%"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=True" Font="Verdana, 8pt" 
                            Label="#VALY%" Color="#993366"   >  
                          
                            </asp:Series>  
                            
                            
                      
                          
                       
                              
                        </series>  
            <ChartAreas>
            
                <asp:ChartArea Name="ChartArea1" AlignmentOrientation="Horizontal" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" Area3DStyle-IsRightAngleAxes="true"
                Area3DStyle-LightStyle="Simplistic" >
                 <AxisX LabelAutoFitMaxFontSize="10" Enabled="True" Crossing="Auto"  Interval="1" >
                <LabelStyle  ForeColor="Blue" />
                </AxisX>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>

</div>
 </asp:Panel>
<br />

<asp:Panel ID="pnl_expences_graph" runat="server">
 <div class="p12"  style="width:190px;" >
      <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;B.  Expenses status</b>
      </p>
  
      
           </div>   <br />
<div style="margin-left:70px;">

<asp:Chart ID="chart_expenses" runat="server" Palette="Bright"  BorderSkin-SkinStyle="Emboss" BackColor="#fd9800"  Width="900px" Height="500px" >
            <Titles>
                <asp:Title ShadowOffset="0" Name="Items" />
            </Titles>
          
        <Legends>
                <asp:Legend Alignment="Center" Docking="Bottom" IsTextAutoFit="true" Name="Default" LegendStyle="Row" />
            </Legends>
           
<BorderSkin SkinStyle="Emboss"></BorderSkin>
           <series>   
         <asp:Series Name="Total Project Cost(Rs.)"   
                            YValueMembers="Actual_total" XValueMember="PCode" 
                            ChartArea="ChartArea1"  ShadowOffset="0"   
                            ToolTip="Rs :#VALY"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 5pt"
                             Color="YellowGreen"   >  
                          
                          
                            </asp:Series>      
        
        
         
                            <asp:Series Name="Actual expenses(Rs.)"   
                            YValueMembers="total" XValueMember="PCode"  
                            ChartArea="ChartArea1" ShadowOffset="0"    
                            ToolTip="Rs :#VALY"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=False" Font="Verdana, 5pt" 
                           Color="#993366"  >  
                          
                            </asp:Series>  
                            
                            
                      
                          
                       
                              
                        </series>  
                       
            
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" AlignmentOrientation="Horizontal" Area3DStyle-Enable3D="true" Area3DStyle-IsClustered="true" Area3DStyle-IsRightAngleAxes="true"
                Area3DStyle-LightStyle="Simplistic">
                <AxisX LabelAutoFitMaxFontSize="10" Enabled="True" Crossing="Auto"  Interval="1" >
                <LabelStyle  ForeColor="Blue" />
                </AxisX>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
    
    
    
</div>
</asp:Panel>
<br />

<asp:Panel ID="pnl_manpower_graph" 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;C. Project Wise Manpower</b>
      </p>
  
      
           </div>   <br />

<asp:Chart ID="chart_manpower_project_wise" runat="server"  Palette="BrightPastel"  BorderSkin-SkinStyle="Emboss" BackColor="#fd9800"   Width="900px" Height="500px">
            <Titles>
                <asp:Title ShadowOffset="0" Name="Items" />
            </Titles>
                   
<BorderSkin SkinStyle="Emboss"></BorderSkin>
          
             <series>  
                            <asp:Series Name="PieSeriesghh"   
                            YValueMembers="total_count" XValueMember="PCode" XValueType="String" 
                             
                            ChartArea="ChartArea1" Legend="Legend1" ShadowOffset="0"   
                            ToolTip="Total employee:#VALY"
                            CustomProperties="PieLabelStyle=OutSide, CollectedThresholdUsePercent=True" Font="Verdana, 8pt" 
                            Label="#VALY" Color="#993366"   >  
                          
                            </asp:Series>  
                            
                            
                      
                          
                       
                              
                        </series>  
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1" AlignmentOrientation="Horizontal" Area3DStyle-Enable3D="true" 
               
                Area3DStyle-LightStyle="Simplistic"
                Area3DStyle-IsClustered="true" Area3DStyle-IsRightAngleAxes="true"
              >
                <AxisX LabelAutoFitMaxFontSize="10" Enabled="True" Crossing="Auto"  Interval="1" >
                <LabelStyle  ForeColor="Blue" />
                
                </AxisX>

                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>


</div>
</asp:Panel>

</asp:Panel>



  <asp:Button ID="btn_Test" runat="server" style="display:none" />
                <cc1:ModalPopupExtender ID="MPE_show_project_close_popup" runat="server" 
                    BackgroundCssClass="modalBackground" PopupControlID="pnl_date_change_msg" 
                    TargetControlID="btn_Test" CancelControlID="ImageButton1" >
                </cc1:ModalPopupExtender>
                <asp:Panel ID="pnl_date_change_msg" runat="server" BackColor="White" Height="100px" 
                    style="display:none" Width="400px">
                    <table cellpadding="0" cellspacing="0" 
                        style="border:Solid 2px #D46900; width:100%; height:100%" width="100%">
                        <tr style="background-image: url(../images/header.gif)">
                            <td align="left" 
                                style="height:10%; color:White; font-weight:bold;padding:3px; font-size:larger; font-family:Calibri">
                                Confirm Box</td>
                            <td align="right" 
                                style=" color:White; font-weight:bold;padding:3px; font-size:larger">
                             <%--   <a href="javascript:void(0)" onclick="closepopup()">
                                <img align="right" alt="yes/no" src="../images/close.gif" style="border :0px" /></a>--%>
                                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../images/close.gif" />
                                
                            </td>
                        </tr>
                        <tr>
                            <td align="left" colspan="2" 
                                style="padding:5px; font-family:Calibri; height:auto;">
                             <b>Some projects are 100 % completed.  Do you want to close these projects?</b>
                            </td>
                        </tr>
                        <tr style="background-color:White;">
                            <td colspan="2">
                            </td>
                        </tr>
                        <tr>
                            <td style="background-color:White;">
                            </td>
                            <td align="right" style="padding-right:15px; background-color:White;">
                               <%-- <asp:ImageButton ID="btn_yes" runat="server" 
                                    ImageUrl="../images/btnyes.jpg" onclick="btn_yes_Click" />
                                <asp:ImageButton ID="btn_no" runat="server" 
                                    ImageUrl="../images/btnNo.jpg" onclick="btn_no_Click" />--%>
                                <asp:Button ID="btn_yes" runat="server" Text="Yes" onclick="btn_yes_Click" CssClass="myButton" />
                                &nbsp;&nbsp;&nbsp;
                                  <asp:Button ID="btn_no" runat="server" Text="No" onclick="btn_no_Click" CssClass="myButton" /><br /><br />
                            </td>
                            
                        </tr>
                    </table>
                </asp:Panel>
        <%--     <asp:Button ID="btn_close2" runat="server" Text=""  style="display:none"/>--%>

<asp:Button ID="Button1" runat="server" style="display:none" />
                <cc1:ModalPopupExtender ID="ModalPopupExtender_show_project_grid" runat="server" 
                    BackgroundCssClass="modalBackground" PopupControlID="pnl_show_grid_for_close_project" 
                  TargetControlID="Button1" CancelControlID="btn_close" >
                </cc1:ModalPopupExtender>
                <asp:Panel ID="pnl_show_grid_for_close_project" runat="server" BackColor="White" BorderColor="Blue" BorderStyle="Solid" BorderWidth="2" 
                    style="display:none" Width="600px" >
                    <h3 style="margin-left:30px;color:Blue;">
                     List of completed projects
                    </h3>
 <div style="margin-left:20px;">
 <asp:GridView ID="gv_Project_completed_list" runat="server" CellPadding="4"  
                            AutoGenerateColumns="false" ForeColor="#333333" GridLines="Both"  
                            Font-Names="Verdana" Font-Size="14px" 
                             onrowcommand="gv_Project_completed_list_RowCommand" 
         Font-Bold="True" >
                             <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                            <Columns>
                           <asp:TemplateField  ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_pcode" 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" Text='<%# Eval("PrID") %>' Visible="false"></asp:Label>
                              <asp:Label runat="server" ID="lbl_pname" Text='<%# Eval("PName") %>'></asp:Label>
                            </ItemTemplate>
                        
                                <ItemStyle Width="400px" />
                        
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Close Project"  ItemStyle-Width="100px">
                            <ItemTemplate>
                                    <asp:LinkButton ID="lnkClose" runat="server" CommandName="Close" Text="Close" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" OnClientClick="javascript : return confirm('Do you really want to close 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" Height="30px" />
                            <AlternatingRowStyle BackColor="White" />
                    
                    </asp:GridView>
                    <br />
                    
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <asp:Button ID="btn_close" runat="server" Text="Cancel" CssClass="myButton" />
                     <br />
                     </div>
</asp:Panel>


  
 
 </ContentTemplate>
 </asp:UpdatePanel>

   
</asp:Content>

