📄 search.aspx.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using UDS.Components;
namespace UDS.SubModule.Staff
{
/// <summary>
/// Search 的摘要说明。
/// </summary>
public partial class Search : System.Web.UI.Page
{
protected void Page_Load(object sender, System.EventArgs e)
{
if(!Page.IsPostBack)
{
table_Other.Visible = false;
BindPosition();
}
}
#region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
}
#endregion
private void BindPosition()
{
Database db = new Database();
SqlDataReader dr;
db.RunProc("SP_Ext_GetPosition",out dr);
ddl_Position.DataSource = dr;
ddl_Position.DataTextField = "Position_Name";
ddl_Position.DataValueField = "Position_ID";
ddl_Position.DataBind();
ddl_Position.Items.Insert(0,new ListItem("全部","0"));
}
protected void lbtn_Others_Click(object sender, System.EventArgs e)
{
table_Other.Visible = !table_Other.Visible;
if(table_Other.Visible == true)
{
lbtn_Others.Text = "其它查询<<<";
}
else
{
lbtn_Others.Text = "其它查询>>>";
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -