📄 deptinfo.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeptInfo.aspx.cs" Inherits="Module_Employee_ProRes_DeptInfo" %>
<!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>
</head>
<body style="text-align: center; background-image: url(../../Images/SysSkin/deptinfo.jpg); background-repeat: no-repeat;">
<form id="form1" runat="server">
<div>
<br />
<br />
<table style="width: 600px; height: 243px" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" rowspan="2" style="vertical-align: top; height: 167px; text-align: center">
<asp:Panel ID="Panel3" runat="server" Width="125px">
<table cellpadding="0" cellspacing="0" style="width: 600px">
<tr>
<td colspan="3" style="height: 32px; width: 623px;">
<table cellpadding="0" cellspacing="0" style="width: 600px">
<tr>
<td style="width: 100px; height: 23px">
<span style="font-size: 9pt">查找类别</span></td>
<td style="width: 120px; height: 23px; text-align: left">
<asp:DropDownList ID="dropClass" runat="server" Width="120px" Font-Size="9pt">
<asp:ListItem>部门ID</asp:ListItem>
<asp:ListItem>部门名称</asp:ListItem>
<asp:ListItem>部门经理</asp:ListItem>
</asp:DropDownList></td>
<td style="width: 100px; height: 23px">
<span style="font-size: 9pt">关键字</span></td>
<td style="width: 120px; height: 23px; text-align: left">
<asp:TextBox ID="txtKeyWord" runat="server" Font-Size="9pt" Width="120px"></asp:TextBox></td>
<td style="height: 23px; width: 24px;">
<asp:Button ID="btnFind" runat="server" OnClick="btnFind_Click" Text="查找" Font-Size="9pt" /></td>
<td style="height: 23px; width: 110px;">
<asp:LinkButton ID="lnkbtnAdd" runat="server" Font-Size="9pt" Font-Underline="False"
ForeColor="#FF3333" OnClick="lnkbtnAdd_Click1" Visible="False">添加新部门</asp:LinkButton></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" style="height: 19px; width: 623px;">
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
Font-Size="9pt" Width="600px" OnPageIndexChanging="GridView1_PageIndexChanging">
<Columns>
<asp:BoundField DataField="ID" HeaderText="部门ID" />
<asp:BoundField DataField="DepName" HeaderText="部门名称" />
<asp:BoundField DataField="DepManager" HeaderText="部门经理" />
<asp:BoundField DataField="DepPhone" HeaderText="部门电话" />
<asp:TemplateField HeaderText="建立时间">
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("DepBasetime") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("DepBasetime","{0:yyyy-M-d}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="DeptAllInfo.aspx?ID={0}"
HeaderText="查看详情" Text="查看" />
</Columns>
<EmptyDataTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("DepBasetime","{0:yyyy-M-d}") %>'></asp:Label>
</EmptyDataTemplate>
</asp:GridView>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="Panel1" runat="server" Height="50px" Visible="False" Width="600px">
<table cellpadding="0" cellspacing="0" style="width: 600px">
<tr>
<td colspan="4" style="height: 15px">
</td>
</tr>
<tr>
<td colspan="4" style="height: 19px">
<span style="font-size: 16pt"></span></td>
</tr>
<tr>
<td style="width: 100px; height: 17px">
<span style="font-size: 9pt">部门名称</span></td>
<td style="font-size: 12pt; width: 200px; height: 17px; text-align: left">
<asp:TextBox ID="txtDeptName" runat="server" MaxLength="20"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtDeptName"
ErrorMessage="部门名称不能为空">*</asp:RequiredFieldValidator></td>
<td style="font-size: 9pt; width: 100px; color: #000000; height: 17px">
<span>部门经理</span></td>
<td style="font-size: 12pt; width: 203px; height: 17px; text-align: left">
<asp:DropDownList ID="DropDownList1" runat="server" Width="154px">
</asp:DropDownList></td>
</tr>
<tr style="font-size: 12pt">
<td style="height: 15px">
<span style="font-size: 9pt">部门电话</span></td>
<td style="font-size: 12pt; height: 15px; text-align: left">
<asp:TextBox ID="txtDeptPhone" runat="server" MaxLength="20"></asp:TextBox></td>
<td style="font-size: 12pt; height: 15px">
<span style="font-size: 9pt">部门地址</span></td>
<td style="font-size: 12pt; width: 203px; height: 15px; text-align: left">
<asp:TextBox ID="txtDeptAddress" runat="server" MaxLength="400"></asp:TextBox></td>
</tr>
<tr style="font-size: 12pt">
<td style="height: 19px">
<span style="font-size: 9pt">部门邮编</span></td>
<td style="font-size: 12pt; height: 19px; text-align: left">
<asp:TextBox ID="txtPostCard" runat="server" MaxLength="20"></asp:TextBox></td>
<td style="font-size: 12pt; height: 19px">
<span style="font-size: 9pt">建立时间</span></td>
<td style="font-size: 12pt; width: 203px; height: 19px; text-align: left">
<asp:TextBox ID="txtBaseTime" runat="server"></asp:TextBox>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="txtBaseTime"
ErrorMessage="格式:yyyy-mm-dd" Operator="DataTypeCheck" Type="Date" Width="3px">*</asp:CompareValidator></td>
</tr>
<tr style="font-size: 12pt">
<td style="height: 20px">
<span style="font-size: 9pt">部门概述</span></td>
<td colspan="3" rowspan="2" style="text-align: left">
<asp:TextBox ID="txtDescript" runat="server" Height="200px" MaxLength="500"
TextMode="MultiLine" Width="448px"></asp:TextBox></td>
</tr>
<tr>
<td style="height: 180px">
</td>
</tr>
<tr>
<td colspan="4" rowspan="1" style="text-align: center; height: 16px;">
<asp:Button ID="btnOK" runat="server" Font-Size="9pt" Text="提交" OnClick="btnOK_Click" />
<input id="Reset1" style="font-size: 9pt" type="reset" value="重置" />
<asp:Button ID="btnBack" runat="server" Font-Size="9pt" OnClick="btnBack_Click" Text="返回" CausesValidation="False" /></td>
</tr>
<tr>
<td colspan="4" rowspan="1" style="height: 15px; text-align: center">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" Font-Size="9pt"
ShowMessageBox="True" ShowSummary="False" />
</td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -