WebSite/IndividualCenter/Import.aspx.cs

(开头部分) 4KB

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

using BLL;
using Common;
using System;
using System.Data;
using System.IO;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
namespace CRMSYS.IndividualCenter
{


    public partial class Import : Page
    {
        private string serviceID = "";
        private string userID = "";

        protected void ImageButton2_Click(object sender, EventArgs e)
        {
            this.serviceID = DESEncrypt.Decrypt(base.Request["srvid"].ToString());
            this.userID = base.Request["userid"].ToString();
            string shijian = DateTime.Now.Ticks.ToString();
            string type = this.ss.Value;
            if (Path.GetExtension(this.FileUpload1.PostedFile.FileName).ToString() != "")
            {
                Exception exp;
                string wenjianming = shijian + Path.GetExtension(this.FileUpload1.PostedFile.FileName);
                string FileNameStr = "";
                try
                {
                    FileNameStr = PublicMethod.UploadFileIntoDir_One(this.FileUpload1, wenjianming);
                }
                catch (Exception exception1)
                {
                    exp = exception1;
                    ScriptManager.RegisterClientScriptBlock(this.Page, base.GetType(), "call", "Error();", true);
                }
                if (wenjianming == FileNameStr)
                {
                    string fullpath = HttpContext.Current.Server.MapPath("../HNTCWLUploadFile/PublicManagement/") + wenjianming;
                    DataTable dt = new DataTable();
                    try
                    {
                        dt = NPOIHelper.GetImportUser(fullpath);
                        if (dt == null)
                        {
                            ScriptManager.RegisterClientScriptBlock(this.Page, base.GetType(), "call", "ModelError();", true);
                        }
                        else
                        {
                            int state = 0;
                            for (int i = 0; i < dt.Rows.Count; i++)
                            {
                                for (int j = 1; j < 3; j++)
                                {
                                    if (dt.Rows[i][j].ToString() == "")
                                    {
                                        state = 1;
                                    }
后面还有 54 行代码,购买后查看完整代码

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

AI 解读 AI

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

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