PipefyProspUpdate/Users.xaml

92 lines
6.5 KiB
XML

<Page x:Class="PipefyProspUpdate.Users"
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:local="clr-namespace:PipefyProspUpdate"
mc:Ignorable="d"
Title="Users">
<Grid x:Name="grid">
<ProgressBar x:Name="ProgressBar" HorizontalAlignment="Stretch" Height="15" VerticalAlignment="Top" IsIndeterminate="False"/>
<Button x:Name="BackButton" Content="Voltar" Width="100" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="19,24,0,0" Click="BackButton_Click" FontSize="14"/>
<Button x:Name="ReloadButton" Content="Recarregar Cards" Width="144" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="145,23,0,0" Click="ReloadButton_Click" FontSize="14"/>
<Label Content="Pesquisar Responsáveis:" HorizontalAlignment="Left" Margin="19,95,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
<TextBox x:Name="UsersSearchBox" AllowDrop="False" Width="226" Height="30" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="19,121,0,0"/>
<ListBox x:Name="UsersSuggestionsList" Width="226" HorizontalAlignment="Left" Margin="19,156,0,10"
ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True"
SelectionMode="Multiple"
ItemsSource="{Binding Models.Users}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<TextBlock.Text >
<MultiBinding StringFormat="{}{0} ({1}) ">
<Binding Path="name" />
<Binding Path="email" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<CheckBox x:Name="KeepProsp" Content="Manter Prospectante dos cards" HorizontalAlignment="Left" Margin="333,121,0,0" VerticalAlignment="Top" Width="224" Unchecked="CheckBox_Changed" Checked="CheckBox_Changed"/>
<Label x:Name="labelProsp" Content="Prospectante:" HorizontalAlignment="Left" Margin="333,136,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
<ListBox x:Name="ProspectanteChangeBox" Margin="333,160,0,0" HorizontalAlignment="Left" Width="224" Height="35" VerticalAlignment="Top"
SelectionMode="Multiple"
PreviewKeyDown="ChangeBox_PreviewKeyDown"
ItemsSource="{Binding Models.Users}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path= name, StringFormat={}{0}}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<CheckBox x:Name="KeepResp" Content="Manter Responsáveis dos cards" HorizontalAlignment="Left" Margin="333,205,0,0" VerticalAlignment="Top" Width="224" Unchecked="CheckBox_Changed" Checked="CheckBox_Changed"/>
<Label Content="Demais envolvidos:" HorizontalAlignment="Left" Margin="333,220,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
<ListBox x:Name="ResponsavelChangeBox" Margin="333,246,0,10" HorizontalAlignment="Left" Width="224"
SelectionMode="Multiple"
PreviewKeyDown="ChangeBox_PreviewKeyDown"
ItemsSource="{Binding Models.Users}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path= name, StringFormat={}{0}}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<ListBox x:Name="CardsChangeBox" Margin="579,126,10,10"
AllowDrop="False"
IsEnabled="True"
ItemsSource="{Binding Models.Node}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<Hyperlink NavigateUri= "{Binding Url}" RequestNavigate="Hyperlink_RequestNavigate">
<TextBlock>
<TextBlock.Text >
<MultiBinding StringFormat="[{0}] {1} - {2} ">
<Binding Path="pipe.name[0]" />
<Binding Path="id" />
<Binding Path="title" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</Hyperlink>
</TextBlock>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Label Content="{Binding LabelContent}" HorizontalAlignment="Left" Margin="19,59,0,0" VerticalAlignment="Top" Width="140" Height="36"/>
<Label Content="ID dos cards a serem alterados:" HorizontalAlignment="Left" Margin="579,95,0,0" VerticalAlignment="Top" FontWeight="Bold"/>
<Button x:Name="ProspAdd" Content="Adicionar &gt;&gt;" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="250,160,0,0" Height="15" FontSize="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="78" RenderTransformOrigin="1.22,0.533" Click="ProspAdd_Click"/>
<Button x:Name="ProspRemove" Content="&lt;&lt; Remover" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="250,180,0,0" Height="15" FontSize="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="78" RenderTransformOrigin="1.22,0.533" Click="ProspRemove_Click"/>
<Button x:Name="OtherAdd" Content="Adicionar &gt;&gt;" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="250,487,0,0" Height="16" FontSize="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="78" RenderTransformOrigin="1.22,0.533" Click="OtherAdd_Click"/>
<Button x:Name="OtherRemove" Content="&lt;&lt; Remover" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Margin="250,507,0,0" Height="16" FontSize="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="78" RenderTransformOrigin="1.22,0.533" Click="OtherRemove_Click"/>
<Button x:Name="RunMutations" Content="Atualizar Prospectantes" HorizontalAlignment="Left" Margin="664,24,0,0" VerticalAlignment="Top" Height="30" Width="139" Click="RunMutations_Click"/>
</Grid>
</Page>