This commit is contained in:
sc committed 2022-03-07 22:09:37 +08:00
commit c5a8f7a8f8
3 files changed
+7 -13

No files matched your search

-6
View File
@@ -150,12 +150,6 @@
<Button Content="存储" HorizontalAlignment="Left" Height="65" Margin="795,0,0,60"
VerticalAlignment="Bottom" Width="145" FontSize="40" BorderBrush="{x:Null}" Background="#FFCECECE"
Click="Button_Preservation">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseUp">
<i:InvokeCommandAction Command="{Binding CommandToBindTo}"
CommandParameter="{Binding CommandParameterToBindTo}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<!--删除按钮-->
<Button Content="删除" HorizontalAlignment="Left" Height="65" Margin="975,0,0,60"
+1 -1
View File
@@ -111,7 +111,7 @@ namespace Audit.View
MessageBoxResult showProductName = System.Windows.MessageBox.Show(ShowProductName, "提示", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.Yes);//弹窗提示是否删除目标原料
if (showProductName == MessageBoxResult.Yes)//判断是否删除原料
{
var count = new ProductProvider().Delete(product);//删除数据库目标信息。
var count = new ProductProvider().Delete(product_temp);//删除数据库目标信息。
if (count == 0) System.Windows.MessageBox.Show("ERR.C0110-2:删除失败", "错误");//判断执行是否成功
else Button_sql = true;
}