()
32 | {
33 | // 示例:新增一个默认的超级管理员
34 | new UserAccount()
35 | {
36 | UserName="admin",
37 | Password="123456",
38 | Factory="总公司",
39 | RegisterTime=DateTime.Now,
40 | LastLoginTime=DateTime.Now,
41 | LoginEnable=true,
42 | Grade=AccountGrade.SuperAdministrator,
43 | ForbidMessage="该帐号已被停用",
44 | LoginFrequency=0,
45 | LastLoginIpAddress="",
46 | }
47 | }
48 | );
49 |
50 | ///
51 | /// 角色信息管理器
52 | ///
53 | public static RoleAssign ServerRoles { get; set; } = new RoleAssign();
54 |
55 | }
56 |
57 | ///
58 | /// 一个扩展的用户账户示例,代替服务器和客户端的账户类即可
59 | /// 也可以直接在源代码中扩展
60 | ///
61 | public class UserAccountEx : UserAccount
62 | {
63 | ///
64 | /// 用户的年龄
65 | ///
66 | public int Age { get; set; } = 0;
67 | ///
68 | /// 用户的家庭住址
69 | ///
70 | public string HomeAddress { get; set; } = "";
71 | }
72 | }
73 |
--------------------------------------------------------------------------------
/软件系统服务端模版/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/软件系统服务端模版/packages.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/design.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/design.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server1.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server2.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server3.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server4.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server4.png
--------------------------------------------------------------------------------
/软件系统服务端模版/screenshots/server5.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统服务端模版/screenshots/server5.png
--------------------------------------------------------------------------------
/软件系统浏览器模版/App_Start/BundleConfig.cs:
--------------------------------------------------------------------------------
1 | using System.Web;
2 | using System.Web.Optimization;
3 |
4 | namespace 软件系统浏览器模版
5 | {
6 | public class BundleConfig
7 | {
8 | // For more information on bundling, visit https://go.microsoft.com/fwlink/?LinkId=301862
9 | public static void RegisterBundles(BundleCollection bundles)
10 | {
11 | bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
12 | "~/Scripts/jquery-{version}.js"));
13 |
14 | bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
15 | "~/Scripts/jquery.validate*"));
16 |
17 | // 使用要用于开发和学习的 Modernizr 的开发版本。然后,当你做好
18 | // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
19 | bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
20 | "~/Scripts/modernizr-*"));
21 |
22 | bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
23 | "~/Scripts/bootstrap.js",
24 | "~/Scripts/respond.js"));
25 |
26 | bundles.Add(new StyleBundle("~/Content/css").Include(
27 | "~/Content/bootstrap.css",
28 | "~/Content/site.css"));
29 | }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/App_Start/FilterConfig.cs:
--------------------------------------------------------------------------------
1 | using System.Web;
2 | using System.Web.Mvc;
3 |
4 | namespace 软件系统浏览器模版
5 | {
6 | public class FilterConfig
7 | {
8 | public static void RegisterGlobalFilters(GlobalFilterCollection filters)
9 | {
10 | filters.Add(new HandleErrorAttribute());
11 | }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/App_Start/RouteConfig.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Routing;
7 |
8 | namespace 软件系统浏览器模版
9 | {
10 | public class RouteConfig
11 | {
12 | public static void RegisterRoutes(RouteCollection routes)
13 | {
14 | routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
15 |
16 | routes.MapRoute(
17 | name: "Default",
18 | url: "{controller}/{action}/{id}",
19 | defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
20 | );
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Content/Site.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 50px;
3 | padding-bottom: 20px;
4 | }
5 |
6 | /* Set padding to keep content from hitting the edges */
7 | .body-content {
8 | padding-left: 15px;
9 | padding-right: 15px;
10 | }
11 |
12 | /* Override the default bootstrap behavior where horizontal description lists
13 | will truncate terms that are too long to fit in the left column
14 | */
15 | .dl-horizontal dt {
16 | white-space: normal;
17 | }
18 |
19 | /* Set width on the form input elements since they're 100% wide by default */
20 | input,
21 | select{
22 | max-width: 280px;
23 | }
24 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Content/StyleAccordion.css:
--------------------------------------------------------------------------------
1 |
2 | a:hover, a:focus {
3 | text-decoration: none;
4 | outline: none;
5 | }
6 |
7 | #accordion .panel {
8 | border: none;
9 | box-shadow: none;
10 | border-radius: 0;
11 | margin: 0 0 15px 10px;
12 | }
13 |
14 | #accordion .panel-heading {
15 | padding: 0;
16 | border-radius: 30px;
17 | }
18 |
19 | #accordion .panel-title a {
20 | display: block;
21 | padding: 12px 20px 12px 50px;
22 | background: #ebb710;
23 | font-size: 18px;
24 | font-weight: 600;
25 | color: #fff;
26 | border: 1px solid transparent;
27 | border-radius: 30px;
28 | position: relative;
29 | transition: all 0.3s ease 0s;
30 | }
31 |
32 | #accordion .panel-title a.collapsed {
33 | background: #fff;
34 | color: #0d345d;
35 | border: 1px solid #ddd;
36 | }
37 |
38 | #accordion .panel-title a:after,
39 | #accordion .panel-title a.collapsed:after {
40 | content: "\f107";
41 | font-family: fontawesome;
42 | width: 55px;
43 | height: 55px;
44 | line-height: 55px;
45 | border-radius: 50%;
46 | background: #ebb710;
47 | font-size: 25px;
48 | color: #fff;
49 | text-align: center;
50 | border: 1px solid transparent;
51 | box-shadow: 0 3px 10px rgba(0, 0, 0, 0.58);
52 | position: absolute;
53 | top: -5px;
54 | left: -20px;
55 | transition: all 0.3s ease 0s;
56 | }
57 |
58 | #accordion .panel-title a.collapsed:after {
59 | content: "\f105";
60 | background: #fff;
61 | color: #0d345d;
62 | border: 1px solid #ddd;
63 | box-shadow: none;
64 | }
65 |
66 | #accordion .panel-body {
67 | padding: 20px 25px 10px 9px;
68 | background: transparent;
69 | font-size: 14px;
70 | color: #8c8c8c;
71 | line-height: 25px;
72 | border-top: none;
73 | position: relative;
74 | }
75 |
76 | #accordion .panel-body p {
77 | padding-left: 25px;
78 | border-left: 1px dashed #8c8c8c;
79 | }
80 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Controllers/ShareController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using 软件系统浏览器模版.Models;
7 |
8 | namespace 软件系统浏览器模版.Controllers
9 | {
10 |
11 |
12 | /******************************************************************************
13 | *
14 | * Create Time:2017年8月18日 17:44:06
15 | * Description:一个用于共享控制器的实现,可以实现一些模块,代码重用、
16 | * 目前主要包含了消息的分部视图
17 | *
18 | *****************************************************************************/
19 |
20 |
21 |
22 |
23 |
24 | public class ShareController : Controller
25 | {
26 | public ActionResult Message(MessageBoxStyle style, string message)
27 | {
28 | ViewData["alertMessage"] = message;
29 | ViewData["Guid"] = Guid.NewGuid().ToString("N");
30 | switch (style)
31 | {
32 | case MessageBoxStyle.success: return PartialView("_MessageSuccessPartial");
33 | case MessageBoxStyle.info: return PartialView("_MessageInfoPartial");
34 | case MessageBoxStyle.warning: return PartialView("_MessageWarningPartial");
35 | default: return PartialView("_MessageDangerPartial");
36 | }
37 | }
38 |
39 |
40 |
41 |
42 | }
43 | }
--------------------------------------------------------------------------------
/软件系统浏览器模版/Controllers/ShareFilesController.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 |
7 | namespace 软件系统浏览器模版.Controllers
8 | {
9 | public class ShareFilesController : Controller
10 | {
11 |
12 |
13 |
14 |
15 | }
16 | }
--------------------------------------------------------------------------------
/软件系统浏览器模版/Global.asax:
--------------------------------------------------------------------------------
1 | <%@ Application Codebehind="Global.asax.cs" Inherits="软件系统浏览器模版.MvcApplication" Language="C#" %>
2 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Global.asax.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 | using System.Web.Mvc;
6 | using System.Web.Optimization;
7 | using System.Web.Routing;
8 |
9 | namespace 软件系统浏览器模版
10 | {
11 | public class MvcApplication : System.Web.HttpApplication
12 | {
13 | protected void Application_Start()
14 | {
15 | AreaRegistration.RegisterAllAreas();
16 | FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
17 | RouteConfig.RegisterRoutes(RouteTable.Routes);
18 | BundleConfig.RegisterBundles(BundleTable.Bundles);
19 |
20 | //错误记录
21 | AppDomain.CurrentDomain.UnhandledException += ClientsLibrary.UserClient.CurrentDomain_UnhandledException;
22 | }
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Models/Account/ModelAccount.cs:
--------------------------------------------------------------------------------
1 | using CommonLibrary;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Web;
6 | using System.Web.Mvc;
7 | using System.Web.Routing;
8 |
9 | namespace 软件系统浏览器模版.Models.Account
10 | {
11 | public class ModelAccount
12 | {
13 | }
14 |
15 | ///
16 | /// 验证系统是否登录成功的特性
17 | ///
18 | public class AuthorizeUserAttribute : AuthorizeAttribute
19 | {
20 | public override void OnAuthorization(AuthorizationContext filterContext)
21 | {
22 | if ((filterContext.HttpContext.Session[SessionItemsDescription.UserAccount] as UserAccount) != null)
23 | {
24 | //授权成功
25 | }
26 | else
27 | {
28 | filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Account", action = "Login" }));
29 | }
30 | }
31 | }
32 |
33 | ///
34 | /// 验证系统的账户是否符合管理员的信息
35 | ///
36 | public class AuthorizeAdminAttribute : AuthorizeAttribute
37 | {
38 | public override void OnAuthorization(AuthorizationContext filterContext)
39 | {
40 | if (filterContext.HttpContext.Session[SessionItemsDescription.UserAccount] is UserAccount account)
41 | {
42 | if (account.Grade < AccountGrade.SuperAdministrator)
43 | {
44 | filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Home", action = "LackOfAuthority" }));
45 | }
46 | }
47 | else
48 | {
49 | filterContext.Result = new RedirectToRouteResult(new RouteValueDictionary(new { controller = "Account", action = "Login" }));
50 | }
51 | }
52 | }
53 | }
--------------------------------------------------------------------------------
/软件系统浏览器模版/Models/ModelBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Web;
5 |
6 | namespace 软件系统浏览器模版.Models
7 | {
8 |
9 |
10 | /***********************************************************************************
11 | *
12 | * 基础的数据核心
13 | *
14 | ***********************************************************************************/
15 |
16 |
17 |
18 |
19 | public class ModelBase
20 | {
21 |
22 |
23 | }
24 |
25 |
26 |
27 | ///
28 | /// 消息框的状态
29 | ///
30 | public enum MessageBoxStyle
31 | {
32 | ///
33 | /// 成功的消息
34 | ///
35 | success,
36 | ///
37 | /// 信息提示
38 | ///
39 | info,
40 | ///
41 | /// 警告消息
42 | ///
43 | warning,
44 | ///
45 | /// 错误消息
46 | ///
47 | danger
48 | }
49 |
50 |
51 |
52 |
53 | ///
54 | /// Session的数据集合的描述
55 | ///
56 | public class SessionItemsDescription
57 | {
58 | public static string UserAccount { get; set; } = "SoftUserAccount";
59 | }
60 | }
--------------------------------------------------------------------------------
/软件系统浏览器模版/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息是通过以下项进行控制的
6 | // 控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("软件系统浏览器模版")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("软件系统浏览器模版")]
13 | [assembly: AssemblyCopyright("版权所有(C) 2017")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 将使此程序集中的类型
18 | // 对 COM 组件不可见。如果需要
19 | // 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID
23 | [assembly: Guid("c72f82f5-0b0e-4718-93e1-ac8753756081")]
24 |
25 | // 程序集的版本信息由下列四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 内部版本号
30 | // 修订版本
31 | //
32 | // 你可以指定所有值,也可以让修订版本和内部版本号采用默认值,
33 | // 方法是按如下所示使用 "*":
34 | [assembly: AssemblyVersion("1.0.0.0")]
35 | [assembly: AssemblyFileVersion("1.0.0.0")]
36 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Account/ChangePassword.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "ChangePassword";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 | @section scripts
8 | {
9 |
10 | }
11 |
12 | 修改密码:
13 |
14 |
15 |
16 | @using (Ajax.BeginForm("CheckPassword", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "content", InsertionMode = InsertionMode.Replace },
17 | new { @class = "form-horizontal" }))
18 | {
19 |
28 | }
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Account/Login.cshtml:
--------------------------------------------------------------------------------
1 | @using system
2 | @{
3 | Layout = null;
4 | }
5 |
6 |
7 |
8 |
9 |
10 |
11 | 用户登录界面
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { @class = "form-horizontal" }))
22 | {
23 | @Html.AntiForgeryToken()
24 |
@CommonLibrary.SoftResources.StringResouce.SoftName用户登录
25 |
26 |
27 |
28 |
29 |
34 |
35 |
36 |
37 | }
38 |
39 |
40 |
41 |
42 |
50 |
51 | @if (ViewData["Message"] != null)
52 | {
53 |
54 | }
55 |
56 |
57 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Account/SetPasswordPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 | @section scripts
4 | {
5 |
6 | }
7 |
8 |
9 |
10 | @{ string updateId = Guid.NewGuid().ToString();}
11 | @using (Ajax.BeginForm("SetNewPassword", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
12 | new { @class = "form-horizontal" }))
13 | {
14 |
35 | }
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/About.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "关于本软件系统";
3 | }
4 | @ViewBag.Title.
5 |
6 |
7 | - 软件名称
8 | - @CommonLibrary.SoftResources.StringResouce.SoftName
9 | - 版本号
10 | - V@ClientsLibrary.UserClient.CurrentVersion.ToString()
11 | - 版权声明
12 | - 本软件著作权归@CommonLibrary.SoftResources.StringResouce.SoftCopyRight所有
13 | - 基础框架版本
14 | - V@HslCommunication.BasicFramework.SoftBasic.FrameworkVersion.ToString()
15 | - 框架版本
16 | - 本系统框架由Richard.Hu提供技术支持
17 | - 框架开源地址
18 | - https://github.com/dathlin/ClientServerProject
19 | - JSON.Net
20 | - http://www.newtonsoft.com/json
21 | - Wpf基础架构
22 | - https://github.com/ButchersBoy/MaterialDesignInXamlToolkit
23 | - Glyphicons图标来源
24 | - http://glyphicons.com/
25 |
26 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/AdviceFeedback.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "意见反馈";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 |
6 | string content = Guid.NewGuid().ToString("N");
7 | }
8 |
9 |
10 | @section scripts
11 | {
12 |
13 | }
14 |
15 | 请在下方填写意见反馈,字数控制在1000字以内
16 |
17 |
18 | @using (Ajax.BeginForm("AdviceFeedback", "Home", new AjaxOptions()
19 | {
20 | HttpMethod="POST",
21 | UpdateTargetId = content,
22 | InsertionMode = InsertionMode.Replace
23 | }, new { @class = "form-horizontal" }))
24 | {
25 | @Html.AntiForgeryToken()
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | }
38 |
39 |
40 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/ChangeAnnouncement.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "更改公告";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 |
8 |
9 | @section scripts
10 | {
11 |
12 | }
13 |
14 |
15 |
16 |
17 | @{ string updateId = Guid.NewGuid().ToString();}
18 | @using (Ajax.BeginForm("SetAnnouncement", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
19 | new { @class = "form-horizontal" }))
20 | {
21 |
36 | }
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/Contact.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Contact";
3 | }
4 | @ViewBag.Title.
5 | @ViewBag.Message
6 |
7 |
8 | One Microsoft Way
9 | Redmond, WA 98052-6399
10 | P:
11 | 425.555.0100
12 |
13 |
14 |
15 | Support: Support@example.com
16 | Marketing: Marketing@example.com
17 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/Index.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | ViewBag.Title = "Home Page";
3 | }
4 |
5 |
6 |
C-S 软件系统架构设计框架
7 |
本框架是一个免费开源的框架系统,集成了C-S和B-S架构设计,采用了统一的模型机制,快速便捷的开发C-B-S混合系统,也可以选择中间的一个模式。
8 |
开源地址 »
9 |
10 |
11 |
12 |
公告:
13 |
@ClientsLibrary.UserClient.Announcement
14 |
15 |
16 |
17 |
18 |
19 |
Winform 客户端
20 |
21 | Winform 客户端是常规的windows窗体应用程序,虽然界面比较简单,但是功能齐全,稳定。winform的gdi+绘图也是很轻松的就可以绘制复杂的二维图形,在C-S中支持最好。
22 |
23 |
24 |
25 |
26 |
27 |
Wpf 客户端
28 |
29 | Wpf 客户端是最新的windows窗体应用程序,直接基于directx绘制界面,充分发挥了显卡的性能,所以在界面表现上要远远大于winform程序,可以轻松实现动画。数据绑定机制可以方便
30 | 实现主题机制。
31 |
32 |
33 |
34 |
35 |
36 |
Web 服务器客户端
37 |
38 | 最新添加的B-S系统,该系统的S端仍然作为C端连接winform版的S端,提供了大多数数据模型的一致性,与原有功能无缝集成。
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/LackOfAuthority.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "权限不足";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 |
8 |
9 |
10 |
11 |
错误信息
12 |
非常抱歉,您的权限不足,无法进行操作!
13 |
14 |
15 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/ManagementAccount.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "账户管理";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 | @section scripts
8 | {
9 |
10 | }
11 |
12 |
13 |
14 |
15 | @{ string updateId = Guid.NewGuid().ToString();}
16 | @using (Ajax.BeginForm("SetManagementAccount", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
17 | new { @class = "form-horizontal" }))
18 | {
19 |
34 | }
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/SendMessage.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "消息发送";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 | @section scripts
8 | {
9 |
10 | }
11 |
12 |
13 |
14 |
15 | @{ string updateId = Guid.NewGuid().ToString();}
16 | @using (Ajax.BeginForm("SendMessage", null, new AjaxOptions { HttpMethod = "Post", UpdateTargetId = updateId, InsertionMode = InsertionMode.Replace },
17 | new { @class = "form-horizontal" }))
18 | {
19 |
34 | }
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/UpdateLog.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "UpdateLog";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 |
8 |
9 | 系统更新日志历次版本详细信息
10 |
11 |
12 |
13 |
14 |
15 | @{
16 | foreach (var v in ClientsLibrary.UserClient.HistoryVersions)
17 | {
18 |
19 |
20 |
27 |
28 |
29 |
30 | @MvcHtmlString.Create(v.UpdateDetails.Replace("\r\n", "
").ToString())
31 |
32 |
33 |
34 |
35 | }
36 | }
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Home/VersionInformation.cshtml:
--------------------------------------------------------------------------------
1 |
2 | @{
3 | ViewBag.Title = "关于版本号";
4 | Layout = "~/Views/Shared/_Layout.cshtml";
5 | }
6 |
7 | 版本号说明每个版本号的含义
8 |
9 | 当前的版本号为:V @ClientsLibrary.UserClient.CurrentVersion.ToString()
10 |
11 |
12 | - @ClientsLibrary.UserClient.CurrentVersion.MainVersion
13 | - 程序的大版本号,一般是架构升级或是界面大调整。
14 | - @ClientsLibrary.UserClient.CurrentVersion.SecondaryVersion
15 | - 程序的次版本号,一般是指软件功能升级或是界面小幅度调整。
16 | - @ClientsLibrary.UserClient.CurrentVersion.EditVersion
17 | - 程序的修订版本号,一般是指常规的版本更新和BUG修复。
18 | - @ClientsLibrary.UserClient.CurrentVersion.InnerVersion
19 | - 程序的内部版本号,用于内部开发使用。
20 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/Error.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | 错误
7 |
8 |
9 |
10 | 错误。
11 | 处理你的请求时出错。
12 |
13 |
14 |
15 | @ViewBag.Message
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/_LoginPartial.cshtml:
--------------------------------------------------------------------------------
1 | @using 软件系统浏览器模版.Models
2 | @using CommonLibrary
3 |
4 |
5 | @{
6 | if (Session[SessionItemsDescription.UserAccount] == null)
7 | {
8 |
9 | - @Html.ActionLink("登录", "AccountLogin", "Home")
10 |
11 | }
12 | else
13 | {
14 | UserAccount user = Session[软件系统浏览器模版.Models.SessionItemsDescription.UserAccount] as UserAccount;
15 |
16 | using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm", @class = "navbar-right" }))
17 | {
18 | @Html.AntiForgeryToken()
19 |
20 |
32 | }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/_MessageDangerPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
错误信息请求ID:@ViewData["GUID"]
5 |
@ViewData["alertMessage"]
6 |
7 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/_MessageInfoPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
一般信息请求ID:@ViewData["GUID"]
6 |
@ViewData["alertMessage"]
7 |
8 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/_MessageSuccessPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
成功信息请求ID:@ViewData["GUID"]
6 |
@ViewData["alertMessage"]
7 |
8 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Shared/_MessageWarningPartial.cshtml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
警告信息请求ID:@ViewData["GUID"]
6 |
@ViewData["alertMessage"]
7 |
8 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/Web.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Views/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "~/Views/Shared/_Layout.cshtml";
3 | }
4 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Web.Debug.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/Web.Release.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
17 |
18 |
19 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/软件系统浏览器模版/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/favicon.ico
--------------------------------------------------------------------------------
/软件系统浏览器模版/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/软件系统浏览器模版/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/软件系统浏览器模版/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/软件系统浏览器模版/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/软件系统浏览器模版/screenshots/browser1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/screenshots/browser1.png
--------------------------------------------------------------------------------
/软件系统浏览器模版/screenshots/browser2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dathlin/ClientServerProject/06bbf954e141e07cf17f5d1c53686b2e9e2bcbec/软件系统浏览器模版/screenshots/browser2.png
--------------------------------------------------------------------------------