📄 summary.aspx.cs
字号:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class web_CheckLeave_Summary : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
txtStartTime.Text = DateTime.Now.AddMonths(-1).ToString("yyyy/M/d");
txtEndTime.Text = DateTime.Now.AddDays(1).ToString("yyyy/M/d");
pnlChooseDept.Visible = true;
string strsql = "select 部门名称 from 部门表 ";
SqlConnection conn = db.mysqll();
SqlCommand cmd = new SqlCommand(strsql,conn);
SqlDataAdapter da = new SqlDataAdapter(strsql, conn);
DataSet ds = new DataSet();
da.Fill(ds, "部门编号");
cmbDeptList.DataSource = ds.Tables["部门编号"];
conn.Close();
}
protected void btnSearch_Click(object sender, EventArgs e)
{
DateTime a = Convert.ToDateTime(txtStartTime.Text.ToString());
DateTime b = Convert.ToDateTime(txtEndTime.Text.ToString());
}
protected void cmbDeptList_SelectedIndexChanged(object sender, EventArgs e)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -