DepositApplyView.xaml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <Window x:Class="Muchinfo.MTPClient.Sale.Views.DepositApplyView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:controls="clr-namespace:Muchinfo.WPF.Controls;assembly=Client.WPF.Controls"
  5. xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  6. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. x:Name="orderWindow"
  8. Title="{x:Static resources:Client_Resource.Resources_Service_DepositOrder}"
  9. Width="450"
  10. MinHeight="400"
  11. SizeToContent="Height"
  12. Style="{DynamicResource DialogWindowStyle}">
  13. <Window.Resources>
  14. <BooleanToVisibilityConverter x:Key="BooleanVisibilty" />
  15. </Window.Resources>
  16. <xctk:BusyIndicator BusyContent="{Binding BusyTips, Mode=OneWay}" IsBusy="{Binding IsBusy, Mode=OneWay}">
  17. <Grid Margin="10,20">
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="100" />
  20. <ColumnDefinition />
  21. </Grid.ColumnDefinitions>
  22. <Grid.RowDefinitions>
  23. <RowDefinition />
  24. <RowDefinition />
  25. <RowDefinition />
  26. <RowDefinition />
  27. <RowDefinition />
  28. <RowDefinition />
  29. <RowDefinition Height="Auto" />
  30. <RowDefinition Height="80" />
  31. </Grid.RowDefinitions>
  32. <TextBlock HorizontalAlignment="Right"
  33. VerticalAlignment="Center"
  34. Text="{x:Static resources:Client_Resource.Content_DepositName}" />
  35. <ComboBox Grid.Column="1"
  36. Width="200"
  37. Margin="20,0,0,0"
  38. HorizontalAlignment="Left"
  39. VerticalAlignment="Center"
  40. DisplayMemberPath="DepositName"
  41. ItemsSource="{Binding DepositPlans}"
  42. SelectedItem="{Binding CurDepositPlan}"
  43. Style="{DynamicResource SimpleComboBoxStyle}" />
  44. <TextBlock Grid.Row="1"
  45. HorizontalAlignment="Right"
  46. VerticalAlignment="Center"
  47. Text="{x:Static resources:Client_Resource.Content_DepositGoodsCode}" />
  48. <TextBox Grid.Row="1"
  49. Grid.Column="1"
  50. Width="200"
  51. MinHeight="24"
  52. Margin="20,0,0,0"
  53. HorizontalAlignment="Left"
  54. VerticalAlignment="Center"
  55. IsEnabled="False"
  56. IsReadOnly="True"
  57. Text="{Binding CurDepositPlan.DepositGoodsCode}" />
  58. <TextBlock Grid.Row="2"
  59. HorizontalAlignment="Right"
  60. VerticalAlignment="Center"
  61. Text="{x:Static resources:Client_Resource.Content_DepositGoodsName}" />
  62. <TextBox Grid.Row="2"
  63. Grid.Column="1"
  64. Width="200"
  65. MinHeight="24"
  66. Margin="20,0,0,0"
  67. HorizontalAlignment="Left"
  68. VerticalAlignment="Center"
  69. IsEnabled="False"
  70. IsReadOnly="True"
  71. Text="{Binding CurDepositPlan.DepositGoodsName}" />
  72. <TextBlock Grid.Row="3"
  73. HorizontalAlignment="Right"
  74. VerticalAlignment="Center"
  75. Text="{x:Static resources:Client_Resource.Content_DepositStoragesSelect}" />
  76. <ComboBox Grid.Row="3"
  77. Grid.Column="1"
  78. Width="200"
  79. Margin="20,0,0,0"
  80. HorizontalAlignment="Left"
  81. VerticalAlignment="Center"
  82. DisplayMemberPath="WareHouseName"
  83. ItemsSource="{Binding Storelist,
  84. Mode=TwoWay}"
  85. SelectedItem="{Binding CurWareHouse,
  86. Mode=TwoWay}"
  87. Style="{DynamicResource SimpleComboBoxStyle}" />
  88. <TextBlock Grid.Row="4"
  89. HorizontalAlignment="Right"
  90. VerticalAlignment="Center"
  91. Text="{x:Static resources:Client_Resource.Content_DepositApllyLot}" />
  92. <controls:DecimalNumBox Grid.Row="4"
  93. Grid.Column="1"
  94. Width="200"
  95. MinHeight="24"
  96. Margin="20,0,0,0"
  97. HorizontalAlignment="Left"
  98. VerticalAlignment="Center"
  99. DecimalCount="0"
  100. DefaultValue="0"
  101. DisplayDefaultValueOnEmptyText="True"
  102. Minimum="0"
  103. Style="{DynamicResource DecimalNewUpDownStyle}"
  104. TabIndex="5"
  105. Value="{Binding Lot,
  106. Mode=TwoWay}" />
  107. <TextBlock Grid.Row="5"
  108. HorizontalAlignment="Right"
  109. VerticalAlignment="Center"
  110. Text="{x:Static resources:Client_Resource.Content_DepositFreezeFee}" />
  111. <StackPanel Grid.Row="5"
  112. Grid.Column="1"
  113. Margin="20,0,0,0"
  114. HorizontalAlignment="Left"
  115. Orientation="Horizontal">
  116. <TextBlock VerticalAlignment="Center"
  117. Foreground="Red"
  118. Text="{Binding FreezeFee}" />
  119. <Button Margin="10,0,0,0"
  120. VerticalAlignment="Center"
  121. Background="Transparent"
  122. Padding="2"
  123. Style="{DynamicResource TextButtonStyle}"
  124. ToolTip="{Binding FeeTips}">
  125. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  126. <Ellipse Width="12"
  127. Height="12"
  128. Stroke="{DynamicResource AcountGridHeadForeground}"
  129. StrokeThickness="1" />
  130. <TextBlock HorizontalAlignment="Center"
  131. VerticalAlignment="Center"
  132. Foreground="{DynamicResource AcountGridHeadForeground}"
  133. Text="?" />
  134. </Grid>
  135. </Button>
  136. </StackPanel>
  137. <TextBlock Grid.Row="6"
  138. Grid.ColumnSpan="2"
  139. HorizontalAlignment="Center"
  140. VerticalAlignment="Center"
  141. Text="{Binding ErrorTips}" />
  142. <!-- 确定 -->
  143. <StackPanel Grid.Row="10"
  144. Grid.ColumnSpan="3"
  145. HorizontalAlignment="Center"
  146. Orientation="Horizontal">
  147. <Button Width="82"
  148. Height="26"
  149. Command="{Binding OKCommand}"
  150. CommandParameter="{Binding ElementName=orderWindow}"
  151. Content="{x:Static resources:Client_Resource.Button_Confirm}"
  152. Style="{DynamicResource CommonButtonStyle}" />
  153. <Button Width="82"
  154. Height="26"
  155. Margin="60,0,0,0"
  156. Command="{Binding CancelCommand}"
  157. CommandParameter="{Binding ElementName=orderWindow}"
  158. Content="{x:Static resources:Client_Resource.Button_Cancel}"
  159. IsCancel="True"
  160. Style="{DynamicResource CommonButtonStyle}" />
  161. </StackPanel>
  162. </Grid>
  163. </xctk:BusyIndicator>
  164. </Window>