Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
e110e38f
Commit
e110e38f
authored
Apr 19, 2023
by
wangonghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加配置文件是否隐藏媒体资源库页签
parent
5bfde9f6
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
4 deletions
+128
-4
VIZ.Package.Module/ControlObject/FieldEdit/Edit/CustomVideoEdit/CustomVideoEditPanel.xaml
+1
-1
VIZ.Package.Module/ControlObject/FieldEdit/Edit/CustomVideoEdit/CustomVideoEditPanelModel.cs
+39
-0
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ImageEdit/ImageEditPanel.xaml
+1
-1
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ImageEdit/ImageEditPanelModel.cs
+39
-0
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ResourceEdit/ResourceEditPanelModelBase.cs
+37
-0
VIZ.Package.Storage/Ini/LogConfig.cs
+6
-0
VIZ.Package/config/config.ini
+5
-2
No files found.
VIZ.Package.Module/ControlObject/FieldEdit/Edit/CustomVideoEdit/CustomVideoEditPanel.xaml
View file @
e110e38f
...
...
@@ -35,7 +35,7 @@
</Grid>
<dx:DXTabControl Grid.Row="1">
<dx:DXTabItem Header="媒资库">
<dx:DXTabItem Header="媒资库"
Visibility="{Binding IShowMedia,Mode=TwoWay}"
>
<!-- 媒体资源面板 -->
<local:MediaResourcePanel x:Name="mhResourcePanel">
<local:MediaResourcePanel.FolderContextMenu>
...
...
VIZ.Package.Module/ControlObject/FieldEdit/Edit/CustomVideoEdit/CustomVideoEditPanelModel.cs
View file @
e110e38f
...
...
@@ -4,6 +4,7 @@ using System.Dynamic;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Storage
;
...
...
@@ -24,6 +25,9 @@ namespace VIZ.Package.Module
// 初始化命令
this
.
InitCommand
();
//处理是否隐藏媒体资源库页签
IsHideMedieTab
();
}
/// <summary>
...
...
@@ -66,6 +70,41 @@ namespace VIZ.Package.Module
#
endregion
#
region
IShowMedia
---
是否显示媒体资源库页签
private
Visibility
iShowMedia
=
Visibility
.
Visible
;
/// <summary>
/// 是否隐藏媒体资源库页签
/// </summary>
public
Visibility
IShowMedia
{
get
{
return
iShowMedia
;
}
set
{
iShowMedia
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IShowMedia
));
}
}
private
void
IsHideMedieTab
()
{
bool
flag
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
LogConfig
,
bool
>(
p
=>
p
.
ISSHOWMEDIATAB
);
if
(
flag
)
{
IShowMedia
=
Visibility
.
Visible
;
}
else
{
IShowMedia
=
Visibility
.
Hidden
;
}
}
#
endregion
// =====================================================================
// Command
// =====================================================================
...
...
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ImageEdit/ImageEditPanel.xaml
View file @
e110e38f
...
...
@@ -50,7 +50,7 @@
</local:GHResourcePanel.FileContextMenu>
</local:GHResourcePanel>
</dx:DXTabItem>
<dx:DXTabItem Header="媒资库">
<dx:DXTabItem Header="媒资库"
Visibility="{Binding IShowMedia,Mode=TwoWay}"
>
<!-- 媒体资源面板 -->
<local:MediaResourcePanel x:Name="mhResourcePanel">
<local:MediaResourcePanel.FolderContextMenu>
...
...
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ImageEdit/ImageEditPanelModel.cs
View file @
e110e38f
...
...
@@ -4,6 +4,7 @@ using System.Dynamic;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
VIZ.Framework.Core
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Storage
;
...
...
@@ -25,6 +26,9 @@ namespace VIZ.Package.Module
// 初始化命令
this
.
InitCommand
();
//处理是否隐藏媒体资源库页签
IsHideMedieTab
();
}
/// <summary>
...
...
@@ -67,6 +71,41 @@ namespace VIZ.Package.Module
#
endregion
#
region
IShowMedia
---
是否显示媒体资源库页签
private
Visibility
iShowMedia
=
Visibility
.
Visible
;
/// <summary>
/// 是否隐藏媒体资源库页签
/// </summary>
public
Visibility
IShowMedia
{
get
{
return
iShowMedia
;
}
set
{
iShowMedia
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IShowMedia
));
}
}
private
void
IsHideMedieTab
()
{
bool
flag
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
LogConfig
,
bool
>(
p
=>
p
.
ISSHOWMEDIATAB
);
if
(
flag
)
{
IShowMedia
=
Visibility
.
Visible
;
}
else
{
IShowMedia
=
Visibility
.
Hidden
;
}
}
#
endregion
// =====================================================================
// Command
// =====================================================================
...
...
VIZ.Package.Module/ControlObject/FieldEdit/Edit/ResourceEdit/ResourceEditPanelModelBase.cs
View file @
e110e38f
...
...
@@ -3,6 +3,9 @@ using System.Collections.Generic;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Windows
;
using
VIZ.Package.Domain
;
using
VIZ.Package.Storage
;
namespace
VIZ.Package.Module
{
...
...
@@ -51,6 +54,40 @@ namespace VIZ.Package.Module
set
{
mhResourceEditPartModel
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
MHResourceEditPartModel
));
}
}
#
region
IShowMedia
---
是否显示媒体资源库页签
private
Visibility
iShowMedia
=
Visibility
.
Visible
;
/// <summary>
/// 是否隐藏媒体资源库页签
/// </summary>
public
Visibility
IShowMedia
{
get
{
return
iShowMedia
;
}
set
{
iShowMedia
=
value
;
this
.
RaisePropertyChanged
(
nameof
(
IShowMedia
));
}
}
public
void
IsHideMedieTab
()
{
bool
flag
=
ApplicationDomainEx
.
IniStorage
.
GetValue
<
LogConfig
,
bool
>(
p
=>
p
.
ISSHOWMEDIATAB
);
if
(
flag
)
{
IShowMedia
=
Visibility
.
Visible
;
}
else
{
IShowMedia
=
Visibility
.
Hidden
;
}
}
#
endregion
#
endregion
}
}
VIZ.Package.Storage/Ini/LogConfig.cs
View file @
e110e38f
...
...
@@ -17,5 +17,11 @@ namespace VIZ.Package.Storage
/// </summary>
[
Ini
(
Section
=
"Log"
,
DefaultValue
=
"1000"
,
Type
=
typeof
(
int
))]
public
string
LOG_ONE_FILE_MAX_RECORD
{
get
;
set
;
}
/// <summary>
/// 是否显示
/// </summary>
[
Ini
(
Section
=
"MEDIA"
,
DefaultValue
=
"true"
,
Type
=
typeof
(
bool
))]
public
string
ISSHOWMEDIATAB
{
get
;
set
;
}
}
}
VIZ.Package/config/config.ini
View file @
e110e38f
...
...
@@ -16,4 +16,7 @@ VIZ_GH_SERVER_NAME=VizDbServer
VIZ_USER_NAME
=
Guest|Admin
[Log]
; 单文件最多记录条数
LOG_ONE_FILE_MAX_RECORD
=
1000
\ No newline at end of file
LOG_ONE_FILE_MAX_RECORD
=
1000
;是否显示媒体资源库页签
[MEDIA]
ISSHOWMEDIATAB
=
false
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment