1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using HNWD.Pregrant.WebService;
- using HNWD.Pregrant.Model;
- using System.Text;
- using HNWD.Pregrant.DataAccess;
- using HNWD.Pregrant.Common;
- using HNWD.Pregrant.BusinessLogic;
- using System.IO;
- namespace HNWD.Pregrant.WebService.MgrCSharp
- {
- public partial class GetWD_ZoneFileList : PageBase
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- string SoundFileDir = Request.PhysicalApplicationPath + @"MP3\";
- if(Directory.Exists(SoundFileDir))
- {
- Directory.CreateDirectory(SoundFileDir);
- }
- MP3FileExt mp3FileExt = new MP3FileExt();
-
- DirectoryInfo mDirInfo = new DirectoryInfo(SoundFileDir);
- foreach(FileInfo mFileInfo in mDirInfo.GetFiles("*.*"))
- {
- MP3File mp3File = new MP3File();
- mp3File.FileName = mFileInfo.Name;
- mp3File.FileSize = mFileInfo.Length;
-
- mp3FileExt.Mp3FileList.Add(mp3File);
- }
- this.Response.Write(JsonHelper.SerializeWithSuffix(mp3FileExt));
- }
-
- }
- }
|