Browse Source

本地订单调试

样式分支
pry 2 years ago
parent
commit
6c0d7ae616
1 changed files with 3 additions and 35 deletions
  1. +3
    -35
      BPASmartClient/App.xaml.cs

+ 3
- 35
BPASmartClient/App.xaml.cs View File

@@ -70,43 +70,11 @@ namespace BPASmartClient
/// </summary>
private void NoCompleteOrderInit()
{


#region 模拟数据
for (int i = 0; i < 5; i++)
if (Json<KeepDataBase>.Data.orderLists.Count > 0)
{

ObservableCollection<MorkOrder> morkOrders = new ObservableCollection<MorkOrder>();
for (int m = 0; m < 10; m++)
{
morkOrders.Add(new MorkOrder()
{
OrderPush = new MorkOrderPush(),
OrderStatus = ORDER_STATUS.WAIT
});
}



Json<KeepDataBase>.Data.orderLists.Add(new OrderData()
{
DeviceId = Convert.ToString((i % 2) == 0 ? 1 : 2),
IsAllSelect = true,
morkOrderPushes = morkOrders
});


OrderListDialogView listDialogView = new OrderListDialogView();
listDialogView.ShowDialog();
}

OrderListDialogView listDialogView = new OrderListDialogView();
listDialogView.ShowDialog();
#endregion

//if (Json<KeepDataBase>.Data.orderLists.Count > 0)
//{
// OrderListDialogView listDialogView = new OrderListDialogView();
// listDialogView.ShowDialog();
//}
}

private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)


Loading…
Cancel
Save