Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
51dc32ec
Commit
51dc32ec
authored
Sep 02, 2022
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.添加 吸料的寄存器地址表
2.修改 称重服务器画面
parent
05ac8097
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
50 additions
and
45 deletions
+50
-45
MainWindow.xaml
Project.FLY.Weight/FLY.Weight.UI.Server/MainWindow.xaml
+1
-1
PgMain.xaml
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml
+41
-39
PgMain.xaml.cs
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml.cs
+8
-5
plcgroup.json
...er_plcgroups/设备连接变量表_666666666_v1/Generated/plcgroup.json
+0
-0
No files found.
Project.FLY.Weight/FLY.Weight.UI.Server/MainWindow.xaml
View file @
51dc32ec
<NavigationWindow x:Class="FLY.Weight.UI.Server.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight" MinWidth="400" MinHeight="200"
Title="MainWindow" SizeToContent="WidthAndHeight" MinWidth="400" MinHeight="200"
ShowsNavigationUI="False"
Loaded="NavigationWindow_Loaded">
</NavigationWindow>
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml
View file @
51dc32ec
...
...
@@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:FLY.Weight.UI.Server"
mc:Ignorable="d"
Title="PgMain" Height="270" Width="765">
Title="PgMain"
Min
Height="270" Width="765">
<Page.Resources>
<local:PgMainVmUt x:Key="viewModel"/>
</Page.Resources>
...
...
@@ -15,8 +15,6 @@
<RowDefinition Height="auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid x:Name="grid_plc"/>
<Grid x:Name="grid_plcos"/>
<Grid x:Name="grid_WeightSystem"/>
<Grid Margin="5">
<Grid.ColumnDefinitions>
...
...
@@ -36,8 +34,8 @@
</Grid>
<Grid Grid.Row="1">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
<ColumnDefinition
/>
<ColumnDefinition
Width="auto"
/>
</Grid.ColumnDefinitions>
<GroupBox Header="称重">
<Grid>
...
...
@@ -45,7 +43,8 @@
<RowDefinition/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<ItemsControl x:Name="itemcontrol" ItemsSource="{Binding PLCs}">
<ScrollViewer>
<ItemsControl x:Name="itemcontrol_weighter" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel>
...
...
@@ -81,18 +80,20 @@
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Content="配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnSetupClick"></Button>
<Button Content="称重配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnSetupClick"></Button>
<Button x:Name="btnFeederSetup" Content="吸料配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Header="吸料" Grid.Column="1">
<GroupBox
x:Name="grpFeeder"
Header="吸料" Grid.Column="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<ItemsControl x:Name="itemcontrol_feeder"
ItemsSource="{Binding PLCs}"
>
<ItemsControl x:Name="itemcontrol_feeder" >
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel>
...
...
@@ -128,9 +129,10 @@
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Button Grid.Row="1" Content="配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Button Grid.Row="1" Content="吸料配置" Padding="20,5" Margin="5" HorizontalAlignment="Left" Click="btnFeederSetupClick"></Button>
</StackPanel>
</Grid>
</GroupBox>
</Grid>
...
...
Project.FLY.Weight/FLY.Weight.UI.Server/PgMain.xaml.cs
View file @
51dc32ec
...
...
@@ -30,16 +30,19 @@ namespace FLY.Weight.UI.Server
public
void
Init
(
TDGage
gage
)
{
this
.
gage
=
gage
;
var
plsos
=
gage
.
mData
.
PLCos
as
FLY
.
OBJComponents
.
Server
.
PLCProxySystem
;
//grid_plcos.DataContext = plsos;
//grid_plc.DataContext = plsos.PLCs[0];
grid_WeightSystem
.
DataContext
=
gage
.
mData
;
this
.
itemcontrol
.
ItemsSource
=
plsos
.
PLCs
;
sp_sysParam
.
DataContext
=
gage
.
mSysParam
;
itemcontrol_weighter
.
ItemsSource
=
gage
.
mData
.
plcos
.
PLCs
;
if
(
gage
.
mFeederSystem
!=
null
)
{
if
(
gage
.
mFeederSystem
!=
null
)
{
btnFeederSetup
.
Visibility
=
Visibility
.
Collapsed
;
this
.
itemcontrol_feeder
.
ItemsSource
=
gage
.
mFeederSystem
.
plcos
.
PLCs
;
}
else
{
grpFeeder
.
Visibility
=
Visibility
.
Collapsed
;
}
}
private
void
btnSetupClick
(
object
sender
,
RoutedEventArgs
e
)
{
...
...
脚本/release_conf/FLY.Weight.UI.Server/Gage1/feeder_plcgroups/设备连接变量表_666666666_v1/Generated/plcgroup.json
0 → 100644
View file @
51dc32ec
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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