RecieveInfoView.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <Window x:Class="Muchinfo.MTPClient.Delivery.Views.RecieveInfoView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:converters="clr-namespace:Muchinfo.MTPClient.Infrastructure.Converters;assembly=Client.Infrastructure"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:ignore="http://www.galasoft.ch/ignore"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  9. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  10. x:Name="RecieveInfoViewWindow"
  11. Title="提货人信息"
  12. Width="543"
  13. Height="320"
  14. MouseLeftButtonDown="drag_MouseLeftButtonDown"
  15. ShowInTaskbar="False"
  16. Style="{DynamicResource DialogWindowStyle}"
  17. WindowStartupLocation="CenterOwner"
  18. mc:Ignorable="d ignore">
  19. <Window.Resources>
  20. <converters:BuyOrSellConvert x:Key="EnumBooleanConvert" />
  21. <BooleanToVisibilityConverter x:Key="ToVisibilityConverter" />
  22. </Window.Resources>
  23. <xctk:BusyIndicator BusyContent="{x:Static resource:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  24. <Grid>
  25. <Grid>
  26. <Grid.RowDefinitions>
  27. <RowDefinition />
  28. <RowDefinition />
  29. <RowDefinition />
  30. <RowDefinition />
  31. <RowDefinition />
  32. <RowDefinition />
  33. <RowDefinition />
  34. <RowDefinition Height="10" />
  35. </Grid.RowDefinitions>
  36. <Grid.ColumnDefinitions>
  37. <ColumnDefinition Width="10" />
  38. <ColumnDefinition />
  39. <ColumnDefinition />
  40. <ColumnDefinition />
  41. <ColumnDefinition />
  42. <ColumnDefinition Width="10" />
  43. </Grid.ColumnDefinitions>
  44. <StackPanel Grid.Row="0"
  45. Grid.Column="1"
  46. Grid.ColumnSpan="4"
  47. Height="25"
  48. Margin="10,0,10,0"
  49. Background="{DynamicResource AcountGridHeadBackground}"
  50. Orientation="Horizontal">
  51. <TextBlock Width="520"
  52. VerticalAlignment="Center"
  53. Foreground="{DynamicResource AcountGridHeadForeground}"
  54. TextAlignment="Center">
  55. <Run Text="{x:Static resource:Client_Resource.DeliveryOrderView_DeliveryGoods}" />
  56. <Run Text="{Binding GoodsName}" />
  57. <Run Text=" " />
  58. <Run Text="{x:Static resource:Client_Resource.Content_Quantifiable}" />
  59. <Run Text="{Binding AvailableQty}" />
  60. <Run Text=" " />
  61. <Run Text="{x:Static resource:Client_Resource.Moduel_Unit}" />
  62. <Run Text="{Binding GoodsUnitIdDisplay}" />
  63. </TextBlock>
  64. </StackPanel>
  65. <TextBlock Grid.Row="1"
  66. Grid.Column="1"
  67. Margin="0"
  68. HorizontalAlignment="Center"
  69. VerticalAlignment="Center"
  70. Text="{x:Static resource:Client_Resource.Delivery_TakeGoods_Type}" />
  71. <TextBlock Grid.Row="2"
  72. Grid.Column="1"
  73. Margin="0"
  74. HorizontalAlignment="Center"
  75. VerticalAlignment="Center"
  76. Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyViewModel_RecievePerson}" />
  77. <TextBlock Grid.Row="3"
  78. Grid.Column="1"
  79. Margin="0"
  80. HorizontalAlignment="Center"
  81. VerticalAlignment="Center"
  82. Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyViewModel_PhoneNum}" />
  83. <TextBlock Grid.Row="4"
  84. Grid.Column="1"
  85. Margin="0"
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Center"
  88. Text="{x:Static resource:Client_Resource.Content_IDCardNum}" />
  89. <TextBlock Grid.Row="5"
  90. Grid.Column="1"
  91. Margin="0"
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. Text="{x:Static resource:Client_Resource.TakaDeliveryGoodsApplyViewModel_RecieveAddress}"
  95. Visibility="{Binding IsChecked,
  96. ElementName=expressRadio,
  97. Converter={StaticResource ToVisibilityConverter}}" />
  98. <StackPanel Grid.Row="1"
  99. Grid.ColumnSpan="6"
  100. HorizontalAlignment="Center"
  101. VerticalAlignment="Center"
  102. Orientation="Horizontal">
  103. <RadioButton Margin="20,0"
  104. VerticalAlignment="Center"
  105. Content="{x:Static resource:Client_Resource.Delivery_TakeGoods_Self}"
  106. IsChecked="{Binding TakeGoodsWay,
  107. ConverterParameter=1,
  108. Converter={StaticResource EnumBooleanConvert}}"
  109. Style="{DynamicResource RadioButtonStyle}"
  110. TabIndex="6" />
  111. <RadioButton x:Name="expressRadio"
  112. Margin="20,0"
  113. VerticalAlignment="Center"
  114. Content="{x:Static resource:Client_Resource.Delivery_TakeGoods_Express}"
  115. IsChecked="{Binding TakeGoodsWay,
  116. ConverterParameter=2,
  117. Converter={StaticResource EnumBooleanConvert}}"
  118. Style="{DynamicResource RadioButtonStyle}"
  119. TabIndex="5" />
  120. </StackPanel>
  121. <TextBox Grid.Row="2"
  122. Grid.Column="2"
  123. Grid.ColumnSpan="2"
  124. Width="200"
  125. MaxLength="20"
  126. Height="25"
  127. HorizontalAlignment="Left"
  128. VerticalAlignment="Center"
  129. IsEnabled="True"
  130. Text="{Binding RecievePerson}" />
  131. <TextBlock Grid.Row="2"
  132. Grid.Column="2"
  133. Grid.ColumnSpan="2"
  134. Margin="0,0,40,0"
  135. HorizontalAlignment="Right"
  136. VerticalAlignment="Center"
  137. Foreground="{StaticResource TextBrush_Common}"
  138. IsEnabled="True"
  139. Text="*" />
  140. <TextBox Grid.Row="3"
  141. Grid.Column="2"
  142. Grid.ColumnSpan="2"
  143. Width="200"
  144. Height="25"
  145. HorizontalAlignment="Left"
  146. VerticalAlignment="Center"
  147. IsEnabled="True"
  148. MaxLength="11"
  149. Text="{Binding PhoneNum}" />
  150. <TextBlock Grid.Row="3"
  151. Grid.Column="2"
  152. Grid.ColumnSpan="2"
  153. Margin="0,0,40,0"
  154. HorizontalAlignment="Right"
  155. VerticalAlignment="Center"
  156. Foreground="{StaticResource TextBrush_Common}"
  157. IsEnabled="True"
  158. Text="*" />
  159. <TextBox Grid.Row="4"
  160. Grid.Column="2"
  161. Grid.ColumnSpan="2"
  162. Width="200"
  163. Height="25"
  164. HorizontalAlignment="Left"
  165. VerticalAlignment="Center"
  166. IsEnabled="True"
  167. Text="{Binding IdCardNum}" />
  168. <TextBlock Grid.Row="4"
  169. Grid.Column="2"
  170. Grid.ColumnSpan="2"
  171. Margin="0,0,40,0"
  172. HorizontalAlignment="Right"
  173. VerticalAlignment="Center"
  174. Foreground="{StaticResource TextBrush_Common}"
  175. Text="*" />
  176. <TextBox Grid.Row="5"
  177. Grid.Column="2"
  178. Grid.ColumnSpan="3"
  179. Width="300"
  180. Height="25"
  181. HorizontalAlignment="Left"
  182. VerticalAlignment="Center"
  183. MaxLength="128"
  184. Text="{Binding RecieveAddress}"
  185. Visibility="{Binding IsChecked,
  186. ElementName=expressRadio,
  187. Converter={StaticResource ToVisibilityConverter}}" />
  188. <TextBlock Grid.Row="5"
  189. Grid.Column="2"
  190. Grid.ColumnSpan="3"
  191. Margin="0,0,65,0"
  192. HorizontalAlignment="Right"
  193. VerticalAlignment="Center"
  194. Foreground="{StaticResource TextBrush_Common}"
  195. Text="*"
  196. Visibility="{Binding IsChecked,
  197. ElementName=expressRadio,
  198. Converter={StaticResource ToVisibilityConverter}}" />
  199. <!-- 提交按钮 -->
  200. <StackPanel Grid.Row="6"
  201. Grid.ColumnSpan="6"
  202. HorizontalAlignment="Center"
  203. VerticalAlignment="Center"
  204. Orientation="Horizontal">
  205. <Button Width="82"
  206. Height="26"
  207. Command="{Binding OKCommand}"
  208. CommandParameter="{Binding ElementName=RecieveInfoViewWindow}"
  209. Content="{x:Static resource:Client_Resource.Button_Submit}"
  210. IsEnabled="{Binding OKButtonEnabled}"
  211. Style="{DynamicResource CommonButtonStyle}" />
  212. <Button Width="82"
  213. Height="26"
  214. Margin="60,0,0,0"
  215. Command="{Binding CancelCommand}"
  216. CommandParameter="{Binding ElementName=RecieveInfoViewWindow}"
  217. Content="{x:Static resource:Client_Resource.Button_Cancel}"
  218. Style="{DynamicResource CommonButtonStyle}" />
  219. </StackPanel>
  220. </Grid>
  221. </Grid>
  222. </xctk:BusyIndicator>
  223. </Window>