You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
3 years ago
|
using BBWY.Client.Models;
|
||
|
using BBWY.Controls;
|
||
|
using System.Windows;
|
||
|
using System.Windows.Controls;
|
||
|
|
||
|
namespace BBWY.Client.Views.Order
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// SD.xaml 的交互逻辑
|
||
|
/// </summary>
|
||
|
public partial class SD : BWindow
|
||
|
{
|
||
|
public string OrderId { get; private set; }
|
||
|
|
||
|
public bool IsSetStorageType { get; private set; }
|
||
|
|
||
|
public decimal SDCommissionAmount { get; private set; }
|
||
|
|
||
|
public decimal DeliveryExpressFreight { get; private set; }
|
||
|
|
||
|
public SDType? SDType { get; private set; }
|
||
|
|
||
|
public string Flag { get; private set; }
|
||
|
|
||
|
public string VenderRemark { get; private set; }
|
||
|
|
||
|
public SD(string orderId, bool isSetStorageType)
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
this.OrderId = orderId;
|
||
|
this.IsSetStorageType = isSetStorageType;
|
||
|
}
|
||
|
|
||
|
private void btn_Save_Click(object sender, RoutedEventArgs e)
|
||
|
{
|
||
|
decimal.TryParse(txtSDCommissionAmount.Text, out decimal sdCommissionAmountd);
|
||
|
decimal.TryParse(txtDeliveryExpressFreight.Text, out decimal deliveryExpressFreight);
|
||
|
SDCommissionAmount = sdCommissionAmountd;
|
||
|
DeliveryExpressFreight = deliveryExpressFreight;
|
||
|
Flag = (cbx_flag.SelectedItem as ComboBoxItem).Content.ToString();
|
||
|
SDType = (SDType)cbx_sdType.SelectedItem;
|
||
|
VenderRemark = txtVenderRemark.Text;
|
||
|
|
||
|
this.DialogResult = true;
|
||
|
this.Close();
|
||
|
}
|
||
|
}
|
||
|
}
|