資源簡介
ASP.NET MVC項目實戰網頁版音樂播放平臺源碼 數據庫為Oracle 鏈接方式為 ODAC 前端框架為bootstrap

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Web;
using?System.Web.Mvc;
using?MusicDB.Models;
namespace?MusicDB.Controllers
{
????public?class?HomeController?:?Controller
????{
????????//?GET:?Home
????????public?ActionResult?Index(string?user_id)
????????{
????????????
????????????DataAccess.CreateConn();
????????????List>?singers?=?new?List>(15);
????????????List?singers_of_albums?=?new?List(15);
????????????List>?singers_id?=?new?List>(15);
????????????List?creater?=?new?List(15);
????????????List?current?=?DataAccess.ViewAllSonglist();
????????????List?songLists?=?new?List();
????????????for?(int?i?=?0;?i?????????????{
????????????????if?(current[i].IsPrivate?==?“0“)
????????????????{
????????????????????songLists.Add(current[i]);
????????????????}
????????????}
????????????HomeMessage?message?=?new?HomeMessage
????????????{
????????????????songlist?=?songLists
????????????????creater?=creater
????????????????singers_of_albums=singers_of_albums
????????????????user?=?DataAccess.FindUserInfo(user_id)
????????????????albums?=?DataAccess.ViewAllAlbum()
????????????????songs?=?DataAccess.ViewAllSong()
????????????????singers?=?singers
????????};
????????????for?(int?i?=?0;?i?15;?i++)
????????????{
????????????????creater.Add(DataAccess.FindUserInfo(message.songlist[i].UserID));
????????????????singers_id.Add(DataAccess.FindSingerInfo_bySongID(message.songs[i].SongID));
????????????????singers_of_albums.Add(DataAccess.FindSingerInfo_byID(message.albums[i].SingerID));
????????????????List?list?=?new?List();
????????????????for?(int?j?=?0;?j?????????????????{
????????????????????Singer?S?=?DataAccess.FindSingerInfo_byID(singers_id[i][j]);
????????????????????S.SingerName?=?S.SingerName?+?“???“;
????????????????????list.Add(S);
????????????????}
????????????????singers.Add(list);
????????????}
????????????DataAccess.CloseConn();
????????????return?View(message);
????????}
????????[HttpPost]
????????[ValidateAntiForgeryToken]
????????public?ActionResult?Index(FormCollection?collection)
????????{
????????????string?user_id?=?collection[“user_id“];
????????????string?words?=?collection[“words“];
????????????return?RedirectToAction(“SearchSong“?“Search“new?{?id?=?user_id?words=?words?});
????????}
????????
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2535??2018-07-26?18:05??BS音樂播放平臺\Controllers\HomeController.cs
?????文件??????12509??2018-07-26?09:52??BS音樂播放平臺\Controllers\ManagerController.cs
?????文件??????16367??2018-07-26?16:52??BS音樂播放平臺\Controllers\MyMusicController.cs
?????文件???????4752??2018-07-25?16:28??BS音樂播放平臺\Controllers\OperationController.cs
?????文件???????4764??2018-07-26?15:58??BS音樂播放平臺\Controllers\PersonalMessageController.cs
?????文件???????1654??2018-07-26?15:16??BS音樂播放平臺\Controllers\RankController.cs
?????文件??????12187??2018-07-26?18:17??BS音樂播放平臺\Controllers\SearchController.cs
?????文件???????4524??2018-07-26?14:11??BS音樂播放平臺\Controllers\ShoppingController.cs
?????文件???????2732??2018-07-26?17:04??BS音樂播放平臺\Controllers\Sign_InController.cs
?????文件???????2951??2018-07-24?09:45??BS音樂播放平臺\Controllers\VIPController.cs
?????文件??????91464??2018-09-15?12:06??BS音樂播放平臺\Models\DataAccess.cs
?????文件???????3465??2018-07-24?14:50??BS音樂播放平臺\Models\EntityData.cs
?????文件????????475??2018-07-26?12:55??BS音樂播放平臺\Models\HomeMessage.cs
?????文件????????511??2018-07-24?22:58??BS音樂播放平臺\Models\ManagerMessage.cs
?????文件????????740??2018-07-25?14:10??BS音樂播放平臺\Models\PMessage.cs
?????文件????????588??2018-07-22?20:50??BS音樂播放平臺\Models\SearchMessage.cs
?????文件????????313??2018-07-26?10:55??BS音樂播放平臺\Models\ShoppingMessage.cs
?????文件????????152??2018-07-17?09:21??BS音樂播放平臺\Views\Home\About.cshtml
?????文件????????457??2018-07-17?09:21??BS音樂播放平臺\Views\Home\Contact.cshtml
?????文件??????70799??2018-07-26?18:53??BS音樂播放平臺\Views\Home\Index.cshtml
?????文件??????16348??2018-07-25?15:03??BS音樂播放平臺\Views\Manager\AddSong.cshtml
?????文件??????14768??2018-07-25?15:03??BS音樂播放平臺\Views\Manager\ErrorManage.cshtml
?????文件??????16486??2018-07-25?15:18??BS音樂播放平臺\Views\Manager\ModifySong.cshtml
?????文件???????1686??2018-07-25?23:36??BS音樂播放平臺\Views\Manager\UserBan.cshtml
?????文件??????14395??2018-07-25?23:24??BS音樂播放平臺\Views\Manager\UserManage.cshtml
?????文件??????13823??2018-07-25?12:41??BS音樂播放平臺\Views\Manager\ViewSong.cshtml
?????文件???????2160??2018-07-26?16:52??BS音樂播放平臺\Views\MyMusic\AddNewSong.cshtml
?????文件??????13381??2018-07-26?16:52??BS音樂播放平臺\Views\MyMusic\AlbumInfo.cshtml
?????文件???????2726??2018-07-26?16:52??BS音樂播放平臺\Views\MyMusic\Create_new_songlist.cshtml
?????文件??????17651??2018-07-26?17:38??BS音樂播放平臺\Views\MyMusic\Index.cshtml
............此處省略43個文件信息
- 上一篇:FTP客戶端C#.zip
- 下一篇:hadoop3.1.2@win64
評論
共有 條評論