<%@ page title="" language="C#" masterpagefile="~/html/MasterPage.master" autoeventwireup="true" inherits="html_ProjectMaster, App_Web_chtwzywl" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI" tagprefix="asp" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
       <link href="../css/buttoncss.css" type="text/css" rel="Stylesheet"/>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>


 
    <style type="text/css">
        .style2
        {
            width: 100%;
        }
         .style34
     {
         width: 117px;
         height: 32px;
     }
     .regular-checkboxgrid1 
    {
	    -webkit-appearance: none;
    	background-color: #fafafa;
    	border: 1px solid #cacece;
    	box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
	    padding: 9px;
	    border-radius: 3px;
	    display: inline-block;
	    position: relative;
	    width: 110px;
	    overflow:auto;
	    height:100px;
        top: 0px;
        left: 0px;
     }
     .contactpanelcss
        {
        	width:65%;
        	margin:0px;
        	background-color:White;
        	border:6px solid ActiveBorder;
        	padding:5px;
        	margin-top:0px;
        	     	   	
        }   
    
         .shadow_five {
        background-color: #FFECCE;
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        -o-border-radius: 10px;
        -ms-border-radius: 10px;
        border-radius: 10px;
        -moz-box-shadow: 3px 3px 5px #B1A59A;
        -webkit-box-shadow: 3px 3px 5px #B1A59A;
        -o-box-shadow: 3px 3px 5px #B1A59A;
        -ms-box-shadow: 3px 3px 5px #B1A59A;
        box-shadow: 3px 3px 5px #B1A59A;
        padding: 10px;
        margin-bottom:10px;
        
    }
     .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;
        }
        .style36
        {
            height: 32px;
        }
         .shadow_five1 {
            background-color: #F2FFC6;
            -moz-border-radius: 10px;
            -webkit-border-radius: 10px;
            -o-border-radius: 10px;
            -ms-border-radius: 10px;
            border-radius: 10px;
            -moz-box-shadow: 3px 3px 5px #B1A59A;
            -webkit-box-shadow: 3px 3px 5px #B1A59A;
            -o-box-shadow: 3px 3px 5px #B1A59A;
            -ms-box-shadow: 3px 3px 5px #B1A59A;
            box-shadow: 3px 3px 5px #B1A59A;
            margin-bottom: 10px;
            width:100%;
        }
         .cssLoadingTimer
        {        	
        	/* filter:alpha(opacity=90);       	
        	opacity:0.7; */        	
        	text-align:center; 
        	position:fixed; 
        	margin:5% 0% 0px 30%; 
        	background-color:White;
          
        	width:300px;
        	height:150PX;
        	 background-color:#ffebcc;
        	
        
        }  
    </style>
    
    
   <script type="text/javascript">
       function ValidateCheckBoxList(sender, args) {
           var checkBoxList = document.getElementById("<%=ddl_employee11.ClientID %>");
           var checkboxes = checkBoxList.getElementsByTagName("input");
           var isValid = false;
           for (var i = 0; i < checkboxes.length; i++) {
               if (checkboxes[i].checked) {
                   isValid = true;
                   break;
               }
           }
           args.IsValid = isValid;
       }
</script>
    
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <asp:UpdateProgress ID="UpdateProgress1" runat="server"  
                           DynamicLayout="true"  >
                          <ProgressTemplate>
                          <div style="width:100%;">
                              <div class="cssLoadingTimer"  >
                              <p> Please wait...</p>
                                  <img id="Img1" alt="Loading..." src="../images/Regloader.gif" runat="server" style="margin-top:15px;" align="middle"  />
                                  </div>
                                  
                                  </div>
                          </ProgressTemplate>
                      </asp:UpdateProgress>
     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
