Browse Source

测试程序恢复全部门

yijia
shanji 2 years ago
parent
commit
1f81070eaf
  1. 6
      WebTest/MainWindow.xaml.cs

6
WebTest/MainWindow.xaml.cs

@ -87,7 +87,7 @@ private string registerName = "webContext";
shopService = s.ServiceProvider.GetRequiredService<ShopService>(); shopService = s.ServiceProvider.GetRequiredService<ShopService>();
} }
//Login(); Login();
w2m.CoreWebView2InitializationCompleted = (e) => w2m.CoreWebView2InitializationCompleted = (e) =>
{ {
w2m.wb2.CoreWebView2.PermissionRequested += (sender, args) => w2m.wb2.CoreWebView2.PermissionRequested += (sender, args) =>
@ -143,12 +143,12 @@ private string registerName = "webContext";
//globalContext.User.ShopList = shopList; //globalContext.User.ShopList = shopList;
IList<Department> departmentList = null; IList<Department> departmentList = allDepartmentList;
//var response = mdsApiService.GetShopDetailList(); //var response = mdsApiService.GetShopDetailList();
//if (!response.Success) //if (!response.Success)
// throw new Exception(response.Msg); // throw new Exception(response.Msg);
departmentList = allDepartmentList?.Where(d => d.Name.Contains("供应链")).ToList(); //departmentList = allDepartmentList?.Where(d => d.Name.Contains("供应链")).ToList();
if (departmentList.Count == 0) if (departmentList.Count == 0)
throw new Exception("缺少有效的部门数据"); throw new Exception("缺少有效的部门数据");

Loading…
Cancel
Save