<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Crew_Company.aspx.cs" Inherits="VMT.Crew_Company" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style2 {
            width: 50%;
            height: 26px;
        }
        .auto-style3 {
            height: 26px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Crew Company
        </h1>
    </div>
    <div id="SubPageTitle">
        <!-- OPTIONAL SUB PAGE TITLE -->
      
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphMainContentPlaceHolder" runat="server">
     <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
     <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                       <div style="text-align:right;"><a href="default.aspx">Home</a> <strong>&#8249;&#8249;</strong> <a href="Administration.aspx">Administration</a> <strong>&#8249;&#8249;</strong> Crew (Company)</div>
    <div id="wrapper" class="clear">
        <div id="left">
            <fieldset class="masterform">
                <legend>Crew(Company) Detail</legend>
                <div style=" width: 100%; height:300px; ">
                    <table cellpadding="3" class="auto-style1">
                        <tr>
                            <td colspan="2"><strong>Add or Update Crew for Company</strong></td>
                        </tr>
                        <tr>
                            <td style="width:50%;">&nbsp;</td>
                            <td>
                                <asp:HiddenField ID="hdn_keyid" runat="server" />
                                <asp:HiddenField ID="hdn_role" runat="server" />
                                <asp:Button ID="btn_create" runat="server" Text="Create New" CssClass="FormButton" OnClick="btn_create_Click" />
                            </td>
                        </tr>
                        <tr>
                            <td class="auto-style2">Company</td>
                            <td class="auto-style3">
                                <asp:DropDownList ID="ddl_c0mpany" runat="server" AutoPostBack="True" OnDataBound="ddl_c0mpany_DataBound" OnSelectedIndexChanged="ddl_c0mpany_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%;">Crew Name</td>
                            <td>
                                <asp:TextBox ID="txt_EmployeeName" runat="server" MaxLength="30"></asp:TextBox>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%;">Crew Description</td>
                            <td>
                                <asp:TextBox ID="txt_txtempemailid" runat="server" MaxLength="50" AutoPostBack="True"></asp:TextBox>
                            </td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%; text-align:right;">
                                &nbsp;</td>
                            <td style="width:50%; text-align:left;">
                                &nbsp;</td>
                        </tr>
                       
                        <tr>
                            <td style="width:50%; text-align:right;">
                                <asp:Button ID="btn_add" runat="server" Text="Add New" CssClass="FormButton" OnClick="btn_add0_Click" />
                            </td>
                            <td style="width:50%; text-align:left;">
                                <asp:Button ID="btn_delete" runat="server"  Text="Delete" CssClass="FormButton" OnClick="btn_delete_Click" />
                                &nbsp;<asp:Button ID="btn_reset" runat="server"  Text="Reset" OnClick="btn_reset_Click" CssClass="FormButton" />
                            </td>
                        </tr>
                    </table>
                </div>
            </fieldset>
        </div>
        <div id="right">
            <fieldset class="masterform">
                <legend>Crew For Company</legend>
                <div style=" width: 100%; height:300px;  overflow-y: scroll;">
                    <table cellpadding="3" class="auto-style1">
                        <tr>
                            <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="width:50%;">&nbsp;</td>
                            <td>&nbsp;</td>
                        </tr>
                         <tr>
                            <td style="vertical-align:top;" colspan="2">
                                <asp:GridView ID="gdv_Company" runat="server" BorderColor="#014567" CellPadding="3"  Width="96%" OnRowCreated="gdv_Company_RowCreated" OnSelectedIndexChanging="gdv_Company_SelectedIndexChanging">
                                    <AlternatingRowStyle BackColor="#E9EFF2" />
                                    <Columns>
                                        <asp:TemplateField ShowHeader="False">
                                            <ItemTemplate>
                                                <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Select"><img src="resource_gallery/graphics/select.png" /></asp:LinkButton>
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle BackColor="#98C8DE" Font-Bold="True" />
                                     <SelectedRowStyle BackColor="#FFE98F" />
                                </asp:GridView>
                             </td>
                        </tr>
                        <tr>
                            <td style="width:50%; text-align:right;">
                                &nbsp;</td>
                            <td style="width:50%; text-align:left;">
                                &nbsp;</td>
                        </tr>
                    </table>
                </div>
            </fieldset>
        </div>
    </div>
                        </ContentTemplate>
            </asp:UpdatePanel>
</asp:Content>