⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filefind.aspx.cs

📁 OA系统源码 办公应用软件源码 asp.net 开发
💻 CS
字号:
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.Collections.Generic;
using MyOffice.Models;
using MyOffice.BLL;

public partial class File_FileFind : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void lnkbtnOption_Click(object sender, EventArgs e)
    {
        pnlOption.Visible = true;
    }
    protected void imgbtnSearch_Click(object sender, ImageClickEventArgs e)
    {
        if (txtFileName.Text == "" && txtContainWords.Text == "" && txtCreateUser.Text == "" && txtBeginTime.Text == "" && txtEndTime.Text == "")
        {
            Response.Write("<script>alert('请填写搜索信息');</script>");
        }
        else {
            string MessageName = txtFileName.Text;
            string FuMessageName = txtContainWords.Text;
            string user = txtCreateUser.Text;
            string begin = txtBeginTime.Text;
            string end = txtEndTime.Text;
            gvFilesInfo.Visible = true;
            gvFilesInfo.DataSource = FileBLL.SeFindFile(MessageName, FuMessageName, user, begin, end);
            gvFilesInfo.DataBind();
        }
        

    }

    protected void gvFilesInfo_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        string name = e.CommandName;
        int fileid = Convert.ToInt32(e.CommandArgument);
        if (name.Trim().Equals("detail")) {
            gvFilesInfo.Visible = false;
            pnlFileDetail.Visible = true;
            FileInfoModel flimin = FileBLL.SeleFileId(fileid);
            if (flimin != null) {
                lblFileName.Text = flimin.FileName;
                lblFilePath.Text = flimin.FilePath;
                txtRemark.Text = flimin.Remark;
                lblCreateDate.Text = flimin.CreateDate + "";
                lblFileOwner.Text = flimin.Userinmo.UserName;
                gvAccessoryFileInfo.DataSource = FileBLL.SeleFileidZi(fileid);
                gvAccessoryFileInfo.DataBind();
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -