From 2a26192cd9e22e6549ea08e2343824c9dc08ad52 Mon Sep 17 00:00:00 2001 From: dathlin Date: Mon, 24 Jul 2017 10:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=BB=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 软件系统浏览器模版/Views/Home/Index.cshtml | 8 ++--- .../Views/Shared/_Layout.cshtml | 13 ++++++-- .../Views/Shared/_LoginPartial.cshtml | 31 ++++++++++++++++--- 3 files changed, 42 insertions(+), 10 deletions(-) diff --git a/软件系统浏览器模版/Views/Home/Index.cshtml b/软件系统浏览器模版/Views/Home/Index.cshtml index 32e1dd9..8810cc0 100644 --- a/软件系统浏览器模版/Views/Home/Index.cshtml +++ b/软件系统浏览器模版/Views/Home/Index.cshtml @@ -3,14 +3,14 @@ }
-

ASP.NET

-

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.

-

Learn more »

+

C-S 软件系统架构设计框架

+

本框架是一个免费开源的框架系统,集成了C-S和B-S架构设计,采用了统一的模型机制,快速便捷的开发C-B-S混合系统,也可以选择中间的一个模式。

+

Learn more »

-

Getting started

+

准备开始

ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and gives you full control over markup diff --git a/软件系统浏览器模版/Views/Shared/_Layout.cshtml b/软件系统浏览器模版/Views/Shared/_Layout.cshtml index 8dd973f..daeca0f 100644 --- a/软件系统浏览器模版/Views/Shared/_Layout.cshtml +++ b/软件系统浏览器模版/Views/Shared/_Layout.cshtml @@ -17,7 +17,7 @@ - @Html.ActionLink("应用程序名称", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) + @Html.ActionLink(CommonLibrary.Resource.StringResouce.SoftName, "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })

diff --git a/软件系统浏览器模版/Views/Shared/_LoginPartial.cshtml b/软件系统浏览器模版/Views/Shared/_LoginPartial.cshtml index af72c5c..8dcb61c 100644 --- a/软件系统浏览器模版/Views/Shared/_LoginPartial.cshtml +++ b/软件系统浏览器模版/Views/Shared/_LoginPartial.cshtml @@ -1,4 +1,27 @@ - - \ No newline at end of file +@using 软件系统浏览器模版.Models +@using CommonLibrary + + +@{ + if (Session[SessionItemsDescription.UserAccount] == null) + { + + } + else + { + UserAccount user = Session[软件系统浏览器模版.Models.SessionItemsDescription.UserAccount] as UserAccount; + + using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" })) + { + @Html.AntiForgeryToken() + + + } + } +}