3 changed files with 138 additions and 5 deletions
@ -0,0 +1,35 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.BillCorrection.YTBasicAmount" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.BillCorrection" |
||||
|
mc:Ignorable="d" |
||||
|
Style="{StaticResource bwstyle}" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Title="导入圆通账单" Height="150" Width="300"> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="40"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="导入圆通账单" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="120"/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="每单已支付面单金额" HorizontalAlignment="Right" VerticalAlignment="Center"/> |
||||
|
<c:BTextBox x:Name="txtBasicAmount" Grid.Column="1" Margin="5,0,8,0"/> |
||||
|
</Grid> |
||||
|
|
||||
|
<c:BButton x:Name="btn_Save" Content="保存" Grid.Row="2" Width="60" HorizontalAlignment="Right" Margin="0,0,8,0" |
||||
|
Click="btn_Save_Click"/> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,40 @@ |
|||||
|
using BBWY.Controls; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Controls; |
||||
|
using System.Windows.Data; |
||||
|
using System.Windows.Documents; |
||||
|
using System.Windows.Input; |
||||
|
using System.Windows.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.BillCorrection |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// YTBasicAmount.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class YTBasicAmount : BWindow |
||||
|
{ |
||||
|
public decimal BasicAmount { get; private set; } |
||||
|
|
||||
|
public YTBasicAmount() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
|
||||
|
private void btn_Save_Click(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
if (!decimal.TryParse(txtBasicAmount.Text, out decimal amount)) |
||||
|
{ |
||||
|
MessageBox.Show("输入金额格式错误", "提示"); |
||||
|
return; |
||||
|
} |
||||
|
BasicAmount = amount; |
||||
|
this.DialogResult = true; |
||||
|
this.Close(); |
||||
|
} |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue