DeliveryOrderView.xaml 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <Window x:Class="Muchinfo.MTPClient.Delivery.Views.DeliveryOrderView"
  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:dataGrid="clr-namespace:Muchinfo.WPF.Controls.DataGrid;assembly=Client.WPF.Controls"
  7. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  8. xmlns:ignore="http://www.galasoft.ch/ignore"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:resources="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  11. xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  12. x:Name="DeliveryOrderViewWindow"
  13. Title="{Binding Title}"
  14. MinHeight="450"
  15. SizeToContent="Height"
  16. MouseLeftButtonDown="drag_MouseLeftButtonDown"
  17. ShowInTaskbar="False"
  18. Style="{DynamicResource DialogWindowStyle}"
  19. WindowStartupLocation="CenterOwner"
  20. mc:Ignorable="d ignore">
  21. <Window.Resources>
  22. <converters:IntToVisibilityConverter x:Key="ZeroOrNotVisibilityConverter" />
  23. <converters:BuyOrSellConvert x:Key="EnumBooleanConvert" />
  24. <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
  25. <DataTemplate x:Key="GoodsDatatTemplate">
  26. <TextBlock>
  27. <Run Text="{Binding currentGoodsname}" />
  28. <Run Text=" " />
  29. <Run Text="{Binding currentGoodscode}" />
  30. </TextBlock>
  31. </DataTemplate>
  32. <SolidColorBrush x:Key="TextBrush_DeliveryMatchView" Color="#ff3553" />
  33. </Window.Resources>
  34. <xctk:BusyIndicator BusyContent="{x:Static resources:Client_Resource.Content_UpdateBusy}" IsBusy="{Binding IsBusy, Mode=TwoWay}">
  35. <Grid Margin="20,0">
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="35" />
  38. <RowDefinition Height="Auto" />
  39. <RowDefinition />
  40. <RowDefinition />
  41. <RowDefinition Height="Auto" />
  42. <RowDefinition Height="50" />
  43. <RowDefinition Height="0" />
  44. <RowDefinition Height="Auto" />
  45. <RowDefinition Height="Auto" />
  46. <RowDefinition />
  47. <RowDefinition />
  48. <RowDefinition Height="Auto" />
  49. <RowDefinition />
  50. <RowDefinition />
  51. <RowDefinition />
  52. <RowDefinition />
  53. <RowDefinition />
  54. <RowDefinition />
  55. <RowDefinition />
  56. </Grid.RowDefinitions>
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition MaxWidth="30" />
  59. <ColumnDefinition MaxWidth="140" />
  60. <ColumnDefinition MaxWidth="5" />
  61. <ColumnDefinition Width="230" />
  62. <ColumnDefinition MaxWidth="1" />
  63. <ColumnDefinition MaxWidth="1" />
  64. <ColumnDefinition />
  65. <ColumnDefinition MaxWidth="40" />
  66. </Grid.ColumnDefinitions>
  67. <TextBlock Grid.Row="0"
  68. Grid.Column="1"
  69. HorizontalAlignment="Center"
  70. VerticalAlignment="Center"
  71. Text="{x:Static resources:Client_Resource.DeliveryOrderView_TradeGoods}" />
  72. <TextBlock Grid.Row="2"
  73. Grid.Column="1"
  74. HorizontalAlignment="Center"
  75. VerticalAlignment="Center"
  76. Text="{x:Static resources:Client_Resource.DeliveryOrderView_Direction}" />
  77. <TextBlock Grid.Row="3"
  78. Grid.Column="1"
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. Text="{x:Static resources:Client_Resource.DeliveryOrderView_HoldCount}" />
  82. <!-- 交割价格/申报价格 -->
  83. <TextBlock Grid.Row="4"
  84. Grid.Column="1"
  85. Margin="0,10,0,0"
  86. HorizontalAlignment="Center"
  87. VerticalAlignment="Center"
  88. Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryMoney}"
  89. Visibility="{Binding IsVisibilityHolderPrice}" />
  90. <TextBlock Grid.Row="5"
  91. Grid.Column="1"
  92. HorizontalAlignment="Center"
  93. VerticalAlignment="Center"
  94. Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryNum}" />
  95. <!-- 卖交割:选择仓单 -->
  96. <StackPanel Grid.Row="7"
  97. Grid.Column="0"
  98. Grid.ColumnSpan="8"
  99. Panel.ZIndex="0"
  100. Orientation="Horizontal"
  101. Visibility="{Binding IsChecked,
  102. ElementName=sellDirection,
  103. Converter={StaticResource BooleanToVisibilityConverter}}">
  104. <TextBlock Margin="55,8,0,0" Text="{x:Static resources:Client_Resource.DeliveryOrderView_PicketUpWr}" />
  105. <dataGrid:MuchinfoDataGrid MaxWidth="370"
  106. MaxHeight="180"
  107. Margin="30,8,0,0"
  108. EnableRowVirtualization="False"
  109. ItemsSource="{Binding DeliveryMatchOrderList}"
  110. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  111. ScrollViewer.VerticalScrollBarVisibility="Auto"
  112. Style="{DynamicResource AccountMuchinfoDataGridStyle}">
  113. <DataGrid.Columns>
  114. <!-- 选择CheckBox -->
  115. <DataGridTemplateColumn Width="Auto"
  116. MinWidth="50"
  117. Header="{x:Static resources:Client_Resource.Delivery_Choice}">
  118. <DataGridTemplateColumn.CellTemplate>
  119. <DataTemplate>
  120. <StackPanel HorizontalAlignment="Center"
  121. VerticalAlignment="Center"
  122. Orientation="Horizontal">
  123. <CheckBox x:Name="cbXh"
  124. VerticalAlignment="Center"
  125. IsChecked="{Binding IsSelected,
  126. Mode=TwoWay,
  127. UpdateSourceTrigger=PropertyChanged}"
  128. IsEnabled="{Binding IsEnabled}"
  129. Style="{DynamicResource mtpCheckBoxStyle}">
  130. <i:Interaction.Triggers>
  131. <i:EventTrigger EventName="Checked">
  132. <i:InvokeCommandAction Command="{Binding DataContext.SelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding WRCode}" />
  133. </i:EventTrigger>
  134. <i:EventTrigger EventName="Unchecked">
  135. <i:InvokeCommandAction Command="{Binding DataContext.UnSelectCommand, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}" CommandParameter="{Binding WRCode}" />
  136. </i:EventTrigger>
  137. </i:Interaction.Triggers>
  138. </CheckBox>
  139. <!-- <Label Content="{Binding Xh}" FontSize="14"/> -->
  140. </StackPanel>
  141. </DataTemplate>
  142. </DataGridTemplateColumn.CellTemplate>
  143. </DataGridTemplateColumn>
  144. <!-- 仓单号 -->
  145. <DataGridTextColumn Width="Auto"
  146. MinWidth="80"
  147. Binding="{Binding WRCode}"
  148. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  149. Header="{x:Static resources:Client_Resource.DeliveryWarehouse_WRCode}" />
  150. <!-- 商品名称 -->
  151. <DataGridTextColumn Width="Auto"
  152. MinWidth="110"
  153. Binding="{Binding DeliveryGoodsName}"
  154. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  155. Header="{x:Static resources:Client_Resource.Moduel_Goods}" />
  156. <!-- 可用数量 -->
  157. <DataGridTextColumn Width="Auto"
  158. MinWidth="50"
  159. Binding="{Binding EnableQty}"
  160. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  161. Header="{x:Static resources:Client_Resource.Content_Quantifiable}" />
  162. <!-- 单位 -->
  163. <DataGridTextColumn Width="Auto"
  164. MinWidth="60"
  165. Binding="{Binding GoodsunitName}"
  166. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  167. Header="{x:Static resources:Client_Resource.Moduel_Unit}" />
  168. <!-- 等级 -->
  169. <DataGridTextColumn Width="Auto"
  170. MinWidth="60"
  171. Binding="{Binding Rank}"
  172. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  173. Header="{x:Static resources:Client_Resource.Moduel_Level}" />
  174. <!-- 品牌 -->
  175. <DataGridTextColumn Width="Auto"
  176. MinWidth="70"
  177. Binding="{Binding Brand}"
  178. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  179. Header="{x:Static resources:Client_Resource.Moduel_Brand}" />
  180. <!-- 升贴水 -->
  181. <DataGridTextColumn Width="Auto"
  182. MinWidth="50"
  183. Binding="{Binding PriceMove}"
  184. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  185. Header="{x:Static resources:Client_Resource.Moduel_PriceMove}" />
  186. <!-- 存储仓库 -->
  187. <DataGridTextColumn Width="Auto"
  188. MinWidth="100"
  189. Binding="{Binding WareHouseName}"
  190. ElementStyle="{StaticResource DataGridTextColumnStyle}"
  191. Header="{x:Static resources:Client_Resource.DeliveryWarehouse_WareHouseId}" />
  192. </DataGrid.Columns>
  193. </dataGrid:MuchinfoDataGrid>
  194. </StackPanel>
  195. <TextBlock Grid.Row="7"
  196. Grid.Column="1"
  197. Margin="0,6,0,6"
  198. HorizontalAlignment="Center"
  199. VerticalAlignment="Center"
  200. Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryPriceMove}"
  201. Visibility="{Binding DeliveryPriceMoveDisplay,
  202. Converter={StaticResource ZeroOrNotVisibilityConverter}}" />
  203. <TextBlock Grid.Row="7"
  204. Grid.Column="3"
  205. Margin="0,6,0,6"
  206. HorizontalAlignment="Left"
  207. VerticalAlignment="Center"
  208. Visibility="{Binding DeliveryPriceMoveDisplay,
  209. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  210. <Run Text="{Binding DeliveryPriceMoveDisplay}" />
  211. <Run Text="{x:Static resources:Client_Resource.Amount_RMB}" />
  212. <Run Text="/" />
  213. <Run Text="{Binding DeliveryAgreeUnitType, Mode=OneWay}" />
  214. </TextBlock>
  215. <!-- 交割商品列表 -->
  216. <ComboBox Grid.Row="0"
  217. Grid.Column="3"
  218. Grid.ColumnSpan="2"
  219. Width="165"
  220. HorizontalAlignment="Left"
  221. VerticalAlignment="Center"
  222. ItemTemplate="{StaticResource GoodsDatatTemplate}"
  223. ItemsSource="{Binding DeliveryGoodsList}"
  224. SelectedItem="{Binding CurrentGoods,
  225. Mode=TwoWay}"
  226. Style="{DynamicResource SimpleComboBoxStyle}" />
  227. <StackPanel Grid.Row="1"
  228. Grid.Column="3"
  229. Height="65"
  230. Background="{DynamicResource AcountGridHeadBackground}"
  231. Orientation="Vertical"
  232. Visibility="{Binding IsVisibilityRelationGoodsInfo}">
  233. <TextBlock Margin="8,6,0,0"
  234. HorizontalAlignment="Left"
  235. VerticalAlignment="Center"
  236. Foreground="{DynamicResource AcountGridHeadForeground}"
  237. TextAlignment="Left">
  238. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_RelationGoodsName}" />
  239. <Run Text="{Binding RelationGoodsName}" />
  240. </TextBlock>
  241. <TextBlock Margin="8,6,0,0"
  242. HorizontalAlignment="Left"
  243. VerticalAlignment="Center"
  244. Foreground="{DynamicResource AcountGridHeadForeground}"
  245. TextAlignment="Left">
  246. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_RelationGoodsHoldQty}" />
  247. <Run Text="{Binding RelationGoodsHoldQty}" />
  248. </TextBlock>
  249. <TextBlock Margin="8,6,0,6"
  250. HorizontalAlignment="Left"
  251. VerticalAlignment="Center"
  252. Foreground="{DynamicResource AcountGridHeadForeground}"
  253. TextAlignment="Left">
  254. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_RelationGoodsHoldPrice}" />
  255. <Run Text="{Binding RelationGoodsHoldPriceFormat, Mode=OneWay}" />
  256. </TextBlock>
  257. </StackPanel>
  258. <!-- 持仓方向 -->
  259. <StackPanel Grid.Row="2"
  260. Grid.Column="3"
  261. Grid.ColumnSpan="2"
  262. Width="165"
  263. HorizontalAlignment="Left"
  264. Orientation="Horizontal">
  265. <RadioButton HorizontalAlignment="Center"
  266. VerticalAlignment="Center"
  267. Content="{x:Static resources:Client_Resource.DeliveryOrderView_Buy}"
  268. GroupName="Direction"
  269. IsChecked="{Binding BuyOrSell,
  270. ConverterParameter=0,
  271. Converter={StaticResource EnumBooleanConvert}}"
  272. IsEnabled="{Binding IsBuyEnable}"
  273. Style="{DynamicResource RadioButtonStyle}" />
  274. <RadioButton x:Name="sellDirection"
  275. HorizontalAlignment="Center"
  276. VerticalAlignment="Center"
  277. Content="{x:Static resources:Client_Resource.DeliveryOrderView_Sell}"
  278. GroupName="Direction"
  279. IsChecked="{Binding BuyOrSell,
  280. ConverterParameter=1,
  281. Converter={StaticResource EnumBooleanConvert}}"
  282. IsEnabled="{Binding IsSellEnable}"
  283. Style="{DynamicResource RadioButtonStyle}" />
  284. </StackPanel>
  285. <!-- 持仓数量 -->
  286. <TextBox Grid.Row="3"
  287. Grid.Column="3"
  288. Grid.ColumnSpan="2"
  289. Width="165"
  290. HorizontalAlignment="Left"
  291. VerticalAlignment="Center"
  292. IsEnabled="False"
  293. Style="{DynamicResource RectangleTextBox}"
  294. Text="{Binding AvailHoldQty}" />
  295. <!-- 交割价格 -->
  296. <StackPanel Grid.Row="4"
  297. Grid.Column="3"
  298. Grid.ColumnSpan="2"
  299. HorizontalAlignment="Left"
  300. VerticalAlignment="Center"
  301. Orientation="Horizontal"
  302. Visibility="{Binding IsVisibilityHolderPrice}">
  303. <TextBox Width="165"
  304. Margin="0,10,0,0"
  305. HorizontalAlignment="Left"
  306. VerticalAlignment="Center"
  307. IsEnabled="False"
  308. Style="{DynamicResource RectangleTextBox}"
  309. Text="{Binding DeliveryPriceFormat,
  310. Mode=OneWay}" />
  311. <!-- 价格类型 -->
  312. <TextBlock Margin="10,0,0,0"
  313. HorizontalAlignment="Left"
  314. VerticalAlignment="Center"
  315. Text="{Binding DeliveryPriceTypeDisplay}" />
  316. </StackPanel>
  317. <!-- 交割数量 -->
  318. <StackPanel Grid.Row="5"
  319. Grid.Column="3"
  320. Grid.ColumnSpan="2"
  321. HorizontalAlignment="Left"
  322. VerticalAlignment="Center"
  323. Orientation="Horizontal">
  324. <xctk:DecimalUpDown Width="165"
  325. DefaultValue="0"
  326. DisplayDefaultValueOnEmptyText="True"
  327. KeyDown="DecimalUpDown_KeyDown"
  328. Style="{DynamicResource DecimalNewUpDownStyle}"
  329. TabIndex="5"
  330. Value="{Binding DeliveryCount,
  331. Mode=TwoWay}" />
  332. <TextBlock Margin="10,0,0,0"
  333. HorizontalAlignment="Left"
  334. VerticalAlignment="Center"
  335. Text="{x:Static resources:Client_Resource.EntrustOrderFrame_Hand}" />
  336. </StackPanel>
  337. <!-- 提示:可申报数量 填写范围 -->
  338. <TextBlock Grid.Row="5"
  339. Grid.Column="3"
  340. Grid.ColumnSpan="4"
  341. Margin="0,10,0,0"
  342. HorizontalAlignment="Left"
  343. VerticalAlignment="Bottom"
  344. Visibility="{Binding MinMaxDeliNumVisibility}">
  345. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_RangBetweenMinAndMax}" />
  346. <Run Text="{Binding MinDeliveryUnit}" />
  347. <Run Text="〈﹦" />
  348. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_DeliveryNum}" />
  349. <Run Text="〈﹦" />
  350. <Run Text="{Binding MaxDeliveryUnit}" />
  351. </TextBlock>
  352. <!-- 提示:错误提示 -->
  353. <TextBlock Grid.Row="5"
  354. Grid.Column="3"
  355. Grid.ColumnSpan="4"
  356. Margin="0,10,0,0"
  357. HorizontalAlignment="Left"
  358. VerticalAlignment="Bottom"
  359. Visibility="{Binding MinMaxErrVisibility}">
  360. <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding ErrorMsg}" />
  361. <!-- <Run Text="{Binding MinDeliveryUnit}" /> -->
  362. </TextBlock>
  363. <!-- 交割数量转换单位 -->
  364. <StackPanel Grid.Row="5"
  365. Grid.Column="6"
  366. Grid.ColumnSpan="2"
  367. HorizontalAlignment="Left"
  368. VerticalAlignment="Center"
  369. Orientation="Horizontal"
  370. Visibility="{Binding IsVisibilityFreezeMoney}">
  371. <TextBlock Margin="0,0,10,0"
  372. HorizontalAlignment="Left"
  373. VerticalAlignment="Center"
  374. Text="{x:Static resources:Client_Resource.DeliveryOrderView_totalText}" />
  375. <TextBox Width="80"
  376. IsEnabled="False"
  377. Style="{DynamicResource RectangleTextBox}"
  378. Text="{Binding RelationNumDisplay,
  379. Mode=OneWay}" />
  380. <TextBlock Margin="10,0,0,0"
  381. HorizontalAlignment="Left"
  382. VerticalAlignment="Center"
  383. Text="{Binding DeliveryAgreeUnitType}" />
  384. </StackPanel>
  385. <!-- 冻结货款 -->
  386. <StackPanel Grid.Row="8"
  387. Grid.Column="0"
  388. Grid.ColumnSpan="8"
  389. MinHeight="75"
  390. Margin="0,5,0,0"
  391. HorizontalAlignment="Stretch"
  392. Background="{DynamicResource AcountGridHeadBackground}"
  393. Orientation="Vertical"
  394. Visibility="{Binding IsVisibilityHolderPrice}">
  395. <!-- 交易货款 -->
  396. <StackPanel Margin="55,6,0,0"
  397. Orientation="Horizontal"
  398. Visibility="{Binding FreezeTradeMoneyFormat,
  399. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  400. <TextBlock Foreground="{DynamicResource AcountGridHeadForeground}">
  401. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_FreezeTradeMoney}" />
  402. <!--
  403. <Run Text="{Binding DeliveryPriceFormat,Mode=OneWay}" />
  404. <Run Text=" * " />
  405. <Run Text="{Binding DeliveryCount,Mode=OneWay}" />
  406. <Run Text=" * " />
  407. <Run Text="合约单位" />
  408. <Run Text=" = " />
  409. -->
  410. <Run Text="{Binding FreezeTradeMoneyFormat, Mode=OneWay}" />
  411. </TextBlock>
  412. <Button Margin="10,0,0,0"
  413. Background="Transparent"
  414. Padding="2"
  415. Style="{DynamicResource TextButtonStyle}"
  416. ToolTip="{Binding FreezeTradeMoneyTooltip}"
  417. Visibility="{Binding IsVisibilityDeliveryTradeMoney}">
  418. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  419. <Ellipse Width="12"
  420. Height="12"
  421. Stroke="{DynamicResource AcountGridHeadForeground}"
  422. StrokeThickness="1" />
  423. <TextBlock HorizontalAlignment="Center"
  424. VerticalAlignment="Center"
  425. Foreground="{DynamicResource AcountGridHeadForeground}"
  426. Text="?" />
  427. </Grid>
  428. </Button>
  429. </StackPanel>
  430. <!-- 差价款 -->
  431. <StackPanel Margin="55,2,0,0"
  432. Orientation="Horizontal"
  433. Visibility="{Binding FreezePriceMoveMoneyFormat,
  434. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  435. <TextBlock Foreground="{DynamicResource AcountGridHeadForeground}">
  436. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_FreezePriceMoveMoney}" />
  437. <!--
  438. <Run Text="{Binding DeliveryPriceMoveDisplay,Mode=OneWay}" />
  439. <Run Text=" * " />
  440. <Run Text="{Binding RelationNumDisplay,Mode=OneWay}" />
  441. <Run Text=" = " />
  442. -->
  443. <Run Text="{Binding FreezePriceMoveMoneyFormat, Mode=OneWay}" />
  444. </TextBlock>
  445. <Button Margin="10,0,0,0"
  446. Background="Transparent"
  447. Padding="2"
  448. Style="{DynamicResource TextButtonStyle}"
  449. ToolTip="{Binding FreezePriceMoveMoneyTooltip}">
  450. <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
  451. <Ellipse Width="12"
  452. Height="12"
  453. Stroke="{DynamicResource AcountGridHeadForeground}"
  454. StrokeThickness="1" />
  455. <TextBlock HorizontalAlignment="Center"
  456. VerticalAlignment="Center"
  457. Foreground="{DynamicResource AcountGridHeadForeground}"
  458. Text="?" />
  459. </Grid>
  460. </Button>
  461. </StackPanel>
  462. <!-- 手续费 -->
  463. <TextBlock Margin="55,4,0,0"
  464. Foreground="{DynamicResource AcountGridHeadForeground}"
  465. Visibility="{Binding TotalDeliveryFee,
  466. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  467. <Run Text="{x:Static resources:Client_Resource.Content_Charge}" />
  468. <Run Text="{Binding TotalDeliveryFee, Mode=OneWay}" />
  469. </TextBlock>
  470. <!-- 税款 -->
  471. <TextBlock Margin="55,6,0,0"
  472. Foreground="{DynamicResource AcountGridHeadForeground}"
  473. Visibility="{Binding TotalFreezeFax,
  474. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  475. <Run Text="{x:Static resources:Client_Resource.Content_DeliveryTax}" />
  476. <Run Text="{Binding TotalFreezeFax, Mode=OneWay}" />
  477. </TextBlock>
  478. <!-- 合计冻结货款 -->
  479. <TextBlock Margin="55,6,0,6"
  480. Foreground="{DynamicResource AcountGridHeadForeground}"
  481. Visibility="{Binding FreezeDeliveryMoneyFormat,
  482. Converter={StaticResource ZeroOrNotVisibilityConverter}}">
  483. <Run Text="{Binding TotalFreezenMoneyText}" />
  484. <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding FreezeDeliveryMoneyFormat, Mode=OneWay}" />
  485. </TextBlock>
  486. </StackPanel>
  487. <!-- 冻结手续费 -->
  488. <TextBlock Grid.Row="8"
  489. Grid.Column="1"
  490. Grid.ColumnSpan="3"
  491. Margin="25,10,0,0"
  492. Foreground="{DynamicResource AcountGridHeadForeground}"
  493. Visibility="{Binding IsVisibilitySellModel_Show}">
  494. <Run Text="{x:Static resources:Client_Resource.Content_FrezenCharge}" />
  495. <Run Text="{Binding TotalDeliveryFee, Mode=OneWay}" />
  496. </TextBlock>
  497. <!-- 温馨提示内容 -->
  498. <TextBlock Grid.Row="15"
  499. Margin="0,5,0,0"
  500. Grid.Column="1"
  501. Grid.ColumnSpan="6"
  502. HorizontalAlignment="Center"
  503. VerticalAlignment="Center"
  504. Foreground="{StaticResource TextBrush_DeliveryMatchView}"
  505. Visibility="{Binding IsVisibilitySellModel}">
  506. <Run Text="{Binding WarningTips}" />
  507. </TextBlock>
  508. <StackPanel Grid.Row="15"
  509. Margin="0,5,0,0"
  510. Grid.Column="1"
  511. Grid.ColumnSpan="6"
  512. HorizontalAlignment="Center"
  513. VerticalAlignment="Center"
  514. Orientation="Horizontal"
  515. Visibility="{Binding IsVisibilitySellModel_Show}">
  516. <TextBlock>
  517. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_WrhourseNeedQtyMustGreatThan}" />
  518. <Run Foreground="{StaticResource TextBrush_DeliveryMatchView}" Text="{Binding RelationNumDisplay, Mode=OneWay}" />
  519. <Run Text="{x:Static resources:Client_Resource.DeliveryOrderView_AlreadyPicket}" />
  520. <Run Text="{Binding AlreadyMatchQty}" />
  521. </TextBlock>
  522. </StackPanel>
  523. <StackPanel Margin="0,5,0,0" Visibility="{Binding IsVisibilitySellModel}" Grid.Row="9" Grid.RowSpan="6" Grid.Column="1" Grid.ColumnSpan="6" >
  524. <Grid>
  525. <Grid.RowDefinitions>
  526. <RowDefinition />
  527. <RowDefinition />
  528. <RowDefinition />
  529. </Grid.RowDefinitions>
  530. <Grid.ColumnDefinitions>
  531. <ColumnDefinition />
  532. <ColumnDefinition />
  533. <ColumnDefinition />
  534. <ColumnDefinition />
  535. <ColumnDefinition />
  536. <ColumnDefinition />
  537. </Grid.ColumnDefinitions>
  538. <TextBlock Grid.Row="0"
  539. Grid.Column="0"
  540. Margin="0,2,0,2"
  541. HorizontalAlignment="Right"
  542. Text="{x:Static resources:Client_Resource.TakaDeliveryGoodsApplyViewModel_RecievePerson}" />
  543. <TextBox Grid.Row="0"
  544. Grid.ColumnSpan="3"
  545. Width="165"
  546. IsEnabled="True"
  547. HorizontalAlignment="Left"
  548. TextAlignment="Left"
  549. HorizontalContentAlignment="Left"
  550. Grid.Column="1"
  551. Margin="32,2,0,2"
  552. Style="{DynamicResource RectangleTextBox}"
  553. Text="{Binding RecievePerson}" />
  554. <TextBlock Grid.Row="0"
  555. Grid.Column="3"
  556. Grid.ColumnSpan="1"
  557. Margin="55,2,0,0"
  558. HorizontalAlignment="Left"
  559. VerticalAlignment="Center"
  560. Foreground="{StaticResource TextBrush_Common}"
  561. Text="*" />
  562. <TextBlock Grid.Row="1"
  563. Grid.Column="0"
  564. Margin="0,2,0,2"
  565. HorizontalAlignment="Right"
  566. Text="{x:Static resources:Client_Resource.TakaDeliveryGoodsApplyViewModel_PhoneNum}" />
  567. <TextBox Grid.Row="1"
  568. Grid.ColumnSpan="3"
  569. Width="165"
  570. HorizontalAlignment="Left"
  571. HorizontalContentAlignment="Left"
  572. IsEnabled="True"
  573. Grid.Column="1"
  574. Margin="32,2,0,2"
  575. Style="{DynamicResource RectangleTextBox}"
  576. Text="{Binding PhoneNum}" />
  577. <TextBlock Grid.Row="1"
  578. Grid.Column="3"
  579. Grid.ColumnSpan="1"
  580. Margin="55,2,0,0"
  581. HorizontalAlignment="Left"
  582. VerticalAlignment="Center"
  583. Foreground="{StaticResource TextBrush_Common}"
  584. Text="*" />
  585. <TextBlock Grid.Row="2"
  586. Grid.Column="0"
  587. Margin="0,2,0,2"
  588. HorizontalAlignment="Right"
  589. Text="{x:Static resources:Client_Resource.TakaDeliveryGoodsApplyViewModel_RecieveAddress}" />
  590. <TextBox Grid.Row="2"
  591. IsEnabled="True"
  592. HorizontalContentAlignment="Left"
  593. Grid.Column="1"
  594. Grid.ColumnSpan="5"
  595. Width="320"
  596. HorizontalAlignment="Left"
  597. Style="{DynamicResource RectangleTextBox}"
  598. Margin="32,2,0,2"
  599. Text="{Binding RecieveAddress}" />
  600. <TextBlock Grid.Row="2"
  601. Grid.Column="5"
  602. Grid.ColumnSpan="1"
  603. Margin="65,2,0,0"
  604. HorizontalAlignment="Left"
  605. VerticalAlignment="Center"
  606. Foreground="{StaticResource TextBrush_Common}"
  607. Text="*" />
  608. </Grid>
  609. </StackPanel>
  610. <StackPanel Grid.Row="17"
  611. Grid.RowSpan="2"
  612. Grid.ColumnSpan="8"
  613. Margin="0,10"
  614. HorizontalAlignment="Center"
  615. VerticalAlignment="Center"
  616. Orientation="Horizontal">
  617. <Button Width="82"
  618. Height="26"
  619. Command="{Binding OKCommand}"
  620. CommandParameter="{Binding ElementName=DeliveryOrderViewWindow}"
  621. Content="{x:Static resources:Client_Resource.Button_Confirm}"
  622. IsEnabled="{Binding OKButtonEnabled}"
  623. Style="{DynamicResource CommonButtonStyle}" />
  624. <Button Width="82"
  625. Height="26"
  626. Margin="60,0,0,0"
  627. Command="{Binding CancelCommand}"
  628. CommandParameter="{Binding ElementName=DeliveryOrderViewWindow}"
  629. Content="{x:Static resources:Client_Resource.Button_Cancel}"
  630. Style="{DynamicResource CommonButtonStyle}" />
  631. </StackPanel>
  632. <TextBlock Grid.Row="16"
  633. Grid.Column="3"
  634. Margin="0,5,0,0"
  635. Grid.ColumnSpan="4"
  636. HorizontalAlignment="Left"
  637. VerticalAlignment="Center"
  638. Foreground="{StaticResource TextBrush_DeliveryMatchView}">
  639. <Run Text="{Binding ShowErrorInfo}" />
  640. </TextBlock>
  641. </Grid>
  642. </xctk:BusyIndicator>
  643. </Window>