From 165553c44ad99b7475ae9e85407cbd4282aa8096 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83?= <15095123350@163.com>
Date: Thu, 7 Nov 2024 09:44:02 +0800
Subject: [PATCH] 1
---
src/Khd.Core.Wpf/Form/FormBoardT.xaml.cs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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
{