修改上位机更新程序

master
zhaojian 2 years ago
parent afb9e5565d
commit 70242d2c2a

@ -33,7 +33,7 @@ class Update
// 设置要启动的应用程序名称和参数
string appName = "XGL.exe"; // 替换为你的目标控制台应用程序的名称
string appName = "XGLFinishPro.exe"; // 替换为你的目标控制台应用程序的名称
string appArguments = " ";// 替换为你的应用程序需要的参数
// 创建进程启动信息

@ -490,7 +490,7 @@ product_spc,shifts.shift_desc,prod_line_code,workorder.status,route_code,quantit
from pro_order_workorder workorder
left JOIN base_shifts_t shifts on workorder.shift_id = shifts.shift_id
where 1=1 and
workorder.end_flag = '1' and CONVERT(VARCHAR(10), workorder.product_date , 120)= CONVERT(VARCHAR(10), '{date}' , 120) and workorder.prod_line_code like '%{deviceCode}%'";
workorder.parent_order ='0' ";
DataSet dtset = Utils.netClientDBHelper.getDataSet(sql);
if (dtset != null && dtset.Tables.Count > 0 && dtset.Tables[0].Rows.Count > 0)
{

@ -5,7 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:XGL.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
<UserControl.Resources>
<Style x:Key="ApplicantList_ListBox_Style" TargetType="{x:Type ListBox}">
<Setter Property="Background" Value="#00000000"/>
@ -29,7 +29,22 @@
</Setter.Value>
</Setter>
</Style>
<Style x:Key="btnKey" TargetType="Button">
<Setter Property="Width" Value="150" />
<Setter Property="Height" Value="60" />
<Setter Property="Margin" Value="5.5"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="Template" >
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="#2B7EE6" BorderThickness="2" CornerRadius="10">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="ApplicantList_ListBoxItem_Style" TargetType="{x:Type ListBoxItem}">
<Setter Property="Margin" Value="10,10,10,0" />
@ -455,6 +470,17 @@
FontSize="20"
Foreground="White"
Click="btnViewPlcvalue_Click" Content="查看Plc值"></Button>
<Button
x:Name="HFPlcvalue"
Width="120"
Height="40"
Margin="25,5"
HorizontalAlignment="Right"
VerticalAlignment="Center"
Background="#2B7EE6"
FontSize="20"
Foreground="White"
Click="HFPlcvalue_Click" Content="查看烘房值"></Button>
</StackPanel>
</StackPanel>
<!--ItemContainerStyle="{DynamicResource ApplicantList_ListBoxItem_Style}"-->

@ -291,6 +291,12 @@ namespace XGL.Views
e.Handled = true;
}
}
private void HFPlcvalue_Click(object sender, RoutedEventArgs e)
{
HFstatus hFstatus = new HFstatus();
hFstatus.ShowDialog();
}
}
public class EquipmentMode
{

Loading…
Cancel
Save