Browse Source

临时提交

DH 1 year ago
parent
commit
0599d2db3c

+ 7 - 0
skoda-scada-daq3.0-master/skoda-scada-daq3.0-master/scada_-daq3.0-master/SCADA_DAQ.Plugin.Qilin/SCADA_DAQ.Plugin.Qilin.csproj

@@ -241,6 +241,9 @@
     <Compile Include="Uct\UctSharedControl1.xaml.cs">
       <DependentUpon>UctSharedControl1.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Uct\UctSpraySwitch1.xaml.cs">
+      <DependentUpon>UctSpraySwitch1.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Uct\UctSwitchcontrol.xaml.cs">
       <DependentUpon>UctSwitchcontrol.xaml</DependentUpon>
     </Compile>
@@ -450,6 +453,10 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Uct\UctSpraySwitch1.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="Uct\UctSwitchcontrol.xaml">
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>

+ 38 - 0
skoda-scada-daq3.0-master/skoda-scada-daq3.0-master/scada_-daq3.0-master/SCADA_DAQ.Plugin.Qilin/Uct/UctSpraySwitch1.xaml

@@ -0,0 +1,38 @@
+<UserControl x:Class="SCADA_DAQ.Plugin.Qilin.Uct.UctSpraySwitch1"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+             xmlns:local="clr-namespace:SCADA_DAQ.Plugin.Qilin.Uct" xmlns:wpfcontrol="clr-namespace:SCADA.CommonCtrl.WpfControl;assembly=SCADA.CommonCtrl"
+             mc:Ignorable="d" 
+             d:DesignHeight="450" d:DesignWidth="800">
+    <Grid>
+        <Grid>
+            <Grid.RowDefinitions>
+                <RowDefinition Height="1*"/>
+                <RowDefinition Height="1*"/>
+                <RowDefinition Height="1*"/>
+                <RowDefinition Height="1*"/>
+            </Grid.RowDefinitions>
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition Width="1*"/>
+                <ColumnDefinition Width="1*"/>
+                <ColumnDefinition Width="1*"/>
+            </Grid.ColumnDefinitions>
+            <wpfcontrol:IconButton Title="胶枪1开关" Click="GlueGun1Switch" />
+            <wpfcontrol:IconButton Title="胶枪2开关" Click="GlueGun2Switch" Grid.Row="1"/>
+            <wpfcontrol:IconButton Title="胶枪3开关" Click="GlueGun3Switch" Grid.Row="2"/>
+            <wpfcontrol:IconButton Title="胶枪4开关" Click="GlueGun4Switch" Grid.Row="3"/>
+            <wpfcontrol:IconButton Title="喷胶测试" Click="SpraytTst" Grid.Column="1"/>
+            <wpfcontrol:IconButton Click="SprayTest2" Grid.Row="1" Grid.Column="1"/>
+            <wpfcontrol:IconButton Click="SprayTest3" Grid.Row="2" Grid.Column="1"/>
+            <wpfcontrol:IconButton Click="SprayTest4" Grid.Row="3" Grid.Column="1"/>
+            <wpfcontrol:IconButton Click="NozzleSpotCheck" Title="喷嘴点检" Grid.Row="0" Grid.Column="2"/>
+            <wpfcontrol:IconButton Click="NozzleSpotCheck1" Grid.Row="1" Grid.Column="2"/>
+            <wpfcontrol:IconButton Click="NozzleSpotCheck2" Grid.Row="2" Grid.Column="2"/>
+            <wpfcontrol:IconButton Click="NozzleSpotCheck3" Grid.Row="3" Grid.Column="2"/>
+        </Grid>
+        
+        
+    </Grid>
+</UserControl>

+ 32 - 0
skoda-scada-daq3.0-master/skoda-scada-daq3.0-master/scada_-daq3.0-master/SCADA_DAQ.Plugin.Qilin/Uct/UctSpraySwitch1.xaml.cs

@@ -0,0 +1,32 @@
+using SCADA_DAQ.Plugin.Machine;
+using SCADA_DAQ.Plugin.Qilin.Machines;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace SCADA_DAQ.Plugin.Qilin.Uct
+{
+    /// <summary>
+    /// UctSpraySwitch1.xaml 的交互逻辑
+    /// </summary>
+    public partial class UctSpraySwitch1 : UserControl
+    {
+        public GlueMachine Machine1 { get; set; } = MachineServer.GetInstance().GetMachine<GlueMachine>("床网粘胶机");
+        public UctSpraySwitch1()
+        {
+            InitializeComponent();
+        }
+
+    }
+}