Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
ClientServerProject
提交
e89f0088
C
ClientServerProject
项目概览
jobily
/
ClientServerProject
2023-09-12 01:32:09同步失败
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClientServerProject
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e89f0088
编写于
12月 24, 2017
作者:
Richard__Hu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
系统新增一个数据库连接字符串信息,客户端的数据由服务器初始化,v1.7.11
上级
f9e44b38
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
31 addition
and
2 deletion
+31
-2
ClientsLibrary/AccountSupport/AccountLogin.cs
ClientsLibrary/AccountSupport/AccountLogin.cs
+1
-0
CommonLibrary/BasicSupport/SoftSettings.cs
CommonLibrary/BasicSupport/SoftSettings.cs
+6
-1
CommonLibrary/CommonLibrary.csproj
CommonLibrary/CommonLibrary.csproj
+1
-0
CommonLibrary/DataBaseSupport/SqlServerSupport.cs
CommonLibrary/DataBaseSupport/SqlServerSupport.cs
+19
-0
CommonLibrary/UserSystem.cs
CommonLibrary/UserSystem.cs
+1
-1
软件系统服务端模版/FormServerWindow.cs
软件系统服务端模版/FormServerWindow.cs
+2
-0
软件系统浏览器模版/Controllers/AccountController.cs
软件系统浏览器模版/Controllers/AccountController.cs
+1
-0
未找到文件。
ClientsLibrary/AccountSupport/AccountLogin.cs
浏览文件 @
e89f0088
...
...
@@ -196,6 +196,7 @@ namespace ClientsLibrary
{
UserClient
.
SystemFactories
=
json
[
nameof
(
UserClient
.
SystemFactories
)].
ToObject
<
List
<
string
>>();
}
CommonLibrary
.
DataBaseSupport
.
SqlServerSupport
.
ConnectionString
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
ServerSettings
.
SqlServerStr
),
""
);
}
else
{
...
...
CommonLibrary/BasicSupport/SoftSettings.cs
浏览文件 @
e89f0088
...
...
@@ -50,6 +50,10 @@ namespace CommonLibrary
/// </summary>
public
string
Announcement
{
get
;
set
;
}
=
"测试公告"
;
/// <summary>
/// 数据库连接字符串
/// </summary>
public
string
SqlServerStr
{
get
;
set
;
}
=
string
.
Empty
;
/// <summary>
/// 是否允许账户登录,超级管理员账户除外
/// </summary>
public
bool
Can_Account_Login
{
get
;
set
;
}
=
true
;
...
...
@@ -163,6 +167,7 @@ namespace CommonLibrary
{
nameof
(
WhetherToEnableTrustedClientAuthentication
),
new
JValue
(
WhetherToEnableTrustedClientAuthentication
)
},
{
nameof
(
TrustedClientList
),
new
JArray
(
TrustedClientList
)
},
{
nameof
(
AllowLoginWhenFramewordVersionNotCheck
),
new
JValue
(
AllowLoginWhenFramewordVersionNotCheck
)
},
{
nameof
(
SqlServerStr
),
new
JValue
(
SqlServerStr
)
},
};
return
json
.
ToString
();
}
...
...
@@ -179,7 +184,7 @@ namespace CommonLibrary
AllowUserMultiOnline
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
AllowUserMultiOnline
),
AllowUserMultiOnline
);
Account_Forbidden_Reason
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
Account_Forbidden_Reason
),
Account_Forbidden_Reason
);
AllowLoginWhenFramewordVersionNotCheck
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
AllowLoginWhenFramewordVersionNotCheck
),
AllowLoginWhenFramewordVersionNotCheck
);
SqlServerStr
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
SqlServerStr
),
SqlServerStr
);
if
(
json
[
nameof
(
SystemFactories
)]
!=
null
)
...
...
CommonLibrary/CommonLibrary.csproj
浏览文件 @
e89f0088
...
...
@@ -118,6 +118,7 @@
<DependentUpon>
FormWaitInfomation.cs
</DependentUpon>
</Compile>
<Compile
Include=
"BasicSupport\SoftSettings.cs"
/>
<Compile
Include=
"DataBaseSupport\SqlServerSupport.cs"
/>
<Compile
Include=
"LocalizationSupport\ChineseLocalization.cs"
/>
<Compile
Include=
"LocalizationSupport\EnglishLocalization.cs"
/>
<Compile
Include=
"LocalizationSupport\Localization.cs"
/>
...
...
CommonLibrary/DataBaseSupport/SqlServerSupport.cs
0 → 100644
浏览文件 @
e89f0088
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
namespace
CommonLibrary.DataBaseSupport
{
/// <summary>
/// 使用SQL SERVER服务器的时的数据支持
/// </summary>
public
class
SqlServerSupport
{
/// <summary>
/// 数据库的连接字符串,该信息应来源于服务器保存的连接字符串
/// </summary>
public
static
string
ConnectionString
{
get
;
set
;
}
}
}
CommonLibrary/UserSystem.cs
浏览文件 @
e89f0088
...
...
@@ -44,7 +44,7 @@ namespace CommonLibrary
**************************************************************************/
SoftBasic
.
FrameworkVersion
=
new
SystemVersion
(
"1.7.1
0
"
);
SoftBasic
.
FrameworkVersion
=
new
SystemVersion
(
"1.7.1
1
"
);
}
...
...
软件系统服务端模版/FormServerWindow.cs
浏览文件 @
e89f0088
...
...
@@ -111,6 +111,7 @@ namespace 软件系统服务端模版
// 初始化并加载账户信息
UserServer
.
ServerSettings
.
FileSavePath
=
Application
.
StartupPath
+
@"\settings.txt"
;
UserServer
.
ServerSettings
.
LoadByFile
();
CommonLibrary
.
DataBaseSupport
.
SqlServerSupport
.
ConnectionString
=
UserServer
.
ServerSettings
.
SqlServerStr
;
// 初始化并加载角色规则
UserServer
.
ServerRoles
.
FileSavePath
=
Application
.
StartupPath
+
@"\roles.txt"
;
...
...
@@ -487,6 +488,7 @@ namespace 软件系统服务端模版
{
{
nameof
(
UserServer
.
ServerSettings
.
Announcement
),
new
JValue
(
UserServer
.
ServerSettings
.
Announcement
)
},
{
nameof
(
UserServer
.
ServerSettings
.
SystemFactories
),
new
JArray
(
UserServer
.
ServerSettings
.
SystemFactories
)
},
{
nameof
(
UserServer
.
ServerSettings
.
SqlServerStr
),
new
JValue
(
UserServer
.
ServerSettings
.
SqlServerStr
)
},
};
net_simplify_server
.
SendMessage
(
state
,
handle
,
json
.
ToString
());
}
...
...
软件系统浏览器模版/Controllers/AccountController.cs
浏览文件 @
e89f0088
...
...
@@ -124,6 +124,7 @@ namespace 软件系统浏览器模版.Controllers
json
=
JObject
.
Parse
(
result
.
Content
);
//例如公告数据
UserClient
.
Announcement
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
UserClient
.
Announcement
),
""
);
CommonLibrary
.
DataBaseSupport
.
SqlServerSupport
.
ConnectionString
=
SoftBasic
.
GetValueFromJsonObject
(
json
,
nameof
(
ServerSettings
.
SqlServerStr
),
""
);
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录