<%@ Page language="c#" Codebehind="Department.aspx.cs" AutoEventWireup="false" Inherits="WebOCRM.Employee.Department" %>
<%@ Register TagPrefix="uc1" TagName="Css" Src="../include/Css.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>StarSuit 部门</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="javascript" src="../js/JScript.js"></script>
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Form1" method="post" runat="server">
			<uc1:Css id="Css1" runat="server"></uc1:Css>
			<TABLE width="100%" border="0" cellpadding="0" cellspacing="1">
				<TR>
					<TD class="WsdnOrgTitle1" align="left">
						<asp:Label id="Label1" runat="server">公司各部门</asp:Label>&nbsp;</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo">
						<TABLE width="100%" border="0" cellpadding="0" cellspacing="1">
							<TR>
								<TD>
									<asp:Label id="Label2" runat="server" Visible="False">部门编号</asp:Label>
									<asp:TextBox id="TextBox1" runat="server" Width="90px" Visible="False"></asp:TextBox></TD>
								<TD>
									<asp:Label id="Label3" runat="server">部门名称</asp:Label>
									<asp:TextBox id="TextBox2" runat="server" Width="90px"></asp:TextBox></TD>
								<TD>
									<asp:Label id="Label5" runat="server">部门经理</asp:Label>
									<asp:TextBox id="TextBox3" runat="server" Width="90px"></asp:TextBox></TD>
								<TD></TD>
								<TD>
									<asp:Button id="Button1" runat="server" Text="搜索"></asp:Button>
									<asp:Button id="Button2" runat="server" Text="添加部门"></asp:Button></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD class="WsdnOrgInfo">
						<asp:DataGrid id="DataGrid1" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True"
							PageSize="25" AllowSorting="True">
							<ItemStyle CssClass="WsdnOrgInfo"></ItemStyle>
							<HeaderStyle CssClass="WsdnOrgTitle1"></HeaderStyle>
							<Columns>
								<asp:TemplateColumn HeaderText="选择">
									<ItemTemplate>
										<INPUT type="radio" onclick='selectdeptment("<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Name"))%>")' name='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Name"))%>' title='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Name"))%>' value='<%#String.Format("{0}", DataBinder.Eval(Container.DataItem, "Name"))%>'>
									</ItemTemplate>
								</asp:TemplateColumn>
								<asp:BoundColumn DataField="Name" HeaderText="部门名称"></asp:BoundColumn>
								<asp:BoundColumn DataField="Manager" HeaderText="部门经理"></asp:BoundColumn>
								<asp:BoundColumn DataField="Phone" HeaderText="电话"></asp:BoundColumn>
								<asp:BoundColumn DataField="Fax" HeaderText="传真"></asp:BoundColumn>
								<asp:BoundColumn DataField="Address" HeaderText="地址"></asp:BoundColumn>
								<asp:BoundColumn DataField="Postnum" HeaderText="邮编"></asp:BoundColumn>
								<asp:BoundColumn DataField="Btime" HeaderText="成立时间"></asp:BoundColumn>
								<asp:HyperLinkColumn Text="察看" Target="_self" DataNavigateUrlField="DepartMentCode" DataNavigateUrlFormatString="DepartmentEdit.aspx?id={0}"
									HeaderText="察看"></asp:HyperLinkColumn>
								<asp:HyperLinkColumn Text="删除" DataNavigateUrlField="DepartMentCode" DataNavigateUrlFormatString="DepartmentDelete.aspx?id={0}"
									HeaderText="删除"></asp:HyperLinkColumn>
							</Columns>
							<PagerStyle CssClass="WsdnOrgTitle1" Mode="NumericPages"></PagerStyle>
						</asp:DataGrid>
						<asp:Label id="Lgrid" runat="server"></asp:Label>
					</TD>
				</TR>
				<TR>
					<TD align="right">&nbsp;&nbsp;&nbsp;&nbsp;</TD>
				</TR>
			</TABLE>
		</form>
	</body>
</HTML>
