routine update

This commit is contained in:
yubaolee
2015-05-24 23:23:26 +08:00
parent d2641d40fa
commit 5cf16393f5
12 changed files with 161 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
namespace OpenAuth.Repository.Repository namespace OpenAuth.Repository
{ {
public class BaseRepository public class BaseRepository
{ {

View File

@@ -54,8 +54,8 @@
<Compile Include="Mapping\UserMap.cs" /> <Compile Include="Mapping\UserMap.cs" />
<Compile Include="OpenAuthDBContext.cs" /> <Compile Include="OpenAuthDBContext.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Repository\BaseRepository.cs" /> <Compile Include="BaseRepository.cs" />
<Compile Include="Repository\UserRepository.cs" /> <Compile Include="UserRepository.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\OpenAuth.Domain\OpenAuth.Domain.csproj"> <ProjectReference Include="..\OpenAuth.Domain\OpenAuth.Domain.csproj">
@@ -70,6 +70,7 @@
</None> </None>
<None Include="packages.config" /> <None Include="packages.config" />
</ItemGroup> </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.

View File

@@ -3,7 +3,7 @@ using System.Linq;
using OpenAuth.Domain.Interface; using OpenAuth.Domain.Interface;
using OpenAuth.Domain.Model; using OpenAuth.Domain.Model;
namespace OpenAuth.Repository.Repository namespace OpenAuth.Repository
{ {
public class UserRepository :BaseRepository, IUserRepository public class UserRepository :BaseRepository, IUserRepository
{ {

View File

@@ -2,7 +2,7 @@
using OpenAuth.App; using OpenAuth.App;
using OpenAuth.App.DTO; using OpenAuth.App.DTO;
using OpenAuth.Domain.Service; using OpenAuth.Domain.Service;
using OpenAuth.Repository.Repository; using OpenAuth.Repository;
namespace OpenAuth.UnitTest namespace OpenAuth.UnitTest
{ {

View File

@@ -2,7 +2,7 @@
using OpenAuth.App; using OpenAuth.App;
using OpenAuth.App.DTO; using OpenAuth.App.DTO;
using OpenAuth.Domain.Service; using OpenAuth.Domain.Service;
using OpenAuth.Repository.Repository; using OpenAuth.Repository;
namespace OpenAuth.Web.Controllers namespace OpenAuth.Web.Controllers
{ {

View File

@@ -1,8 +1,4 @@
using System; using System.Web.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace OpenAuth.Web.Controllers namespace OpenAuth.Web.Controllers
{ {

View File

@@ -16,5 +16,10 @@ namespace OpenAuth.Web.Controllers
return PartialView(response); return PartialView(response);
} }
public ActionResult List()
{
return View();
}
} }
} }

View File

@@ -266,6 +266,7 @@
<ItemGroup> <ItemGroup>
<None Include="Views\Account\Login.cshtml" /> <None Include="Views\Account\Login.cshtml" />
<Content Include="Views\Button\List.cshtml" /> <Content Include="Views\Button\List.cshtml" />
<Content Include="Views\Menu\List.cshtml" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>

View File

@@ -2,7 +2,7 @@
<ul class="breadcrumb"> <ul class="breadcrumb">
<li><i class="icon-home"></i> <a href="#">菜单管理</a><span class="divider"><i class="icon-angle-right"></i></span></li> <li><i class="icon-home"></i> <a href="#">按钮管理</a><span class="divider"><i class="icon-angle-right"></i></span></li>
</ul><!--.breadcrumb--> </ul><!--.breadcrumb-->

View File

@@ -26,16 +26,15 @@
</a> </a>
</li> </li>
} }
<li><a href="#" id="menuLoadMenus"><i class="icon-double-angle-right"></i> 菜单管理</a></li>
<li><a href="#" id="menuLoadButtons"><i class="icon-double-angle-right"></i> 按钮管理</a></li>
<li> <li>
<a href="#" class="dropdown-toggle"> <a href="#" class="dropdown-toggle">
<i class="icon-file"></i> <i class="icon-file"></i>
<span>Other Pages</span> <span>其他</span>
<b class="arrow icon-angle-down"></b> <b class="arrow icon-angle-down"></b>
</a> </a>
<ul class="submenu"> <ul class="submenu">
<li><a href="#" onclick="loadMenus();"><i class="icon-double-angle-right"></i> 菜单管理</a></li>
<li><a href="invoice.html"><i class="icon-double-angle-right"></i> 按钮管理</a></li>
<li><a href="login.html"><i class="icon-double-angle-right"></i> Login & Register</a></li> <li><a href="login.html"><i class="icon-double-angle-right"></i> Login & Register</a></li>
<li><a href="error-404.html"><i class="icon-double-angle-right"></i> Error 404</a></li> <li><a href="error-404.html"><i class="icon-double-angle-right"></i> Error 404</a></li>
<li><a href="error-500.html"><i class="icon-double-angle-right"></i> Error 500</a></li> <li><a href="error-500.html"><i class="icon-double-angle-right"></i> Error 500</a></li>
@@ -48,9 +47,18 @@
</div><!--/#sidebar--> </div><!--/#sidebar-->
<script type="text/javascript"> <script type="text/javascript">
function loadMenus() { $(document).ready(function() {
$("#menuLoadButtons").click(function () {
$.get('@Url.Action("List","Button")', function (data, status) { $.get('@Url.Action("List","Button")', function (data, status) {
$("#main-content").html(data); $("#main-content").html(data);
}); });
} });
$("#menuLoadMenus").click(function () {
$.get('@Url.Action("List","Menu")', function (data, status) {
$("#main-content").html(data);
});
});
});
</script> </script>

View File

@@ -0,0 +1,127 @@
<div id="breadcrumbs">
<ul class="breadcrumb">
<li><i class="icon-home"></i> <a href="#">菜单管理</a><span class="divider"><i class="icon-angle-right"></i></span></li>
</ul><!--.breadcrumb-->
</div><!--#breadcrumbs-->
<div id="page-content" class="clearfix">
<div class="row-fluid">
<!-- PAGE CONTENT BEGINS HERE -->
<div class="row-fluid">
<div class="span12">
<table id="table_bug_report" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th class="center">
<label><input type="checkbox" /><span class="lbl"></span></label>
</th>
<th>Domain</th>
<th>Price</th>
<th class="hidden-480">Clicks</th>
<th class="hidden-phone"><i class="icon-time hidden-phone"></i> Update</th>
<th class="hidden-480">Status</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td class='center'>
<label><input type='checkbox' /><span class="lbl"></span></label>
</td>
<td><a href='#'>ace.com</a></td>
<td>$45</td>
<td class='hidden-480'>3,330</td>
<td class='hidden-phone'>Feb 12</td>
<td class='hidden-480'><span class='label label-warning'>Expiring</span></td>
<td>
<div class="inline position-relative">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-only"></i></button>
<ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
<li><a href="#" class="tooltip-success" data-rel="tooltip" title="Edit" data-placement="left"><span class="green"><i class="icon-edit"></i></span></a></li>
<li><a href="#" class="tooltip-warning" data-rel="tooltip" title="Flag" data-placement="left"><span class="blue"><i class="icon-flag"></i></span> </a></li>
<li><a href="#" class="tooltip-error" data-rel="tooltip" title="Delete" data-placement="left"><span class="red"><i class="icon-trash"></i></span> </a></li>
</ul>
</div>
</td>
</tr>
<tr>
<td class='center'>
<label><input type='checkbox' /><span class="lbl"></span></label>
</td>
<td><a href='#'>base.com</a></td>
<td>$35</td>
<td class='hidden-480'>2,595</td>
<td class='hidden-phone'>Feb 18</td>
<td class='hidden-480'><span class='label label-success'>Registered</span></td>
<td>
<div class="inline position-relative">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-only"></i></button>
<ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
<li><a href="#" class="tooltip-success" data-rel="tooltip" title="Edit" data-placement="left"><span class="green"><i class="icon-edit"></i></span></a></li>
<li><a href="#" class="tooltip-warning" data-rel="tooltip" title="Flag" data-placement="left"><span class="blue"><i class="icon-flag"></i></span> </a></li>
<li><a href="#" class="tooltip-error" data-rel="tooltip" title="Delete" data-placement="left"><span class="red"><i class="icon-trash"></i></span> </a></li>
</ul>
</div>
</td>
</tr>
<tr>
<td class='center'>
<label><input type='checkbox' /><span class="lbl"></span></label>
</td>
<td><a href='#'>max.com</a></td>
<td>$60</td>
<td class='hidden-480'>4,400</td>
<td class='hidden-phone'>Mar 11</td>
<td class='hidden-480'><span class='label label-warning'>Expiring</span></td>
<td>
<div class="inline position-relative">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-only"></i></button>
<ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
<li><a href="#" class="tooltip-success" data-rel="tooltip" title="Edit" data-placement="left"><span class="green"><i class="icon-edit"></i></span></a></li>
<li><a href="#" class="tooltip-warning" data-rel="tooltip" title="Flag" data-placement="left"><span class="blue"><i class="icon-flag"></i></span> </a></li>
<li><a href="#" class="tooltip-error" data-rel="tooltip" title="Delete" data-placement="left"><span class="red"><i class="icon-trash"></i></span> </a></li>
</ul>
</div>
</td>
</tr>
<tr>
<td class='center'>
<label><input type='checkbox' /><span class="lbl"></span></label>
</td>
<td><a href='#'>best.com</a></td>
<td>$75</td>
<td class='hidden-480'>6,500</td>
<td class='hidden-phone'>Apr 03</td>
<td class='hidden-480'><span class='label label-inverse arrowed-in'>Flagged</span></td>
<td>
<div class="inline position-relative">
<button class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown"><i class="icon-cog icon-only"></i></button>
<ul class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">
<li><a href="#" class="tooltip-success" data-rel="tooltip" title="Edit" data-placement="left"><span class="green"><i class="icon-edit"></i></span></a></li>
<li><a href="#" class="tooltip-warning" data-rel="tooltip" title="Flag" data-placement="left"><span class="blue"><i class="icon-flag"></i></span> </a></li>
<li><a href="#" class="tooltip-error" data-rel="tooltip" title="Delete" data-placement="left"><span class="red"><i class="icon-trash"></i></span> </a></li>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</div><!--/span-->
</div><!--/row-->
<!-- PAGE CONTENT ENDS HERE -->
</div><!--/row-->
</div><!--/#page-content-->

View File

@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013 # Visual Studio 2013
VisualStudioVersion = 12.0.21005.1 VisualStudioVersion = 12.0.21005.1
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1 Presentation(用户接口层)", "1 Presentation(用户接口层)", "{57649E80-38FC-421D-82E1-BE71A786F762}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "1 Presentation(用户UI)", "1 Presentation(用户UI)", "{57649E80-38FC-421D-82E1-BE71A786F762}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "2 Application(应用层)", "2 Application(应用层)", "{757BB00A-46B6-4B9B-9331-D6B60BE92E05}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "2 Application(应用层)", "2 Application(应用层)", "{757BB00A-46B6-4B9B-9331-D6B60BE92E05}"
EndProject EndProject
@@ -23,7 +23,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAuth.Infrastructure", "
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAuth.UnitTest", "OpenAuth.UnitTest\OpenAuth.UnitTest.csproj", "{2E6B5B73-7757-43F0-8AC8-3030F7C191B8}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAuth.UnitTest", "OpenAuth.UnitTest\OpenAuth.UnitTest.csproj", "{2E6B5B73-7757-43F0-8AC8-3030F7C191B8}"
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5 Repository", "5 Repository", "{7A38939E-FC9B-44A9-BD3D-E0CE438624E6}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "5 Repository(仓储)", "5 Repository(仓储)", "{7A38939E-FC9B-44A9-BD3D-E0CE438624E6}"
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAuth.Repository", "OpenAuth.Repository\OpenAuth.Repository.csproj", "{E8DF8DEA-E2CF-4BDB-8F4F-3F8205B0E03A}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenAuth.Repository", "OpenAuth.Repository\OpenAuth.Repository.csproj", "{E8DF8DEA-E2CF-4BDB-8F4F-3F8205B0E03A}"
EndProject EndProject