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:local="clr-namespace:InterfaceSimulator.Pages.His"
xmlns:localVM="clr-namespace:InterfaceSimulator.ViewModel"
xmlns:hc="clr-namespace:HandyControl.Controls;assembly=HandyControl"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Title="PageHisRegRecordMain">
Text="{Binding Data.PatientID, Mode=TwoWay}"
Style="{StaticResource TextBoxExtend}"
hc:InfoElement.TitleWidth="80"
hc:InfoElement.TitlePlacement="Left"
hc:InfoElement.Title="患者编号"
hc:InfoElement.Necessary="True"
hc:InfoElement.Placeholder="请输入患者编号"
Width="200"
VerticalAlignment="Center"
HorizontalAlignment="Left"
>
<DataGrid x:Name="MasterGrid" Grid.Row="1" Grid.Column="1"
ItemsSource="{Binding Path = DataList}"
AutoGenerateColumns="True"
HeadersVisibility="All" RowHeaderWidth="60"
SelectionMode="Single"
SelectionUnit="FullRow"
>
CommandParameter="{Binding Path=SelectedItem, ElementName= MasterGrid }"
/>
AutoGenerateColumns="True"
HeadersVisibility="All" RowHeaderWidth="60"
SelectionMode="Single"
SelectionUnit="FullRow"
>
---------------------------------------------
private RelayCommand
get
{
if (operationCommand == null)
{
operationCommand = new RelayCommand
}
return operationCommand;
}
set
{
updateCommand = value;
}
}
public override void OperationData(object param)
{
if (param != null)
{
var regFlow = (param as HisRegRecorder).RegFlow;
this.DetailDataList = dal.Query
}
}