<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DeptAdd.aspx.cs" Inherits="InfoPath.Admin.DeptAdd" %>

<%@ Register src="../Include/Css.ascx" tagname="Css" tagprefix="uc1" %>

<%@ Register src="../Include/UserSelect.ascx" tagname="UserSelect" tagprefix="uc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <script src="../js/jscalendar.js" type="text/javascript"></script>
<script src="../JS/JS.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:Css ID="Css1" runat="server" />
    <TABLE width="100%">
  <TR class="WsdnOrgInfo1">
	<TD>
	<asp:Button class="buttons" ID="btnSubmit" runat="server" Text="" onclick="btnSubmit_Click" />
	&nbsp;<asp:Button class="buttons" ID="btnDelete" runat="server" onclick="btnDelete_Click" 
            Text="Delete" Visible="False" />
&nbsp;<asp:Button class="buttons" ID="btnBack" runat="server" Text="Button" onclick="btnBack_Click" />

	<asp:Label ID="lblMsg" runat="server" Text="" ForeColor=Red></asp:Label>
	</TD>
  </TR>
  <TR class="WsdnOrgTitle">
	<TD><b>
        <asp:Label ID="titAddDept" runat="server" Text=""></asp:Label></b>
    </TD>
  </TR>
  <TR>
	<TD>
	<TABLE width="100%">
  <TR class="WsdnOrgInfo">
	<TD>
        <asp:Label ID="lblDeptID" runat="server" Text="Label"></asp:Label>
        </TD>
	<TD>
        <asp:TextBox ID="DeptID" runat="server" MaxLength="15"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="DeptID" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
      </TD>
	<TD>
	        <asp:Label ID="lblDeptName" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD><asp:TextBox ID="DeptName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="DeptName" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
      </TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD>
        <asp:Label ID="lblDescription" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD><asp:TextBox ID="Description" runat="server"></asp:TextBox></TD>
	<TD>
	        <asp:Label ID="lblCreateDate" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD><asp:TextBox ID="CreateDate" runat="server"  onclick="new Calendar().show(this);"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
            ControlToValidate="CreateDate" ErrorMessage="RequiredFieldValidator">*</asp:RequiredFieldValidator>
      </TD>
  </TR>
  <TR class="WsdnOrgInfo">
	<TD>
	        <asp:Label ID="lblCorpID" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD>
        <asp:DropDownList ID="ddlCorpID" runat="server" AutoPostBack="True" 
            ontextchanged="ddlCorpID_TextChanged">
        </asp:DropDownList>
    </TD>
	<TD>
	        <asp:Label ID="lblBranchID" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD>
        <asp:DropDownList ID="ddlBranchID" runat="server" AutoPostBack="True" 
            ontextchanged="ddlBranchID_TextChanged">
        </asp:DropDownList>
        &nbsp;<asp:ImageButton ID="imbBranchID" runat="server" 
            ImageUrl="~/Icon/edit.png" ToolTip="Refresh" Width="20px" onclick="imbBranchID_Click" />
    </TD>
  </TR>
  <TR class="WsdnOrgInfo1">
	<TD>
	        <asp:Label ID="lblDeptFatherID" runat="server" Text="Label"></asp:Label>

	</TD>
	<TD>
        <asp:DropDownList ID="ddlDeptFatherID" runat="server">
        </asp:DropDownList>
    </TD>
<TD> 
	<asp:Label ID="lblManager" runat="server" Text="Label"></asp:Label>
	</TD>
	<TD>
        <uc2:UserSelect ID="UserSelect1" runat="server" />
      </TD>
  </TR>
  </TABLE>
	</TD>
  </TR>

  <TR class="WsdnOrgInfo1">
	<TD>	<asp:Button class="buttons" ID="btnSubmit1" runat="server" Text="" 
            onclick="btnSubmit1_Click" />
            &nbsp;<asp:Button class="buttons" ID="btnDelete0" runat="server" onclick="btnDelete0_Click" 
            Text="Delete" Visible="False" />
&nbsp;<asp:Button class="buttons" ID="btnBack1" runat="server" Text="Button" 
            onclick="btnBack1_Click" />
</TD>
  </TR>
  </TABLE>
    </div>
    </form>
</body>
</html>
