Merge branch 'master' of http://scddns.f3322.net:13000/sc/Audit_APP
This commit is contained in:
commit
121ff87ef9
4 files changed
+40
-9
No files matched your search
+4
-4
@@ -88,13 +88,13 @@
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<!--搜索类型-->
|
||||
<RadioButton Content="染料" x:Name="Button_0" GroupName="button" HorizontalAlignment="Left" Height="40" Margin="995,265,0,0"
|
||||
<RadioButton Content="染料" x:Name="Button_0" Click="Radiobutton" HorizontalAlignment="Left" Height="40" Margin="995,265,0,0"
|
||||
VerticalAlignment="Top" Width="100" FontSize="18" BorderBrush="{x:Null}" Background="{x:Null}" Grid.Column="1"/>
|
||||
<RadioButton Content="助剂" x:Name="Button_1" GroupName="button" HorizontalAlignment="Left" Height="40" Margin="995,305,0,0"
|
||||
<RadioButton Content="助剂" x:Name="Button_1" Click="Radiobutton" HorizontalAlignment="Left" Height="40" Margin="995,305,0,0"
|
||||
VerticalAlignment="Top" Width="100" FontSize="18" BorderBrush="{x:Null}" Background="{x:Null}" Grid.Column="1"/>
|
||||
<RadioButton Content="粉体助剂" x:Name="Button_2" GroupName="button" HorizontalAlignment="Left" Height="40" Margin="995,345,0,0"
|
||||
<RadioButton Content="粉体助剂" x:Name="Button_2" Click="Radiobutton" HorizontalAlignment="Left" Height="40" Margin="995,345,0,0"
|
||||
VerticalAlignment="Top" Width="100" FontSize="18" BorderBrush="{x:Null}" Background="{x:Null}" Grid.Column="1"/>
|
||||
<RadioButton Content="全部原料" x:Name="Button_all" GroupName="button" HorizontalAlignment="Left" Height="40" Margin="995,385,0,0"
|
||||
<RadioButton Content="全部原料" x:Name="Button_all" Click="Radiobutton" HorizontalAlignment="Left" Height="40" Margin="995,385,0,0"
|
||||
VerticalAlignment="Top" Width="100" FontSize="18" BorderBrush="{x:Null}" Background="{x:Null}" Grid.Column="1" IsChecked="True"/>
|
||||
<!--原料代码-->
|
||||
<TextBox x:Name="stuff_ProductCode" HorizontalAlignment="Left" Height="30" Margin="105,0,0,100" Text=""
|
||||
|
||||
@@ -44,12 +44,25 @@ namespace Audit.View
|
||||
e.Row.Header = e.Row.GetIndex() + 1;
|
||||
}
|
||||
|
||||
private void Radiobutton(object sender, EventArgs e)
|
||||
{
|
||||
System.Windows.Controls.RadioButton Radiobutton = (sender as System.Windows.Controls.RadioButton);
|
||||
string radiobutton = Radiobutton.Content.ToString();
|
||||
if (radiobutton == "全部原料") Buttontype_sql = -1;
|
||||
if (radiobutton == "染料") Buttontype_sql = 0;
|
||||
if (radiobutton == "助剂") Buttontype_sql = 1;
|
||||
if (radiobutton == "粉体助剂") Buttontype_sql = 2;
|
||||
StuffView.Button_sql = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 公共变量数组实体
|
||||
/// </summary>
|
||||
private Product product = new Product();//最终存入sql的实体
|
||||
private Product product_temp = new Product();//取出自sql的实体缓存
|
||||
public static Boolean Button_sql = false;
|
||||
public static int Buttontype_sql = -1;
|
||||
|
||||
|
||||
private void Button_Preservation(object sender, RoutedEventArgs e)//保存按钮事件
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user