first commit
This commit is contained in:
@@ -0,0 +1,246 @@
|
||||
<UserControl
|
||||
x:Class="JSMachine.WMS.Storage.BusinessModules.Views.PaperStorageView"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:converter="clr-namespace:JSMachine.WMS.Common.Converter;assembly=JSMachine.WMS.Common"
|
||||
xmlns:customercontrols="clr-namespace:JSMachine.WMS.Common.CustomerControls;assembly=JSMachine.WMS.Common"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||||
xmlns:local="clr-namespace:JSMachine.WMS.Storage.BusinessModules.Views"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
xmlns:mvvm="http://prismlibrary.com/"
|
||||
Width="1920"
|
||||
Height="980"
|
||||
mvvm:ViewModelLocator.AutoWireViewModel="True"
|
||||
mc:Ignorable="d">
|
||||
<UserControl.Resources>
|
||||
<ResourceDictionary>
|
||||
<converter:DateTimeConverter x:Key="DateTimeConverter" />
|
||||
<converter:PrintStateToStrConverter x:Key="PrintStateToStrConverter" />
|
||||
</ResourceDictionary>
|
||||
</UserControl.Resources>
|
||||
<Grid Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="8*" />
|
||||
<RowDefinition Height="6*" />
|
||||
<RowDefinition Height="90*" />
|
||||
<RowDefinition Height="6*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Width="200"
|
||||
Height="50"
|
||||
HorizontalAlignment="Left"
|
||||
Command="{Binding IAtuoPrintCmd}"
|
||||
Content="新卷标签自动打印"
|
||||
FontSize="20"
|
||||
Style="{StaticResource MenuButton}" />
|
||||
<WrapPanel Grid.Row="1">
|
||||
<hc:DateTimePicker
|
||||
x:Name="DateTimePickerStart"
|
||||
Width="330"
|
||||
Margin="0,0,0,5"
|
||||
VerticalAlignment="Center"
|
||||
hc:InfoElement.Title="开始时间"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
hc:InfoElement.TitleWidth="80"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectedDateTime="{Binding StartTime}"
|
||||
SelectedDateTimeChanged="DateTimePickerStart_SelectedDateTimeChanged"
|
||||
ShowClearButton="True"
|
||||
Style="{StaticResource DateTimePickerPlus}" />
|
||||
<hc:DateTimePicker
|
||||
x:Name="DateTimePickerEnd"
|
||||
Width="330"
|
||||
Margin="20,0,0,5"
|
||||
VerticalAlignment="Center"
|
||||
hc:InfoElement.Title="结束时间"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
hc:InfoElement.TitleWidth="80"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectedDateTime="{Binding EndTime}"
|
||||
SelectedDateTimeChanged="DateTimePickerEnd_SelectedDateTimeChanged"
|
||||
ShowClearButton="True"
|
||||
Style="{StaticResource DateTimePickerPlus}" />
|
||||
<TextBox
|
||||
x:Name="TxtPaperLabel"
|
||||
Width="250"
|
||||
Margin="20,0,0,5"
|
||||
hc:InfoElement.Placeholder="请输入卷标"
|
||||
hc:InfoElement.Title="原纸卷标"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectionChanged="TxtPaperLabel_SelectionChanged"
|
||||
Style="{StaticResource TextBoxExtend}"
|
||||
Text="{Binding PaperLabel, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
x:Name="TxtSupplier"
|
||||
Width="250"
|
||||
Margin="20,0,0,5"
|
||||
hc:InfoElement.Placeholder="请输入供应商"
|
||||
hc:InfoElement.Title="供应商"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectionChanged="TxtSupplier_SelectionChanged"
|
||||
Style="{StaticResource TextBoxExtend}"
|
||||
Text="{Binding Supplier, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
x:Name="TxtPaperCode"
|
||||
Width="250"
|
||||
Margin="20,0,0,5"
|
||||
hc:InfoElement.Placeholder="请输入纸质"
|
||||
hc:InfoElement.Title="纸质"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectionChanged="TxtPaperCode_SelectionChanged"
|
||||
Style="{StaticResource TextBoxExtend}"
|
||||
Text="{Binding PaperCode, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<TextBox
|
||||
x:Name="TxtPaperWidth"
|
||||
Width="250"
|
||||
Margin="20,0,0,5"
|
||||
hc:InfoElement.Placeholder="请输入门幅"
|
||||
hc:InfoElement.Title="门幅"
|
||||
hc:InfoElement.TitlePlacement="Left"
|
||||
Background="Transparent"
|
||||
FontSize="18"
|
||||
Foreground="#CC8"
|
||||
SelectionChanged="TxtPaperWidth_SelectionChanged"
|
||||
Style="{StaticResource TextBoxExtend}"
|
||||
Text="{Binding PaperWidth, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</WrapPanel>
|
||||
<DataGrid
|
||||
Grid.Row="2"
|
||||
Grid.RowSpan="2"
|
||||
Width="Auto"
|
||||
Height="760"
|
||||
VerticalAlignment="Top"
|
||||
AutoGenerateColumns="False"
|
||||
Background="Transparent"
|
||||
CanUserSortColumns="False"
|
||||
DataGrid.CellStyle="{StaticResource DataGridCellStyle}"
|
||||
DataGrid.RowStyle="{StaticResource DataGridRowStyle}"
|
||||
DataGrid.Style="{StaticResource DataGridStyle}"
|
||||
EnableRowVirtualization="True"
|
||||
FontSize="20"
|
||||
IsReadOnly="True"
|
||||
ItemsSource="{Binding PaperNewStockIns}"
|
||||
RowHeaderWidth="0"
|
||||
SelectedItem="{Binding SelectedPaperNewStockIn}"
|
||||
SelectionMode="Single"
|
||||
VerticalScrollBarVisibility="Auto">
|
||||
<DataGrid.ColumnHeaderStyle>
|
||||
<Style TargetType="{x:Type DataGridColumnHeader}">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="FontWeight" Value="Bold" />
|
||||
</Style>
|
||||
</DataGrid.ColumnHeaderStyle>
|
||||
|
||||
<DataGrid.Columns>
|
||||
<DataGridTextColumn
|
||||
Width="0.6*"
|
||||
Binding="{Binding PaperLabel}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="原纸卷标"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="*"
|
||||
Binding="{Binding Supplier}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="供应商"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.4*"
|
||||
Binding="{Binding PaperUnitWeight}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="克重"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.4*"
|
||||
Binding="{Binding PaperCode}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="纸质"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.4*"
|
||||
Binding="{Binding PaperWidth}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="门幅"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="*"
|
||||
Binding="{Binding Memo}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="备注"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.4*"
|
||||
Binding="{Binding PrintState, Converter={StaticResource PrintStateToStrConverter}}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="打印状态"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.8*"
|
||||
Binding="{Binding PrintTime, Converter={StaticResource DateTimeConverter}}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="自动打印时间"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTextColumn
|
||||
Width="0.8*"
|
||||
Binding="{Binding CreationTime, Converter={StaticResource DateTimeConverter}}"
|
||||
ElementStyle="{StaticResource DataGridTextStyle}"
|
||||
Header="创建时间"
|
||||
HeaderStyle="{StaticResource HeaderStyle}" />
|
||||
<DataGridTemplateColumn
|
||||
x:Name="Operation"
|
||||
Width="0.4*"
|
||||
Header="操作"
|
||||
HeaderStyle="{StaticResource HeaderStyle}">
|
||||
<DataGridTemplateColumn.CellTemplate>
|
||||
<DataTemplate>
|
||||
<Grid>
|
||||
<Button
|
||||
Height="45"
|
||||
Width="100"
|
||||
FontSize="20"
|
||||
Background="#6893f7"
|
||||
Command="{Binding DataContext.IHandPrintCmd, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=DataGrid}}"
|
||||
Content="打印标签"
|
||||
Style="{StaticResource ButtonSuccess}"
|
||||
Tag="{Binding Operation}" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</DataGridTemplateColumn.CellTemplate>
|
||||
</DataGridTemplateColumn>
|
||||
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
<customercontrols:TurnPage
|
||||
Grid.Row="3"
|
||||
Grid.ColumnSpan="3"
|
||||
Margin="0,8,0,0"
|
||||
Background="Transparent" />
|
||||
<Button
|
||||
Grid.Row="0"
|
||||
Width="200"
|
||||
Height="50"
|
||||
Margin="3,9,0,9"
|
||||
HorizontalAlignment="Left"
|
||||
Command="{Binding IAtuoPrintCmd}"
|
||||
Content="新卷标签自动打印"
|
||||
FontSize="20"
|
||||
Style="{StaticResource MenuButton}" />
|
||||
</Grid>
|
||||
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user