Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
c5a8f7a8f8
3 files changed
+7
-13
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user