using System.IO;
using System.Net;
using System.Text;
using System.Diagnostics;
using System.Text.RegularExpressions;
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
//从ftp上下载文件
private void Download(string filePath, string ImageSrc, string ImageName, string ftpServerIP, string
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
ftpUserName, string ftpPwd)
{
if (!Directory.Exists(filePath))
{
Directory.CreateDirectory(filePath);
}
using (FileStream OutputStream = new FileStream(filePath + "\\" + ImageName, FileMode.Create))
{
FtpWebRequest ReqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ImageSrc));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.Method = WebRequestMethods.Ftp.DownloadFile;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (FtpWebResponse response = (FtpWebResponse)ReqFTP.GetResponse())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (Stream FtpStream = response.GetResponseStream())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
long Cl = response.ContentLength;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
int bufferSize = 2048;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
int readCount;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
byte[] buffer = new byte[bufferSize];
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
readCount = FtpStream.Read(buffer, 0, bufferSize);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
while (readCount > 0)
{
OutputStream.Write(buffer, 0, readCount);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
readCount = FtpStream.Read(buffer, 0, bufferSize);
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FtpStream.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
response.Close();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
OutputStream.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
//从服务器上传文件到FTP上
private void UploadSmall(string sFileDstPath, string FolderName, string ftpServerIP, string ftpUserName,
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
string ftpPwd)
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FileInfo fileInf = new FileInfo(sFileDstPath);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FtpWebRequest reqFTP;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" + FolderName + "/" +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
fileInf.Name));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.KeepAlive = false;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.ContentLength = fileInf.Length;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
int buffLength = 2048;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
byte[] buff = new byte[buffLength];
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
int contentLen;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (FileStream fs = fileInf.OpenRead())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (Stream strm = reqFTP.GetRequestStream())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
contentLen = fs.Read(buff, 0, buffLength);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
while (contentLen != 0)
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
strm.Write(buff, 0, contentLen);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
contentLen = fs.Read(buff, 0, buffLength);
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
strm.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
fs.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
//删除服务器上的文件
private void DeleteWebServerFile(string sFilePath)
{
if (File.Exists(sFilePath))
{
File.Delete(sFilePath);
}
}
//删除FTP上的文件
private void DeleteFtpFile(string[] IName, string FolderName, string ftpServerIP, string ftpUserName, string
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
ftpPwd)
{
foreach (string ImageName in IName)
{
string[] FileList = GetFileList(FolderName, ftpServerIP, ftpUserName, ftpPwd);
for (int i = 0; i < FileList.Length; i++)
{
string Name = FileList[i].ToString();
if (Name == ImageName)
{
FtpWebRequest ReqFTP;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FolderName + "/" + ImageName));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.KeepAlive = false;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.Method = WebRequestMethods.Ftp.DeleteFile;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
ReqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (FtpWebResponse Response = (FtpWebResponse)ReqFTP.GetResponse())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
long size = Response.ContentLength;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (Stream datastream = Response.GetResponseStream())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (StreamReader sr = new StreamReader(datastream))
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
sr.ReadToEnd();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
sr.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
datastream.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
Response.Close();
}
}
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
//检查文件是否存在
public string[] GetFileList(string FolderName, string ftpServerIP, string ftpUserName, string ftpPwd)
{
string[] downloadFiles;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
StringBuilder result = new StringBuilder();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FtpWebRequest reqFTP;
try
{
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" + FolderName +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
"/"));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Method = WebRequestMethods.Ftp.ListDirectory;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
WebResponse response = reqFTP.GetResponse();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
StreamReader reader = new StreamReader(response.GetResponseStream());
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
string line = reader.ReadLine();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
while (line != null)
{
result.Append(line);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
result.Append("\n");
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
line = reader.ReadLine();
}
// to remove the trailing '\n'
result.Remove(result.ToString().LastIndexOf('\n'), 1);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reader.Close();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
response.Close();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
return result.ToString().Split('\n');
}
catch (Exception ex)
{
downloadFiles = null;
return downloadFiles;
}
}
//从客户端上传文件到FTP上
private void UploadFtp(HttpPostedFile sFilePath, string filename, string FolderName, string ftpServerIP,
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
string ftpUserName, string ftpPwd)
{
//获取的服务器路径
//FileInfo fileInf = new FileInfo(sFilePath);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FtpWebRequest reqFTP;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" + FolderName + "/" +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
filename));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.KeepAlive = false;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Method = WebRequestMethods.Ftp.UploadFile;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.ContentLength = sFilePath.ContentLength;
//设置缓存
int buffLength = 2048;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
byte[] buff = new byte[buffLength];
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
int contentLen;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (Stream fs = sFilePath.InputStream)
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (Stream strm = reqFTP.GetRequestStream())
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
contentLen = fs.Read(buff, 0, buffLength);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
while (contentLen != 0)
{
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
strm.Write(buff, 0, contentLen);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
contentLen = fs.Read(buff, 0, buffLength);
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
strm.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
fs.Close();
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
//创建目录
private void CreateDirectory(string FolderName, string ftpServerIP, string ftpUserName, string ftpPwd)
{
//创建日期目录
try
{
FtpWebRequest reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/" +
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FolderName));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.KeepAlive = false;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Method = WebRequestMethods.Ftp.MakeDirectory;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
FtpWebResponse response = (FtpWebResponse)reqFTP.GetResponse();
}
catch
{
ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('系统忙,请稍后再
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
试!');location.href=location.href;</script>");
}
}
//检查日期目录和文件是否存在
private static Regex regexName = new Regex(@"[^\s]*$", RegexOptions.Compiled);
private bool CheckFileOrPath(string FolderName, string ftpServerIP, string ftpUserName, string ftpPwd)
{
//检查一下日期目录是否存在
FtpWebRequest reqFTP = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://" + ftpServerIP + "/"));
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.UseBinary = true;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Credentials = new NetworkCredential(ftpUserName, ftpPwd);
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
reqFTP.Method = WebRequestMethods.Ftp.ListDirectoryDetails;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
Stream stream = reqFTP.GetResponse().GetResponseStream();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
using (StreamReader sr = new StreamReader(stream))
{
string line = sr.ReadLine();
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
while (!string.IsNullOrEmpty(line))
{
GroupCollection gc = regexName.Match(line).Groups;
if (gc.Count != 1)
{
throw new ApplicationException("FTP 返回的字串格式不正确");
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
string path = gc[0].Value;
if (path == FolderName)
{
return true;
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
line = sr.ReadLine();
}
}
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
return false;
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
}
}
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)