|
|
|
|
@ -3384,7 +3384,7 @@ namespace Khd.Core.Wpf.Form
|
|
|
|
|
/// <param name="e"></param>
|
|
|
|
|
private async void Pagination2_PageUpdated(object sender, HandyControl.Data.FunctionEventArgs<int> e)
|
|
|
|
|
{
|
|
|
|
|
GetPersonCallMaterialData();
|
|
|
|
|
GetPersonCallMaterialData();
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 页码改变时
|
|
|
|
|
@ -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<DefaultDbContext>();
|
|
|
|
|
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
|
|
|
|
|
{
|
|
|
|
|
|