From f5505856eb4cb12e29879a8a41b7a3470f0f2c79 Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Tue, 4 Jul 2023 20:28:27 +0800
Subject: [PATCH 1/8] 1
---
.../APIServices/QiKu/PackTaskService.cs | 5 +-
.../APIServices/QiKu/SealBoxService.cs | 23 +-
BBWY.Client/BBWY.Client.csproj | 12 +
BBWY.Client/Helpers/MyPrintHelper.cs | 38 +-
BBWY.Client/Models/Enums.cs | 11 +
BBWY.Client/Models/FallWare/JDWareBoxModel.cs | 5 +
.../PackTask/PackServiceViewModel.cs | 7 -
.../ViewModels/PackTask/TaskListViewModel.cs | 2 +-
.../PackTask/WareHouseListViewModel.cs | 79 ++-
.../Views/FallWare/PrintBoxWindow.xaml | 62 ++
.../Views/FallWare/PrintBoxWindow.xaml.cs | 120 ++++
.../Views/FallWare/SetCloudWareBoxWindow.xaml | 54 +-
.../FallWare/SetCloudWareBoxWindow.xaml.cs | 76 +-
.../Views/FallWare/SetJDWareBoxWindow.xaml | 144 ++--
.../Views/FallWare/SetJDWareBoxWindow.xaml.cs | 92 ++-
.../Views/FallWare/WaitFallWareControl.xaml | 3 +-
.../FallWare/WareFallWareListControl.xaml | 84 ++-
.../FallWare/WareFallWareListControl.xaml.cs | 105 ++-
BBWY.Client/Views/PackTask/TaskList.xaml | 81 +--
.../Views/PackTask/TaskListControl.xaml | 5 -
.../Views/PackTask/WaitCompletedControl.xaml | 376 +++++-----
.../PackTask/WaitCompletedControl.xaml.cs | 101 ++-
.../Views/PackTask/WaitPackageControl.xaml | 655 ++++++++++--------
.../Views/PackTask/WaitPackageControl.xaml.cs | 195 +++++-
BBWY.Client/Views/PackTask/WareHouseList.xaml | 78 +--
.../Views/PackTask/WareHouseList.xaml.cs | 231 ------
.../Views/PackTask/WareHouseListControl.xaml | 604 ++++++++--------
.../PackTask/WareHouseListControl.xaml.cs | 193 +++++-
.../Views/QualityTask/WaitQualityControl.xaml | 615 ++++++++--------
.../QualityTask/WaitQualityControl.xaml.cs | 195 +++++-
.../TaskOverTime/WareTaskOverTimeControl.xaml | 39 +-
31 files changed, 2704 insertions(+), 1586 deletions(-)
create mode 100644 BBWY.Client/Views/FallWare/PrintBoxWindow.xaml
create mode 100644 BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
diff --git a/BBWY.Client/APIServices/QiKu/PackTaskService.cs b/BBWY.Client/APIServices/QiKu/PackTaskService.cs
index f6133700..4a4fedb1 100644
--- a/BBWY.Client/APIServices/QiKu/PackTaskService.cs
+++ b/BBWY.Client/APIServices/QiKu/PackTaskService.cs
@@ -293,7 +293,7 @@ namespace BBWY.Client.APIServices
///
///
///
- public ApiResponse SearchOverTimeTaskList(string ShopId, DateTime? StartTime, DateTime? EndTime, OverTimeTaskType? OverTimeTaskType, int? PageIndex, int? PageSize=20)
+ public ApiResponse SearchOverTimeTaskList(string ShopId, DateTime? StartTime, DateTime? EndTime,OverTimeTaskState overTimeTaskState, OverTimeTaskType? OverTimeTaskType, int? PageIndex, int? PageSize=20)
{
return SendRequest(globalContext.QKApiHost, $"api/PackTask/SearchOverTimeTaskList", new {
ShopId,
@@ -301,7 +301,8 @@ namespace BBWY.Client.APIServices
EndTime,
OverTimeTaskType,
PageIndex,
- PageSize
+ PageSize,
+ overTimeTaskState
}, null, HttpMethod.Post);
}
diff --git a/BBWY.Client/APIServices/QiKu/SealBoxService.cs b/BBWY.Client/APIServices/QiKu/SealBoxService.cs
index 8febd8d2..c66b54c0 100644
--- a/BBWY.Client/APIServices/QiKu/SealBoxService.cs
+++ b/BBWY.Client/APIServices/QiKu/SealBoxService.cs
@@ -88,7 +88,7 @@ namespace BBWY.Client.APIServices
, null, HttpMethod.Post);
}
- public ApiResponse GetWareSealBoxList(string ShopName, long? TaskId, string SkuId, int? PageIndex, int? PageSize)
+ public ApiResponse GetWareSealBoxList(string ShopName, long? TaskId, string SkuId,long? SealBoxId, int? PageIndex, int? PageSize)
{
return SendRequest(globalContext.QKApiHost, $"api/SealBox/GetWareSealBoxList",
new
@@ -97,7 +97,8 @@ namespace BBWY.Client.APIServices
TaskId,
SkuId,
PageIndex,
- PageSize
+ PageSize,
+ SealBoxId
}
, null, HttpMethod.Post);
}
@@ -124,7 +125,7 @@ namespace BBWY.Client.APIServices
///
///
///
- public ApiResponse SearchWareFallWareConfigureList(PositionState positionState, string ShopName = null, long? TaskId = null, string SkuId = null, int PageIndex = 1
+ public ApiResponse SearchWareFallWareConfigureList(PositionState positionState, string ShopName = null, long? TaskId = null, string SkuId = null,long?sealBoxId=null, int PageIndex = 1
, int PageSize = 10)
{
return SendRequest(globalContext.QKApiHost, $"api/SealBox/SearchWareFallWareConfigureList",
@@ -135,7 +136,8 @@ namespace BBWY.Client.APIServices
SkuId,
PageIndex,
PageSize,
- positionState
+ positionState,
+ sealBoxId
}
, null, HttpMethod.Post);
}
@@ -169,7 +171,7 @@ namespace BBWY.Client.APIServices
- public ApiResponse SetFallWareConfigure(long SealBoxId, string ProductTitle, string PurchaseOrder, string PrewOrder, string WaybillNo, string providerName = "", string wareName = "")
+ public ApiResponse SetFallWareConfigure(long SealBoxId, string ProductTitle, string PurchaseOrder, string PrewOrder, string WaybillNo, string providerName = "", string wareName = "",string WareCity="")
{
return SendRequest(globalContext.QKApiHost, $"api/SealBox/SetFallWareConfigure",
new
@@ -180,7 +182,8 @@ namespace BBWY.Client.APIServices
PrewOrder,
WaybillNo,
providerName,
- wareName
+ wareName,
+ WareCity
}
, null, HttpMethod.Post);
}
@@ -264,13 +267,17 @@ namespace BBWY.Client.APIServices
null, null, HttpMethod.Post);
}
- public ApiResponse GetWareWaitCompletedList(string shopId, int? PageIndex, int? PageSize)
+ public ApiResponse GetWareWaitCompletedList(string shopId, string ShopName , long? TaskId , string SkuId , long? sealBoxId , int? PageIndex, int? PageSize)
{
return SendRequest(globalContext.QKApiHost, $"api/SealBox/GetWareWaitCompletedList",
new {
shopId,
PageIndex,
- PageSize
+ PageSize,
+ ShopName,
+ TaskId,
+ SkuId,
+ sealBoxId
}, null, HttpMethod.Post);
}
diff --git a/BBWY.Client/BBWY.Client.csproj b/BBWY.Client/BBWY.Client.csproj
index 2643c69f..36e0e5dc 100644
--- a/BBWY.Client/BBWY.Client.csproj
+++ b/BBWY.Client/BBWY.Client.csproj
@@ -84,6 +84,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Helpers/MyPrintHelper.cs b/BBWY.Client/Helpers/MyPrintHelper.cs
index d9fbd559..bac14d65 100644
--- a/BBWY.Client/Helpers/MyPrintHelper.cs
+++ b/BBWY.Client/Helpers/MyPrintHelper.cs
@@ -52,10 +52,7 @@ namespace BBWY.Client.Helpers
default:
break;
}
-
}
-
-
private static void SetBar(BarCodeModel barCode, ref PrintPageEventArgs args, Font font, int heightSpace)
{
@@ -106,10 +103,6 @@ namespace BBWY.Client.Helpers
topHeigth += (50 + 5);
args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, topHeigth));
}
-
-
-
-
///
/// 标准
///
@@ -159,7 +152,6 @@ namespace BBWY.Client.Helpers
args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, 130));
args.Graphics.DrawImage(img, 1, 68, 234, 60);
}
-
public static void PrintCertificate(ref PrintPageEventArgs args, CertificateModel certificate, Font font)
{
@@ -194,7 +186,6 @@ namespace BBWY.Client.Helpers
}
-
private static void SetCerStander(ref PrintPageEventArgs args, CertificateModel certificate, Font font)
{
@@ -579,7 +570,6 @@ namespace BBWY.Client.Helpers
}
-
public static void SaveImage(PrintPageEventArgs args)
{
args.Graphics.Save();
@@ -593,9 +583,13 @@ namespace BBWY.Client.Helpers
}
-
-
-
+ ///
+ /// 字符串生成条形码 图片
+ ///
+ ///
+ ///
+ ///
+ ///
public static BitmapImage GetBarcodeImage(string printStr, int width, int height)
{
Bitmap image = new Bitmap(width, height);
@@ -606,6 +600,24 @@ namespace BBWY.Client.Helpers
return bitmapToBitmapImage(image);
}
+ ///
+ /// 字符串生成条形码 图片
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static BitmapImage GetBarcodeImageV2(string printStr, int width, int height)
+ {
+ Bitmap image = new Bitmap(width, height);
+ Graphics graphics2 = Graphics.FromImage(image);
+ Barcode barcode = new Barcode();
+ System.Drawing.Image img = barcode.Encode(TYPE.CODE128, printStr, width, height);
+ graphics2.DrawImage(img, 0, 0, width, height);
+ return bitmapToBitmapImage(image);
+ }
+
+
static BitmapImage bitmapToBitmapImage(Bitmap bitmap)
{
using (var stream = new MemoryStream())
diff --git a/BBWY.Client/Models/Enums.cs b/BBWY.Client/Models/Enums.cs
index 9f5f5dbc..f74b9bc1 100644
--- a/BBWY.Client/Models/Enums.cs
+++ b/BBWY.Client/Models/Enums.cs
@@ -538,6 +538,17 @@
待落仓 = 8,
待转运 = 11,
}
+
+ ///
+ /// 超时任务状态
+ ///
+ public enum OverTimeTaskState
+ {
+ 未完成 = 0,
+ 已完成 = 1,
+ 全部=2
+
+ }
public enum TaskMessageType
{
任务ID = 0,
diff --git a/BBWY.Client/Models/FallWare/JDWareBoxModel.cs b/BBWY.Client/Models/FallWare/JDWareBoxModel.cs
index c3483d75..2f51f68d 100644
--- a/BBWY.Client/Models/FallWare/JDWareBoxModel.cs
+++ b/BBWY.Client/Models/FallWare/JDWareBoxModel.cs
@@ -58,5 +58,10 @@ namespace BBWY.Client.Models.FallWare
/// 供应商
///
public string ProviderName { get; set; }
+
+ ///
+ /// 仓库城市
+ ///
+ public string WareCity { get; set; }
}
}
diff --git a/BBWY.Client/ViewModels/PackTask/PackServiceViewModel.cs b/BBWY.Client/ViewModels/PackTask/PackServiceViewModel.cs
index bc724769..d8512662 100644
--- a/BBWY.Client/ViewModels/PackTask/PackServiceViewModel.cs
+++ b/BBWY.Client/ViewModels/PackTask/PackServiceViewModel.cs
@@ -60,13 +60,6 @@ namespace BBWY.Client.ViewModels.PackTask
public int IncrementPartTaskCount { get => incrementPartTaskCount; set { Set(ref incrementPartTaskCount, value); } }
-
- //public ObservableCollection incrementPartCountList = new ObservableCollection() {
- //"0","1","2","3","4件以上"
- //};
-
- //public ObservableCollection IncrementPartCountList { get => incrementPartCountList; set { Set(ref incrementPartCountList, value); } }
-
private int incrementPartCount;
///
/// 配件数量
diff --git a/BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs b/BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs
index 96b1d83c..ac7e5f88 100644
--- a/BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs
+++ b/BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs
@@ -942,7 +942,7 @@ namespace BBWY.Client.ViewModels.PackTask
Task.Factory.StartNew(() =>
{
WaitCompletedList = new ObservableCollection();
- var datas = sealBoxService.GetWareWaitCompletedList(globalContext.User.Shop.ShopId.ToString(), PageIndex, PageSize);
+ var datas = sealBoxService.GetWareWaitCompletedList(globalContext.User.Shop.ShopId.ToString(), null, taskId, SearchSkuId, null, PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success)
{
var dataModel = datas.Data;
diff --git a/BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs b/BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs
index 6e657193..06b1adba 100644
--- a/BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs
+++ b/BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs
@@ -64,11 +64,27 @@ namespace BBWY.Client.ViewModels.PackTask
///
public ObservableCollection OverTimeTaskTypeList { get => overTimeTaskTypeList; set { Set(ref overTimeTaskTypeList, value); } }
- private OverTimeTaskType overTimeTaskState = OverTimeTaskType.全部;
+ private ObservableCollection overTimeTaskStateList = new ObservableCollection {
+ Models.OverTimeTaskState.未完成 , Models.OverTimeTaskState.已完成, OverTimeTaskState.全部
+ };
+ ///
+ ///超时任务类型
+ ///
+ public ObservableCollection OverTimeTaskStateList { get => overTimeTaskStateList; set { Set(ref overTimeTaskStateList, value); } }
+
+
+
+ private OverTimeTaskType overTimeTaskType = OverTimeTaskType.全部;
///
/// 任务类型(超时)
///
- public OverTimeTaskType OverTimeTaskState { get => overTimeTaskState; set { Set(ref overTimeTaskState, value); } }
+ public OverTimeTaskType OverTimeTaskType { get => overTimeTaskType; set { Set(ref overTimeTaskType, value); } }
+
+ private OverTimeTaskState overTimeTaskState = OverTimeTaskState.全部;
+ ///
+ /// 任务类型(超时)
+ ///
+ public OverTimeTaskState OverTimeTaskState { get => overTimeTaskState; set { Set(ref overTimeTaskState, value); } }
@@ -171,6 +187,18 @@ namespace BBWY.Client.ViewModels.PackTask
}
}
+ ///
+ /// 查询任务id
+ ///
+ private string searchSealBoxId;
+ public string SearchSealBoxId
+ {
+ get => searchSealBoxId; set
+ {
+ Set(ref searchSealBoxId, value);
+ }
+ }
+
///
/// 查询Sku
///
@@ -496,16 +524,14 @@ namespace BBWY.Client.ViewModels.PackTask
PrewOrder = fallware.BoxConfigureData.PrewOrder,
ProductTitle = fallware.BoxConfigureData.ProductTitle,
PurchaseOrder = fallware.BoxConfigureData.PurchaseOrder,
- WaybillNo = fallware.BoxConfigureData.WaybillNo
+ WaybillNo = fallware.BoxConfigureData.WaybillNo,
+ ProviderName = fallware.BoxConfigureData.ProviderName
};
- if (fallware.WareType == WareType.京仓)
- {
+
+ PrintBoxWindow printBox = new PrintBoxWindow(model, fallware.WareType);
+ printBox.ShowDialog();
//加载模板数据
- }
- if (fallware.WareType == WareType.云仓)
- {
-
- }
+
//打印
}
@@ -527,14 +553,14 @@ namespace BBWY.Client.ViewModels.PackTask
};
if (fallware.WareType == WareType.京仓)
{
- SetJDWareBoxWindow window = new SetJDWareBoxWindow(model, sealBoxService, fallware.WareType, ReflashTask, false);
+ SetJDWareBoxWindow window = new SetJDWareBoxWindow(model);
window.Show();
//var w = new SetJDWareBoxWindow2(model, sealBoxService, fallware.WareType, ReflashTask, false);
//w.ShowDialog();
}
if (fallware.WareType == WareType.云仓 || fallware.WareType == WareType.聚水潭齐越仓)
{
- SetCloudWareBoxWindow window = new SetCloudWareBoxWindow(model, sealBoxService, fallware.WareType, ReflashTask, false);
+ SetCloudWareBoxWindow window = new SetCloudWareBoxWindow(model, fallware.WareType);
window.Show();
}
@@ -714,12 +740,26 @@ namespace BBWY.Client.ViewModels.PackTask
case Models.TaskState.未到货:
case Models.TaskState.部分到货:
+
+ if (!model.OrderId.IsNullOrEmpty())
+ {
+ if (model.ExpressOrderList==null||model.ExpressOrderList.Count<=0)
+ {
+ System.Windows.MessageBox.Show("该任务采购单未进行发货,请联系业务进行发货后在确认收货", "提示");
+ return;
+ }
+ }
if (System.Windows.MessageBox.Show("是否确认收货?", "提示",
MessageBoxButton.YesNo,
MessageBoxImage.Warning) != MessageBoxResult.Yes)
return;
res = packTaskService.SetPackTaskState(taskId, Models.TaskState.待验收);
+ if (res != null && res.Success)
+ {
+
+ //todo:手动发货上传B端数据
+ }
break;
case Models.TaskState.待验收:
break;
@@ -782,10 +822,17 @@ namespace BBWY.Client.ViewModels.PackTask
PageSize = 10;
IsStartThread = false;
long? taskId = null;
+ long? sealBoxId = null;
try
{
if (SearchTaskId != null && !string.IsNullOrEmpty(SearchTaskId.Trim()))
taskId = Convert.ToInt64(SearchTaskId);
+
+ var istrue = long.TryParse(SearchSealBoxId, out long sealboxid);
+ if (istrue)
+ {
+ sealBoxId = sealboxid;
+ }
}
catch
{
@@ -800,7 +847,7 @@ namespace BBWY.Client.ViewModels.PackTask
Task.Factory.StartNew(() =>
{
WaitCompletedList = new ObservableCollection();
- var datas = sealBoxService.GetWareWaitCompletedList(null, PageIndex, PageSize);
+ var datas = sealBoxService.GetWareWaitCompletedList(null, SearchShopName, taskId, SearchSkuId, sealBoxId, PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success)
{
var dataModel = datas.Data;
@@ -828,7 +875,7 @@ namespace BBWY.Client.ViewModels.PackTask
Task.Factory.StartNew(() =>
{
OverTimeTaskList = new ObservableCollection();
- var datas = packTaskService.SearchOverTimeTaskList(null, StartTime, EndTime, OverTimeTaskState, PageIndex, PageSize);
+ var datas = packTaskService.SearchOverTimeTaskList(null, StartTime, EndTime, OverTimeTaskState,OverTimeTaskType, PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success)
{
var dataModel = datas.Data;
@@ -923,7 +970,7 @@ namespace BBWY.Client.ViewModels.PackTask
WaitFallWareList = new ObservableCollection();
- var datas = sealBoxService.SearchWareFallWareConfigureList(PositionState, SearchShopName, taskId, SearchSkuId, PageIndex, PageSize);
+ var datas = sealBoxService.SearchWareFallWareConfigureList(PositionState, SearchShopName, taskId, SearchSkuId,sealBoxId, PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success)
{
var dataModel = datas.Data;
@@ -1014,7 +1061,7 @@ namespace BBWY.Client.ViewModels.PackTask
{
WaitSealBoxModels = new ObservableCollection();
- var datas = sealBoxService.GetWareSealBoxList(SearchShopName, taskId, SearchSkuId, PageIndex, PageSize);
+ var datas = sealBoxService.GetWareSealBoxList(SearchShopName, taskId, SearchSkuId, sealBoxId, PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success)
{
var dataModel = datas.Data;
diff --git a/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml
new file mode 100644
index 00000000..0dbcf4ce
--- /dev/null
+++ b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
new file mode 100644
index 00000000..9d55e9a1
--- /dev/null
+++ b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
@@ -0,0 +1,120 @@
+using BBWY.Client.APIServices;
+using BBWY.Client.Models;
+using BBWY.Client.Models.FallWare;
+using BBWY.Controls;
+using NPOI.Util;
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Drawing.Printing;
+using System.IO;
+using System.Reflection;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace BBWY.Client.Views.FallWare
+{
+ ///
+ /// PrintBoxWindow.xaml 的交互逻辑
+ ///
+ public partial class PrintBoxWindow : BWindow
+ {
+ public PrintBoxWindow(JDWareBoxModel model, WareType WareType)
+ {
+ JDWareBoxModel =model ; this.WareType = WareType;
+ InitializeComponent();
+ this.DataContext = this;
+ InitPrintList();
+ }
+ public void InitPrintList()
+ {
+ //TaskImage = MyPrintHelper.GetBarcodeImage(TaskId.ToString(), 300, 60);
+
+ //BarcodeImage = MyPrintHelper.GetBarcodeImage(SkuId, 300, 60);
+
+
+ PrintList = new ObservableCollection();
+ var printingNames = PrinterSettings.InstalledPrinters;//获取本机的打印机数据
+ int index = -1;
+ int selectIndex = 0;
+ foreach (string name in printingNames)
+ {
+ if (name == "Microsoft XPS Document Writer" || name == "Microsoft Print to PDF" || name == "Fax")
+ {
+ continue;
+ }
+ index++;
+ if (name.Contains("Deli"))
+ {
+ selectIndex = index;
+ }
+ PrintList.Add(name);
+ }
+ try
+ {
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ if (File.Exists(printNames))
+ {
+ PrintName = File.ReadAllText(printNames);
+ }
+ else
+ {
+ if (PrintList.Count > 0)
+ {
+ PrintName = PrintList[0].ToString();
+ }
+ }
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+
+ public string PrintName { get; set; }
+ public int PrintCount { get; set; } = 1;
+
+
+
+ public JDWareBoxModel JDWareBoxModel { get; set; }
+
+ ///
+ /// 箱唛类型
+ ///
+ public WareType WareType { get; set; }
+ ///
+ /// 打印机列表
+ ///
+ public ObservableCollection PrintList { get; set; }
+
+ private void BButton_Click(object sender, RoutedEventArgs e)
+ {
+ if (WareType== WareType.京仓)
+ {
+ SetJDWareBoxWindow jdWindow = new SetJDWareBoxWindow(JDWareBoxModel);
+ jdWindow.Show();
+ //jdWindow.WindowState = WindowState.Maximized;
+ jdWindow.PrintBox(PrintName);
+ }
+
+ if (WareType== WareType.云仓|| WareType== WareType.聚水潭齐越仓)
+ {
+ SetCloudWareBoxWindow cloudWareWindow = new SetCloudWareBoxWindow(JDWareBoxModel, WareType);
+ cloudWareWindow.Visibility = Visibility.Hidden;
+ cloudWareWindow.Show();
+
+ cloudWareWindow.PrintBox(PrintName);
+ }
+ }
+ }
+}
diff --git a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
index edd95a9e..f695c01b 100644
--- a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
@@ -16,7 +16,7 @@
CloseButtonColor="{StaticResource WindowButtonColor}"
MinButtonVisibility="Collapsed"
MaxButtonVisibility="Collapsed"
- Width="450" Height="330"
+ Width="450" Height="380"
RightButtonGroupMargin="0,5,5,0">
@@ -45,12 +45,12 @@
Background="{StaticResource Border.Background}">
-
+
-
-
-
-
+
+
+
+
@@ -59,37 +59,41 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
-
+
+
diff --git a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
index cc441b07..a7488555 100644
--- a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
@@ -14,6 +14,10 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using WebSocketSharp;
+using BBWY.Client.Helpers;
+using System.Printing;
+using System.Reflection;
+using System.IO;
namespace BBWY.Client.Views.FallWare
{
@@ -22,51 +26,71 @@ namespace BBWY.Client.Views.FallWare
///
public partial class SetCloudWareBoxWindow : BWindow
{
- public SetCloudWareBoxWindow(JDWareBoxModel model, SealBoxService sealBoxService, WareType wareType, Action reflashWindow, bool isEnabled = true)
+ public SetCloudWareBoxWindow(JDWareBoxModel model, WareType wareType)
{
- if (SealBoxService == null) this.SealBoxService = sealBoxService;
- WareType = wareType;
- ReflashWindow = reflashWindow;
+ WareType = wareType;
JDWareBoxModel = model;
InitializeComponent();
- this.DataContext =this ;
- if (!isEnabled)
- {
- //this.jd_box.IsEnabled = isEnabled;
- //this.btn_save.Visibility = Visibility.Collapsed;
- }
+ PurchaseOrderImage = MyPrintHelper.GetBarcodeImageV2(model.PurchaseOrder, 420, 50);
+ this.DataContext = this;
+
}
public JDWareBoxModel JDWareBoxModel { get; set; }
-
- private SealBoxService SealBoxService { get; set; }
-
- private Action ReflashWindow { get; set; }
-
+ ///
+ /// 采购单号条形码
+ ///
+ public BitmapImage PurchaseOrderImage { get; set; }
public WareType WareType { get; set; }
- private void BButton_Click(object sender, RoutedEventArgs e)
+ public int PrintCount { get; set; } = 1;
+
+ public void PrintBox(string printName)
{
- if (JDWareBoxModel.PurchaseOrder.IsNullOrEmpty())
+ var localPrintServer = new LocalPrintServer();
+ if (string.IsNullOrEmpty(printName))
{
- MessageBox.Show("采购单号不能为空");
return;
}
- if (JDWareBoxModel.PrewOrder.IsNullOrEmpty() && WareType == WareType.京仓)
+ var printQueue = localPrintServer.GetPrintQueue(printName);
+ if (printQueue.IsInError)
{
- MessageBox.Show("预约单号不能为空");
+ System.Windows.MessageBox.Show("打印机处于错误状态");
return;
}
- var res = SealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle, JDWareBoxModel.PurchaseOrder, JDWareBoxModel.PrewOrder, JDWareBoxModel.WaybillNo);
+ MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
+ PrintDialog printDialog = new PrintDialog();
- if (res != null && res.Success)
+ printDialog.PrintTicket.PageOrientation = PageOrientation.Landscape;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
+
+ for (int i = 1; i <= JDWareBoxModel.BoxCount; i++)
{
- if (ReflashWindow != null) ReflashWindow();
- this.Close();
+ PrintCount = i;
+ //设置纸张大小
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
- return;
+
+ this.Height = pageHeight + 39;
+ this.Width = pageWidth;
+ this.FontSize = 30;
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
+ //794 429 Width="478" Height="440"
+ //this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
+
+ printDialog.PrintVisual(this.jd_box, "打印任务");
+
+
+ }
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
}
- if (res != null) MessageBox.Show(res.Msg);
+ System.IO.File.WriteAllText(printNames, printName);
+ this.Close();
}
}
}
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
index eb41b156..acfb7497 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
@@ -10,13 +10,13 @@
xmlns:ctr="clr-namespace:BBWY.Client.Converters"
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
-
+ xmlns:hc="https://handyorg.github.io/handycontrol"
WindowStartupLocation="CenterScreen"
CloseButtonVisibility="Visible"
CloseButtonColor="{StaticResource WindowButtonColor}"
MinButtonVisibility="Collapsed"
MaxButtonVisibility="Collapsed"
- Width="450" Height="500"
+ Width="480" Height="480"
RightButtonGroupMargin="0,5,5,0">
@@ -29,13 +29,13 @@
-
+
-
-
+
+
@@ -45,69 +45,77 @@
Background="{StaticResource Border.Background}">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
index 1102aee2..000f38a1 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
@@ -1,10 +1,18 @@
using BBWY.Client.APIServices;
+using BBWY.Client.Helpers;
using BBWY.Client.Models;
using BBWY.Client.Models.FallWare;
using BBWY.Controls;
+using HandyControl.Controls;
using System;
using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Drawing.Printing;
+using System.IO;
+using System.Printing;
+using System.Reflection;
using System.Text;
+using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
@@ -22,54 +30,82 @@ namespace BBWY.Client.Views.FallWare
///
public partial class SetJDWareBoxWindow : BWindow
{
- public SetJDWareBoxWindow(JDWareBoxModel model, SealBoxService sealBoxService,WareType wareType, Action reflashWindow,bool isEnabled = true)
+ public SetJDWareBoxWindow(JDWareBoxModel model)
{
- if (SealBoxService == null) this.SealBoxService = sealBoxService;
- WareType = wareType;
- ReflashWindow = reflashWindow;
-
JDWareBoxModel = model;
InitializeComponent();
- this.DataContext = JDWareBoxModel;
- if (!isEnabled)
- {
- //this.jd_box.IsEnabled = isEnabled;
- //this.btn_save.Visibility = Visibility.Collapsed;
- }
-
-
-
+ PurchaseOrderImage= MyPrintHelper.GetBarcodeImageV2(model.PurchaseOrder, 420, 50);
+ PrewOrderImage = MyPrintHelper.GetBarcodeImageV2(model.PrewOrder, 350, 50);
+ this.DataContext =this;
}
public JDWareBoxModel JDWareBoxModel { get; set; }
- private SealBoxService SealBoxService { get; set; }
- private Action ReflashWindow { get; set; }
+ ///
+ /// 采购单号条形码
+ ///
+ public BitmapImage PurchaseOrderImage { get; set; }
+
+
+ ///
+ /// 预约单号条形码
+ ///
+ public BitmapImage PrewOrderImage { get; set; }
+
+
+ public int PrintCount { get; set; } = 1;
+
+
+
- private WareType WareType { get; set; }
- private void BButton_Click(object sender, RoutedEventArgs e)
+
+ public void PrintBox(string printName)
{
- if (JDWareBoxModel.PurchaseOrder.IsNullOrEmpty())
+ var localPrintServer = new LocalPrintServer();
+ if (string.IsNullOrEmpty(printName))
{
- MessageBox.Show("采购单号不能为空");
return;
}
- if (JDWareBoxModel.PrewOrder.IsNullOrEmpty()&& WareType== WareType.京仓)
+ var printQueue = localPrintServer.GetPrintQueue(printName);
+ if (printQueue.IsInError)
{
- MessageBox.Show("预约单号不能为空");
+ System.Windows.MessageBox.Show("打印机处于错误状态");
return;
}
- var res = SealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle,JDWareBoxModel.PurchaseOrder,JDWareBoxModel.PrewOrder,JDWareBoxModel.WaybillNo);
+ MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
+ PrintDialog printDialog = new PrintDialog();
+
+ printDialog.PrintTicket.PageOrientation = PageOrientation.Landscape;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
- if (res!=null&&res.Success)
+ for (int i = 1; i <= JDWareBoxModel.BoxCount; i++)
{
- if (ReflashWindow != null) ReflashWindow();
- this.Close();
+ PrintCount = i;
+ //设置纸张大小
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
- return;
+
+ this.Height = pageHeight + 39;
+ this.Width = pageWidth;
+ this.FontSize = 30;
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
+ //794 429 Width="478" Height="440"
+ //this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
+
+ printDialog.PrintVisual(this.jd_box, "打印任务");
+
+
+ }
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
}
- if (res != null) MessageBox.Show(res.Msg);
+ System.IO.File.WriteAllText(printNames, printName);
+ this.Close();
}
}
}
diff --git a/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml b/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
index bf3d47d6..fda3766c 100644
--- a/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
+++ b/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
@@ -255,10 +255,9 @@
Command="{Binding DataContext.LookBoxConfigureCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"
/>
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
+
-
-
+
-
-
+
\ No newline at end of file
diff --git a/BBWY.Client/Views/FallWare/WareFallWareListControl.xaml.cs b/BBWY.Client/Views/FallWare/WareFallWareListControl.xaml.cs
index 365095e9..07b08064 100644
--- a/BBWY.Client/Views/FallWare/WareFallWareListControl.xaml.cs
+++ b/BBWY.Client/Views/FallWare/WareFallWareListControl.xaml.cs
@@ -1,5 +1,10 @@
-using System;
+using BBWY.Client.Helpers;
+using BBWY.Client.ViewModels;
+using BBWY.Common.Models;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -10,6 +15,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using WebSocketSharp;
namespace BBWY.Client.Views.FallWare
{
@@ -21,6 +27,103 @@ namespace BBWY.Client.Views.FallWare
public WareFallWareListControl()
{
InitializeComponent();
+ this.Loaded += Load;
+ }
+ GlobalContext globalContext;
+
+ public void LoadShops(GlobalContext globalContext)
+ {
+ this.globalContext = globalContext;
+ shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
+
+ }
+
+ private void Load(object sender, RoutedEventArgs e)
+ {
+
+ try
+ {
+ var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
+
+ LoadShops(model.GlobalContext);
+ }
+ catch
+ {
+
+
+ }
+ }
+ public string QKApiHost { get; set; }
+
+
+ List shops = new List();
+
+
+ private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
+ {
+ tipBoxShop.Items.Clear();
+
+ }
+
+ if (shops.Count <= 0)
+ {
+ if (globalContext != null)
+ LoadShops(globalContext);
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in shops)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBoxShop.Items.Add(item);
+ }
+
+ }
+ if (tipBoxShop != null)
+ tipBoxShop.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
+
+ private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tbShop.Text = content.Content.ToString();
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
}
}
}
diff --git a/BBWY.Client/Views/PackTask/TaskList.xaml b/BBWY.Client/Views/PackTask/TaskList.xaml
index 5b2158c1..a990f555 100644
--- a/BBWY.Client/Views/PackTask/TaskList.xaml
+++ b/BBWY.Client/Views/PackTask/TaskList.xaml
@@ -66,45 +66,17 @@
-
+
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
diff --git a/BBWY.Client/Views/PackTask/TaskListControl.xaml b/BBWY.Client/Views/PackTask/TaskListControl.xaml
index 00392f59..d17aa491 100644
--- a/BBWY.Client/Views/PackTask/TaskListControl.xaml
+++ b/BBWY.Client/Views/PackTask/TaskListControl.xaml
@@ -115,11 +115,6 @@
-
diff --git a/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml b/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml
index e4ba54ee..b9027e45 100644
--- a/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml
+++ b/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml
@@ -25,38 +25,89 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- -->
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
-
-
+
-
-
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
+
+
-
-
+
-
-
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
+
-
-
-
-
-
+
+
+
+
-
+
-
-
+
+
-
-
-
+
+
+
-
-
-
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
diff --git a/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml.cs b/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml.cs
index da24e913..6b5a206e 100644
--- a/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml.cs
+++ b/BBWY.Client/Views/PackTask/WaitCompletedControl.xaml.cs
@@ -1,5 +1,7 @@
-using System;
+using BBWY.Client.ViewModels;
+using System;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -21,6 +23,103 @@ namespace BBWY.Client.Views.PackTask
public WaitCompletedControl()
{
InitializeComponent();
+ this.Loaded += Load;
+ }
+ GlobalContext globalContext;
+
+ public void LoadShops(GlobalContext globalContext)
+ {
+ this.globalContext = globalContext;
+ shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
+
+ }
+
+ private void Load(object sender, RoutedEventArgs e)
+ {
+
+ try
+ {
+ var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
+
+ LoadShops(model.GlobalContext);
+ }
+ catch
+ {
+
+
+ }
+ }
+ public string QKApiHost { get; set; }
+
+
+ List shops = new List();
+
+
+ private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
+ {
+ tipBoxShop.Items.Clear();
+
+ }
+
+ if (shops.Count <= 0)
+ {
+ if (globalContext != null)
+ LoadShops(globalContext);
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in shops)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBoxShop.Items.Add(item);
+ }
+
+ }
+ if (tipBoxShop != null)
+ tipBoxShop.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
+
+ private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tbShop.Text = content.Content.ToString();
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
}
}
}
diff --git a/BBWY.Client/Views/PackTask/WaitPackageControl.xaml b/BBWY.Client/Views/PackTask/WaitPackageControl.xaml
index 21583003..763d50ed 100644
--- a/BBWY.Client/Views/PackTask/WaitPackageControl.xaml
+++ b/BBWY.Client/Views/PackTask/WaitPackageControl.xaml
@@ -27,213 +27,269 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
-
-
+
-
-
-
+
+
+
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
+
-
-
-
-
+
+
+
+
-
-
-
+
-
-
-
-
+
+
+
-
-
-
-
-
+
-
-
+
+
-
-
-
-
-
-
-
-
+
-
+
-
-
-
+
-
-
-
-
+
+
-
-
-
+
+
+
-
+
-
+
-
-
-
+
-
-
-
-
-
+
+
+
-
-
+
+
+
-
-
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
diff --git a/BBWY.Client/Views/PackTask/WaitPackageControl.xaml.cs b/BBWY.Client/Views/PackTask/WaitPackageControl.xaml.cs
index 48a5a2de..90ce0a37 100644
--- a/BBWY.Client/Views/PackTask/WaitPackageControl.xaml.cs
+++ b/BBWY.Client/Views/PackTask/WaitPackageControl.xaml.cs
@@ -1,5 +1,11 @@
-using System;
+using BBWY.Client.Helpers;
+using BBWY.Client.Models.PackTask;
+using BBWY.Client.ViewModels;
+using BBWY.Common.Models;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -10,6 +16,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using WebSocketSharp;
namespace BBWY.Client.Views.PackTask
{
@@ -21,6 +28,192 @@ namespace BBWY.Client.Views.PackTask
public WaitPackageControl()
{
InitializeComponent();
+ this.Loaded += Load;
+ }
+ GlobalContext globalContext;
+
+ public void LoadShops(GlobalContext globalContext)
+ {
+ this.globalContext = globalContext;
+ shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
+ departments = globalContext.User.DepartmentList.Select(s => s.Name).ToList();
+
+ }
+
+ private void Load(object sender, RoutedEventArgs e)
+ {
+
+ try
+ {
+ var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
+
+ LoadShops(model.GlobalContext);
+ }
+ catch
+ {
+
+
+ }
+ }
+ public string QKApiHost { get; set; }
+ public void SelectionChangeCommand(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tb.Text = content.Content.ToString();
+ tipBox.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+ List departments = new List();
+
+ List shops = new List();
+ private void tb_TextChanged(object sender, TextChangedEventArgs e)
+ {
+
+ if (tipBox != null)
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBox != null && tipBox.Items.Count > 0)
+ {
+ tipBox.Items.Clear();
+
+ }
+
+ if (departments.Count <= 0)
+ {
+ if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com";
+ HttpClientHelper helper = new HttpClientHelper(QKApiHost);
+
+ string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
+ var data = helper.Get(url);
+
+ var res = JsonConvert.DeserializeObject>(data);
+ //创建一个ListBoxIem
+ if (res.Success)
+ {
+ if (res.Data != null && res.Data.Count() > 0)
+ {
+ foreach (var department in res.Data)
+ {
+ if (!departments.Contains(department.DePartmentName))
+ {
+ departments.Add(department.DePartmentName);
+ }
+
+ }
+ }
+ }
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBox.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in departments)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBox.Items.Add(item);
+ }
+
+ }
+
+ tipBox.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+
+ private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
+ {
+ tipBoxShop.Items.Clear();
+
+ }
+
+ if (shops.Count <= 0)
+ {
+ if (globalContext != null)
+ LoadShops(globalContext);
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in shops)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBoxShop.Items.Add(item);
+ }
+
+ }
+ if (tipBoxShop != null)
+ tipBoxShop.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
+
+ private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tbShop.Text = content.Content.ToString();
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
}
}
}
diff --git a/BBWY.Client/Views/PackTask/WareHouseList.xaml b/BBWY.Client/Views/PackTask/WareHouseList.xaml
index 89eaa3eb..d8b70073 100644
--- a/BBWY.Client/Views/PackTask/WareHouseList.xaml
+++ b/BBWY.Client/Views/PackTask/WareHouseList.xaml
@@ -68,80 +68,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -200,10 +138,10 @@
-
-
-
+
+
+
@@ -217,7 +155,7 @@
diff --git a/BBWY.Client/Views/PackTask/WareHouseList.xaml.cs b/BBWY.Client/Views/PackTask/WareHouseList.xaml.cs
index 748c52fb..bb6c86ea 100644
--- a/BBWY.Client/Views/PackTask/WareHouseList.xaml.cs
+++ b/BBWY.Client/Views/PackTask/WareHouseList.xaml.cs
@@ -34,238 +34,7 @@ namespace BBWY.Client.Views.PackTask
public WareHouseList()
{
InitializeComponent();
- this.Loaded += Load;
}
- //private void WareHouseList_Unloaded(object sender, RoutedEventArgs e)
- //{
- // Messenger.Default.Unregister("AcceptGlobalContext");
- //}
-
- GlobalContext globalContext;
-
- public void LoadShops(GlobalContext globalContext)
- {
- this.globalContext = globalContext;
- shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
- departments=globalContext.User.DepartmentList.Select(s=>s.Name).ToList();
-
- }
-
- private void Load(object sender, RoutedEventArgs e)
- {
-
- try
- {
- var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
-
- LoadShops(model.GlobalContext);
- }
- catch
- {
-
-
- }
-
- //try
- //{
- // var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- // var builder = new ConfigurationBuilder().SetBasePath(applicationPath).AddJsonFile("BBWYAppSettings.json", false, true);
- // var Configuration = builder.Build();
-
- // QKApiHost = Configuration.GetSection("QKApiHost").Value;
-
- // if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com";
-
-
- // HttpClientHelper helper = new HttpClientHelper(QKApiHost);
-
- // string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
- // var data = helper.Get(url);
-
- // var res = JsonConvert.DeserializeObject>(data);
- // //创建一个ListBoxIem
- // if (res.Success)
- // {
- // if (res.Data != null && res.Data.Count() > 0)
- // {
- // foreach (var department in res.Data)
- // {
- // if (!departments.Contains(department.DePartmentName))
- // {
- // departments.Add(department.DePartmentName);
- // }
- // }
- // }
- // }
- //}
- //catch (Exception)
- //{
-
-
- //}
-
-
- }
- public string QKApiHost { get; set; }
- public void SelectionChangeCommand(object sender, SelectionChangedEventArgs e)
- {
- try
- {
- var list = (ListBox)sender;
- if (list.Items.Count <= 0)
- {
- return;
- }
- var value = (ListBoxItem)list.SelectedValue;
- var content = (Label)value.Content;
- tb.Text = content.Content.ToString();
- tipBox.Visibility = Visibility.Collapsed;
- }
- catch (Exception)
- {
-
-
- }
-
- }
- List departments = new List();
-
- List shops = new List();
- private void tb_TextChanged(object sender, TextChangedEventArgs e)
- {
-
- if (tipBox != null)
- try
- {
- var textBoxt = (TextBox)sender;
- //创建一个ListBox
-
- if (tipBox != null && tipBox.Items.Count > 0)
- {
- tipBox.Items.Clear();
-
- }
-
- if (departments.Count <= 0)
- {
- if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com";
- HttpClientHelper helper = new HttpClientHelper(QKApiHost);
-
- string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
- var data = helper.Get(url);
-
- var res = JsonConvert.DeserializeObject>(data);
- //创建一个ListBoxIem
- if (res.Success)
- {
- if (res.Data != null && res.Data.Count() > 0)
- {
- foreach (var department in res.Data)
- {
- if (!departments.Contains(department.DePartmentName))
- {
- departments.Add(department.DePartmentName);
- }
-
- }
- }
- }
- }
-
- if (string.IsNullOrEmpty(textBoxt.Text))
- {
- tipBox.Visibility = Visibility.Collapsed;
- return;
- }
- foreach (var department in departments)
- {
- if (department.Contains(textBoxt.Text))
- {
- ListBoxItem item = new ListBoxItem();
- Label lb = new Label();
- lb.Content = department;
- item.Content = lb;
- tipBox.Items.Add(item);
- }
-
- }
-
- tipBox.Visibility = Visibility.Visible;
- }
- catch (Exception)
- {
-
-
- }
-
- }
-
- private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
- {
- try
- {
- var textBoxt = (TextBox)sender;
- //创建一个ListBox
-
- if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
- {
- tipBoxShop.Items.Clear();
-
- }
-
- if (shops.Count <= 0)
- {
- if (globalContext != null)
- LoadShops(globalContext);
- }
-
- if (string.IsNullOrEmpty(textBoxt.Text))
- {
- tipBoxShop.Visibility = Visibility.Collapsed;
- return;
- }
- foreach (var department in shops)
- {
- if (department.Contains(textBoxt.Text))
- {
- ListBoxItem item = new ListBoxItem();
- Label lb = new Label();
- lb.Content = department;
- item.Content = lb;
- tipBoxShop.Items.Add(item);
- }
-
- }
- if (tipBoxShop != null)
- tipBoxShop.Visibility = Visibility.Visible;
- }
- catch (Exception)
- {
-
-
- }
- }
-
- private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
- {
- try
- {
- var list = (ListBox)sender;
- if (list.Items.Count <= 0)
- {
- return;
- }
- var value = (ListBoxItem)list.SelectedValue;
- var content = (Label)value.Content;
- tbShop.Text = content.Content.ToString();
- tipBoxShop.Visibility = Visibility.Collapsed;
- }
- catch (Exception)
- {
-
-
- }
- }
}
}
diff --git a/BBWY.Client/Views/PackTask/WareHouseListControl.xaml b/BBWY.Client/Views/PackTask/WareHouseListControl.xaml
index a43deca3..85f6b0ea 100644
--- a/BBWY.Client/Views/PackTask/WareHouseListControl.xaml
+++ b/BBWY.Client/Views/PackTask/WareHouseListControl.xaml
@@ -24,195 +24,252 @@
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
-
-
+
-
-
-
+
+
+
+
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
+
+
+
-
+
-
-
-
+
-
+ >
+
-
-
-
+
+
-
-
-
+
+
+
-
+
-
+
+
-
-
-
-
+
+
-
-
-
-
-
+
+
+
+
-
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
diff --git a/BBWY.Client/Views/PackTask/WareHouseListControl.xaml.cs b/BBWY.Client/Views/PackTask/WareHouseListControl.xaml.cs
index c8055f2d..77ffcd33 100644
--- a/BBWY.Client/Views/PackTask/WareHouseListControl.xaml.cs
+++ b/BBWY.Client/Views/PackTask/WareHouseListControl.xaml.cs
@@ -1,6 +1,12 @@
-using BBWY.Client.ViewModels.PackTask;
+using BBWY.Client.Helpers;
+using BBWY.Client.Models.PackTask;
+using BBWY.Client.ViewModels;
+using BBWY.Client.ViewModels.PackTask;
+using BBWY.Common.Models;
+using Newtonsoft.Json;
using System;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -11,6 +17,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using WebSocketSharp;
namespace BBWY.Client.Views.PackTask
{
@@ -23,8 +30,192 @@ namespace BBWY.Client.Views.PackTask
public WareHouseListControl()
{
InitializeComponent();
+ this.Loaded += Load;
}
+ GlobalContext globalContext;
+ public void LoadShops(GlobalContext globalContext)
+ {
+ this.globalContext = globalContext;
+ shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
+ departments = globalContext.User.DepartmentList.Select(s => s.Name).ToList();
+
+ }
+
+ private void Load(object sender, RoutedEventArgs e)
+ {
+
+ try
+ {
+ var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
+
+ LoadShops(model.GlobalContext);
+ }
+ catch
+ {
+
+
+ }
+ }
+ public string QKApiHost { get; set; }
+ public void SelectionChangeCommand(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tb.Text = content.Content.ToString();
+ tipBox.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+ List departments = new List();
+
+ List shops = new List();
+ private void tb_TextChanged(object sender, TextChangedEventArgs e)
+ {
+
+ if (tipBox != null)
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBox != null && tipBox.Items.Count > 0)
+ {
+ tipBox.Items.Clear();
+
+ }
+
+ if (departments.Count <= 0)
+ {
+ if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com";
+ HttpClientHelper helper = new HttpClientHelper(QKApiHost);
+
+ string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
+ var data = helper.Get(url);
+
+ var res = JsonConvert.DeserializeObject>(data);
+ //创建一个ListBoxIem
+ if (res.Success)
+ {
+ if (res.Data != null && res.Data.Count() > 0)
+ {
+ foreach (var department in res.Data)
+ {
+ if (!departments.Contains(department.DePartmentName))
+ {
+ departments.Add(department.DePartmentName);
+ }
+ }
+ }
+ }
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBox.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in departments)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBox.Items.Add(item);
+ }
+
+ }
+
+ tipBox.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+
+ private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
+ {
+ tipBoxShop.Items.Clear();
+
+ }
+
+ if (shops.Count <= 0)
+ {
+ if (globalContext != null)
+ LoadShops(globalContext);
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in shops)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBoxShop.Items.Add(item);
+ }
+
+ }
+ if (tipBoxShop != null)
+ tipBoxShop.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
+
+ private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tbShop.Text = content.Content.ToString();
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
}
}
diff --git a/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml b/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml
index 17b04a4a..9f4a1814 100644
--- a/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml
+++ b/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml
@@ -24,206 +24,263 @@
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
+
-
-
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
-
-
+
+
-
-
+
-
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
-
-
-
-
-
+
+
+
-
-
+
+
+
-
-
-
-
-
+
-
-
-
-
+
+
+
+
-
-
-
+
-
-
-
-
+
+
+
-
-
-
-
-
+
-
-
+
+
-
-
-
-
-
-
+
+
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml.cs b/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml.cs
index 4d8c52de..bbcfbdd0 100644
--- a/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml.cs
+++ b/BBWY.Client/Views/QualityTask/WaitQualityControl.xaml.cs
@@ -1,5 +1,11 @@
-using System;
+using BBWY.Client.Helpers;
+using BBWY.Client.Models.PackTask;
+using BBWY.Client.ViewModels;
+using BBWY.Common.Models;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
+using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
@@ -10,6 +16,7 @@ using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
+using WebSocketSharp;
namespace BBWY.Client.Views.QualityTask
{
@@ -21,6 +28,192 @@ namespace BBWY.Client.Views.QualityTask
public WaitQualityControl()
{
InitializeComponent();
+ this.Loaded += Load;
+ }
+ GlobalContext globalContext;
+
+ public void LoadShops(GlobalContext globalContext)
+ {
+ this.globalContext = globalContext;
+ shops = globalContext.User.ShopList.Select(s => s.ShopName).ToList();
+ departments = globalContext.User.DepartmentList.Select(s => s.Name).ToList();
+
+ }
+
+ private void Load(object sender, RoutedEventArgs e)
+ {
+
+ try
+ {
+ var model = (App.Current.Resources["Locator"] as ViewModelLocator).Main;
+
+ LoadShops(model.GlobalContext);
+ }
+ catch
+ {
+
+
+ }
+ }
+ public string QKApiHost { get; set; }
+ public void SelectionChangeCommand(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tb.Text = content.Content.ToString();
+ tipBox.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+ List departments = new List();
+
+ List shops = new List();
+ private void tb_TextChanged(object sender, TextChangedEventArgs e)
+ {
+
+ if (tipBox != null)
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBox != null && tipBox.Items.Count > 0)
+ {
+ tipBox.Items.Clear();
+
+ }
+
+ if (departments.Count <= 0)
+ {
+ if (QKApiHost.IsNullOrEmpty()) QKApiHost = "http://qiku.qiyue666.com";
+ HttpClientHelper helper = new HttpClientHelper(QKApiHost);
+
+ string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
+ var data = helper.Get(url);
+
+ var res = JsonConvert.DeserializeObject>(data);
+ //创建一个ListBoxIem
+ if (res.Success)
+ {
+ if (res.Data != null && res.Data.Count() > 0)
+ {
+ foreach (var department in res.Data)
+ {
+ if (!departments.Contains(department.DePartmentName))
+ {
+ departments.Add(department.DePartmentName);
+ }
+
+ }
+ }
+ }
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBox.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in departments)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBox.Items.Add(item);
+ }
+
+ }
+
+ tipBox.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+
+ private void tbShop_TextChanged(object sender, TextChangedEventArgs e)
+ {
+ try
+ {
+ var textBoxt = (TextBox)sender;
+ //创建一个ListBox
+
+ if (tipBoxShop != null && tipBoxShop.Items.Count > 0)
+ {
+ tipBoxShop.Items.Clear();
+
+ }
+
+ if (shops.Count <= 0)
+ {
+ if (globalContext != null)
+ LoadShops(globalContext);
+ }
+
+ if (string.IsNullOrEmpty(textBoxt.Text))
+ {
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ return;
+ }
+ foreach (var department in shops)
+ {
+ if (department.Contains(textBoxt.Text))
+ {
+ ListBoxItem item = new ListBoxItem();
+ Label lb = new Label();
+ lb.Content = department;
+ item.Content = lb;
+ tipBoxShop.Items.Add(item);
+ }
+
+ }
+ if (tipBoxShop != null)
+ tipBoxShop.Visibility = Visibility.Visible;
+ }
+ catch (Exception)
+ {
+
+
+ }
+ }
+
+ private void tipBoxShop_SelectionChanged(object sender, SelectionChangedEventArgs e)
+ {
+ try
+ {
+ var list = (ListBox)sender;
+ if (list.Items.Count <= 0)
+ {
+ return;
+ }
+ var value = (ListBoxItem)list.SelectedValue;
+ var content = (Label)value.Content;
+ tbShop.Text = content.Content.ToString();
+ tipBoxShop.Visibility = Visibility.Collapsed;
+ }
+ catch (Exception)
+ {
+
+
+ }
}
}
}
diff --git a/BBWY.Client/Views/TaskOverTime/WareTaskOverTimeControl.xaml b/BBWY.Client/Views/TaskOverTime/WareTaskOverTimeControl.xaml
index 7a64bd4d..cceb7fe7 100644
--- a/BBWY.Client/Views/TaskOverTime/WareTaskOverTimeControl.xaml
+++ b/BBWY.Client/Views/TaskOverTime/WareTaskOverTimeControl.xaml
@@ -32,20 +32,29 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
From 501d80ec4901e415674f722baed89e3bd45364bc Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Tue, 4 Jul 2023 22:20:51 +0800
Subject: [PATCH 2/8] 1
---
BBWY.Client/Helpers/MyPrintHelper.cs | 2 +-
.../Views/FallWare/SetCloudWareBoxWindow.xaml | 113 +++++++++---------
.../FallWare/SetCloudWareBoxWindow.xaml.cs | 5 -
.../Views/FallWare/SetJDWareBoxWindow.xaml | 6 +-
.../Views/FallWare/SetJDWareBoxWindow.xaml.cs | 2 +-
5 files changed, 62 insertions(+), 66 deletions(-)
diff --git a/BBWY.Client/Helpers/MyPrintHelper.cs b/BBWY.Client/Helpers/MyPrintHelper.cs
index bac14d65..59a6e039 100644
--- a/BBWY.Client/Helpers/MyPrintHelper.cs
+++ b/BBWY.Client/Helpers/MyPrintHelper.cs
@@ -61,7 +61,7 @@ namespace BBWY.Client.Helpers
string barcodeSku = $"POP{barCode.SkuId}";
Barcode barcode = new Barcode();
System.Drawing.Image img = barcode.Encode(TYPE.CODE128, barcodeSku, 500, 40);
- SizeF size = args.Graphics.MeasureString(barCode.BrandName, font);
+ SizeF size = args.Graphics.MeasureString("品牌", font);
var sizeHeight = size.Height;//字体高度
topHeigth += 10;
diff --git a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
index f695c01b..7e472bd0 100644
--- a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml
@@ -45,62 +45,63 @@
Background="{StaticResource Border.Background}">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
index a7488555..4db8ee84 100644
--- a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
@@ -76,12 +76,7 @@ namespace BBWY.Client.Views.FallWare
this.Width = pageWidth;
this.FontSize = 30;
this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
- //794 429 Width="478" Height="440"
- //this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
-
printDialog.PrintVisual(this.jd_box, "打印任务");
-
-
}
var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
index acfb7497..c7edce85 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
@@ -38,15 +38,15 @@
-
+
-
-
+
+
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
index 000f38a1..24e1c2b7 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
@@ -90,7 +90,7 @@ namespace BBWY.Client.Views.FallWare
this.Height = pageHeight + 39;
this.Width = pageWidth;
this.FontSize = 30;
- this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth-100, pageHeight-200)));
//794 429 Width="478" Height="440"
//this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
From 668c079aac39825356368ceea39dc318ffc8e6b5 Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Tue, 4 Jul 2023 22:20:55 +0800
Subject: [PATCH 3/8] 1
---
BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml | 3 ---
1 file changed, 3 deletions(-)
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
index c7edce85..e28f58f3 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
@@ -21,7 +21,6 @@
-
-
From 62189bd87605ef517081f285d643ee8116543577 Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Tue, 4 Jul 2023 22:29:15 +0800
Subject: [PATCH 4/8] 1
---
BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
index 24e1c2b7..048c89a0 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
@@ -87,10 +87,10 @@ namespace BBWY.Client.Views.FallWare
printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
- this.Height = pageHeight + 39;
- this.Width = pageWidth;
+ this.Height = pageHeight + 39;//833
+ this.Width = pageWidth;//1123
this.FontSize = 30;
- this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth-100, pageHeight-200)));
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
//794 429 Width="478" Height="440"
//this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
From 25716ebd7a1ed93a86cd0d584d000d1d76e2ca83 Mon Sep 17 00:00:00 2001
From: shanji <18996038927@163.com>
Date: Fri, 7 Jul 2023 14:59:46 +0800
Subject: [PATCH 5/8] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E9=AA=8C=E8=AF=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs
index f98ab8fe..7d4c09d4 100644
--- a/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs
+++ b/BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs
@@ -570,6 +570,13 @@ namespace BBWY.Server.Business
}
}
+ {
+ var groups = request.CargoParamGroupList.GroupBy(g => g.PurchaserId);
+ if (groups.Any(g => g.Count() > 1))
+ throw new BusinessException("CargoParamGroupList存在重复的商家");
+ }
+
+
var shop = freeSqlMultiDBManager.MDSfsql.Select().Where(s => s.ShopId == request.ShopId.ToString()).ToOne();
if (shop == null)
throw new BusinessException("无效的店铺Id");
From a2b370ae5df06f7f8a5cf31b9f73d91f73dec59c Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Fri, 7 Jul 2023 16:27:44 +0800
Subject: [PATCH 6/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=93=E5=8D=B0?=
=?UTF-8?q?=E7=AE=B1=E5=94=9B,=E6=89=93=E5=8D=B0=E5=B0=81=E7=AE=B1?=
=?UTF-8?q?=E7=AD=96=E7=95=A5,=E6=89=93=E5=8D=B0=E6=8F=BD=E6=94=B6?=
=?UTF-8?q?=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../APIServices/QiKu/PackTaskService.cs | 43 ++-
.../APIServices/QiKu/SealBoxService.cs | 21 +-
BBWY.Client/BBWY.Client.csproj | 21 +-
.../BatchUpdateSealBoxConfiguredRequest.cs | 5 +
.../PackTask/SearchTaskListResponse.cs | 14 +-
.../PackTask/SearchWaitFallWareResponse.cs | 5 +
.../GetJDSupplierNameAndStoreNameResponse.cs | 2 +
.../SealBox/GetWareLSAcceptOrderResponse.cs | 39 +++
.../SealBox/GetWareLSOrderPurchaseResponse.cs | 79 +++++
.../SealBox/GetWareSealBoxResponse.cs | 5 +
.../SealBox/GetWareWaitTransportResponse.cs | 5 +
.../FallWare/FallWareConfiguredModel.cs | 11 +-
BBWY.Client/Models/PackTask/PackTaskModel.cs | 13 +
BBWY.Client/Models/PackTask/SealBoxModel.cs | 8 +
.../Models/SealBox/SealBoxConfigureModel.cs | 5 +
BBWY.Client/Resources/Images/jdwl.png | Bin 0 -> 8192 bytes
.../ViewModels/PackTask/TaskListViewModel.cs | 20 +-
.../PackTask/WareHouseListViewModel.cs | 325 +++++++++++++-----
.../SealBox/SealBoxConfigureViewModel.cs | 1 +
.../FallWareWaitConfigureControl.xaml | 26 +-
.../Views/FallWare/PrintBoxWindow.xaml | 8 +-
.../Views/FallWare/PrintBoxWindow.xaml.cs | 85 ++++-
.../Views/FallWare/PrintLSOrderWindow.xaml | 68 ++++
.../Views/FallWare/PrintLSOrderWindow.xaml.cs | 149 ++++++++
.../Views/FallWare/SetCloudWareBoxWindow.xaml | 25 +-
.../FallWare/SetCloudWareBoxWindow.xaml.cs | 35 +-
.../Views/FallWare/SetJDWareBoxWindow.xaml | 4 +-
.../Views/FallWare/SetJDWareBoxWindow.xaml.cs | 35 +-
.../Views/FallWare/SetJDWareBoxWindow2.xaml | 22 +-
.../FallWare/SetJDWareBoxWindow2.xaml.cs | 48 ++-
.../Views/FallWare/WaitFallWareControl.xaml | 55 ++-
.../FallWare/WareLSAcceptOrderWindow.xaml | 317 +++++++++++++++++
.../FallWare/WareLSAcceptOrderWindow.xaml.cs | 92 +++++
.../Views/PackTask/FeesExcelControl.xaml | 2 +
BBWY.Client/Views/PackTask/ServiceWindow.xaml | 3 +
.../Views/PackTask/WaitPackageControl.xaml | 28 +-
.../Views/QualityTask/WaitQualityControl.xaml | 25 +-
.../SealBox/SealBoxPolicyDetailsWindow.xaml | 120 +++++++
.../SealBoxPolicyDetailsWindow.xaml.cs | 76 ++++
.../SealBox/SealBoxPrintDetailsWindow.xaml | 70 ++++
.../SealBox/SealBoxPrintDetailsWindow.xaml.cs | 141 ++++++++
.../Views/SealBox/SetSealBoxWindow.xaml | 11 +-
.../Views/SealBox/SetSealBoxWindow.xaml.cs | 135 +-------
.../Views/SealBox/WaitSealBoxControl.xaml | 69 ++--
.../SubmitOverTimeMarkMsgWindow.xaml | 57 +++
.../SubmitOverTimeMarkMsgWindow.xaml.cs | 74 ++++
.../WareWaitTransportControl.xaml | 25 +-
47 files changed, 2048 insertions(+), 379 deletions(-)
create mode 100644 BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSAcceptOrderResponse.cs
create mode 100644 BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSOrderPurchaseResponse.cs
create mode 100644 BBWY.Client/Resources/Images/jdwl.png
create mode 100644 BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml
create mode 100644 BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml.cs
create mode 100644 BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml
create mode 100644 BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml.cs
create mode 100644 BBWY.Client/Views/SealBox/SealBoxPolicyDetailsWindow.xaml
create mode 100644 BBWY.Client/Views/SealBox/SealBoxPolicyDetailsWindow.xaml.cs
create mode 100644 BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml
create mode 100644 BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
create mode 100644 BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml
create mode 100644 BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml.cs
diff --git a/BBWY.Client/APIServices/QiKu/PackTaskService.cs b/BBWY.Client/APIServices/QiKu/PackTaskService.cs
index 4a4fedb1..ab5511d9 100644
--- a/BBWY.Client/APIServices/QiKu/PackTaskService.cs
+++ b/BBWY.Client/APIServices/QiKu/PackTaskService.cs
@@ -25,10 +25,10 @@ namespace BBWY.Client.APIServices
{
}
-
+
public ApiResponse GetTaskList(string skuId = null, string taskId = null,
-
+
TaskState? TaskState = null,
int pageIndex = 1,
int pageSize = 10
@@ -56,7 +56,7 @@ namespace BBWY.Client.APIServices
ShopId = globalContext.User.Shop.ShopId.ToString()
}, null, HttpMethod.Post);
}
- public ApiResponse GetWareHouseList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null,
+ public ApiResponse GetWareHouseList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null,
TaskState? TaskState = null,
string ShopName = null,
@@ -161,7 +161,7 @@ namespace BBWY.Client.APIServices
, null, HttpMethod.Post);
}
-
+
public ApiResponse SaveBarCode(BarCodeRequest barCodeModel)
{
@@ -279,23 +279,39 @@ namespace BBWY.Client.APIServices
///
///
///
- public ApiResponse> GetPurchaseExpressOrderList(string orderId,string sourceSkuId)
+ public ApiResponse> GetPurchaseExpressOrderList(string orderId, string sourceSkuId)
{
- return SendRequest>("http://bbwyb.qiyue666.com", $"Api/Order/GetPurchaseExpressOrderList", new {
+ return SendRequest>("http://bbwyb.qiyue666.com", $"Api/Order/GetPurchaseExpressOrderList", new
+ {
orderId,
sourceSkuId
}, null, HttpMethod.Post);
}
+ ///
+ /// 批量手动发货
+ ///
+ ///
+ ///
+ ///
+ public ApiResponse> BatchManualSign(string[] wayBillNoList)
+ {
+ return SendRequest>("http://bbwyb.qiyue666.com", $"Api/PurchaseOrder/BatchManualSign", new
+ {
+ wayBillNoList
+ }, null, HttpMethod.Post);
+ }
+
///
/// 查询超时任务列表
///
///
///
- public ApiResponse SearchOverTimeTaskList(string ShopId, DateTime? StartTime, DateTime? EndTime,OverTimeTaskState overTimeTaskState, OverTimeTaskType? OverTimeTaskType, int? PageIndex, int? PageSize=20)
+ public ApiResponse SearchOverTimeTaskList(string ShopId, DateTime? StartTime, DateTime? EndTime, OverTimeTaskState overTimeTaskState, OverTimeTaskType? OverTimeTaskType, int? PageIndex, int? PageSize = 20)
{
- return SendRequest(globalContext.QKApiHost, $"api/PackTask/SearchOverTimeTaskList", new {
+ return SendRequest(globalContext.QKApiHost, $"api/PackTask/SearchOverTimeTaskList", new
+ {
ShopId,
StartTime,
EndTime,
@@ -306,6 +322,17 @@ namespace BBWY.Client.APIServices
}, null, HttpMethod.Post);
}
+ public ApiResponse SubmitOverTimeMarkMsg(OverTimeTaskType OverTimeTaskType, long Id, string MarkMsg)
+ {
+ return SendRequest(globalContext.QKApiHost, $"api/PackTask/SubmitOverTimeMarkMsg", new
+ {
+ OverTimeTaskType,
+ Id,
+ MarkMsg,
+ }, null, HttpMethod.Post);
+ }
+
+
}
public class CompeteSealBox
diff --git a/BBWY.Client/APIServices/QiKu/SealBoxService.cs b/BBWY.Client/APIServices/QiKu/SealBoxService.cs
index c66b54c0..2d93496c 100644
--- a/BBWY.Client/APIServices/QiKu/SealBoxService.cs
+++ b/BBWY.Client/APIServices/QiKu/SealBoxService.cs
@@ -171,7 +171,7 @@ namespace BBWY.Client.APIServices
- public ApiResponse SetFallWareConfigure(long SealBoxId, string ProductTitle, string PurchaseOrder, string PrewOrder, string WaybillNo, string providerName = "", string wareName = "",string WareCity="")
+ public ApiResponse SetFallWareConfigure(long SealBoxId, string ProductTitle, string PurchaseOrder, string PrewOrder, string WaybillNo, string providerName = "", string wareName = "",string WareCity="",DateTime? TransportOverTime=null)
{
return SendRequest(globalContext.QKApiHost, $"api/SealBox/SetFallWareConfigure",
new
@@ -183,7 +183,8 @@ namespace BBWY.Client.APIServices
WaybillNo,
providerName,
wareName,
- WareCity
+ WareCity,
+ TransportOverTime
}
, null, HttpMethod.Post);
}
@@ -287,5 +288,21 @@ namespace BBWY.Client.APIServices
return SendRequest(globalContext.QKApiHost, $"api/SealBox/WareCompetedWaitCompleted?sealBoxId={sealBoxId}",
null, null, HttpMethod.Post);
}
+
+ ///
+ /// 获取揽收单信息
+ ///
+ ///
+ public ApiResponse GetWareLSAcceptOrder()
+ {
+ return SendRequest(globalContext.QKApiHost, $"api/WareLSAcceptOrder/GetWareLSAcceptOrder",
+ null, null, HttpMethod.Get);
+ }
+
+ public ApiResponse GetWareLSOrderPurchaseList(string PrewOrder)
+ {
+ return SendRequest(globalContext.QKApiHost, $"api/WareLSAcceptOrder/GetWareLSOrderPurchaseList?PrewOrder={PrewOrder}",
+ null, null, HttpMethod.Get);
+ }
}
}
diff --git a/BBWY.Client/BBWY.Client.csproj b/BBWY.Client/BBWY.Client.csproj
index 36e0e5dc..e6f8759e 100644
--- a/BBWY.Client/BBWY.Client.csproj
+++ b/BBWY.Client/BBWY.Client.csproj
@@ -17,10 +17,18 @@
x64
+
+
+
+
+
+
+
+
@@ -62,6 +70,7 @@
Never
+
@@ -84,18 +93,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/BBWY.Client/Models/APIModel/Request/BatchUpdateSealBoxConfiguredRequest.cs b/BBWY.Client/Models/APIModel/Request/BatchUpdateSealBoxConfiguredRequest.cs
index 642e94b4..f96493f6 100644
--- a/BBWY.Client/Models/APIModel/Request/BatchUpdateSealBoxConfiguredRequest.cs
+++ b/BBWY.Client/Models/APIModel/Request/BatchUpdateSealBoxConfiguredRequest.cs
@@ -30,6 +30,11 @@ namespace BBWY.Client.Models.APIModel
public class SealBoxConfiguredWareHourseRequest : WareHourseData
{
+
+ ///
+ ///封箱id
+ ///
+ public long? SealBoxId { get; set; }
///
///待封箱 = 0, 待落仓 = 1, 待完结 = 2
///
diff --git a/BBWY.Client/Models/APIModel/Response/PackTask/SearchTaskListResponse.cs b/BBWY.Client/Models/APIModel/Response/PackTask/SearchTaskListResponse.cs
index b669a320..9484ab38 100644
--- a/BBWY.Client/Models/APIModel/Response/PackTask/SearchTaskListResponse.cs
+++ b/BBWY.Client/Models/APIModel/Response/PackTask/SearchTaskListResponse.cs
@@ -178,10 +178,16 @@ namespace BBWY.Client.Models.APIModel
public DateTime? PackCompletionOverTime { get; set; }
- /////
- ///// 物流信息
- /////
- //public List ExpressOrderList { get; set; }
+
+ ///
+ /// 质检超时备注信息
+ ///
+ public string QualityOverTimeMarkMsg { get; set; }
+
+ ///
+ /// 打包超时备注信息
+ ///
+ public string PackOverTimeMarkMsg { get; set; }
}
public class ExpressOrderResponse
{
diff --git a/BBWY.Client/Models/APIModel/Response/PackTask/SearchWaitFallWareResponse.cs b/BBWY.Client/Models/APIModel/Response/PackTask/SearchWaitFallWareResponse.cs
index 3e9f1bb6..19e76826 100644
--- a/BBWY.Client/Models/APIModel/Response/PackTask/SearchWaitFallWareResponse.cs
+++ b/BBWY.Client/Models/APIModel/Response/PackTask/SearchWaitFallWareResponse.cs
@@ -173,6 +173,11 @@ namespace BBWY.Client.Models.APIModel
///
public string ProviderName { get; set; }
+ ///
+ /// 仓库所在的城市
+ ///
+ public string WareCity { get; set; }
+
}
}
diff --git a/BBWY.Client/Models/APIModel/Response/SealBox/GetJDSupplierNameAndStoreNameResponse.cs b/BBWY.Client/Models/APIModel/Response/SealBox/GetJDSupplierNameAndStoreNameResponse.cs
index 53ec68e1..0958605d 100644
--- a/BBWY.Client/Models/APIModel/Response/SealBox/GetJDSupplierNameAndStoreNameResponse.cs
+++ b/BBWY.Client/Models/APIModel/Response/SealBox/GetJDSupplierNameAndStoreNameResponse.cs
@@ -7,5 +7,7 @@
public string StoreId { get; set; }
public string StoreName { get; set; }
+
+ public string City { get; set; }
}
}
diff --git a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSAcceptOrderResponse.cs b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSAcceptOrderResponse.cs
new file mode 100644
index 00000000..bff8ee99
--- /dev/null
+++ b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSAcceptOrderResponse.cs
@@ -0,0 +1,39 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace BBWY.Client.Models.APIModel
+{
+ public class GetWareLSAcceptOrderResponse
+ {
+ ///
+ /// 客户名称
+ ///
+ public string CustomerName { get; set; }
+ ///
+ /// 提货地址
+ ///
+ public string AcceptAdress { get; set; }
+ ///
+ /// 客户联系人
+ ///
+ public string CustomerUserName { get; set; }
+ ///
+ /// 客户电话
+ ///
+ public string CustomerPhoneNumber { get; set; }
+ ///
+ /// 揽收任务号
+ ///
+ public string LSTaskNumber { get; set; }
+ ///
+ /// 始发TC
+ ///
+ public string StartTC { get; set; }
+
+ ///
+ /// JD运输联系人
+ ///
+ public string JDTransportUserName { get; set; }
+ }
+}
diff --git a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSOrderPurchaseResponse.cs b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSOrderPurchaseResponse.cs
new file mode 100644
index 00000000..31af4963
--- /dev/null
+++ b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareLSOrderPurchaseResponse.cs
@@ -0,0 +1,79 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace BBWY.Client.Models.APIModel
+{
+ public class GetWareLSOrderPurchaseResponse
+ {
+ ///
+ /// 总封箱数
+ ///
+ public int TotalSealBoxCount { get; set; }
+
+ ///
+ /// TC收货总箱数
+ ///
+ public int TotalTCAcceptBoxCount { get; set; }
+
+ ///
+ /// 采购单列表
+ ///
+ public IList GetWareLSOrderPurchases { get; set; }
+ }
+
+ public class GetWareLSOrderPurchase
+ {
+ ///
+ /// 序号(1-10)
+ ///
+ public int Index { get; set; }
+
+ ///
+ /// 采购订单号
+ ///
+ public string PurchaseOrder { get; set; }
+
+ ///
+ /// 封箱数
+ ///
+ public int? SealBoxCount { get; set; }
+
+ ///
+ /// 目的城市
+ ///
+ public string WareCity { get; set; }
+
+ ///
+ /// TC收货箱数
+ ///
+ public int? TCAcceptBoxCount { get; set; }
+
+
+ ///
+ /// 供应商
+ ///
+ public string ProviderName { get; set; }
+
+ ///
+ /// 预约单号
+ ///
+ public string PrewOrder { get; set; }
+
+ ///
+ /// 目的城市-仓库
+ ///
+ public string WareName { get; set; }
+
+ ///
+ /// 商品数量
+ ///
+ public int ProductCount { get; set; }
+
+ ///
+ /// 商品名称
+ ///
+ public string ProductTitle { get; set; }
+
+ }
+}
diff --git a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareSealBoxResponse.cs b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareSealBoxResponse.cs
index 092cb437..a42d459d 100644
--- a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareSealBoxResponse.cs
+++ b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareSealBoxResponse.cs
@@ -57,6 +57,11 @@ namespace BBWY.Client.Models.APIModel
///
public List SealBoxSkus { get; set; }
+ ///
+ /// 封箱超时备注
+ ///
+ public string SealBoxPackOverTimeMarkMsg { get; set; }
+
}
public class WareSealBoxSku
diff --git a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareWaitTransportResponse.cs b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareWaitTransportResponse.cs
index b521b9e4..3577158a 100644
--- a/BBWY.Client/Models/APIModel/Response/SealBox/GetWareWaitTransportResponse.cs
+++ b/BBWY.Client/Models/APIModel/Response/SealBox/GetWareWaitTransportResponse.cs
@@ -15,6 +15,11 @@ namespace BBWY.Client.Models.APIModel
}
public class WareWaitTransport:NotifyObject
{
+
+ private string transportOverTimeMarkMsg;
+ public string TransportOverTimeMarkMsg { get => transportOverTimeMarkMsg; set { Set(ref transportOverTimeMarkMsg, value); } }
+
+
private string waitTransportRemainTime;
public string WaitTransportRemainTime { get => waitTransportRemainTime; set { Set(ref waitTransportRemainTime, value); } }
diff --git a/BBWY.Client/Models/FallWare/FallWareConfiguredModel.cs b/BBWY.Client/Models/FallWare/FallWareConfiguredModel.cs
index 27948b13..039788c2 100644
--- a/BBWY.Client/Models/FallWare/FallWareConfiguredModel.cs
+++ b/BBWY.Client/Models/FallWare/FallWareConfiguredModel.cs
@@ -56,15 +56,20 @@ namespace BBWY.Client.Models.FallWare
/// 仓库任务列表
///
public IList SealBoxConfigureTasks { get; set; }
+ private string setPurchaseOrderOverTimeMarkMsg;
+ public string SetPurchaseOrderOverTimeMarkMsg { get => setPurchaseOrderOverTimeMarkMsg; set { Set(ref setPurchaseOrderOverTimeMarkMsg, value); } }
-
-
-
+
private string fallWareRemainTime;
public string FallWareRemainTime { get => fallWareRemainTime; set { Set(ref fallWareRemainTime, value); } }
private bool isFallWareOverTime;
public bool IsFallWareOverTime { get => isFallWareOverTime; set { Set(ref isFallWareOverTime, value); } }
+
+ ///
+ /// 预约时间
+ ///
+ public DateTime? TransportOverTime { get; set; }
}
public class FallWareConfigureTask : SealBoxConfigureTask
{
diff --git a/BBWY.Client/Models/PackTask/PackTaskModel.cs b/BBWY.Client/Models/PackTask/PackTaskModel.cs
index 63bb718d..239593f7 100644
--- a/BBWY.Client/Models/PackTask/PackTaskModel.cs
+++ b/BBWY.Client/Models/PackTask/PackTaskModel.cs
@@ -420,6 +420,19 @@ namespace BBWY.Client.Models
public string ShopName { get => shopName; set { Set(ref shopName, value); } }
+ private string qualityOverTimeMarkMsg;
+ ///
+ /// 质检超时备注信息
+ ///
+ public string QualityOverTimeMarkMsg { get => qualityOverTimeMarkMsg; set { Set(ref qualityOverTimeMarkMsg, value); } }
+
+ private string packOverTimeMarkMsg;
+ ///
+ /// 打包超时备注信息
+ ///
+ public string PackOverTimeMarkMsg { get => packOverTimeMarkMsg; set { Set(ref packOverTimeMarkMsg, value); } }
+
+
}
public class SkuMessage : NotifyObject
diff --git a/BBWY.Client/Models/PackTask/SealBoxModel.cs b/BBWY.Client/Models/PackTask/SealBoxModel.cs
index 075d2c6e..27915440 100644
--- a/BBWY.Client/Models/PackTask/SealBoxModel.cs
+++ b/BBWY.Client/Models/PackTask/SealBoxModel.cs
@@ -60,5 +60,13 @@ namespace BBWY.Client.Models.PackTask
private bool isSealBoxOverTime;
public bool IsSealBoxOverTime { get => isSealBoxOverTime; set { Set(ref isSealBoxOverTime, value); } }
+
+
+ private string sealBoxPackOverTimeMarkMsg;
+
+ ///
+ /// 封箱超时备注
+ ///
+ public string SealBoxPackOverTimeMarkMsg { get => sealBoxPackOverTimeMarkMsg; set { Set(ref sealBoxPackOverTimeMarkMsg, value); } }
}
}
diff --git a/BBWY.Client/Models/SealBox/SealBoxConfigureModel.cs b/BBWY.Client/Models/SealBox/SealBoxConfigureModel.cs
index eb384976..bf1b757a 100644
--- a/BBWY.Client/Models/SealBox/SealBoxConfigureModel.cs
+++ b/BBWY.Client/Models/SealBox/SealBoxConfigureModel.cs
@@ -72,6 +72,11 @@ namespace BBWY.Client.Models.SealBox
///
public PositionState? WareState { get; set; }
+ ///
+ ///封箱id
+ ///
+ public long? SealBoxId { get; set; }
+
}
diff --git a/BBWY.Client/Resources/Images/jdwl.png b/BBWY.Client/Resources/Images/jdwl.png
new file mode 100644
index 0000000000000000000000000000000000000000..c1c96239f8eb0892f46ae00d74daf50e97dffe63
GIT binary patch
literal 8192
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
+
+ SubmitOverTimeMarkMsgCommand = new RelayCommand
-
+
@@ -92,7 +79,7 @@
-
+
diff --git a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
index 4db8ee84..db57a044 100644
--- a/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetCloudWareBoxWindow.xaml.cs
@@ -18,6 +18,7 @@ using BBWY.Client.Helpers;
using System.Printing;
using System.Reflection;
using System.IO;
+using System.Threading;
namespace BBWY.Client.Views.FallWare
{
@@ -34,6 +35,10 @@ namespace BBWY.Client.Views.FallWare
InitializeComponent();
PurchaseOrderImage = MyPrintHelper.GetBarcodeImageV2(model.PurchaseOrder, 420, 50);
this.DataContext = this;
+ this.Dispatcher.Invoke(() => {
+ tb_printcount.Text = "1";
+ });
+ this.UpdateLayout();
}
public JDWareBoxModel JDWareBoxModel { get; set; }
@@ -42,11 +47,9 @@ namespace BBWY.Client.Views.FallWare
///
public BitmapImage PurchaseOrderImage { get; set; }
public WareType WareType { get; set; }
- public int PrintCount { get; set; } = 1;
public void PrintBox(string printName)
{
-
var localPrintServer = new LocalPrintServer();
if (string.IsNullOrEmpty(printName))
{
@@ -60,22 +63,28 @@ namespace BBWY.Client.Views.FallWare
}
MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
PrintDialog printDialog = new PrintDialog();
-
printDialog.PrintTicket.PageOrientation = PageOrientation.Landscape;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
+
+ this.Height = pageHeight + 39;
+ this.Width = pageWidth;
+ this.FontSize = 30;
+ box_margin.Margin = new Thickness(50, 50, 50, 50);
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
for (int i = 1; i <= JDWareBoxModel.BoxCount; i++)
{
- PrintCount = i;
- //设置纸张大小
- var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
- var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
- printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
-
+ this.Dispatcher.Invoke(() => {
+ tb_printcount.Text =i.ToString();
+ });
+ this.Dispatcher.Invoke(() => {
+ this.UpdateLayout();
+ });
+
+
- this.Height = pageHeight + 39;
- this.Width = pageWidth;
- this.FontSize = 30;
- this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
printDialog.PrintVisual(this.jd_box, "打印任务");
}
var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
index e28f58f3..df819c59 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml
@@ -43,7 +43,7 @@
-
+
@@ -103,7 +103,7 @@
-
+
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
index 048c89a0..7104a0e7 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow.xaml.cs
@@ -37,6 +37,10 @@ namespace BBWY.Client.Views.FallWare
PurchaseOrderImage= MyPrintHelper.GetBarcodeImageV2(model.PurchaseOrder, 420, 50);
PrewOrderImage = MyPrintHelper.GetBarcodeImageV2(model.PrewOrder, 350, 50);
this.DataContext =this;
+ this.Dispatcher.Invoke(() => {
+ tb_printcount.Text = "1";
+ });
+ this.UpdateLayout();
}
public JDWareBoxModel JDWareBoxModel { get; set; }
@@ -53,7 +57,6 @@ namespace BBWY.Client.Views.FallWare
public BitmapImage PrewOrderImage { get; set; }
- public int PrintCount { get; set; } = 1;
@@ -77,26 +80,22 @@ namespace BBWY.Client.Views.FallWare
PrintDialog printDialog = new PrintDialog();
printDialog.PrintTicket.PageOrientation = PageOrientation.Landscape;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
-
+ //设置纸张大小
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
+ this.Height = pageHeight + 39;//833
+ this.Width = pageWidth;//1123
+ this.FontSize = 30;
+ box_margin.Margin = new Thickness(50, 50, 50, 50);
+ this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
for (int i = 1; i <= JDWareBoxModel.BoxCount; i++)
{
- PrintCount = i;
- //设置纸张大小
- var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
- var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
- printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
-
-
- this.Height = pageHeight + 39;//833
- this.Width = pageWidth;//1123
- this.FontSize = 30;
- this.jd_box.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
- //794 429 Width="478" Height="440"
- //this.jd_box.Arrange(new Rect(new Point((pageWidth - jd_box.DesiredSize.Width) / 2, (pageHeight - jd_box.DesiredSize.Height) / 2), new Size(jd_box.DesiredSize.Width, jd_box.DesiredSize.Height)));
-
+ this.Dispatcher.Invoke(() => {
+ tb_printcount.Text =i.ToString();
+ });
+ this.UpdateLayout(); //刷新界面
printDialog.PrintVisual(this.jd_box, "打印任务");
-
-
}
var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml
index ccf7177f..dc9755aa 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml
@@ -7,7 +7,8 @@
mc:Ignorable="d"
xmlns:cmodel="clr-namespace:BBWY.Client.Models"
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
- Title="SetJDWareBoxWindow2" Height="250" Width="300"
+ Title="SetJDWareBoxWindow2"
+ Height="280" Width="300"
MinButtonVisibility="Collapsed"
MaxButtonVisibility="Collapsed"
CloseButtonVisibility="Visible"
@@ -75,7 +76,7 @@
/>
-
+
@@ -105,8 +106,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml.cs b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml.cs
index 54587bf6..3eca7928 100644
--- a/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml.cs
+++ b/BBWY.Client/Views/FallWare/SetJDWareBoxWindow2.xaml.cs
@@ -23,12 +23,22 @@ namespace BBWY.Client.Views.FallWare
public WareType wareType { get; set; }
+ ///
+ /// 预约时间(日期)
+ ///
+ public DateTime PrewDate { get; set; }
+
+ ///
+ /// 预约时间(小时:分钟)
+ ///
+ public string PrewTime { get; set; }
+
public bool IsEnabled { get; set; }
public bool IsLoading { get => isLoading; set { Set(ref isLoading, value); } }
private bool isLoading;
- public SetJDWareBoxWindow2(JDWareBoxModel model, SealBoxService sealBoxService, WareType wareType, Action reflashWindow, bool isEnabled = true)
+ public SetJDWareBoxWindow2(JDWareBoxModel model, SealBoxService sealBoxService, WareType wareType, Action reflashWindow,DateTime? TransportOverTime=null)
{
InitializeComponent();
@@ -36,7 +46,7 @@ namespace BBWY.Client.Views.FallWare
this.wareType = wareType;
this.reflashWindow = reflashWindow;
JDWareBoxModel = model;
- this.IsEnabled = isEnabled;
+
this.DataContext = this;
switch (wareType)
@@ -47,6 +57,14 @@ namespace BBWY.Client.Views.FallWare
panel_jingcang.Visibility= Visibility.Visible;
panel_yuncang.Visibility= Visibility.Collapsed;
panel_jst.Visibility= Visibility.Collapsed;
+
+ PrewDate = DateTime.Now;
+ PrewTime = "17:30";
+ if (TransportOverTime != null)
+ {
+ PrewDate = TransportOverTime.Value.Date;
+ PrewTime = TransportOverTime?.ToString("HH:mm");
+ }
break;
case WareType.云仓:
btn_jingcang.IsEnabled = false;
@@ -84,6 +102,23 @@ namespace BBWY.Client.Views.FallWare
MessageBox.Show("信息不完整", "提示");
return;
}
+
+ DateTime? PrewDateTime = null;
+
+ try
+ {
+ PrewDateTime = DateTime.Parse((PrewDate.ToString("yyyy-MM-dd ") + PrewTime));
+
+
+ }
+ catch
+ {
+ MessageBox.Show("输入的时间有误", "提示");
+ return;
+ }
+
+
+
IsLoading = true;
Task.Factory.StartNew(() =>
{
@@ -95,7 +130,14 @@ namespace BBWY.Client.Views.FallWare
return;
}
- var res = sealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle, JDWareBoxModel.PurchaseOrder, JDWareBoxModel.PrewOrder, JDWareBoxModel.WaybillNo, getDetailResponse.Data.SupplierName, getDetailResponse.Data.StoreName);
+ if (getDetailResponse.Data.StoreName!= JDWareBoxModel.WareName)
+ {
+ IsLoading = false;
+ this.Dispatcher.Invoke(() => MessageBox.Show($"采购单对应的仓库名:{getDetailResponse.Data.StoreName}与当前仓库:{JDWareBoxModel.WareName}不符", "提示"));
+ return;
+ }
+
+ var res = sealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle, JDWareBoxModel.PurchaseOrder, JDWareBoxModel.PrewOrder, JDWareBoxModel.WaybillNo, getDetailResponse.Data.SupplierName, getDetailResponse.Data.StoreName, getDetailResponse.Data.City, PrewDateTime);
if (!res.Success)
{
IsLoading = false;
diff --git a/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml b/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
index fda3766c..c657bbbc 100644
--- a/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
+++ b/BBWY.Client/Views/FallWare/WaitFallWareControl.xaml
@@ -36,7 +36,8 @@
-
+
+
@@ -124,7 +125,8 @@
-
+
+
@@ -242,31 +244,60 @@
-
+
-
+
-
-
-
+
+
+
-
+
+
+
+
+
+
+
+
+
-
+
diff --git a/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml b/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml
new file mode 100644
index 00000000..5b747000
--- /dev/null
+++ b/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml
@@ -0,0 +1,317 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml.cs b/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml.cs
new file mode 100644
index 00000000..f1bf3e3d
--- /dev/null
+++ b/BBWY.Client/Views/FallWare/WareLSAcceptOrderWindow.xaml.cs
@@ -0,0 +1,92 @@
+using BBWY.Client.Helpers;
+using BBWY.Client.Models.APIModel;
+using BBWY.Client.Models.APIModel.Response;
+using BBWY.Client.Models.FallWare;
+using BBWY.Controls;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Printing;
+using System.Reflection;
+using System.Text;
+using System.Threading;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace BBWY.Client.Views.FallWare
+{
+ ///
+ /// WareLSAcceptOrderWindow.xaml 的交互逻辑
+ ///
+ public partial class WareLSAcceptOrderWindow : BWindow
+ {
+ public WareLSAcceptOrderWindow(GetWareLSAcceptOrderResponse GetWareLSAcceptOrderResponse, List GetWareLSOrderPurchases, int nowPageIndex, int totalPageIndex, string prewOrder
+
+ )
+ {
+ InitializeComponent();
+ this.GetWareLSAcceptOrderResponse = GetWareLSAcceptOrderResponse;
+ this.GetWareLSOrderPurchases = GetWareLSOrderPurchases;
+ this.NowPageIndex = nowPageIndex;
+ this.TotalPageIndex = totalPageIndex;
+ this.DataContext = this;
+ PrewOrder = prewOrder;
+ TotalSealBoxCount = GetWareLSOrderPurchases.Select(w=>w.SealBoxCount).Sum().Value;
+ this.UpdateLayout();
+ }
+
+ public GetWareLSAcceptOrderResponse GetWareLSAcceptOrderResponse { get; set; }
+ public List GetWareLSOrderPurchases { get; set; }
+ public int NowPageIndex { get; set; }
+ public int TotalPageIndex { get; set; }
+ public string PrewOrder { get; set; }
+
+ ///
+ /// 总封箱数
+ ///
+ public int TotalSealBoxCount { get; set; }
+
+ /////
+ ///// TC收货总箱数
+ /////
+ //public int TotalTCAcceptBoxCount { get; set; }
+
+
+ public void PrintLSOrder(string printName)
+ {
+ var localPrintServer = new LocalPrintServer();
+ if (string.IsNullOrEmpty(printName))
+ {
+ return;
+ }
+ var printQueue = localPrintServer.GetPrintQueue(printName);
+ if (printQueue.IsInError)
+ {
+ System.Windows.MessageBox.Show("打印机处于错误状态");
+ return;
+ }
+ MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
+ PrintDialog printDialog = new PrintDialog();
+ printDialog.PrintTicket.PageOrientation = PageOrientation.Portrait;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ // printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
+
+ //835 1166
+ this.Height = pageHeight+39;
+ this.Width = pageWidth;
+ this.print_lsOrder.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
+ this.UpdateLayout();
+ printDialog.PrintVisual(this.print_lsOrder, "打印任务");
+ this.Close();
+ }
+ }
+
+
+}
diff --git a/BBWY.Client/Views/PackTask/FeesExcelControl.xaml b/BBWY.Client/Views/PackTask/FeesExcelControl.xaml
index 49edbf0c..dfa33e31 100644
--- a/BBWY.Client/Views/PackTask/FeesExcelControl.xaml
+++ b/BBWY.Client/Views/PackTask/FeesExcelControl.xaml
@@ -8,6 +8,8 @@
d:DesignHeight="150" d:DesignWidth="1800">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/SealBox/SealBoxPolicyDetailsWindow.xaml.cs b/BBWY.Client/Views/SealBox/SealBoxPolicyDetailsWindow.xaml.cs
new file mode 100644
index 00000000..9b068701
--- /dev/null
+++ b/BBWY.Client/Views/SealBox/SealBoxPolicyDetailsWindow.xaml.cs
@@ -0,0 +1,76 @@
+using BBWY.Client.Helpers;
+using BBWY.Client.Models.APIModel;
+using BBWY.Client.Models.FallWare;
+using BBWY.Controls;
+using System;
+using System.Collections.Generic;
+using System.Printing;
+using System.Reflection;
+using System.Text;
+using System.Threading;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace BBWY.Client.Views.SealBox
+{
+ ///
+ /// SealBoxPolicyDetailsWindow.xaml 的交互逻辑
+ ///
+ public partial class SealBoxPolicyDetailsWindow : BWindow
+ {
+ public SealBoxPolicyDetailsWindow(List sealBoxSkus, string shopName, string wareName, long sealBoxId)
+ {
+ InitializeComponent();
+ this.DataContext = this;
+ SealBoxSkus = sealBoxSkus;
+ ShopName = shopName;
+ WareName = wareName;
+ SealBoxId = sealBoxId;
+ this.UpdateLayout();
+ }
+
+ ///
+ /// 封箱sku列表
+ ///
+ public List SealBoxSkus { get; set; }
+
+ public string ShopName { get; set; }
+ public string WareName { get; set; }
+
+ public long SealBoxId { get; set; }
+
+ public void PrintBox(string printName)
+ {
+ var localPrintServer = new LocalPrintServer();
+ if (string.IsNullOrEmpty(printName))
+ {
+ return;
+ }
+ var printQueue = localPrintServer.GetPrintQueue(printName);
+ if (printQueue.IsInError)
+ {
+ System.Windows.MessageBox.Show("打印机处于错误状态");
+ return;
+ }
+ MyPrintHelper.SetDefaultPrint(printName);//设置默认打印机
+ PrintDialog printDialog = new PrintDialog();
+ printDialog.PrintTicket.PageOrientation = PageOrientation.Portrait;//设置为横向打印 PageOrientation.Landscape Portrait为纵向
+ var pageWidth = (int)Math.Ceiling(printDialog.PrintableAreaWidth);
+ var pageHeight = (int)Math.Ceiling(printDialog.PrintableAreaHeight);
+ printDialog.PrintTicket.PageMediaSize = new PageMediaSize(pageWidth, pageHeight);
+ this.Height = pageHeight;
+ this.Width = pageWidth;
+ // this.FontSize = 30;
+ this.print_sealbox.Arrange(new Rect(new Point(0, 0), new Size(pageWidth, pageHeight)));
+ this.UpdateLayout();
+ printDialog.PrintVisual(this.print_sealbox, "打印任务");
+ this.Close();
+ }
+ }
+}
diff --git a/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml
new file mode 100644
index 00000000..711ef15a
--- /dev/null
+++ b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
new file mode 100644
index 00000000..f7c09356
--- /dev/null
+++ b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
@@ -0,0 +1,141 @@
+using BBWY.Client.Models.APIModel;
+using BBWY.Client.Models.PackTask;
+using BBWY.Controls;
+using NPOI.Util;
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Drawing.Printing;
+using System.IO;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+
+namespace BBWY.Client.Views.SealBox
+{
+ ///
+ /// SealBoxPrintDetailsWindow.xaml 的交互逻辑
+ ///
+ public partial class SealBoxPrintDetailsWindow : BWindow
+ {
+ public SealBoxPrintDetailsWindow(SealBoxModel sealBox)
+ {
+ InitializeComponent();
+ InitPrintList();
+ SealBoxModel = sealBox.Copy();
+ this.DataContext = this;
+ }
+ ///
+ /// 打印机列表
+ ///
+ public ObservableCollection PrintList { get; set; }
+ public void InitPrintList()
+ {
+ //TaskImage = MyPrintHelper.GetBarcodeImage(TaskId.ToString(), 300, 60);
+
+ //BarcodeImage = MyPrintHelper.GetBarcodeImage(SkuId, 300, 60);
+
+
+ PrintList = new ObservableCollection();
+ var printingNames = PrinterSettings.InstalledPrinters;//获取本机的打印机数据
+ int index = -1;
+ int selectIndex = 0;
+ foreach (string name in printingNames)
+ {
+ if (name == "Microsoft XPS Document Writer" || name == "Microsoft Print to PDF" || name == "Fax")
+ {
+ continue;
+ }
+ index++;
+ if (name.Contains("Deli"))
+ {
+ selectIndex = index;
+ }
+ PrintList.Add(name);
+ }
+ try
+ {
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ if (File.Exists(printNames))
+ {
+ PrintName = File.ReadAllText(printNames);
+ }
+ else
+ {
+ if (PrintList.Count > 0)
+ {
+ PrintName = PrintList[0].ToString();
+ }
+ }
+ }
+ catch (Exception)
+ {
+
+
+ }
+
+ }
+
+ public string PrintName { get; set; }
+ public int PrintCount { get; set; } = 1;
+
+
+ ///
+ /// 封箱sku列表
+ ///
+ public SealBoxModel SealBoxModel { get; set; }
+
+ public string ShopName { get; set; }
+ public string WareName { get; set; }
+
+ public long SealBoxId { get; set; }
+ private void BButton_Click(object sender, RoutedEventArgs e)
+ {
+
+
+ int limitIndex = 15;//单页限制数量
+
+ Task.Factory.StartNew(() =>
+ {
+ for (int i = 0; i < PrintCount; i++)//打印份数
+ {
+ again:
+ if (SealBoxModel.SealBoxSkus.Count > limitIndex)
+ {
+ PrintBox(SealBoxModel.SealBoxSkus.GetRange(0, limitIndex));
+
+ SealBoxModel.SealBoxSkus.RemoveRange(0, limitIndex);
+ goto again;
+ }
+ else
+ {
+ PrintBox(SealBoxModel.SealBoxSkus);
+ }
+ }
+ App.Current.Dispatcher.Invoke(new Action(() =>
+ {
+ this.Close();
+ }));
+ });
+ }
+
+ public void PrintBox(List sealBoxSkus)
+ {
+ App.Current.Dispatcher.Invoke(new Action(() =>
+ {
+ SealBoxPolicyDetailsWindow policyDetailsWindow = new SealBoxPolicyDetailsWindow(sealBoxSkus, SealBoxModel.ShopName, SealBoxModel.WareName, SealBoxModel.SealBoxId);
+ policyDetailsWindow.PrintBox(PrintName);
+ }));
+
+ }
+ }
+}
diff --git a/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml b/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml
index cfc870c4..7ceb3a19 100644
--- a/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml
+++ b/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml
@@ -31,22 +31,17 @@
-
-
+
+
-
-
-
-
-
-
+
diff --git a/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml.cs b/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml.cs
index f3a04100..5aab0828 100644
--- a/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/SealBox/SetSealBoxWindow.xaml.cs
@@ -28,49 +28,11 @@ namespace BBWY.Client.Views.SealBox
///
public partial class SetSealBoxWindow : BWindow
{
- public SetSealBoxWindow(SealBoxModel sealBoxModel)
+ public SetSealBoxWindow()
{
- SealBoxModel = sealBoxModel;
- InitializeComponent();
- LoadPrints();
- }
-
- SealBoxModel SealBoxModel { get; set; }
- ///
- /// 获取打印机名称
- ///
- private void LoadPrints()
- {
- var printingNames = PrinterSettings.InstalledPrinters;//获取本机的打印机数据
- int index = -1;
- int selectIndex = 0;
- foreach (string name in printingNames)
- {
- if (name == "Microsoft XPS Document Writer" || name == "Microsoft Print to PDF" || name == "Fax")
- {
- continue;
- }
- //index++;
- //if (name.Contains("Deli"))
- //{
- // selectIndex = index;
- //}
- cbPrint.Items.Add(name);
- }
- //if (cbPrint.Items.Count > selectIndex)
- //{
- // cbPrint.SelectedIndex = selectIndex;
- //}
- var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- string printNamePath = $"{applicationPath}/printSealName.init";
- if (File.Exists(printNamePath))
- {
- cbPrint.Text = File.ReadAllText(printNamePath);
- }
+ InitializeComponent();
}
-
-
public Action SendBoxCount { get; set; }
private void BButton_Click(object sender, RoutedEventArgs e)
{
@@ -84,103 +46,10 @@ namespace BBWY.Client.Views.SealBox
MessageBox.Show("请输入数字!");
return;
}
- //string printName = cbPrint.Text;
- //var localPrintServer = new LocalPrintServer();
- //var printQueue = localPrintServer.GetPrintQueue(printName);
- //if (printQueue.IsInError)
- //{
- // MessageBox.Show("打印机处于错误状态");
- // return;
- //}
-
- ////PrintSealboxModel(printName, boxCount);
-
- //MyPrintHelper.PrintSealBoxData(SealBoxModel, printName, boxCount, 1);
- ////todo: 打印单子
if (SendBoxCount != null) SendBoxCount(boxCount);
this.Close();
}
-
- private void PrintSealboxModel(string printName, int boxCount, int printCount = 1)
- {
-
-
- //
-
- }
- private void PrintSealboxModel1(string printName, int boxCount)
- {
- var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
- string printNamePath = $"{applicationPath}/printSealName.init";
- if (File.Exists(printNamePath))
- {
- File.Delete(printNamePath);
- }
- File.WriteAllText(printNamePath, printName);
-
- var excel = $"{applicationPath}/Resources/ExccelModel/sealbox.xlsx";
-
- var newExccel = $"{applicationPath}/Resources/ExccelModel/newsealbox.xlsx";
- if (File.Exists(newExccel))
- {
- File.Delete(newExccel);
- }
- FileStream fs = new FileStream(excel, FileMode.Open, FileAccess.Read);
- XSSFWorkbook wb = new XSSFWorkbook(fs);
- var sheet = wb.GetSheetAt(0); // 得到第一个sheet
-
- var nameCell = sheet.GetRow(0).GetCell(0); // name列,第2行
- var ageCell = sheet.GetRow(3).GetCell(0); // age列,第2行
-
-
- XSSFWorkbook wb2 = new XSSFWorkbook();
- //wb2.CreateSheet("Sheet1");
- sheet.CopyTo(wb2, "Sheet1", true, false);
- var sheet2 = wb2.GetSheet("Sheet1");
-
-
- var nameCell2 = sheet2.GetRow(0).GetCell(1);
- nameCell2.SetCellValue(SealBoxModel.ShopName);
-
- sheet2.GetRow(3).GetCell(1).SetCellValue(SealBoxModel.WareName);
-
- StringBuilder sb = new StringBuilder();
- int totalCount = 0;
- for (int i = 0; i < SealBoxModel.SealBoxSkus.Count; i++)
- {
- var title = SealBoxModel.SealBoxSkus[i].SkuTitle;
- //if (title.Length>5)
- //{
- // title = title.Substring(0,5);
- //}
- totalCount += SealBoxModel.SealBoxSkus[i].WareHourseSkuCount;
- sheet2.GetRow(i + 6).GetCell(1).SetCellValue($"名称:{title}");
- sheet2.GetRow(i + 6).GetCell(2).SetCellValue($"SKU:{SealBoxModel.SealBoxSkus[i].SkuId}");
- sheet2.GetRow(i + 6).GetCell(3).SetCellValue($"数量:{SealBoxModel.SealBoxSkus[i].WareHourseSkuCount}");
-
- }
- sheet2.GetRow(25).GetCell(1).SetCellValue(totalCount);
- sheet2.GetRow(28).GetCell(1).SetCellValue(boxCount);
- FileStream fs1 = new FileStream(newExccel, FileMode.OpenOrCreate, FileAccess.ReadWrite);
- wb2.Write(fs1);
- fs1.Close();
- fs1.Dispose();
- //Workbook workbook = new Workbook();
- //workbook.loa
- //workbook.LoadFromFile(newExccel);
- //var print = workbook.PrintDocument;
- //print.PrinterSettings.PrinterName = printName;
- //print.Print();
-
- //
-
- }
-
- void SpirePrint()
- {
-
- }
}
diff --git a/BBWY.Client/Views/SealBox/WaitSealBoxControl.xaml b/BBWY.Client/Views/SealBox/WaitSealBoxControl.xaml
index 5be54b0c..f0efdf81 100644
--- a/BBWY.Client/Views/SealBox/WaitSealBoxControl.xaml
+++ b/BBWY.Client/Views/SealBox/WaitSealBoxControl.xaml
@@ -38,7 +38,7 @@
-
+
@@ -92,14 +92,14 @@
-
-
-
+
-
+
-
+
-
+
@@ -214,9 +214,9 @@
-
+
-
+
@@ -240,7 +240,7 @@
-
+
@@ -266,18 +266,39 @@
Visibility="{Binding IsSealBoxOverTime,Converter={StaticResource objConverter},ConverterParameter=false:Visible:Collapsed}"
>
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -285,18 +306,20 @@
Content="{Binding SealBoxCount,Converter={StaticResource objConverter},ConverterParameter=#null:设置:修改}"
Command="{Binding DataContext.SetSealBoxCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}}}"
CommandParameter="{Binding}"
- >
+ />
+
-
+
+
-
-
-
-
+ />
diff --git a/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml b/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml
new file mode 100644
index 00000000..283f1ea1
--- /dev/null
+++ b/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml.cs b/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml.cs
new file mode 100644
index 00000000..fffc7131
--- /dev/null
+++ b/BBWY.Client/Views/TaskOverTime/SubmitOverTimeMarkMsgWindow.xaml.cs
@@ -0,0 +1,74 @@
+using BBWY.Client.APIServices;
+using BBWY.Client.Models;
+using BBWY.Controls;
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Interop;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+using WebSocketSharp;
+
+namespace BBWY.Client.Views.TaskOverTime
+{
+ ///
+ /// SubmitOverTimeMarkMsgWindow.xaml 的交互逻辑
+ ///
+ public partial class SubmitOverTimeMarkMsgWindow : BWindow
+ {
+ public SubmitOverTimeMarkMsgWindow(OverTimeTaskType overTimeTaskType, long id, string msg, PackTaskService packTaskService, Action reflashWindow)
+ {
+ InitializeComponent();
+ this.OverTimeTaskType = overTimeTaskType;
+ this.Id = id;
+ MarkMsg = msg;
+ this.reflashWindow = reflashWindow;
+ this.packTaskService = packTaskService;
+ this.DataContext = this;
+ }
+ Action reflashWindow;
+ PackTaskService packTaskService { get; set; }
+ ///
+ /// 超时任务类型(待验收 = 2,待打包 = 3,待封箱 = 4, 待落仓 = 8,待转运 = 11,)
+ ///
+ public OverTimeTaskType OverTimeTaskType { get; set; }
+
+ ///
+ /// 任务id 或者 封箱id
+ ///
+ public long Id { get; set; }
+ ///
+ /// 备注信息
+ ///
+ public string MarkMsg { get; set; }
+
+ private void BButton_Click(object sender, RoutedEventArgs e)
+ {
+ if (MarkMsg.IsNullOrEmpty())
+ {
+ MessageBox.Show("请输入超时原因");
+ return;
+ }
+
+ var res = packTaskService.SubmitOverTimeMarkMsg(OverTimeTaskType, Id, MarkMsg);
+ if (res == null)
+ {
+ MessageBox.Show("网络异常");
+ return;
+ }
+ if (!res.Success)
+ {
+ MessageBox.Show(res.Msg);
+ return;
+ }
+ if (reflashWindow != null) reflashWindow();
+ this.Close();
+ }
+ }
+}
diff --git a/BBWY.Client/Views/WaitTransport/WareWaitTransportControl.xaml b/BBWY.Client/Views/WaitTransport/WareWaitTransportControl.xaml
index 65d04de0..c426eabe 100644
--- a/BBWY.Client/Views/WaitTransport/WareWaitTransportControl.xaml
+++ b/BBWY.Client/Views/WaitTransport/WareWaitTransportControl.xaml
@@ -268,11 +268,28 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From c3f2ffc720de4abe7cec598e432373703cfb615c Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Fri, 7 Jul 2023 16:34:47 +0800
Subject: [PATCH 7/8] 1
---
.../Views/FallWare/PrintBoxWindow.xaml.cs | 15 +++++++++++++++
.../Views/FallWare/PrintLSOrderWindow.xaml.cs | 14 ++++++++++++++
BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs | 13 +++++++++++++
.../SealBox/SealBoxPrintDetailsWindow.xaml.cs | 16 ++++++++++++++++
4 files changed, 58 insertions(+)
diff --git a/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
index 8c001a1f..fc826570 100644
--- a/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/PrintBoxWindow.xaml.cs
@@ -166,6 +166,21 @@ namespace BBWY.Client.Views.FallWare
}));
});
+
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ try
+ {
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
+ }
+ }
+ catch
+ {
+
+
+ }
}
}
}
diff --git a/BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml.cs b/BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml.cs
index 04077ab6..e86ed7c1 100644
--- a/BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml.cs
+++ b/BBWY.Client/Views/FallWare/PrintLSOrderWindow.xaml.cs
@@ -130,6 +130,20 @@ namespace BBWY.Client.Views.FallWare
this.Close();
});
});
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ try
+ {
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
+ }
+ }
+ catch
+ {
+
+
+ }
}
public void PrintBox(List GetWareLSOrderPurchases, int nowPageIndex, int totalPageIndex)
diff --git a/BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs b/BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs
index 87f8817b..8881d92b 100644
--- a/BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs
+++ b/BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs
@@ -83,6 +83,19 @@ namespace BBWY.Client.Views.PackTask
var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ try
+ {
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
+ }
+ }
+ catch
+ {
+
+
+ }
+
File.WriteAllText(printNames, cbPrintName.Text);
diff --git a/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
index f7c09356..41fc9568 100644
--- a/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
+++ b/BBWY.Client/Views/SealBox/SealBoxPrintDetailsWindow.xaml.cs
@@ -125,7 +125,23 @@ namespace BBWY.Client.Views.SealBox
{
this.Close();
}));
+
+
});
+ var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
+ string printNames = System.IO.Path.Combine(applicationPath, "printName.init");
+ try
+ {
+ if (File.Exists(printNames))
+ {
+ File.Delete(printNames);
+ }
+ }
+ catch
+ {
+
+
+ }
}
public void PrintBox(List sealBoxSkus)
From a50c4df1a61db3c5c8a6a8884273c1f6350bea55 Mon Sep 17 00:00:00 2001
From: "506583276@qq.com" <506583276@qq.com>
Date: Fri, 7 Jul 2023 16:36:36 +0800
Subject: [PATCH 8/8] 10144
---
BBWY.Client/GlobalContext.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BBWY.Client/GlobalContext.cs b/BBWY.Client/GlobalContext.cs
index c69049d7..280cc5c6 100644
--- a/BBWY.Client/GlobalContext.cs
+++ b/BBWY.Client/GlobalContext.cs
@@ -13,7 +13,7 @@ namespace BBWY.Client
{
ShopServiceGroupList = new List();
ShopServiceGroupLowerList = new List();
- ClientVersion = "10143";
+ ClientVersion = "10144";
}
private User user;