|
|
@ -28,7 +28,7 @@ namespace BBWY.Client.Models |
|
|
|
/// <summary>
|
|
|
|
/// 单件均摊成本
|
|
|
|
/// </summary>
|
|
|
|
public decimal UnitCost { get => unitCost;private set { Set(ref unitCost, value); } } |
|
|
|
public decimal UnitCost { get => unitCost; private set { Set(ref unitCost, value); } } |
|
|
|
|
|
|
|
public int PurchaseQuantity |
|
|
|
{ |
|
|
@ -54,18 +54,18 @@ namespace BBWY.Client.Models |
|
|
|
get => singleDeliveryFreight; set { Set(ref singleDeliveryFreight, value); } |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 单间操作成本
|
|
|
|
/// </summary>
|
|
|
|
public decimal SingleOperationAmount |
|
|
|
{ |
|
|
|
get => singleOperationAmount; |
|
|
|
set |
|
|
|
{ |
|
|
|
if (Set(ref singleOperationAmount, value)) |
|
|
|
RefreshUnitCost(); |
|
|
|
} |
|
|
|
} |
|
|
|
///// <summary>
|
|
|
|
///// 单间操作成本
|
|
|
|
///// </summary>
|
|
|
|
//public decimal SingleOperationAmount
|
|
|
|
//{
|
|
|
|
// get => singleOperationAmount;
|
|
|
|
// set
|
|
|
|
// {
|
|
|
|
// if (Set(ref singleOperationAmount, value))
|
|
|
|
// RefreshUnitCost();
|
|
|
|
// }
|
|
|
|
//}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 单件耗材成本
|
|
|
@ -132,9 +132,12 @@ namespace BBWY.Client.Models |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public decimal SingleInStorageAmount { get => singleInStorageAmount; set { Set(ref singleInStorageAmount, value); } } |
|
|
|
public decimal SingleOutStorageAmount { get => singleOutStorageAmount; set { Set(ref singleOutStorageAmount, value); } } |
|
|
|
|
|
|
|
public void RefreshUnitCost() |
|
|
|
{ |
|
|
|
UnitCost = SingleSkuAmount + SingleFreight + SingleFirstFreight + SingleOperationAmount + SingleConsumableAmount + SingleStorageAmount; |
|
|
|
UnitCost = SingleSkuAmount + SingleFreight + SingleFirstFreight + SingleInStorageAmount + SingleOutStorageAmount + SingleConsumableAmount + SingleStorageAmount; |
|
|
|
} |
|
|
|
|
|
|
|
private bool isEdit; |
|
|
@ -145,8 +148,10 @@ namespace BBWY.Client.Models |
|
|
|
private decimal singleFreight; |
|
|
|
private decimal singleFirstFreight; |
|
|
|
private decimal singleDeliveryFreight; |
|
|
|
private decimal singleOperationAmount; |
|
|
|
//private decimal singleOperationAmount;
|
|
|
|
private decimal singleConsumableAmount; |
|
|
|
private decimal singleStorageAmount; |
|
|
|
private decimal singleInStorageAmount; |
|
|
|
private decimal singleOutStorageAmount; |
|
|
|
} |
|
|
|
} |
|
|
|