Advertisement
f0rkB0mb

Rashedul Hasan's XAML-Code

Oct 26th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 24.57 KB | None | 0 0
  1. <UserControl x:Class="PDCL.ERP.Modules.Marketing.Views.DoctorDue.DoctorDueView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit"
  5. xmlns:pdcl="http://binaryquest.com/PDCL.ERP/Controls"
  6. xmlns:local="clr-namespace:PDCL.ERP.Modules.Marketing"
  7. xmlns:localViews="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
  8. xmlns:UserControls="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
  9. xmlns:C="clr-namespace:PDCL.ERP.Modules.Marketing.Views.DoctorDue"
  10. MinHeight="500" MinWidth="500">
  11.  
  12. <UserControl.CommandBindings >
  13. <CommandBinding Command="localViews:DoctorDueView.EnterPressedCommand" Executed="CommandBinding_Executed"/>
  14. <CommandBinding Command="localViews:DoctorDueView.UpPressedCommand" Executed="CommandBinding_Executed_1" />
  15. <!--<CommandBinding Command="localViews:DoctorDueView.RefreshCommand" Executed="BtnRefresh_Click" />-->
  16. <CommandBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Executed="MyCommandExecute" />
  17. </UserControl.CommandBindings>
  18.  
  19. <UserControl.Resources>
  20. <!--<local:MarketingModule x:Key="oppositeConverter" />-->
  21.  
  22. <!--CalculativeParameterTemplate-->
  23. <!--<DataTemplate x:Key="CalculativeParameterTemplate">
  24. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
  25. <StackPanel Orientation="Horizontal" >
  26. <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
  27. <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  28. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  29. <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  30. <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" />
  31. <TextBlock Text="{Binding DoctorList}" Margin="1" Padding="2" MinWidth="250" HorizontalAlignment="Left" />
  32. <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
  33. </StackPanel>
  34. </Border>
  35. </DataTemplate>-->
  36.  
  37. <!--DifferentialCountTemplate-->
  38. <!--<DataTemplate x:Key="DifferentialCountTemplate">
  39. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}">
  40. <StackPanel Orientation="Horizontal" >
  41. <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="80" HorizontalAlignment="Center" FontWeight="Bold" />
  42. <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  43. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  44. <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  45. <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" Foreground="Red" />
  46. </StackPanel>
  47. </Border>
  48. </DataTemplate>-->
  49.  
  50. <!--ParaResultTemplate-->
  51. <!--<DataTemplate x:Key="ParaResultTemplate">
  52. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
  53. <StackPanel Orientation="Horizontal" >
  54. <TextBlock Visibility="Hidden" Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
  55. <TextBlock Visibility="Hidden" Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  56. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  57. <TextBlock Visibility="Hidden" Text="{Binding Due}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Gray"/>
  58. <TextBlock Text="{Binding ParaName}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" />
  59. <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">
  60. <localViews:CustomTextBox4DoctorDue.InputBindings>
  61. <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />
  62. <KeyBinding Key="Down" Command="localViews:DoctorDueView.EnterPressedCommand" />
  63. <KeyBinding Key="Up" Command="localViews:DoctorDueView.UpPressedCommand" />
  64.  
  65. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="A" CommandParameter="'A' Positive(+ve)"/>
  66. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="B" CommandParameter="'B' Positive(+ve)"/>
  67. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D" CommandParameter="Not done"/>
  68. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="F" CommandParameter="Not found"/>
  69. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="H" CommandParameter="/HPF"/>
  70. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="N" CommandParameter="Nil"/>
  71. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="N" CommandParameter="Negative(-ve)"/>
  72. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="O" CommandParameter="'O' Positive(+ve)"/>
  73. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="P" CommandParameter="Positive(+ve)"/>
  74. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="Q" CommandParameter="Rapid Immunochromatographic Test"/>
  75. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="R" CommandParameter="Reactive(+ve)"/>
  76. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="T" CommandParameter="Non Reactive(-ve)"/>
  77. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="W" CommandParameter="1:"/>
  78.  
  79. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Key="D1" Modifiers="Ctrl" CommandParameter="(+)"/>
  80.  
  81. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D1" CommandParameter="(+)"/>
  82. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad1" CommandParameter="(+)"/>
  83. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D2" CommandParameter="(++)"/>
  84. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad2" CommandParameter="(++)"/>
  85. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D3" CommandParameter="(+++)"/>
  86. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad3" CommandParameter="(+++)"/>
  87. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D4" CommandParameter="1:40"/>
  88. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad4" CommandParameter="1:40"/>
  89. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D6" CommandParameter="1:160"/>
  90. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad6" CommandParameter="1:160"/>
  91. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D7" CommandParameter="HBsAg-Negative(-ve)"/>
  92. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad7" CommandParameter="HBsAg-Negative(-ve)"/>
  93. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D7" CommandParameter="HBs Negative(-ve)"/>
  94. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad7" CommandParameter="HBs Negative(-ve)"/>
  95. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D8" CommandParameter="1:80"/>
  96. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad8" CommandParameter="1:80"/>
  97. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D9" CommandParameter="HBsAg-Positive(+ve)"/>
  98. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad9" CommandParameter="HBsAg-Positive(+ve)"/>
  99. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D9" CommandParameter="HBs Positive(+ve)"/>
  100. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad9" CommandParameter="HB Positive(+ve)"/>
  101.  
  102. </localViews:CustomTextBox4DoctorDue.InputBindings>
  103. </localViews:CustomTextBox4DoctorDue>
  104. <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
  105. </StackPanel>
  106. </Border>
  107. </DataTemplate>-->
  108.  
  109. <!--<local:DoctorsDueMessage DifferentialCountParameterTemplate="{StaticResource DifferentialCountTemplate}"
  110. NomalParameterTemplate="{StaticResource ParaResultTemplate}"
  111. CalculativeParameterTemplate="{StaticResource CalculativeParameterTemplate}"
  112. x:Key="TParamSelector" />-->
  113. </UserControl.Resources>
  114. <Grid x:Name="Root">
  115. <pdcl:BaseListView Heading="Doctors List" FilterHeading="Filters" FilterVisibile="True" x:Name="baseView">
  116. <pdcl:BaseListView.FilterPanel>
  117. <Grid>
  118. <Grid>
  119. <Grid.ColumnDefinitions>
  120. <ColumnDefinition/>
  121. <ColumnDefinition/>
  122. <ColumnDefinition/>
  123. <ColumnDefinition/>
  124. </Grid.ColumnDefinitions>
  125. <Grid.RowDefinitions>
  126. <RowDefinition />
  127. <RowDefinition />
  128. <RowDefinition />
  129. <RowDefinition />
  130. </Grid.RowDefinitions>
  131. <TextBlock Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Filter By Employee"/></TextBlock>
  132. <ComboBox Grid.Column="1" Grid.Row="0" MaxHeight="25" Margin="2" SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}" SelectedValuePath="EmployeeId" ItemsSource="{Binding Employees}" DisplayMemberPath="FullName" />
  133.  
  134. <!--<TextBlock Grid.Column="0" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Doctors Name Like"/></TextBlock>-->
  135. <!--<TextBox Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2" Margin="2"/>-->
  136. <!--<TextBlock Grid.Column="0" Grid.Row="2" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="2"><Run Text="Doctors Address Like"/></TextBlock>-->
  137. <!--<TextBox Grid.Column="1" Grid.Row="2" Grid.ColumnSpan="2" Margin="2"/>-->
  138.  
  139. <Button Grid.Column="1" Grid.Row="3" Margin="2" HorizontalAlignment="Left" Width="80" Content="Filter" Command="{Binding LoadRecordsCommand}"/>
  140. <Button Grid.Column="2" Grid.Row="3" Margin="2" HorizontalAlignment="Left" Width="80" Content="Clear Filter" Command="{Binding ClearFilterCommand}"/>
  141. </Grid>
  142. </Grid>
  143. </pdcl:BaseListView.FilterPanel>
  144. <pdcl:BaseListView.Body>
  145. <HeaderedContentControl Header="Body Info..." Margin="10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
  146. <Grid>
  147. <Grid.Resources>
  148.  
  149. <DataTemplate x:Key="OrderLineParaResultTemplate">
  150.  
  151. <StackPanel>
  152. <ItemsControl ItemsSource="{Binding DoctorList}"/>
  153. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
  154.  
  155. <StackPanel Orientation="Horizontal" >
  156. <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
  157. <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
  158. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
  159. <TextBlock Padding="2"></TextBlock>
  160. <TextBlock Text="{Binding Due}" Margin="1" Padding="2" MinWidth="290" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>
  161.  
  162. </StackPanel>
  163. </Border>
  164. <!--<ItemsControl ItemsSource="{Binding ParaResults}" ItemTemplate="{StaticResource ParaResultTemplate}"/>-->
  165. <!--<ItemsControl ItemsSource="{Binding DoctorList}" ItemTemplateSelector="{StaticResource TParamSelector}" />-->
  166.  
  167. <!--</ItemsControl>-->
  168. </StackPanel>
  169. </DataTemplate>
  170.  
  171. <DataTemplate x:Key="OrderLineSingleResultTemplate">
  172.  
  173. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
  174.  
  175. <StackPanel Orientation="Horizontal" >
  176. <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
  177. <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
  178. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" Padding="2" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
  179. <TextBlock Padding="2"></TextBlock>
  180. <TextBlock Text="{Binding Due}" Margin="1" Padding="2" MinWidth="340" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>
  181. <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">
  182. <localViews:CustomTextBox4DoctorDue.InputBindings>
  183. <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />
  184. <KeyBinding Key="Down" Command="localViews:DoctorDueView.EnterPressedCommand" />
  185. <KeyBinding Key="Up" Command="localViews:DoctorDueView.UpPressedCommand" />
  186.  
  187. <!--<KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="A" CommandParameter="'A' Positive(+ve)"/>
  188. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="B" CommandParameter="'B' Positive(+ve)"/>
  189. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D" CommandParameter="Not done"/>
  190. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="F" CommandParameter="Not found"/>
  191. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="H" CommandParameter="/HPF"/>
  192. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="N" CommandParameter="Nil"/>
  193. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="N" CommandParameter="Negative(-ve)"/>
  194. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="O" CommandParameter="'O' Positive(+ve)"/>
  195. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="P" CommandParameter="Positive(+ve)"/>
  196. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="Q" CommandParameter="Rapid Immunochromatographic Test"/>
  197. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="R" CommandParameter="Reactive(+ve)"/>
  198. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="T" CommandParameter="Non Reactive(-ve)"/>
  199. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="W" CommandParameter="1:"/>
  200.  
  201. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Key="D1" Modifiers="Ctrl" CommandParameter="(+)"/>
  202.  
  203. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D1" CommandParameter="(+)"/>
  204. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad1" CommandParameter="(+)"/>
  205. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D2" CommandParameter="(++)"/>
  206. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad2" CommandParameter="(++)"/>
  207. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D3" CommandParameter="(+++)"/>
  208. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad3" CommandParameter="(+++)"/>
  209. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D4" CommandParameter="1:40"/>
  210. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad4" CommandParameter="1:40"/>
  211. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D6" CommandParameter="1:160"/>
  212. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad6" CommandParameter="1:160"/>
  213. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D7" CommandParameter="HBsAg-Negative(-ve)"/>
  214. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad7" CommandParameter="HBsAg-Negative(-ve)"/>
  215. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D7" CommandParameter="HBs Negative(-ve)"/>
  216. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad7" CommandParameter="HBs Negative(-ve)"/>
  217. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D8" CommandParameter="1:80"/>
  218. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad8" CommandParameter="1:80"/>
  219. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="D9" CommandParameter="HBsAg-Positive(+ve)"/>
  220. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Ctrl" Key="NumPad9" CommandParameter="HBsAg-Positive(+ve)"/>
  221. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="D9" CommandParameter="HBs Positive(+ve)"/>
  222. <KeyBinding Command="localViews:DoctorDueView.MyDefaultKeyPressCommand" Modifiers="Alt" Key="NumPad9" CommandParameter="HB Positive(+ve)"/>-->
  223.  
  224. </localViews:CustomTextBox4DoctorDue.InputBindings>
  225. </localViews:CustomTextBox4DoctorDue >
  226. <!--<TextBlock Text="{Binding DoctorList}" Visibility="Collapsed"/>-->
  227. </StackPanel>
  228. </Border>
  229. </DataTemplate>
  230.  
  231. <!--<DataTemplate x:Key="BloodFilmTemplate">
  232. <Border BorderBrush="Chocolate" BorderThickness=".5" Padding="2" Background="{Binding Path=AlternateColorTemplate,Converter={StaticResource oppositeConverter}}">
  233. <StackPanel Orientation="Horizontal">
  234. <TextBlock Text="{Binding RefName}" Margin="1" Padding="2" MinWidth="100" HorizontalAlignment="Center" FontWeight="Bold" />
  235. <TextBlock Text="{Binding EmployeeFullName}" Margin="1" Padding="2" MinWidth="50" HorizontalAlignment="Right" FontWeight="Bold" Foreground="Red"/>
  236. <TextBlock Visibility="Hidden" Text="{Binding RefAddress}" Margin="1" MinWidth="0" HorizontalAlignment="Right" FontWeight="Bold" Foreground="#FF0000"/>
  237. <TextBlock></TextBlock>
  238. <Button Content="Edit" Click="editButton_Click"/>-->
  239. <!--<TextBlock Text="{Binding Due}" Margin="1" MinWidth="340" HorizontalAlignment="Left" FontWeight="Bold" Foreground="#255da3"/>-->
  240. <!--<Button Height="30" Width="80" Margin="5" Background="#FF7F90FC" BorderBrush="#95FFFFFF" Click="Button_Click">Edit</Button>-->
  241. <!--<localViews:CustomTextBox4DoctorDue IsReadOnly="True" Text="{Binding SingleResult}" Height="100" Margin="1" Tag="txt" Loaded="TextBox_Loaded" LostFocus="CustomTextBox4DoctorDue_LostFocus"
  242. GotFocus="CustomTextBox4DoctorDue_GotFocus" MaxLength="8000"
  243. TextWrapping="Wrap" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" MinWidth="350" MaxWidth="500">
  244. <localViews:CustomTextBox4DoctorDue.InputBindings>
  245. <KeyBinding Key="Enter" Command="localViews:DoctorDueView.EnterPressedCommand" />-->
  246. <!--<KeyBinding Key="Down" Command="localViews:CombinedResultEntryView.EnterPressedCommand" />
  247. <KeyBinding Key="Up" Command="localViews:CombinedResultEntryView.UpPressedCommand" />-->
  248. <!--</localViews:CustomTextBox4DoctorDue.InputBindings>
  249. </localViews:CustomTextBox4DoctorDue >
  250. <TextBlock Text="{Binding PrintedBy}" Visibility="Collapsed"/>
  251. </StackPanel>
  252. </Border>
  253. </DataTemplate>-->
  254. <!--<local:OrderLineSelector OrderLineBloodFilmTemplate="{StaticResource BloodFilmTemplate}" SingleResultTemplate="{StaticResource OrderLineSingleResultTemplate}" ParaResultTemplate="{StaticResource OrderLineParaResultTemplate}" x:Key="TSelector"/>-->
  255. </Grid.Resources>
  256. <Grid.RowDefinitions>
  257. <RowDefinition Height="40" />
  258. <RowDefinition Height="*"/>
  259. </Grid.RowDefinitions>
  260. <Grid.ColumnDefinitions>
  261. <ColumnDefinition Width="*"/>
  262. </Grid.ColumnDefinitions>
  263.  
  264. <Border BorderBrush="Chocolate" Background="Blue" BorderThickness=".5" Padding="2" Margin="1" Grid.Row="0" Grid.Column="0" >
  265. <StackPanel Orientation="Horizontal">
  266. <TextBlock Text="Doctor Name" MinWidth="100" HorizontalAlignment="Left" Margin="2" Padding="2" FontWeight="Bold" Foreground="White" />
  267. <TextBlock Text="Contact" MinWidth="120" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White" />
  268. <TextBlock Text="Address" MinWidth="320" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White"/>
  269. <TextBlock Text="Due Amount" MinWidth="300" HorizontalAlignment="Center" Margin="2" Padding="2" FontWeight="Bold" Foreground="White"/>
  270. </StackPanel>
  271. </Border>
  272.  
  273. <!--<ListBox Grid.Column="0" Grid.Row="1" ItemsSource="{Binding LstOrderLine}" ItemTemplateSelector="{StaticResource TSelector}" HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch"/>-->
  274. <ItemsControl Grid.Column="0" Grid.Row="1" ItemsSource="{Binding DoctorList}"
  275. HorizontalContentAlignment="Stretch" HorizontalAlignment="Stretch">
  276.  
  277. <ItemsControl.Template>
  278. <ControlTemplate>
  279. <ScrollViewer Padding="{TemplateBinding Padding}">
  280. <ItemsPresenter />
  281. </ScrollViewer>
  282. </ControlTemplate>
  283. </ItemsControl.Template>
  284. </ItemsControl>
  285.  
  286. </Grid>
  287.  
  288. </HeaderedContentControl>
  289. </pdcl:BaseListView.Body>
  290. <!-- Navigation Button Goes Here. If Not needed then delete the whole section. Empty Block is not allowed here. -->
  291. <pdcl:BaseListView.NavigationActionPanel>
  292. <Button Content="First" Command="{Binding GotoFirstRecordCommand}"/>
  293. <Button Content="Previous" Command="{Binding GotoPreviousRecordCommand}"/>
  294. <Border CornerRadius="4" BorderBrush="Gray" VerticalAlignment="Stretch" Background="AntiqueWhite">
  295. <StackPanel Orientation="Horizontal">
  296. <TextBlock Text="{Binding PositionLabel}" VerticalAlignment="Center" />
  297. <TextBlock Text=" of " VerticalAlignment="Center" />
  298. <TextBlock Text="{Binding NavigationRecordSet.Count}" VerticalAlignment="Center" />
  299. </StackPanel>
  300. </Border>
  301. <Button Content="Next" Command="{Binding GotoNextRecordCommand}"/>
  302. <Button Content="Last" Command="{Binding GotoLastRecordCommand}"/>
  303. <Button Content="Add New" Command="{Binding AddNewRecordCommand}"/>
  304. <Button Content="Save" Command="{Binding SaveRecordCommand}"/>
  305. <Button Content="Undo" Command="{Binding UndoRecordCommand}"/>
  306. </pdcl:BaseListView.NavigationActionPanel>
  307. <!-- Main Action Buttons of the form goes here -->
  308. <!--<pdcl:BaseListView.ActionsPanel>
  309. <Button Content="Close" Command="{Binding CloseCommand}"/>
  310. <Button Content="Refresh" Command="{Binding LoadRecordsCommand}"/>
  311. </pdcl:BaseListView.ActionsPanel>-->
  312.  
  313. <pdcl:BaseListView.InputBindings>
  314. <KeyBinding Key="K" Modifiers="Control" Command="{pdcl:CommandBinding CloseCommand}" />
  315. <KeyBinding Key="F5" Command="localViews:DoctorDueView.RefreshCommand" />
  316. </pdcl:BaseListView.InputBindings>
  317.  
  318. <!-- Main Action Buttons of the form goes here -->
  319. <pdcl:BaseListView.ActionsPanel>
  320. <Label HorizontalAlignment="Left" Content="{Binding RecordInfoLabel}" MinWidth="200" FontWeight="Bold"/>
  321. <Button Content="Close" Command="{Binding CloseCommand}" ToolTip="Close(Ctrl+K)"/>
  322. <Button Content="Refresh" Command="localViews:DoctorDueView.RefreshCommand" ToolTip="Refresh(F5)"/>
  323. </pdcl:BaseListView.ActionsPanel>
  324. </pdcl:BaseListView>
  325. </Grid>
  326. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement