WELOA.Web/sb/admin/login_search_return.aspx.cs

(开头部分) 10KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using LSBLL;
using WELOA.Model;
using SBBLL;
using System.IO;
using System.Text;

namespace Web.sb.admin
{
    public partial class login_search_return : System.Web.UI.Page
    {
        
        private LS_IsPage Allowpages = new LS_IsPage();
       
        private DateSetInformation dsinfo = new DateSetInformation();
      
        private SB_Lendandreturn lendandreturnBLL = new SB_Lendandreturn();
        private int nPage = 0;
      
        private string strCategories = "";
        private string strDevicename = "";
        private string strDevicenumber = "";
        private string strManager = "";
        private string strPageName = "login_search_return.aspx";
        private string strReceiptid = "";
        private string strReturntime_End = "";
        private string strReturntime_Star = "";
        private string strStaffname = "";
        private string strStaffnumber = "";
        private string strType = "";
        private SB_System systemBLL = new SB_System();
      
        private Polytechnic trinfo = new Polytechnic();
        private LS_xls xlsBLL = new LS_xls();

        
        protected void btExcel_Click(object sender, EventArgs e)
        {
            string path = base.Server.MapPath(@"\") + "temp";
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            string filePath = string.Concat(new object[] { path, @"\", DateTime.Now.ToString("yyyyMMddHHmmss"), new Random().Next(0x270f), ".xls" });
            try
            {
                if (this.xlsBLL.Write_xls(this.selectDate(), filePath).nException > 0)
                {
                    this.Page.ClientScript.RegisterStartupScript(base.GetType(), "", "<script>alert('创建文件异常,请重试。')</script>");
                }
                else
                {
                    using (FileStream stream = new FileStream(filePath, FileMode.OpenOrCreate))
                    {
后面还有 180 行代码,解锁后查看完整代码

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

AI 解读

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

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