109 lines
5.1 KiB
Plaintext
109 lines
5.1 KiB
Plaintext
|
<UserControl x:Class="DM_Weight.Views.SetMenuWindow"
|
||
|
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||
|
xmlns:local="clr-namespace:DM_Weight.Views"
|
||
|
mc:Ignorable="d" >
|
||
|
<UserControl.Resources>
|
||
|
<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.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
<ColumnDefinition />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid Grid.Column="2" Margin="6">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="Auto" />
|
||
|
<RowDefinition />
|
||
|
</Grid.RowDefinitions>
|
||
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
||
|
<!--<ComboBox
|
||
|
Margin="0 0 6 0"
|
||
|
Grid.Column="0"
|
||
|
materialDesign:HintAssist.Hint="药品名称/拼音码"
|
||
|
IsEditable="True"
|
||
|
ItemsSource="{Binding DrugInfos}"
|
||
|
SelectedItem="{Binding DrugInfo}"
|
||
|
DisplayMemberPath="drug_name_spec" IsEnabled="True" IsTextSearchEnabled="False" KeyUp="ComboBox_KeyUp"
|
||
|
/>
|
||
|
<TextBox
|
||
|
Grid.Column="1"
|
||
|
Text="{Binding BaseQuantity}"
|
||
|
materialDesign:HintAssist.Hint="药品基数"
|
||
|
Margin="16 0 32 6" Width="100"
|
||
|
Style="{StaticResource MaterialDesignTextBoxBase}"/>-->
|
||
|
<Button
|
||
|
Margin="6 0 6 6"
|
||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||
|
ToolTip="新建套餐"
|
||
|
Content="新建套餐"
|
||
|
Command="{Binding BindingAddMenu}"/>
|
||
|
<Button
|
||
|
Margin="6 0 6 6"
|
||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||
|
ToolTip="移除药品"
|
||
|
Content="移除药品"
|
||
|
Command="{Binding RemoveMenu}" />
|
||
|
<Button
|
||
|
Margin="0 0 6 6"
|
||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||
|
ToolTip="刷新"
|
||
|
Command="{Binding Query}"
|
||
|
Content="{materialDesign:PackIcon Refresh}"/>
|
||
|
</StackPanel>
|
||
|
<ListView
|
||
|
Padding="0 6 0 0" Grid.Row="1"
|
||
|
ItemsSource="{Binding MenuList, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}"
|
||
|
|
||
|
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>
|
||
|
<ListView.View>
|
||
|
<GridView>
|
||
|
<GridViewColumn Width="100"
|
||
|
DisplayMemberBinding="{Binding Name}"
|
||
|
Header="套餐"/>
|
||
|
<GridViewColumn Width="100"
|
||
|
DisplayMemberBinding="{Binding DrugInfo.DrugName}"
|
||
|
Header="药品名称"/>
|
||
|
<GridViewColumn Width="200"
|
||
|
DisplayMemberBinding="{Binding DrugInfo.Manufactory}"
|
||
|
Header="厂家"/>
|
||
|
<GridViewColumn Width="100"
|
||
|
DisplayMemberBinding="{Binding DrugInfo.DrugSpec}"
|
||
|
Header="规格"/>
|
||
|
<GridViewColumn Width="80"
|
||
|
DisplayMemberBinding="{Binding BaseQuantity}"
|
||
|
Header="药品基数"/>
|
||
|
|
||
|
</GridView>
|
||
|
</ListView.View>
|
||
|
</ListView>
|
||
|
<materialDesign:Snackbar
|
||
|
Background="{Binding SnackbarBackground}"
|
||
|
MessageQueue="{Binding SnackbarMessageQueue}"/>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
</UserControl>
|