| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234 |
- <Window
- x:Class="SHJX.Service.View.View.TemplateWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- Title="任务模板"
- Width="1000"
- Height="665"
- AllowsTransparency="True"
- Background="Transparent"
- ResizeMode="NoResize"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.8*" />
- <RowDefinition Height="1*" />
- <RowDefinition Height="10*" />
- <RowDefinition Height="1*" />
- </Grid.RowDefinitions>
- <Border
- Grid.Row="0"
- Grid.RowSpan="4"
- Margin="5"
- Background="White"
- BorderBrush="#99CCCC"
- BorderThickness="3">
- <Border.Effect>
- <DropShadowEffect
- BlurRadius="10"
- Opacity="0.8"
- ShadowDepth="0"
- Color="#CCCCCC" />
- </Border.Effect>
- </Border>
- <Border
- Grid.Row="0"
- Margin="5"
- Background="#99CCCC" />
- <Grid
- x:Name="TemplateTag"
- Grid.Row="0"
- MouseLeftButtonDown="TemplateTag_MouseLeftButtonDown">
- <TextBlock
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontSize="13"
- FontWeight="Black"
- Foreground="White"
- Text="模板设置" />
- <Button
- x:Name="btn_template_close"
- Width="25"
- Height="25"
- Margin="0,0,10,0"
- Padding="0"
- HorizontalAlignment="Right"
- pu:ButtonHelper.ButtonStyle="Hollow"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="20"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="Transparent"
- BorderBrush="Transparent"
- Click="btn_template_close_Click"
- Cursor="Hand">
- <Image
- Width="25"
- Height="25"
- Source="/SHJX.Service.Resource;component/Resources/关闭.png" />
- </Button>
- </Grid>
- <Border
- Grid.Row="1"
- Width="970"
- Height="40"
- VerticalAlignment="Center"
- CornerRadius="8">
- <TextBox
- x:Name="TemplateSearch"
- Width="200"
- Height="30"
- Margin="15,0"
- HorizontalAlignment="Right"
- pu:TextBoxHelper.CornerRadius="10"
- pu:TextBoxHelper.FocusedBorderBrush="#99CCCC"
- pu:TextBoxHelper.FocusedShadowColor="#99CCCC"
- pu:TextBoxHelper.Watermark="根据节点名称查找"
- BorderBrush="#99CCCC"
- Cursor="IBeam"
- Foreground="#99CCCC">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="TextChanged">
- <i:InvokeCommandAction Command="{Binding TemplateSearchChangedCommand}" CommandParameter="{Binding ElementName=TemplateSearch}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBox>
- </Border>
- <Border
- Grid.Row="2"
- Width="970"
- CornerRadius="8">
- <GroupBox
- Width="940"
- Height="510"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- pu:GroupBoxHelper.CornerRadius="8"
- pu:GroupBoxHelper.IsSplitLineVisible="True"
- pu:GroupBoxHelper.ShadowColor="#66CCCC"
- BorderBrush="#99CCCC"
- Foreground="#99CCCC"
- Header="任务模板">
- <ScrollViewer
- Grid.Row="0"
- HorizontalAlignment="Stretch"
- BorderBrush="#99CCCC"
- Cursor="Hand"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Auto">
- <DataGrid
- x:Name="dg_template"
- Width="925"
- Height="460"
- pu:DataGridHelper.ColumnHorizontalContentAlignment="Center"
- pu:DataGridHelper.HeaderBackground="#5099CCCC"
- pu:DataGridHelper.HeaderForeground="White"
- pu:DataGridHelper.HeaderMinHeight="45"
- pu:DataGridHelper.HoverBackground="#5066CCCC"
- pu:DataGridHelper.SelectedBackground="#5099CCCC"
- BorderBrush="#99CCCC"
- CanUserAddRows="False"
- Foreground="#99CCCC"
- ItemsSource="{Binding DetailInfos, Mode=TwoWay}"
- SelectedItem="{Binding SelectedEmployee, Mode=TwoWay}"
- SelectionMode="Extended">
- <pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- <Style BasedOn="{StaticResource {x:Type CheckBox}}" TargetType="CheckBox">
- <Setter Property="pu:CheckBoxHelper.CheckBoxStyle" Value="Switch" />
- <Style.Triggers>
- <DataTrigger Binding="{Binding Path=(pu:CheckBoxHelper.CheckBoxStyle), RelativeSource={RelativeSource Self}}" Value="Switch">
- <Setter Property="pu:CheckBoxHelper.CheckedBackground" Value="#99CCCC" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </pu:DataGridHelper.AutoGenerateCheckBoxStyle>
- <DataGrid.ContextMenu>
- <ContextMenu Name="dgmenu1" StaysOpen="true">
- <MenuItem Command="{Binding InsertOneDataCommand}" Header="数据增加" />
- <MenuItem Command="{Binding DeleteOneDataCommand}" Header="删除选中" />
- <MenuItem Command="{Binding UpdateOneDataCommand}" Header="类型修改" />
- </ContextMenu>
- </DataGrid.ContextMenu>
- </DataGrid>
- </ScrollViewer>
- </GroupBox>
- </Border>
- <Border
- Grid.Row="3"
- Width="970"
- Height="40"
- VerticalAlignment="Center"
- CornerRadius="8"
- Cursor="Hand">
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
- <Button
- Width="90"
- Height="30"
- Margin="0,0,10,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- BorderBrush="#FFF"
- Command="{Binding InterfaceDisplayCommand}"
- Content="界面数据导入"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- <Button
- Width="90"
- Height="30"
- Margin="0,0,10,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- BorderBrush="#FFF"
- Command="{Binding ImportTemplateToInterfaceCommand}"
- Content="导出至界面"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- <Button
- Width="90"
- Height="30"
- Margin="0,0,10,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- BorderBrush="#FFF"
- Command="{Binding ImportTemplateCommand}"
- Content="模板导入"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- <Button
- Width="90"
- Height="30"
- Margin="0,0,15,0"
- pu:ButtonHelper.ClickStyle="Sink"
- pu:ButtonHelper.CornerRadius="12"
- pu:ButtonHelper.HoverBrush="#66CCCC"
- Background="#99CCCC"
- BorderBrush="#FFF"
- Command="{Binding SavaTemplateCommand}"
- Content="模板导出"
- Cursor="Hand"
- FontFamily="{StaticResource FontAwesome}"
- Foreground="#FFF" />
- </StackPanel>
- </Border>
- </Grid>
- </Window>
|