终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

143 satır
7.7 KiB

  1. <UserControl x:Class="BPASmartClient.JXJFoodBigStation.View.StockBinRawMaterialView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:vm="clr-namespace:BPASmartClient.JXJFoodBigStation.ViewModel"
  8. mc:Ignorable="d"
  9. d:DesignHeight="1080" d:DesignWidth="1920">
  10. <UserControl.DataContext>
  11. <vm:StockBinRawMaterialViewModel />
  12. </UserControl.DataContext>
  13. <Grid Margin="10">
  14. <Grid.RowDefinitions>
  15. <!--<RowDefinition Height="60" />-->
  16. <RowDefinition Height="60" />
  17. <RowDefinition />
  18. </Grid.RowDefinitions>
  19. <!--#region 表格标题栏设置-->
  20. <!--<Grid>
  21. <StackPanel HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">
  22. <pry:IcoButton
  23. Margin="10"
  24. Command="{Binding UpdateRawMaterial}"
  25. Content="新增数据"
  26. FontSize="28"
  27. Foreground="Aqua"
  28. Style="{StaticResource IcoButtonStyle}" />
  29. <pry:IcoButton
  30. Margin="10"
  31. Command="{Binding SaveRawMaterialPara}"
  32. Content="保存参数"
  33. FontSize="28"
  34. Foreground="Aqua"
  35. Style="{StaticResource IcoButtonStyle}" />
  36. </StackPanel>
  37. </Grid>-->
  38. <Grid
  39. Grid.Row="0"
  40. Margin="0,10,0,0"
  41. Background="#ff0C255F">
  42. <Grid.ColumnDefinitions>
  43. <ColumnDefinition Width="1*"/>
  44. <ColumnDefinition Width="1*"/>
  45. <ColumnDefinition Width="1*"/>
  46. <ColumnDefinition Width="1*"/>
  47. </Grid.ColumnDefinitions>
  48. <Grid Grid.Column="0">
  49. <TextBlock Text="序号" FontSize="24" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua"/>
  50. <Border BorderThickness="1,1,1,1" Cursor="SizeWE" />
  51. </Grid>
  52. <TextBlock Grid.Column="1" FontSize="24" Text="料仓位置" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
  53. <TextBlock Grid.Column="2" FontSize="24" Text="原料编号" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
  54. <TextBlock Grid.Column="3" FontSize="24" Text="原料名称" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Aqua" />
  55. </Grid>
  56. <Grid Grid.Row="1">
  57. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" >
  58. <ItemsControl ItemsSource="{Binding RawMaterialInfo}" Foreground="Aqua">
  59. <ItemsControl.ItemTemplate>
  60. <DataTemplate>
  61. <Grid Name="gr" Margin="5">
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition />
  64. <ColumnDefinition />
  65. <ColumnDefinition />
  66. <ColumnDefinition />
  67. </Grid.ColumnDefinitions>
  68. <Grid Grid.Column="0" Margin="5">
  69. <TextBlock
  70. FontSize="16"
  71. HorizontalAlignment="Center"
  72. VerticalAlignment="Center"
  73. Text="{Binding RawMaterialCount}" />
  74. <Border
  75. BorderThickness="1,0,1,0"
  76. Cursor="SizeWE" />
  77. </Grid>
  78. <Grid Grid.Column="1" Margin="5">
  79. <TextBlock
  80. FontSize="16"
  81. TextAlignment="Center"
  82. HorizontalAlignment="Center"
  83. VerticalAlignment="Center"
  84. Text="{Binding RawMaterialLocation}" />
  85. <Border
  86. BorderThickness="1,0,1,0"
  87. Cursor="SizeWE" />
  88. </Grid>
  89. <Grid Grid.Column="2" Margin="5">
  90. <TextBlock
  91. FontSize="16"
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. Text="{Binding RawMaterialName}" />
  95. <Border
  96. BorderThickness="1,0,1,0"
  97. Cursor="SizeWE" />
  98. </Grid>
  99. <Grid Grid.Column="3">
  100. <TextBlock
  101. FontSize="16"
  102. HorizontalAlignment="Center"
  103. VerticalAlignment="Center"
  104. Text="{Binding RawMaterialChineseName}" />
  105. <Border
  106. BorderThickness="1,0,1,0"
  107. Cursor="SizeWE" />
  108. <!--<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  109. <pry:IcoButton
  110. Margin="3,4,4,0"
  111. HorizontalAlignment="Center"
  112. VerticalAlignment="Center"
  113. Background="#11F53F62"
  114. BorderThickness="0"
  115. Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  116. CommandParameter="{Binding RawMaterialLocation}"
  117. Content="删除"
  118. EnterBackground="#22F53F62"
  119. Foreground="#FFF53F62"
  120. IcoText="&#xe68e;"
  121. Style="{StaticResource IcoButtonStyle}" />
  122. </StackPanel>-->
  123. </Grid>
  124. </Grid>
  125. <DataTemplate.Triggers>
  126. <Trigger Property="IsMouseOver" Value="true">
  127. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  128. </Trigger>
  129. </DataTemplate.Triggers>
  130. </DataTemplate>
  131. </ItemsControl.ItemTemplate>
  132. </ItemsControl>
  133. </ScrollViewer>
  134. </Grid>
  135. </Grid>
  136. </UserControl>