Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
szjay
WinFramework
提交
a64bd916
W
WinFramework
项目概览
szjay
/
WinFramework
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
WinFramework
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a64bd916
编写于
1月 24, 2019
作者:
S
szjay
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
no commit message
上级
9579d1c8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
33 addition
and
29 deletion
+33
-29
MainUI/MainForm.cs
MainUI/MainForm.cs
+15
-13
MainUI/Properties/licenses.licx
MainUI/Properties/licenses.licx
+2
-0
ServerConsole/App.config
ServerConsole/App.config
+16
-16
未找到文件。
MainUI/MainForm.cs
浏览文件 @
a64bd916
...
...
@@ -112,7 +112,7 @@ namespace Framework.MainUI
new
BarAndDockingController
().
AppearancesBar
.
ItemsFont
=
font
;
InitMenu
();
//
InitShortcutButton();
InitShortcutButton
();
}
void
MainForm_Load
(
object
sender
,
EventArgs
e
)
...
...
@@ -306,18 +306,20 @@ namespace Framework.MainUI
private
void
InitShortcutButton
()
{
List
<
ShortcutToolbar
>
list
=
Rpc
.
Create
<
ShortcutToolbarHandler
>().
QueryByUser
(
ClientContext
.
User
.
Id
);
if
(!
list
.
Any
())
{
bar2
.
Visible
=
false
;
return
;
}
foreach
(
ShortcutToolbar
button
in
list
)
{
ModuleInfo
module
=
ModuleParser
.
Instance
.
GetModuleInfoByModuleName
(
button
.
Module
);
CreateShortcutToolbarButton
(
module
);
}
bar2
.
Visible
=
false
;
//List<ShortcutToolbar> list = Rpc.Create<ShortcutToolbarHandler>().QueryByUser(ClientContext.User.Id);
//if (!list.Any())
//{
// bar2.Visible = false;
// return;
//}
//foreach (ShortcutToolbar button in list)
//{
// ModuleInfo module = ModuleParser.Instance.GetModuleInfoByModuleName(button.Module);
// CreateShortcutToolbarButton(module);
//}
}
public
void
AddShortcutButton
(
ModuleInfo
module
)
...
...
MainUI/Properties/licenses.licx
浏览文件 @
a64bd916
DevExpress.Patch.InMemoryPatch, DevExpress.Patch.Common, Version=6.1.0.0, Culture=neutral, PublicKeyToken=7fc7bfca2443de66
DevExpress.XtraBars.BarManager, DevExpress.XtraBars.v13.2, Version=13.2.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a
ServerConsole/App.config
浏览文件 @
a64bd916
<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
configuration
>
<
configSections
>
<!--
For
more
information
on
Entity
Framework
configuration
,
visit
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkID
=
237468
-->
<
section
name
=
"entityFramework"
type
=
"System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
requirePermission
=
"false"
/>
<!--
For
more
information
on
Entity
Framework
configuration
,
visit
http
://
go
.
microsoft
.
com
/
fwlink
/?
LinkID
=
237468
-->
</
configSections
>
<
entityFramework
>
<
defaultConnectionFactory
type
=
"System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework"
>
<
parameters
>
<
parameter
value
=
"
v11.0
"
/>
<
parameter
value
=
"
mssqllocaldb
"
/>
</
parameters
>
</
defaultConnectionFactory
>
<
providers
>
<
provider
invariantName
=
"System.Data.SqlClient"
type
=
"System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"
/>
</
providers
>
</
entityFramework
>
<
connectionStrings
>
<
add
name
=
"DB"
connectionString
=
"data source=.;initial catalog=Platform;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework"
providerName
=
"System.Data.SqlClient"
/>
<
connectionStrings
>
<
add
name
=
"DB"
connectionString
=
"data source=.;initial catalog=MedicalCrm;persist security info=True;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework"
providerName
=
"System.Data.SqlClient"
/>
</
connectionStrings
>
<!--注意,以下配置修改后,必须重启服务才能生效-->
<
appSettings
>
<!--<
add
key
=
"ServiceLogPath"
value
=
"d:\MedicalCrmServiceLog"
/>-->
<!--
服务端监听的端口号,必须与客户端保持一致
-->
<
add
key
=
"
port"
value
=
"11260
"
/>
<!--
定时执行任务,为
false
为不执行,为
true
执行
-->
<
add
key
=
"
AutoRunTask"
value
=
"false
"
/>
<!-- 集群服务器端口(无
IP
则默认与当前服务器同
IP
) -->
<
add
key
=
"ClusterServersPort"
value
=
"11261"
/>
<
add
key
=
"debug"
value
=
"true"
/>
<
add
key
=
"db"
value
=
"Framework.DomainBase.DB, Framework.DomainBase"
/>
<
add
key
=
"db"
value
=
"Framework.DomainBase.DB, Framework.DomainBase"
/>
<!-- 注意,服务器与客户端的协议必须一致,否则报告错误:服务器提交了协议冲突.
Section
=
ResponseStatusLine
-->
<!-- 服务连接端口 -->
<
add
key
=
"port"
value
=
"11260"
/>
<!-- 以
SOAP
协议访问服务器 -->
<!--<
add
key
=
"channel"
value
=
"http"
/>-->
<
add
key
=
"channel"
value
=
"tcp"
/>
<!-- 是否是测试模式,注意,正式部署必须置为
false
-->
<
add
key
=
"test"
value
=
"false"
/>
<!-- 是否记录数据更新日志 -->
<!--<
add
key
=
"auditedlog"
value
=
"true"
/>-->
<!-- 客户端升级路径 -->
<
add
key
=
"ClientUpgradePath"
value
=
"d:\ClientUpgradePath"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录