Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl x:Class="PDCL.ERP.Modules.Marketing.Views.DoctorDue.DoctorDueView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
- xmlns:pdcl="http://binaryquest.com/PDCL.ERP/Controls"
- xmlns:local="clr-namespace:PDCL.ERP.Modules.Marketing"
- xmlns:localViews="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
- xmlns:UserControls="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
- xmlns:C="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
- MinHeight="500" MinWidth="500">
- <UserControl.CommandBindings >
- <CommandBinding Command="localViews:DoctorDueView.EnterPressedCommand" Executed="CommandBinding_Executed"/>
- <CommandBinding Command="localViews:DoctorDueView.UpPressedCommand" Executed="CommandBinding_Executed_1" />
- <!--<CommandBinding Command="localViews:DoctorDueView.RefreshCommand" Executed="BtnRefresh_Click" />-->
- <CommandBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Executed="MyCommandExecute" />
- </UserControl.CommandBindings>
- <UserControl.Resources>
- <!--<local:MarketingModule x:Key="oppositeConverter" />-->
- <!--CalculativeParameterTemplate-->
- <!--<DataTemplate x:Key="CalculativeParameterTemplate">
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
- <StackPanel Orientation="Horizontal" >
- <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" />
- <TextBlock Text="{Binding DoctorList}" Margin="1" Padding="2" MinWidth="250" HorizontalAlignment="Left" />
- <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
- </StackPanel>
- </Border>
- </DataTemplate>-->
- <!--DifferentialCountTemplate-->
- <!--<DataTemplate x:Key="DifferentialCountTemplate">
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}">
- <StackPanel Orientation="Horizontal" >
- <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="80" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" Foreground="Red" />
- </StackPanel>
- </Border>
- </DataTemplate>-->
- <!--ParaResultTemplate-->
- <!--<DataTemplate x:Key="ParaResultTemplate">
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
- <StackPanel Orientation="Horizontal" >
- <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
- <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" />
- <localViews:CustomTextBox4DoctorDue Text="{Binding DoctorList}" Margin="1" Padding="2" MinWidth="250" Tag="txt" Loaded="TextBox_Loaded" LostFocus="CustomTextBox4DoctorDue_LostFocus" GotFocus="CustomTextBox4DoctorDue_GotFocus" MaxLength="250" TextWrapping="Wrap">
- <localViews:CustomTextBox4DoctorDue.InputBindings>
- <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />
- <KeyBinding Key="Down" Command="localViews:DoctorDueView.EnterPressedCommand" />
- <KeyBinding Key="Up" Command="localViews:DoctorDueView.UpPressedCommand" />
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="A" CommandParameter="'A' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="B" CommandParameter="'B' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D" CommandParameter="Not done"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="F" CommandParameter="Not found"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="H" CommandParameter="/HPF"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="N" CommandParameter="Nil"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="N" CommandParameter="Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="O" CommandParameter="'O' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="P" CommandParameter="Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="Q" CommandParameter="Rapid Immunochromatographic Test"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="R" CommandParameter="Reactive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="T" CommandParameter="Non Reactive(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="W" CommandParameter="1:"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Key="D1" Modifiers="Ctrl" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D1" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad1" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D2" CommandParameter="(++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad2" CommandParameter="(++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D3" CommandParameter="(+++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad3" CommandParameter="(+++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D4" CommandParameter="1:40"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad4" CommandParameter="1:40"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D6" CommandParameter="1:160"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad6" CommandParameter="1:160"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D7" CommandParameter="HBsAg-Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad7" CommandParameter="HBsAg-Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D7" CommandParameter="HBs Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad7" CommandParameter="HBs Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D8" CommandParameter="1:80"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad8" CommandParameter="1:80"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D9" CommandParameter="HBsAg-Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad9" CommandParameter="HBsAg-Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D9" CommandParameter="HBs Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad9" CommandParameter="HB Positive(+ve)"/>
- </localViews:CustomTextBox4DoctorDue.InputBindings>
- </localViews:CustomTextBox4DoctorDue>
- <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
- </StackPanel>
- </Border>
- </DataTemplate>-->
- <!--<local:DoctorsDueMessage DifferentialCountParameterTemplate="{StaticResource DifferentialCountTemplate}"
- NomalParameterTemplate="{StaticResource ParaResultTemplate}"
- CalculativeParameterTemplate="{StaticResource CalculativeParameterTemplate}"
- x:Key="TParamSelector" />-->
- </UserControl.Resources>
- <Grid x:Name="Root">
- <pdcl:BaseListView Heading="Doctors List" FilterHeading="Filters" FilterVisibile="True" x:Name="baseView">
- <pdcl:BaseListView.FilterPanel>
- <Grid>
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Filter By Employee"/></TextBlock>
- <ComboBox Grid.Column="1" Grid.Row="0" MaxHeight="25" Margin="2" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" SelectedValuePath="EmployeeId" ItemsSource="{Binding Employees}" DisplayMemberPath="FullName" />
- <!--<TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Doctors Name Like"/></TextBlock>-->
- <!--<TextBox Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Margin="2"/>-->
- <!--<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Doctors Address Like"/></TextBlock>-->
- <!--<TextBox Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="2"/>-->
- <Button Grid.Column="1" Grid.Row="3" Margin="2" HorizontalAlignment="Left" Width="80" Content="Filter" Command="{Binding LoadRecordsCommand}"/>
- <Button Grid.Column="2" Grid.Row="3" Margin="2" HorizontalAlignment="Left" Width="80" Content="Clear Filter" Command="{Binding ClearFilterCommand}"/>
- </Grid>
- </Grid>
- </pdcl:BaseListView.FilterPanel>
- <pdcl:BaseListView.Body>
- <HeaderedContentControl Header="Body Info..." Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
- <Grid>
- <Grid.Resources>
- <DataTemplate x:Key="OrderLineParaResultTemplate">
- <StackPanel>
- <ItemsControl ItemsSource="{Binding DoctorList}"/>
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
- <StackPanel Orientation="Horizontal" >
- <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
- <TextBlock Padding="2"></TextBlock>
- <TextBlock Text="{Binding Due}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>
- </StackPanel>
- </Border>
- <!--<ItemsControl ItemsSource="{Binding ParaResults}" ItemTemplate="{StaticResource ParaResultTemplate}"/>-->
- <!--<ItemsControl ItemsSource="{Binding DoctorList}" ItemTemplateSelector="{StaticResource TParamSelector}" />-->
- <!--</ItemsControl>-->
- </StackPanel>
- </DataTemplate>
- <DataTemplate x:Key="OrderLineSingleResultTemplate">
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
- <StackPanel Orientation="Horizontal" >
- <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
- <TextBlock Padding="2"></TextBlock>
- <TextBlock Text="{Binding Due}" Margin="1" Padding="2" MinWidth="340" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>
- <localViews:CustomTextBox4DoctorDue Text="{Binding SingleResult}" Margin="1" Padding="2" MinWidth="250" Tag="txt" Loaded="TextBox_Loaded" LostFocus="CustomTextBox4DoctorDue_LostFocus" GotFocus="CustomTextBox4DoctorDue_GotFocus" MaxLength="4000" TextWrapping="Wrap">
- <localViews:CustomTextBox4DoctorDue.InputBindings>
- <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />
- <KeyBinding Key="Down" Command="localViews:DoctorDueView.EnterPressedCommand" />
- <KeyBinding Key="Up" Command="localViews:DoctorDueView.UpPressedCommand" />
- <!--<KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="A" CommandParameter="'A' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="B" CommandParameter="'B' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D" CommandParameter="Not done"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="F" CommandParameter="Not found"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="H" CommandParameter="/HPF"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="N" CommandParameter="Nil"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="N" CommandParameter="Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="O" CommandParameter="'O' Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="P" CommandParameter="Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="Q" CommandParameter="Rapid Immunochromatographic Test"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="R" CommandParameter="Reactive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="T" CommandParameter="Non Reactive(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="W" CommandParameter="1:"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Key="D1" Modifiers="Ctrl" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D1" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad1" CommandParameter="(+)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D2" CommandParameter="(++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad2" CommandParameter="(++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D3" CommandParameter="(+++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad3" CommandParameter="(+++)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D4" CommandParameter="1:40"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad4" CommandParameter="1:40"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D6" CommandParameter="1:160"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad6" CommandParameter="1:160"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D7" CommandParameter="HBsAg-Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad7" CommandParameter="HBsAg-Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D7" CommandParameter="HBs Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad7" CommandParameter="HBs Negative(-ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D8" CommandParameter="1:80"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad8" CommandParameter="1:80"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D9" CommandParameter="HBsAg-Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad9" CommandParameter="HBsAg-Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D9" CommandParameter="HBs Positive(+ve)"/>
- <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad9" CommandParameter="HB Positive(+ve)"/>-->
- </localViews:CustomTextBox4DoctorDue.InputBindings>
- </localViews:CustomTextBox4DoctorDue >
- <!--<TextBlock Text="{Binding DoctorList}" Visibility="Collapsed"/>-->
- </StackPanel>
- </Border>
- </DataTemplate>
- <!--<DataTemplate x:Key="BloodFilmTemplate">
- <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
- <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
- <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
- <TextBlock></TextBlock>
- <Button Content="Edit" Click="editButton_Click"/>-->
- <!--<TextBlock Text="{Binding Due}" Margin="1" MinWidth="340" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>-->
- <!--<Button Height="30" Width="80" Margin="5" Background="#FF7F90FC" BorderBrush="#95FFFFFF" Click="Button_Click">Edit</Button>-->
- <!--<localViews:CustomTextBox4DoctorDue IsReadOnly="True" Text="{Binding SingleResult}" Height="100" Margin="1" Tag="txt" Loaded="TextBox_Loaded" LostFocus="CustomTextBox4DoctorDue_LostFocus"
- GotFocus="CustomTextBox4DoctorDue_GotFocus" MaxLength="8000"
- TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" MinWidth="350" MaxWidth="500">
- <localViews:CustomTextBox4DoctorDue.InputBindings>
- <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />-->
- <!--<KeyBinding Key="Down" Command="localViews:CombinedResultEntryView.EnterPressedCommand" />
- <KeyBinding Key="Up" Command="localViews:CombinedResultEntryView.UpPressedCommand" />-->
- <!--</localViews:CustomTextBox4DoctorDue.InputBindings>
- </localViews:CustomTextBox4DoctorDue >
- <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
- </StackPanel>
- </Border>
- </DataTemplate>-->
- <!--<local:OrderLineSelector OrderLineBloodFilmTemplate="{StaticResource BloodFilmTemplate}" SingleResultTemplate="{StaticResource OrderLineSingleResultTemplate}" ParaResultTemplate="{StaticResource OrderLineParaResultTemplate}" x:Key="TSelector"/>-->
- </Grid.Resources>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border BorderBrush="Chocolate" Background="Blue" BorderThickness=".5" Padding="2" Margin="1" Grid.Row="0" Grid.Column="0" >
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Doctor Name" MinWidth="100" HorizontalAlignment="Left" Margin="2" Padding="2" FontWeight="Bold" Foreground="White" />
- <TextBlock Text="Contact" MinWidth="120" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White" />
- <TextBlock Text="Address" MinWidth="320" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White"/>
- <TextBlock Text="Due Amount" MinWidth="300" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White"/>
- </StackPanel>
- </Border>
- <!--<ListBox Grid.Column="0" Grid.Row="1" ItemsSource="{Binding LstOrderLine}" ItemTemplateSelector="{StaticResource TSelector}" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch"/>-->
- <ItemsControl Grid.Column="0" Grid.Row="1" ItemsSource="{Binding DoctorList}"
- HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch">
- <ItemsControl.Template>
- <ControlTemplate>
- <ScrollViewer Padding="{TemplateBinding Padding}">
- <ItemsPresenter />
- </ScrollViewer>
- </ControlTemplate>
- </ItemsControl.Template>
- </ItemsControl>
- </Grid>
- </HeaderedContentControl>
- </pdcl:BaseListView.Body>
- <!-- Navigation Button Goes Here. If Not needed then delete the whole section. Empty Block is not allowed here. -->
- <pdcl:BaseListView.NavigationActionPanel>
- <Button Content="First" Command="{Binding GotoFirstRecordCommand}"/>
- <Button Content="Previous" Command="{Binding GotoPreviousRecordCommand}"/>
- <Border CornerRadius="4" BorderBrush="Gray" VerticalAlignment="Stretch" Background="AntiqueWhite">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding PositionLabel}" VerticalAlignment="Center" />
- <TextBlock Text=" of " VerticalAlignment="Center" />
- <TextBlock Text="{Binding NavigationRecordSet.Count}" VerticalAlignment="Center" />
- </StackPanel>
- </Border>
- <Button Content="Next" Command="{Binding GotoNextRecordCommand}"/>
- <Button Content="Last" Command="{Binding GotoLastRecordCommand}"/>
- <Button Content="Add New" Command="{Binding AddNewRecordCommand}"/>
- <Button Content="Save" Command="{Binding SaveRecordCommand}"/>
- <Button Content="Undo" Command="{Binding UndoRecordCommand}"/>
- </pdcl:BaseListView.NavigationActionPanel>
- <!-- Main Action Buttons of the form goes here -->
- <!--<pdcl:BaseListView.ActionsPanel>
- <Button Content="Close" Command="{Binding CloseCommand}"/>
- <Button Content="Refresh" Command="{Binding LoadRecordsCommand}"/>
- </pdcl:BaseListView.ActionsPanel>-->
- <pdcl:BaseListView.InputBindings>
- <KeyBinding Key="K" Modifiers="Control" Command="{pdcl:CommandBinding CloseCommand}" />
- <KeyBinding Key="F5" Command="localViews:DoctorDueView.RefreshCommand" />
- </pdcl:BaseListView.InputBindings>
- <!-- Main Action Buttons of the form goes here -->
- <pdcl:BaseListView.ActionsPanel>
- <Label HorizontalAlignment="Left" Content="{Binding RecordInfoLabel}" MinWidth="200" FontWeight="Bold"/>
- <Button Content="Close" Command="{Binding CloseCommand}" ToolTip="Close(Ctrl+K)"/>
- <Button Content="Refresh" Command="localViews:DoctorDueView.RefreshCommand" ToolTip="Refresh(F5)"/>
- </pdcl:BaseListView.ActionsPanel>
- </pdcl:BaseListView>
- </Grid>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement