CheckInReport.aspx.cs
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:1k
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Collections.Generic;
- 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;
- public partial class Articles_CheckInReport : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- LoginLogic.MatchLoad("../", "Articles_CheckInReport");
- if (!IsPostBack)
- {
- DropLoadSet();
- }
- }
- public void DropLoadSet()
- {
- //登记表示
- List<EnumList> list = EnumGet.DengJiGetEnum();
- for (int i = 0; i < list.Count; i++)
- {
- KeyValue_DJBS.Items.Add(list[i].Text);
- }
- KeyValue_DJBS.SelectedIndex = KeyValue_DJBS.Items.Count - 1;
- }
- protected void Button1_Click(object sender, EventArgs e)
- {
- string SqlStr = "";
- SqlStr += "DJBS like '" + RP.SDot(KeyValue_DJBS.Text) + "%' and";
- SqlStr += " WP ='" + RP.SDot(KeyValue_WP.Text) + "'";
- int ISL1 = 0;
- int ISL2 = 0;
- if (int.TryParse(KeyValue_SL1.Text, out ISL1) && int.TryParse(KeyValue_SL2.Text, out ISL2))
- {
- SqlStr += " and (SL between " + ISL1.ToString() + " and " + ISL2.ToString() + ")";
- }
- SqlStr = Server.UrlEncode(SqlStr);
- Response.Redirect("CheckInTable.aspx?TiaoJian=" + SqlStr);
- }
- }