WELOA.BLL/WEL/LS_xls.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;
using WELOA.Model;
using LSDAL_SQL;

namespace LSBLL
{
    public class LS_xls
    {
        
        private ls_xls xlsBLL = new ls_xls();

        
        public void delfile(string strPath)
        {
            FileSetInformation FileSetInformation = new FileSetInformation();
            if (strPath != "")
            {
                try
                {
                    FileSetInformation.imgFiles = new DirectoryInfo(strPath).GetFiles();
                    if (FileSetInformation.imgFiles.Count<FileInfo>() > 0)
                    {
                        for (int i = 0; i < FileSetInformation.imgFiles.Count<FileInfo>(); i++)
                        {
                            File.Delete(strPath + @"\" + FileSetInformation.imgFiles[i].ToString());
                        }
                    }
                }
                catch (Exception exception)
                {
                    new ls_exception().insexception("LS_System.cs delfile", exception.Message);
                }
            }
        }

        public DateSetInformation uploadfile_xls(string FileName)
        {
            return this.xlsBLL.uploadfile_xls(FileName);
        }

        public Polytechnic Write_xls(DataSet ds, string filePath)
        {
            if (File.Exists(filePath))
            {
                File.Delete(filePath);
            }
            return this.xlsBLL.Write_xls(ds, filePath);
        }

        public Polytechnic Write_xls_wage(DataSet ds, string filePath)
        {
            if (File.Exists(filePath))
            {
                File.Delete(filePath);
            }
后面还有 18 行代码,解锁后查看完整代码

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

AI 解读

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

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