终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StockBinRawMaterialView.xaml 7.6 KiB

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