115 lines
5.2 KiB
XML
115 lines
5.2 KiB
XML
<Window
|
|
x:Class="SWS.CAD.Views.UserNotification"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converter="clr-namespace:SWS.CAD.Converter"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
Width="1024"
|
|
Height="400"
|
|
AllowsTransparency="True"
|
|
Background="White"
|
|
Loaded="Window_Loaded"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterScreen"
|
|
WindowStyle="None">
|
|
<Window.Resources>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml" />
|
|
|
|
</Window.Resources>
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<converter:NotificationCheckFLGConverter x:Key="mvc" />
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition Height="40"/>
|
|
<RowDefinition />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<local:customWindowTitleBar />
|
|
<Border
|
|
Grid.Row="1"
|
|
Height="30" >
|
|
<StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
|
|
<telerik:RadButton x:Name="btnReceive"
|
|
Command="{Binding Commad_Receive}"
|
|
Content="消息接收列表" Click="btnReceive_Click"
|
|
Style="{StaticResource sysBtn4}"
|
|
Visibility="{Binding IsShow}" />
|
|
<telerik:RadButton x:Name="btnSend"
|
|
Command="{Binding Commad_Send}"
|
|
Content="消息发送列表" Click="btnSend_Click"
|
|
Style="{StaticResource sysBtn3}" />
|
|
<telerik:RadButton
|
|
Command="{Binding Commad_All}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="全部" Width="70"
|
|
Style="{StaticResource sysBtn3}"/>
|
|
<telerik:RadButton
|
|
Command="{Binding Commad_Readed}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="已读" Width="70"
|
|
Style="{StaticResource sysBtn3}" />
|
|
<telerik:RadButton
|
|
Command="{Binding Commad_UnReaded}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="未读" Width="70"
|
|
Style="{StaticResource sysBtn3}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<telerik:RadGridView
|
|
Grid.Row="2"
|
|
telerik:StyleManager.Theme="Windows7"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding Notifications}"
|
|
SelectedItem="{Binding select}"
|
|
SelectionMode="Single"
|
|
ShowGroupPanel="False">
|
|
<telerik:RadGridView.Columns>
|
|
<local:RowNumberColumn Width="50" Header="序号"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CheckFLG, Converter={StaticResource mvc}}" Header="状态" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding SenderUserID}" Header="发送人" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding RetrieveUserID}" Header="接受人" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding DrawingName}" Header="图名" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding Remark}" Header="消息内容" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CreateTime}" Header="日期" />
|
|
</telerik:RadGridView.Columns>
|
|
</telerik:RadGridView>
|
|
|
|
<!--<Border
|
|
Grid.Row="2"
|
|
Height="5"
|
|
Background="{StaticResource ColorPrimary}" />-->
|
|
<Border
|
|
Grid.Row="3"
|
|
Height="30"
|
|
Background="{StaticResource ColorPrimary}">
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding SubmitCommad}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="提交已读"
|
|
Style="{StaticResource sysBtn5}"
|
|
Visibility="{Binding IsShowSubmit}" />
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding CloseCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="关闭"
|
|
Style="{StaticResource sysBtn2}" />
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding OKCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="确定"
|
|
Style="{StaticResource sysBtn}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
</Window>
|