admin/ChengJiTongJi.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.IO;
using org.in2bits.MyXls;
public partial class admin_ChengJiTongJi : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindList();
}
}
private void BindList()
{
string sql = "select a.id pid,b.id,a.PaperName,c.jidi,score,a.pici,b.StudentName,KaiKaoTime,studentid,a.ExamType,c.StudentNum,c.StudentSex,e.LessonName,d.jibie from tb_ExamPaper a,tb_score b,tb_Student c,tb_Student1 d,tb_Lesson e where a.id=b.paperID and b.studentid=c.StudentNum and c.id=d.sid AND a.KemuId=e.ID ";
if (KaiShiTime.Text.Trim() != "")
{
sql += " and KaiKaoTime>'" + KaiShiTime.Text.Trim() + " 0:00:00'";
}
if (JieShuTime.Text.Trim() != "")
{
sql += " and KaiKaoTime <'" + JieShuTime.Text.Trim() + " 23:59:59'";
}
if (jidi.Text.Trim() != "")
{
sql += " and jidi='" + jidi.Text.Trim() + "'";
}
if (pici.Text.Trim() != "")
{
sql += " and a.pici='" + pici.Text.Trim() + "'";
}
if (ename.Text != "")
{
sql += " and a.PaperName='" + ename.Text + "'";
}
if (DropDownList1.SelectedValue != "2")
{
sql += " and a.ExamType=" + DropDownList1.SelectedValue + "";
}
if (StuName.Text != "")
{
sql += " and b.StudentName like '%" + StuName.Text.Trim() + "%'";
}
sql += "order by KaiKaoTime desc";
DataTable dt = Exam.SqlHelper.ExecuteDataset(BaseClass.DBCon(), CommandType.Text, sql).Tables[0];
if (dt != null && dt.Rows.Count > 0)
{
Localize1.Text = "";
GridView1.DataSource = dt;
GridView1.DataBind();
后面还有 132 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
