|
@ -34,7 +34,7 @@ namespace BBWY.Client.Views.Order |
|
|
|
|
|
|
|
|
public string SdOperator { get; set; } |
|
|
public string SdOperator { get; set; } |
|
|
|
|
|
|
|
|
public SD(string orderId, bool isSetStorageType, string venderRemark, string flag, string sdKey, PayBillType? payChannel, string sdPayBillNo, string sdOperator, decimal sdCommissionAmount, decimal deliveryExpressFreight) |
|
|
public SD(string orderId, bool isSetStorageType, string venderRemark, string flag, string sdKey, PayBillType? payChannel, string sdPayBillNo, string sdOperator, decimal sdCommissionAmount, decimal deliveryExpressFreight, SDType sDType = Models.SDType.自刷) |
|
|
{ |
|
|
{ |
|
|
InitializeComponent(); |
|
|
InitializeComponent(); |
|
|
this.OrderId = orderId; |
|
|
this.OrderId = orderId; |
|
@ -47,10 +47,12 @@ namespace BBWY.Client.Views.Order |
|
|
this.SdOperator = sdOperator; |
|
|
this.SdOperator = sdOperator; |
|
|
this.SDCommissionAmount = sdCommissionAmount; |
|
|
this.SDCommissionAmount = sdCommissionAmount; |
|
|
this.DeliveryExpressFreight = deliveryExpressFreight; |
|
|
this.DeliveryExpressFreight = deliveryExpressFreight; |
|
|
|
|
|
this.SDType = sDType; |
|
|
} |
|
|
} |
|
|
private void BWindow_Loaded(object sender, RoutedEventArgs e) |
|
|
private void BWindow_Loaded(object sender, RoutedEventArgs e) |
|
|
{ |
|
|
{ |
|
|
txtVenderRemark.Text = VenderRemark; |
|
|
txtVenderRemark.Text = VenderRemark; |
|
|
|
|
|
cbx_sdType.SelectedItem = SDType; |
|
|
var flagList = new List<KVModel>() |
|
|
var flagList = new List<KVModel>() |
|
|
{ |
|
|
{ |
|
|
new KVModel() {Key="灰色",Value="Gray"}, |
|
|
new KVModel() {Key="灰色",Value="Gray"}, |
|
@ -71,6 +73,8 @@ namespace BBWY.Client.Views.Order |
|
|
this.txt_SDOperator.Text = SdOperator; |
|
|
this.txt_SDOperator.Text = SdOperator; |
|
|
this.txtDeliveryExpressFreight.Text = DeliveryExpressFreight.ToString(); |
|
|
this.txtDeliveryExpressFreight.Text = DeliveryExpressFreight.ToString(); |
|
|
this.txtSDCommissionAmount.Text = SDCommissionAmount.ToString(); |
|
|
this.txtSDCommissionAmount.Text = SDCommissionAmount.ToString(); |
|
|
|
|
|
|
|
|
|
|
|
lblSDCommissionAmount.Text = (SDType)cbx_sdType.SelectedItem == Models.SDType.自刷 ? "空单号/刷单号" : "佣金"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private void btn_Save_Click(object sender, RoutedEventArgs e) |
|
|
private void btn_Save_Click(object sender, RoutedEventArgs e) |
|
@ -97,6 +101,11 @@ namespace BBWY.Client.Views.Order |
|
|
this.Close(); |
|
|
this.Close(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void cbx_sdType_SelectionChanged(object sender, SelectionChangedEventArgs e) |
|
|
|
|
|
{ |
|
|
|
|
|
if (lblSDCommissionAmount == null) |
|
|
|
|
|
return; |
|
|
|
|
|
lblSDCommissionAmount.Text = (SDType)cbx_sdType.SelectedItem == Models.SDType.自刷 ? "空单号/刷单号" : "佣金"; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|