summary.aspx.cs

来自「人事管理系统」· CS 代码 · 共 48 行

CS
48
字号
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 + =
减小字号Ctrl + -
显示快捷键?