优化数量计算时候的卡顿问题
This commit is contained in:
1 parent
9ddc4c3640
commit
c8adf98ae5
8 files changed
+382
-219
No files matched your search
@@ -567,62 +567,58 @@ namespace AllBase.Model.DBModel
|
||||
// WarehouseWaybillStatusStr = "中转已作废";
|
||||
else if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 0)
|
||||
WarehouseWaybillStatusStr = "中转待取号";
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusStrColor
|
||||
{
|
||||
get
|
||||
{
|
||||
var warehouseWaybillStatusStr = WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库") || warehouseWaybillStatusStr.StartsWith("中转拦截到仓"))
|
||||
return GlobalConfig.GreenBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush;
|
||||
return GlobalConfig.RedBrush;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public void SetWarehouseWaybillStatusStrColor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var warehouseWaybillStatusStr = WarehouseWaybillStatusStr.ParseToString();
|
||||
// 状态文字颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusStrColor = PurpleBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库") || warehouseWaybillStatusStr.StartsWith("中转拦截到仓"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.GreenBrush;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.YellowBrush;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.RedBrush;
|
||||
else
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.RedBrush;
|
||||
// 状态边框颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusBorderColor = PurpleBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.GreenBrush75;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.YellowBrush75;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.RedBrush75;
|
||||
else
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.RedBrush75;
|
||||
// 状态背景颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusBackColor = PurpleBrush35
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已出库"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.GreenBrush35;
|
||||
else if(warehouseWaybillStatusStr.ParseToString().StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.YellowBrush35;
|
||||
else if(warehouseWaybillStatusStr.ParseToString().StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.RedBrush35;
|
||||
else
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.RedBrush35;
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusStrColor
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusStrColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusStrColor, value); }
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusBorderColor
|
||||
{
|
||||
get
|
||||
{
|
||||
string warehouseWaybillStatusStr = this.WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
return GlobalConfig.GreenBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush75;
|
||||
return GlobalConfig.RedBrush75;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusBorderColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusBorderColor, value); }
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusBackColor
|
||||
{
|
||||
get
|
||||
{
|
||||
string warehouseWaybillStatusStr = this.WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush35
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已出库"))
|
||||
return GlobalConfig.GreenBrush35;
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush35;
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush35;
|
||||
return GlobalConfig.RedBrush35;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusBackColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusBackColor, value); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user