WELOA.Web/sb/admin/login_search_loss.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 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_loss : System.Web.UI.Page
{
private LS_IsPage Allowpages = new LS_IsPage();
private DateSetInformation dsinfo = new DateSetInformation();
private SB_Loss lossBLL = new SB_Loss();
private int nPage = 0;
private string strApplicantkinds = "";
private string strApplicanttime_End = "";
private string strApplicanttime_Star = "";
private string strChecker = "";
private string strDevicename = "";
private string strDevicenumber = "";
private string strFinalchecker = "";
private string strFinalchecktime_End = "";
private string strFinalchecktime_Star = "";
private string strLosscause = "";
private string strLossstate = "";
private string strManager = "";
private string strPageName = "login_search_loss.aspx";
private string strStaffname = "";
private string strStaffnumber = "";
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>");
后面还有 209 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