<asp:Panel ID="Panel1" runat="server" Width="100%">  <%--BorderStyle="Groove"--%>
 <div class="p12" style="width:240px;" >
      <p style="font-family:Verdana; font-size:14px; margin-top:5px;color:White;font-weight:bold;padding-top:5px;">
     <b style="color:White;">&nbsp;&nbsp;Project Master</b> -   Add Project
      </p>
           </div>
    <table class="style2"  >
   
              <tr>
            <td >
                </td>
            <td  align="right"> 
                <asp:Label ID="Label4" runat="server" Font-Names="Verdana" Font-Size="12px"  Font-Bold="true" 
                    Text=" Client Name    "></asp:Label>
             </td>
             <td><b style="color:Red;">*</b>
                 </td>
            <td  colspan="2" align="justify">
                <asp:DropDownList ID="ddlCName" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="ddlCName_SelectedIndexChanged" 
                    DataTextField="CName" DataValueField="cid" 
                    AppendDataBoundItems="True" Width="200px">
                </asp:DropDownList>
 <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" InitialValue="-Select-" ControlToValidate="ddlCName" ErrorMessage="Select Client Name"
  ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
              
             </td>
          
        </tr>
              
          <tr>
            <td >
                </td>
            <td align="right" >
                <asp:Label ID="Label9" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" End User   " Font-Bold="true" ></asp:Label>
            </td>
            <td >
             <%--  <b style="color:Red;">*</b>--%>
            </td>
            <td colspan="2" >
               <asp:TextBox ID="txtenduser" runat="server" Height="22px" Width="202px"></asp:TextBox>
             <%--   <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                    ControlToValidate="txtenduser" ErrorMessage="Enter End User Name" ValidationGroup="1"></asp:RequiredFieldValidator>--%>
                </td>
             
        </tr>
                <tr>
            <td class="style36" >
                    </td>
            <td  align="right" class="style36">
                <asp:Label ID="Label6" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" Project Code   " Font-Bold="true" ></asp:Label>
            </td>
            <td class="style36" >
             
            </td>
            <td class="style36">
               <asp:TextBox ID="txtPCode" runat="server" Height="22px" Width="201px" Enabled="false"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtPCode" ErrorMessage="Enter Code" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
            </td>
            <td class="style34">
                </td>
        </tr>
         <tr>
            <td >
                </td>
            <td align="right" >
                <asp:Label ID="Label5" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" Project Name" Font-Bold="true" ></asp:Label>
            </td>
            <td >
               <b style="color:Red;">*</b>
            </td>
            <td colspan="2" >
               <asp:TextBox ID="txtPName" runat="server" Height="22px" Width="202px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtPName" ErrorMessage="Enter name" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                </td>
             
        </tr>
         <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        <asp:Label ID="Label2" runat="server" Font-Names="Verdana" Font-Size="12px" Font-Bold="true"  
                            Text="Select Project Head"></asp:Label>
                    </td>
                    <td >
                        <b style="color:Red;">*</b></td>
                    <td  colspan="3" class="style40">
                       <asp:DropDownList runat="server" ID="ddl_selectProjectManager" DataTextField="EName" DataValueField="EID" AppendDataBoundItems="true" >
                            
                            </asp:DropDownList>
                            <asp:RequiredFieldValidator runat="server" ID="rfv_employee" InitialValue="- Select Project Head -" ControlToValidate="ddl_selectProjectManager"
                             ErrorMessage="Select Project head" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                  
        </tr>
        
   <tr>
            <td >
                </td>
            <td align="right" >
                <asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="12px" 
                    Text=" Project  Team" Font-Bold="true" ></asp:Label>
            </td>
            <td >
               <b style="color:Red;">*</b>
            </td>
            <td colspan="3" >
                <div class="col-lg-10">
                            <div class="shadow_five1" 
                                style="height:130px;overflow:auto;width:210px;line-height:20px;">
                                <asp:CheckBoxList ID="ddl_employee11" runat="server" 
                                    DataSourceID="SqlDataSource2" DataTextField="EName" DataValueField="EID" 
                                    Font-Names="Verdana" Font-Size="12px">
                                </asp:CheckBoxList>
                                
                                
                                 
                                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:Project_monitorConnectionString %>" 
                                    SelectCommand="SELECT distinct [EID],[EName] FROM [EmployeeMaster] where ([user_id] = @user_id and working_status=1 ) order by [EName]">
                                    <SelectParameters>
                                        <asp:SessionParameter DefaultValue="user_id" Name="user_id" 
                                            SessionField="User_id" Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>
                            </div>
                        </div>
                        
                         <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="Select Team members" ClientValidationFunction="ValidateCheckBoxList"
                                 ValidationGroup="1" ForeColor="Red"></asp:CustomValidator>
                </td>
             
        </tr>


        
          <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Label ID="lbl_projectdesc" runat="server" Font-Names="Verdana" Font-Size="12px" 
                            Text="Description" Font-Bold="true" ></asp:Label>
                    </td>
                    <td align="right" class="style48">
                        </td>
                    <td align="justify" class="style40">
                        <asp:TextBox ID="txt_projectdesc" runat="server" TextMode="MultiLine"  Height="65px" 
                            Width="201px"></asp:TextBox>
                    </td>
                    <td class="style41">
                    </td>
        </tr>
         <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Label ID="lbl_projectcost" runat="server" Font-Names="Verdana" Font-Size="12px" 
                            Text="Labour Cost" Font-Bold="true" ></asp:Label>
                    </td>
                    <td  class="style48">
                
                        </td>
                    <td colspan="2" align="justify" class="style40">
                        <asp:TextBox ID="txt_projectcost" runat="server" Height="22" 
                            Width="101px"></asp:TextBox>
                             
                             <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers" TargetControlID="txt_projectcost">
                </cc1:FilteredTextBoxExtender>
                    </td>
                   
        </tr>
          <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Label ID="Label10" runat="server" Font-Names="Verdana" Font-Size="12px" 
                            Text="Supply Cost" Font-Bold="true" ></asp:Label>
                    </td>
                    <td  class="style48">
                
                        </td>
                    <td colspan="2" align="justify" class="style40">
                        <asp:TextBox ID="txtSupplyCost" runat="server" Height="22" 
                            Width="101px"></asp:TextBox>
                             
                             <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers" TargetControlID="txtSupplyCost">
                </cc1:FilteredTextBoxExtender>
                    </td>
                   
        </tr>
           <tr>
          
            <td colspan="2" align="right"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                 <asp:Label ID="Label7" runat="server" Text="Select Currency($/Rs.)" 
                     Font-Names="Verdana" Font-Size="12px" Font-Bold="true" ></asp:Label>
                    </td>
                <td  class="style48">
                    <b style="color:Red;">*</b></td>
            <td colspan="2" >
            
                 <asp:RadioButtonList ID="rb_currency" runat="server" Width="100px" Height="20px"  RepeatDirection="Horizontal"
                    >                   
                 <asp:ListItem Selected="True">Rs</asp:ListItem>             
                 <asp:ListItem>$</asp:ListItem>
                 </asp:RadioButtonList>
            
            </td>
            
                <td>
                    &nbsp;</td>
        </tr>
        
         <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Label ID="lbl_time" runat="server" Font-Names="Verdana" Font-Size="12px" 
                            Text="Start Date" Font-Bold="true" ></asp:Label>
                    </td>
                    <td >
                        <b style="color:Red;">*</b></td>
                    <td >
                        <asp:TextBox ID="txt_time" runat="server"  Height="22px" AutoPostBack="true"
                            Width="130px" ontextchanged="txt_time_TextChanged"></asp:TextBox>
                             <%--<cc1:CalendarExtender ID="txtJoinDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txt_time">
               </cc1:CalendarExtender>--%>
               
                 <cc1:CalendarExtender ID="txtDate_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txt_time">
                </cc1:CalendarExtender>
                              <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                       ControlToValidate="txt_time" ErrorMessage="Enter  Start Date" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                    </td>
                    <td class="style41">
                    </td>
        </tr>
           <tr>
                    <td class="style38">
                    </td>
                    <td align="right" class="style39">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                        <asp:Label ID="Label3" runat="server" Font-Names="Verdana" Font-Size="12px" 
                            Text="End Date" Font-Bold="true" ></asp:Label>
                    </td>
                    <td >
                        <b style="color:Red;">*</b></td>
                    <td >
                        <asp:TextBox ID="EndDate" runat="server"  Height="22px" AutoPostBack="true"
                              ontextchanged="EndDate_TextChanged"
                            Width="130px" ></asp:TextBox>
                                     
                 <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                    Enabled="True" TargetControlID="EndDate">
                </cc1:CalendarExtender>
                              <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                       ControlToValidate="EndDate" ErrorMessage="Enter  End Date" ValidationGroup="1" ForeColor="Red"></asp:RequiredFieldValidator>
                          <br />
                                                 <asp:Label ID="lblmsg" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label> 
                    </td>
                    <td class="style41">
                    </td>
        </tr>
        
         <tr>
                    <td class="style38">
                    </td>
                    <td align="right" >
                      
                        <asp:Label ID="Label1" runat="server" Font-Names="Verdana" Font-Size="12px" Font-Bold="true"  
                            Text="Completion Time"></asp:Label>
                    </td>
                    <td><b style="color:Red;">*</b>
                        </td>
                    <td class="style40" colspan="3">
                 
                        <asp:TextBox ID="txt_completion_time" runat="server" Enabled="false" Height="19px" style="text-align:Right"
                            Width="60px"></asp:TextBox>
                             <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers" TargetControlID="txt_completion_time">
                </cc1:FilteredTextBoxExtender>
                &nbsp;
                 <asp:Label ID="lblday" runat="server" Font-Names="Verdana" Font-Size="14px" Font-Bold="true" ForeColor="Red" 
                            Text="Days"></asp:Label>
                              
                    </td>
                  
        </tr>
        
        
        
        <tr>
            <td class="style38">
                &nbsp;</td>
            <td align="right" class="style39">
                &nbsp;</td>
            <td align="right" class="style48">
                &nbsp;</td>
            <td align="justify" class="style40">
             <asp:Button ID="btnSave" runat="server" CssClass="myButton" Text="Submit" 
                        OnClientClick="if (!Page_ClientValidate(1)){ return false; } this.disabled = true; this.value = 'Saving...';" 
                                UseSubmitBehavior="false" onclick="btnSave_Click" ValidationGroup="1" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      <asp:Button ID="btnShowAll" runat="server" CssClass="myButton" 
                     
                                UseSubmitBehavior="false" onclick="btnShowAll_Click" Text="Show All" />
                    
                     <asp:Label ID="lblInsert" runat="server" Font-Names="Verdana" Font-Size="14px" 
                    ForeColor="Red"></asp:Label> 
            </td>
            <td >
            
                &nbsp;</td>
        </tr>
       
        <tr>
            <td >
                &nbsp;</td>
            <td align="right" >
                &nbsp;</td>
            <td align="right">
                &nbsp;</td>
            <td align="justify" >
                <asp:LinkButton ID="lnl_go_projet_plan" runat="server" PostBackUrl="~/html/ProjectPlanningM.aspx" Visible="false" >Add project stages</asp:LinkButton>
                   
                    <br /><b> <a style="color:Red;  padding-right:20px; float:right;">* Indicates Compulsory Fields</a></b>
            </td>
            <td >
                &nbsp;</td>
        </tr>
    
     </table>
      </asp:Panel>
   
           
                

               


  <table width="100%" class="shadow_five">
     <tr>
     <td>
     
       
                    <div style="overflow: scroll;height:auto">
                    
                    <asp:GridView ID="gv_Project_details" runat="server" CellPadding="4" 
                            AutoGenerateColumns="false" ForeColor="#333333" GridLines="Both" AllowPaging="true"  
                            Font-Names="Verdana" Font-Size="12px" PageSize="20"
                            onrowcancelingedit="gv_Project_details_RowCancelingEdit1" 
                            onrowdeleting="gv_Project_details_RowDeleting" 
                            onrowediting="gv_Project_details_RowEditing1"  
                            onrowupdating="gv_Project_details_RowUpdating1" 
                            onrowcommand="gv_Project_details_RowCommand" 
                            onpageindexchanging="gv_Project_details_PageIndexChanging" 
                            onrowdatabound="gv_Project_details_RowDataBound" >
                             <RowStyle BackColor="#ffc9bb" ForeColor="#333333" />
                            <Columns>
                           <asp:TemplateField HeaderText="Code" ItemStyle-Width="100px">
                            <ItemTemplate>
                                <asp:Label runat="server" ID="lbl_pcode" Text='<%# Eval("PCode") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                                          <asp:Label runat="server" ID="lbl_pcode" Text='<%# Eval("PCode") %>'></asp:Label>

                            </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Project Name"  ItemStyle-Width="200px">
                            <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>
                            <EditItemTemplate>
                             <asp:Label runat="server" ID="lbl_prid" Text='<%# Eval("PrID") %>' Visible="false"></asp:Label>
                              <asp:TextBox runat="server" ID="txt_pname" Text='<%# Eval("PName") %>' BorderColor="Black" BorderWidth="1" TextMode="MultiLine" Width="200" ></asp:TextBox>

                            </EditItemTemplate>
                            </asp:TemplateField>
                                                   
                                     <asp:TemplateField HeaderText="Project team"  ItemStyle-Width="200px">
                            <ItemTemplate>
                              
                              <asp:Label runat="server" ID="lbl_pteam" Text='<%# Eval("Project_team") %>'></asp:Label>
                                <%--<asp:CheckBoxList ID="lbl_pteam" runat="server" Checked='<%#Eval("Project_team")%>' CssClass="regular-checkboxgrid1" Enabled="false"></asp:CheckBoxList> --%>
                            </ItemTemplate>
                            <EditItemTemplate>
                             
                             <%-- <asp:TextBox runat="server" ID="txt_pteam" Text='<%# Eval("Project_team") %>' BorderColor="Black" BorderWidth="1" TextMode="MultiLine" Width="200" ></asp:TextBox>--%>
                              <asp:CheckBoxList ID="chkprojectteam" runat="server"  DataSourceID="SqlDataSource2oiooo"  DataTextField="EName" DataValueField="EID"    CssClass="regular-checkboxgrid1" ></asp:CheckBoxList> 
                            <asp:SqlDataSource ID="SqlDataSource2oiooo" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:Project_monitorConnectionString %>" 
                                    SelectCommand="SELECT  [EID],[EName] FROM [EmployeeMaster] where ([user_id] = @user_id and working_status=1 ) order by [EName]">
                                    <SelectParameters>
                                        <asp:SessionParameter DefaultValue="user_id" Name="user_id" 
                                            SessionField="User_id" Type="Int32" />
                                    </SelectParameters>
                                </asp:SqlDataSource>

                            </EditItemTemplate>
                            </asp:TemplateField>                    
                                                   
                                                   
                            <asp:TemplateField HeaderText="End User"  ItemStyle-Width="200px">
                            <ItemTemplate>
                              
                              <asp:Label runat="server" ID="lbl_enduser" Text='<%# Eval("End_user") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                             
                              <asp:TextBox runat="server" ID="txt_enduser" Text='<%# Eval("End_user") %>' BorderColor="Black" BorderWidth="1"
                               TextMode="MultiLine" Width="200" ></asp:TextBox>

                            </EditItemTemplate>
                            </asp:TemplateField>                      
                                                   
                                                   
                             <asp:TemplateField HeaderText="Description"  ItemStyle-Width="350px">
                            <ItemTemplate>
                               <asp:Label runat="server" ID="lbl_project_desc" Text='<%# Eval("project_desc") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                                         <asp:TextBox runat="server" ID="txt_project_desc" Text='<%# Eval("project_desc") %>' BorderColor="Black" BorderWidth="1" TextMode="MultiLine" Width="330"></asp:TextBox>

                            </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Labour Cost"  ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                            
                               <asp:Label runat="server" ID="lbl_project_cost" Text='<%# Eval("project_total_cost") %>'></asp:Label>
                                <asp:Label runat="server" ID="lbl_currency" Text='<%# Eval("currency") %>'></asp:Label>
                                
                            </ItemTemplate>
                            <EditItemTemplate>
                           <asp:TextBox runat="server" ID="txt_project_cost" Text='<%# Eval("project_cost") %>' BorderColor="Black" Width="100px" BorderWidth="1"></asp:TextBox>

                            </EditItemTemplate>
                            </asp:TemplateField>
                            
                               <asp:TemplateField HeaderText="Supply Cost"  ItemStyle-Width="200px" ItemStyle-HorizontalAlign="Right">
                            <ItemTemplate>
                            
                               <asp:Label runat="server" ID="lbl_project_supplycost" Text='<%# Eval("supply_cost") %>'></asp:Label>
                                <asp:Label runat="server" ID="lbl_currency1" Text='<%# Eval("currency") %>'></asp:Label>
                                
                            </ItemTemplate>
                            <EditItemTemplate>
                           <asp:TextBox runat="server" ID="txt_project_cost1" Text='<%# Eval("supply_cost") %>' BorderColor="Black" Width="100px" BorderWidth="1"></asp:TextBox>

                            </EditItemTemplate>
                            </asp:TemplateField>
                           <asp:TemplateField HeaderText="Period"  ItemStyle-Width="100px">
                            <ItemTemplate>
                              <asp:Label runat="server" ID="lbl_time" Text='<%# Eval("time") %>'></asp:Label>&nbsp;<asp:Label runat="server" ID="lbl_project_period" Text='<% # Eval("project_period") %>'></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                             <asp:TextBox runat="server" ID="txt_time" Text='<%# Eval("time") %>' BorderColor="Black" BorderWidth="1" Width="30px" Enabled="false"></asp:TextBox>
                           
                            <asp:Label runat="server" ID="lbl_project_period1" Text='<% # Eval("project_period") %>' Visible="false"></asp:Label>

                            </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Start Date"  ItemStyle-Width="80px">
                            <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_pro_start_date" Text='<%# Eval("date_ddmmyy") %>' Width="80px"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                 <asp:TextBox runat="server" ID="txt_pro_start_date" Text='<%# Eval("S_DATE") %>' BorderColor="Black" Width="90px" BorderWidth="1" ></asp:TextBox>
                             <cc1:CalendarExtender ID="txtextender" runat="server" TargetControlID="txt_pro_start_date"></cc1:CalendarExtender>
                            </EditItemTemplate>
                            </asp:TemplateField>
 
 
 
 
                            <asp:TemplateField HeaderText="End Date"  ItemStyle-Width="80px">
                            <ItemTemplate>
                                   <asp:Label runat="server" ID="lbl_pro_end_date" Text='<%# Eval("enddate_ddmmyy") %>' Width="80px"></asp:Label>
                            </ItemTemplate>
                            <EditItemTemplate>
                                 <asp:TextBox runat="server" ID="txt_pro_end_date" Text='<%# Eval("End_Date") %>' BorderColor="Black" BorderWidth="1" Width="90px"></asp:TextBox>
                             <cc1:CalendarExtender ID="txtextender11" runat="server" TargetControlID="txt_pro_end_date" ></cc1:CalendarExtender>
                            </EditItemTemplate>
                            </asp:TemplateField>
 
           <asp:TemplateField HeaderText="Edit"  ItemStyle-Width="60px">
                            <ItemTemplate>
                               <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit" Text="Edit"></asp:LinkButton>
                            </ItemTemplate>
                            <EditItemTemplate>
                              <asp:LinkButton ID="lnkUpdate" runat="server" CausesValidation="true" CommandName="Update" Text="Update"></asp:LinkButton><br />
            <asp:LinkButton ID="lnkcancel" runat="server" CausesValidation="true" CommandName="Cancel" Text="Cancel" ></asp:LinkButton>
                            </EditItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Delete"  ItemStyle-Width="60px">
                            <ItemTemplate>
           <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Delete" Text="Delete" OnClientClick="javascript : return confirm('Do you really want to \ndelete the project?');">
           </asp:LinkButton>
                            </ItemTemplate>
                           </asp:TemplateField>
                             <%-- <asp:TemplateField HeaderText="Close Project"  ItemStyle-Width="60px">
                            <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>
                         
                            </asp:TemplateField>
                              <asp:TemplateField HeaderText="Approve plan"  ItemStyle-Width="60px">
                            <ItemTemplate>
                                    <asp:LinkButton ID="lnk_approved_plan" runat="server" CommandName="Approve" Text="Approve" CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" OnClientClick="javascript : return confirm('Do you really want to Approve project ?');">
                                         </asp:LinkButton>
                            </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>

    
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:Project_monitorConnectionString %>" 
                            SelectCommand="SELECT [PrID], [PName], [PCode], [project_desc], [project_cost],[supply_cost], [project_Time], [pro_startdate], [project_period] FROM [Project_master] WHERE ([user_id] = @user_id)">
                            <SelectParameters>
                                <asp:SessionParameter DefaultValue="User_id" Name="user_id" 
                                    SessionField="User_id" Type="Int32" />
                            </SelectParameters>
                        </asp:SqlDataSource>
    
       
     </div>
     
   
                
     </td>
     </tr>
     </table>
   
   
     </ContentTemplate>
</asp:UpdatePanel>
</asp:Content>

