<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Spray_EC_WA.aspx.cs" Inherits="VMT.Spray_EC_WA" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <style type="text/css">
        .auto-style2 {
            width: 100%;
            padding: 3px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphJavaScriptContentPlaceHolder" runat="server">
     <link rel="stylesheet" href="http://localhost:56693/code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
      <link rel="stylesheet" href="/resources/demos/style.css">
      <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
      <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
     <script type="text/javascript">
         $(document).ready(function () {
             pageLoad();
             Sys.WebForms.PageRequestManager.getInstance().add_endRequest(pageLoad);
         });
         function pageLoad() {
             $("#<%= txtTrimDate.ClientID %>").datepicker({
                dateFormat: 'mm-dd-yy',
                changeMonth: true,
                changeYear: true,
                gotoCurrent: true,
                yearRange: '-0:+0',
                constrainInput: false
            });
        }
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitleContentPlaceHolder" runat="server">
    <div id="CssPageTitle">
        <h1>
            Spray
            Event Code Maintenance
        </h1>
    </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 id="loaderdiv">
    <asp:updateprogress id="UpdateProgress1" runat="server" associatedupdatepanelid="UpdatePanel2" dynamiclayout="true">
                        <progresstemplate>

                           <img src="resource_gallery/graphics/loader.gif" class="ajax-loader">

                        </progresstemplate>
                    </asp:updateprogress>

                    </div>
            <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> Spray Event Code Maintenance</div>
             <div style="text-align:left; width: 100%;">
                    <fieldset class="masterform">
                        <div style=" width: 100%; height:30px; ">                                    
                            <table class="auto-style2">
                                <tr>
                                    <td style="width: 150px">Businesss Unit</td>
                                    <td>
                                        <asp:DropDownList ID="ddlBunit" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlBunit_SelectedIndexChanged" OnDataBound="ddlBunit_DataBound">
                                        </asp:DropDownList>
                                    </td>
                                    <%--<td>Year</td>
                                    <td><asp:DropDownList ID="ddlYear" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlYear_SelectedIndexChanged">
                                        </asp:DropDownList>
                                    </td>--%>
                                </tr>
                            </table>
                        </div>
                    </fieldset>
                </div>
            <div id="wrapper" class="clear">
                <div id="left" style="width:60%;">
                    <fieldset>
                        <legend>Event Code</legend>
                        <div style=" width: 100%; height:300px; ">
                            <table class="auto-style2" cellpadding="2">
                                <tr>
                                   <td>&nbsp;</td>
                                   <td>
                                       <asp:RadioButtonList ID="rblEventCode" runat="server" RepeatDirection="Horizontal" Width="150px" AutoPostBack="true" OnSelectedIndexChanged="rblEventCode_SelectedIndexChanged">
                                           <asp:ListItem Text=" Add New" Value="0"></asp:ListItem>
                                           <asp:ListItem Text=" Existing" Value="1" Selected="True"></asp:ListItem>
                                       </asp:RadioButtonList>
                                   </td>
                               </tr>
                                <tr>
                                    <td style="width: 25%">Event Code ID</td>
                                    <td style="width: 25%">
                                        <asp:DropDownList ID="ddlEventCode" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlEventCode_SelectedIndexChanged1"></asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%;"> Event Code </td>
                                    <td style="width: 25%">
                                        <asp:TextBox ID="txtEventCode" runat="server" AutoPostBack="true" OnTextChanged="txtEventCode_TextChanged"></asp:TextBox>
                                    </td>
                                </tr>
                                 <tr>
                                    <td style="width: 25%">Event Description</td>
                                    <td style="width: 25%">
                                        <asp:TextBox ID="txtEventDescription" runat="server"></asp:TextBox>
                                    </td>
                                </tr>          
                                  <tr>
                                      <td style="width: 25%">Cycle</td>
                                      <td style="width: 25%">
                                          <asp:DropDownList ID="ddlCycle" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCycle_SelectedIndexChanged">
                                          </asp:DropDownList>
                                      </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%">Cycle Year</td>
                                    <td style="width: 25%">
                                        <asp:DropDownList ID="ddlCycleYear" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlCycleYear_SelectedIndexChanged1">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%">Spray Year</td>
                                    <td style="width: 25%">
                                        <asp:DropDownList ID="ddlSprayYear" runat="server" AutoPostBack="true">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%">FSYT</td>
                                    <td style="width: 25%">
                                        <asp:TextBox ID="txtFSYT" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                  <tr>
                                    <td style="width: 25%">Project Spray Date</td>
                                    <td style="width: 25%">
                                        <asp:TextBox ID="txtTrimDate" runat="server" Enabled="false" ReadOnly="true"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%">District</td>
                                    <td style="width: 25%">
                                        <asp:DropDownList ID="ddlDistrict" runat="server"></asp:DropDownList>
                                    </td>
                                </tr>      
                                <tr>
                                    <td style="width: 25%">Comment</td>
                                    <td style="width: 25%">
                                        <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Width="251px"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 25%">&nbsp;</td>
                                    <td style="width: 25%">
                                        <asp:Button ID="btnSubmit" runat="server" CssClass="FormButton" OnClick="btnSubmit_Click1" Text="Submit" />
                                    </td>
                                </tr>
                                
                            </table>  
                        </div>
                    </fieldset>
                </div>
         
            </div>
          
    </ContentTemplate>
     </asp:UpdatePanel>
</asp:Content>

