private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here if (Session["Login"] != null) { // CMSMStruct.LoginStruct ls1=(CMSMStruct.LoginStruct)Session["Login"]; // if(ls1.strLimit=="CL003"||ls1.strLimit=="CL004") // { // this.SetErrorMsgPageBydir("对不起,你没有权限使用此功能!"); // return; // } if (!IsPostBack) { if (Request.QueryString.HasKeys()) { this.lblDeptID.Text = Request.QueryString["deptid"]; this.txtDept.Text = Request.QueryString["deptname"]; this.txtSchDate.Text = Request.QueryString["date"]; this.txtDept.ReadOnly = true; txtSchDate.ReadOnly = true; } this.FillDropDownList("tbCommCode", ddlClass, "vcCommSign ='EC'"); for (int j = 0; j <= 23; j++) { if (j < 10) { this.ddlInHour.Items.Add("0" + j.ToString()); this.ddlOutHour.Items.Add("0" + j.ToString()); } else { this.ddlInHour.Items.Add(j.ToString()); this.ddlOutHour.Items.Add(j.ToString()); } } this.ddlInMinute.Items.Add("00"); this.ddlInMinute.Items.Add("15"); this.ddlInMinute.Items.Add("30"); this.ddlInMinute.Items.Add("45"); this.ddlOutMinute.Items.Add("00"); this.ddlOutMinute.Items.Add("15"); this.ddlOutMinute.Items.Add("30"); this.ddlOutMinute.Items.Add("45"); Hashtable htapp = (Hashtable)Application["appconf"]; string strcons = (string)htapp["cons"]; ebu = new EmpBusi(strcons); DataTable dtout = ebu.GetAllEmpName(this.lblDeptID.Text.Trim(), this.txtSchDate.Text.Trim()); for (int i = 0; i < dtout.Rows.Count; i++) { this.ltbEmp.Items.Add(dtout.Rows[i]["vcEmpName"].ToString()); } } } else { Response.Redirect("../Exit.aspx"); } }