141 lines
6.3 KiB
Plaintext
141 lines
6.3 KiB
Plaintext
|
<UserControl x:Class="DM_Weight.Views.CollectDrugWindow"
|
||
|
xmlns:pagination="clr-namespace:DM_Weight.Components.pagination"
|
||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||
|
xmlns:local="clr-namespace:DM_Weight.Views"
|
||
|
mc:Ignorable="d"
|
||
|
xmlns:convert="clr-namespace:DM_Weight.Converter"
|
||
|
xmlns:prism="http://prismlibrary.com/">
|
||
|
<UserControl.Resources>
|
||
|
<convert:OrderStatusConverter x:Key="OrderStatusConverter" />
|
||
|
<Style x:Key="st" TargetType="GridViewColumnHeader">
|
||
|
<Style.Setters>
|
||
|
<Setter Property="Height">
|
||
|
<Setter.Value>55</Setter.Value>
|
||
|
</Setter>
|
||
|
<Setter Property="Background">
|
||
|
<Setter.Value>#31ccec</Setter.Value>
|
||
|
</Setter>
|
||
|
<Setter Property="Foreground">
|
||
|
<Setter.Value>white</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style.Setters>
|
||
|
</Style>
|
||
|
</UserControl.Resources>
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid Margin="0 6 0 6" Grid.Row="0">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="110" />
|
||
|
<ColumnDefinition Width="180" />
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<ComboBox
|
||
|
Grid.Column="0"
|
||
|
Margin="6 0 0 0"
|
||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||
|
SelectedItem="{Binding SelectedItem}"
|
||
|
DisplayMemberPath="Name"
|
||
|
ItemsSource="{Binding Selects}"
|
||
|
/>
|
||
|
<TextBox
|
||
|
Grid.Column="1"
|
||
|
Text="{Binding SearchValue}"
|
||
|
materialDesign:HintAssist.Hint="{Binding SelectedItem.Name}"
|
||
|
Margin="6 0 0 0"
|
||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||
|
|
||
|
<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
|
||
|
|
||
|
<Button
|
||
|
Margin="0 0 6 0"
|
||
|
VerticalAlignment="Center"
|
||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||
|
ToolTip="刷新" Command="{Binding Query}">
|
||
|
<materialDesign:PackIcon
|
||
|
Kind="Refresh" />
|
||
|
</Button>
|
||
|
|
||
|
<Button
|
||
|
Margin="0 0 6 0"
|
||
|
VerticalAlignment="Center" Command="{Binding CreateApplyOrder}"
|
||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}" Content="生成请领单">
|
||
|
</Button>
|
||
|
</StackPanel>
|
||
|
|
||
|
|
||
|
</Grid>
|
||
|
<ListView
|
||
|
Grid.Row="1"
|
||
|
ItemsSource="{Binding CollectDrugs}"
|
||
|
SelectedItem="{Binding selectCollectDrug}"
|
||
|
materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"
|
||
|
materialDesign:DataGridAssist.ColumnHeaderPadding="10"
|
||
|
materialDesign:ListViewAssist.ListViewItemPadding="13">
|
||
|
<ListView.Resources>
|
||
|
<Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
|
||
|
<Setter Property="Foreground" Value="White" />
|
||
|
</Style>
|
||
|
</ListView.Resources>
|
||
|
<i:Interaction.Triggers>
|
||
|
<i:EventTrigger EventName="SelectionChanged">
|
||
|
<i:InvokeCommandAction Command="{Binding RowSelected}" />
|
||
|
</i:EventTrigger>
|
||
|
</i:Interaction.Triggers>
|
||
|
<ListView.View>
|
||
|
<GridView ColumnHeaderContainerStyle="{StaticResource st}">
|
||
|
<GridViewColumn Header="选择" Width="60">
|
||
|
<GridViewColumn.CellTemplate>
|
||
|
<DataTemplate>
|
||
|
<CheckBox IsChecked="{Binding IsSelected}" />
|
||
|
</DataTemplate>
|
||
|
</GridViewColumn.CellTemplate>
|
||
|
</GridViewColumn>
|
||
|
<GridViewColumn Width="110"
|
||
|
Header="患者ID"
|
||
|
DisplayMemberBinding="{Binding PatientId}"/>
|
||
|
<GridViewColumn Width="130"
|
||
|
Header="姓名"
|
||
|
DisplayMemberBinding="{Binding PName}" />
|
||
|
<GridViewColumn Width="60"
|
||
|
DisplayMemberBinding="{Binding Sex}"
|
||
|
Header="性别"/>
|
||
|
<GridViewColumn Width="60"
|
||
|
DisplayMemberBinding="{Binding Age}"
|
||
|
Header="年龄"/>
|
||
|
<GridViewColumn Width="200"
|
||
|
DisplayMemberBinding="{Binding IdNumber}"
|
||
|
Header="身份证"/>
|
||
|
<GridViewColumn Width="200"
|
||
|
DisplayMemberBinding="{Binding OrderNo}"
|
||
|
Header="处方号"/>
|
||
|
<GridViewColumn Width="240"
|
||
|
DisplayMemberBinding="{Binding DeptName}"
|
||
|
Header="科室"/>
|
||
|
<GridViewColumn Width="240"
|
||
|
DisplayMemberBinding="{Binding DrugName}"
|
||
|
Header="药品名称"/>
|
||
|
<GridViewColumn Width="60"
|
||
|
DisplayMemberBinding="{Binding Quantity}"
|
||
|
Header="数量"/>
|
||
|
</GridView>
|
||
|
</ListView.View>
|
||
|
</ListView>
|
||
|
|
||
|
<!--<pagination:Pagination Grid.Row="2"
|
||
|
CurrentPage="{Binding PageNum}"
|
||
|
PageSize="{Binding PageSize}"
|
||
|
TotalPages="{Binding TotalCount}"
|
||
|
InfoTextIsEnabel="True"
|
||
|
/>-->
|
||
|
</Grid>
|
||
|
</UserControl>
|