diff --git a/src/Khd.Core.Wpf/Form/FormBoardT.xaml.cs b/src/Khd.Core.Wpf/Form/FormBoardT.xaml.cs index 54761b9..9ca6d9d 100644 --- a/src/Khd.Core.Wpf/Form/FormBoardT.xaml.cs +++ b/src/Khd.Core.Wpf/Form/FormBoardT.xaml.cs @@ -3384,7 +3384,7 @@ namespace Khd.Core.Wpf.Form /// private async void Pagination2_PageUpdated(object sender, HandyControl.Data.FunctionEventArgs e) { - GetPersonCallMaterialData(); + GetPersonCallMaterialData(); } /// /// 页码改变时 @@ -3927,7 +3927,7 @@ namespace Khd.Core.Wpf.Form dbContext.AddRange(addList); dbContext.SaveChanges(); transaction.Commit(); - // HandyControl.Controls.MessageBox.Show("创建出库任务成功!"); + // HandyControl.Controls.MessageBox.Show("创建出库任务成功!"); itemsControlItems.Clear(); CallSelectedItem.Clear(); GetPersonCallMaterialData(); @@ -4896,9 +4896,12 @@ namespace Khd.Core.Wpf.Form using var dbContext = scope.ServiceProvider.GetRequiredService(); try { + int totalCount = dbContext.WmsInventoryCheck + .Where(t => t.WarehouseId == 512).Count(); var list = dbContext.WmsInventoryCheck .Where(t => t.WarehouseId == 512) .OrderByDescending(t => t.CreateTime).Skip((this.PageControl3.PageInfo.CurrentPage - 1) * this.pageCount).Take(this.pageCount).ToList(); + this.PageControl3.PageInfo.TotalPage = totalCount / this.pageCount + totalCount % this.pageCount == 0 ? 0 : 1; this.InventoryMaterial.ItemsSource = list.Select(t => new {