Commit 64275139 by 泽锋 李

fix

parent 24df6369
......@@ -83,6 +83,51 @@ namespace AutoTurnOver.Models
public class dc_average_warehouse_dto : dc_average_warehouse
{
public decimal product_count_1_ratio
{
get
{
if (product_count > 0 && product_count_1 > 0)
{
return Math.Round(((decimal)product_count_1) / product_count, 4);
}
else
{
return 0M;
}
}
}
public string product_count_1_ratio_str
{
get
{
return product_count_1_ratio.ToString("p");
}
}
public decimal order_count_1_ratio
{
get
{
if (order_count > 0 && order_count_1 > 0)
{
return Math.Round(((decimal)order_count_1) / order_count, 4);
}
else
{
return 0M;
}
}
}
public string order_count_1_ratio_str
{
get
{
return order_count_1_ratio.ToString("p");
}
}
public decimal product_count_2_ratio
{
get
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment