WebSite/AttdanInfo.aspx.cs

(开头部分) 13KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;
using System.IO;
using System.Text;
using BiDaoDian.Model;
using Common;
using BiDaoDian.BLL;

public partial class AttendanceInformationManager : System.Web.UI.Page
{
    AttdanInfoBLL _AttdanInfoBLL = new AttdanInfoBLL();
    AttInfoViewBLL _AttInfoViewBLL = new AttInfoViewBLL();
    MachineBLL _MachineBLL = new MachineBLL();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["user"] == null)
        {
            Response.Write("<script>alert('请先进行登录!');window.location='Login.aspx';</script>");
            return;
        }
        if (!IsPostBack)
        {
            InitDDL();
            UserModel user = (UserModel)Session["User"];
            if (user.UserRole == 3)
            {
                int userNo = user.UserNo;
                //民警只可查看自己个人信息
                this.SelectFile.Visible = false;
                this.LeadIn.Visible = false;
                this.UserName.Visible = false;
            }
            DatasBind();
            if (!(Request.QueryString["startTime"] == null && Request.QueryString["endTime"] == null && Request.QueryString["userName"] == null && Request.QueryString["tMNo"] == null))
            {
                DatasBindByCondition();
            }
        }

    }
    protected void LeadIn_Click(object sender, EventArgs e)
    {
        string path = Server.MapPath("~//uploadfiles//");
        bool canUpload = false;
        if (SelectFile.HasFile)
        {
            string fileName = SelectFile.FileName;
            string fileExtension = Path.GetExtension(fileName);
            if (fileExtension == ".txt" || fileExtension == ".TXT")
                canUpload = true;
            if (!canUpload)
            {
                Response.Write("<script>alert('请上传后缀为txt的记事本文档!');histroy.go(-1);</script>");
                return;
            }
后面还有 302 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。