資源簡(jiǎn)介
asp.net mvc企業(yè)管理系統(tǒng)項(xiàng)目開(kāi)發(fā)源碼
mvc4+easyui+三層
代碼片段和文件信息
using?Itcast.CMS.Model;
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?Itcast.CMS.BLL
{
???public?class?NewInfoService
????{
???????DAL.NewInfoDal?NewInfoDal?=?new?DAL.NewInfoDal();
?????///?
?????///?獲取分頁(yè)數(shù)據(jù)
?????///?
?????///?當(dāng)前頁(yè)碼值
?????///?每頁(yè)顯示的記錄數(shù)
?????///?
???????public?List?GetPageList(int?pageIndexint?pageSize)
???????{
???????????int?start?=?(pageIndex?-?1)?*?pageSize?+?1;
???????????int?end?=?pageIndex?*?pageSize;
???????????List?list?=?NewInfoDal.GetPageList(start?end);
???????????return?list;
???????}
???????///?
???????///?獲取總的頁(yè)數(shù)
???????///?
???????///?
???????///?
???????public?int?GetPageCount(int?pageSize)
???????{
???????????int?recordCount?=?NewInfoDal.GetRecordCount();
??????????int?pageCount=Convert.ToInt32(Math.Ceiling((double)recordCount?/?pageSize));
??????????return?pageCount;
???????}
???????public?NewInfo?GetModel(int?id)
???????{
???????????return?NewInfoDal.GetModel(id);
???????}
???????///?
???????///?刪除一條記錄
???????///?
???????///?
???????///?
???????public?bool?DeleteInfo(int?id)
???????{
???????????return?NewInfoDal.DeleteInfo(id)>0;
???????}
???????public?bool?AddInfo(NewInfo?newInfo)
???????{
???????????return?NewInfoDal.AddInfo(newInfo)?>?0;
???????}
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱(chēng)
-----------?---------??----------?-----??----
?????目錄???????????0??2014-11-24?22:25??代碼資料\
?????文件?????????511??2014-11-24?22:24??代碼資料\AjaxFormSubmit使用demo.txt
?????目錄???????????0??2014-11-18?20:13??代碼資料\Itcast.CMS\
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\
?????文件????????5120??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.BLL.dll
?????文件???????15872??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.BLL.pdb
?????文件????????9728??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.DAL.dll
?????文件???????22016??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.DAL.pdb
?????文件????????6144??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.Model.dll
?????文件????????7680??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Debug\Itcast.CMS.Model.pdb
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\bin\Release\
?????文件????????2905??2014-11-20?21:24??代碼資料\Itcast.CMS\Itcast.CMS.BLL\Itcast.CMS.BLL.csproj
?????文件????????1662??2014-11-24?21:26??代碼資料\Itcast.CMS\Itcast.CMS.BLL\NewInfoService.cs
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\
?????文件????????6701??2014-11-24?00:12??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????2667??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\Itcast.CMS.BLL.csproj.FileListAbsolute.txt
?????文件????????8747??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\Itcast.CMS.BLL.csprojResolveAssemblyReference.cache
?????文件????????5120??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\Itcast.CMS.BLL.dll
?????文件???????15872??2014-11-24?22:14??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\Itcast.CMS.BLL.pdb
?????文件???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
?????文件???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
?????文件???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\obj\Debug\TempPE\
?????目錄???????????0??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\Properties\
?????文件????????1348??2014-11-18?20:15??代碼資料\Itcast.CMS\Itcast.CMS.BLL\Properties\AssemblyInfo.cs
?????文件?????????442??2014-11-18?21:25??代碼資料\Itcast.CMS\Itcast.CMS.BLL\UserInfoService.cs
?????目錄???????????0??2014-11-18?20:17??代碼資料\Itcast.CMS\Itcast.CMS.Common\
?????目錄???????????0??2014-11-18?20:17??代碼資料\Itcast.CMS\Itcast.CMS.Common\bin\
............此處省略2460個(gè)文件信息
評(píng)論
共有 條評(píng)論