Browse Source

合并

AddValidOverTime
506583276@qq.com 2 years ago
parent
commit
ece6fdd2da
  1. 17
      BBWY.Client/APIServices/QiKu/PackTaskService.cs
  2. 2
      BBWY.Client/GlobalContext.cs
  3. 16
      BBWY.Client/Helpers/MyPrintHelper.cs
  4. 8
      BBWY.Client/Models/APIModel/Request/BarCodeRequest.cs
  5. 6
      BBWY.Client/Models/BatchPurchase/BatchPublishTask.cs
  6. 15
      BBWY.Client/Models/PackTask/BarCodeModel.cs
  7. 20
      BBWY.Client/Models/PackTask/PackTaskModel.cs
  8. 6
      BBWY.Client/ViewModels/PackTask/CreatePackTaskViewModel.cs
  9. 6
      BBWY.Client/ViewModels/PackTask/PublishTaskViewModel.cs
  10. 12
      BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs
  11. 14
      BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs
  12. 5
      BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs
  13. 36
      BBWY.Client/Views/PackTask/BarcodeControl.xaml
  14. 27
      BBWY.Client/Views/PackTask/MinBarcodeControl.xaml
  15. 1
      BBWY.Client/Views/PackTask/ServiceWindow.xaml
  16. 6
      BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs
  17. 62
      BBWY.Client/Views/PackTask/SetBarCode.xaml
  18. 3
      BBWY.Client/Views/PackTask/SetBarCode.xaml.cs
  19. 2
      BBWY.Client/Views/QualityTask/BatchPrintWindow.xaml.cs
  20. 1
      BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

17
BBWY.Client/APIServices/QiKu/PackTaskService.cs

@ -36,12 +36,8 @@ namespace BBWY.Client.APIServices
) )
{ {
if (taskId != null && !string.IsNullOrEmpty(taskId.Trim())) return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new
{ {
return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new
{
TaskId = taskId,
ShopId = globalContext.User.Shop.ShopId.ToString()
}, null, HttpMethod.Post); }, null, HttpMethod.Post);
} }
@ -58,7 +54,7 @@ namespace BBWY.Client.APIServices
}, null, HttpMethod.Post); }, null, HttpMethod.Post);
} }
public ApiResponse<SearchTaskListResponse> GetWareHouseList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null, public ApiResponse<SearchTaskListResponse> SearchTaskList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null,
TaskState? TaskState = null, TaskState? TaskState = null,
string ShopName = null, string ShopName = null,
@ -66,14 +62,7 @@ namespace BBWY.Client.APIServices
int pageSize = 10 int pageSize = 10
) )
{ {
if (taskId != null && !string.IsNullOrEmpty(taskId.Trim()))
{
return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new
{
TaskId = taskId
}, null, HttpMethod.Post);
}
return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new return SendRequest<SearchTaskListResponse>(globalContext.QKApiHost, "api/PackTask/SearchTaskList", new
{ {
DepartmentName = departmentName, DepartmentName = departmentName,
@ -98,7 +87,7 @@ namespace BBWY.Client.APIServices
} }
public ApiResponse<ProductSkuResponse> GetProductSku(string skuId) public ApiResponse<ProductSkuResponse> SearchProduct(string skuId)
{ {
HttpClientHelper helper = new HttpClientHelper(globalContext.QKApiHost); HttpClientHelper helper = new HttpClientHelper(globalContext.QKApiHost);

2
BBWY.Client/GlobalContext.cs

@ -13,7 +13,7 @@ namespace BBWY.Client
{ {
ShopServiceGroupList = new List<string>(); ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>(); ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10144"; ClientVersion = "10145";
} }
private User user; private User user;

16
BBWY.Client/Helpers/MyPrintHelper.cs

@ -79,8 +79,8 @@ namespace BBWY.Client.Helpers
args.Graphics.DrawString($"品名: {barCode.BrandName}", font, System.Drawing.Brushes.Black, new PointF(10, topHeigth)); //args.Graphics.DrawString($"品名: {barCode.BrandName}", font, System.Drawing.Brushes.Black, new PointF(10, topHeigth));
topHeigth += (heightSpace + sizeHeight); //topHeigth += (heightSpace + sizeHeight);
switch (barCode.LabelModel) switch (barCode.LabelModel)
@ -99,6 +99,10 @@ namespace BBWY.Client.Helpers
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; // g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
size = args.Graphics.MeasureString(barcodeSku, font); size = args.Graphics.MeasureString(barcodeSku, font);
topHeigth += (heightSpace + sizeHeight); topHeigth += (heightSpace + sizeHeight);
args.Graphics.DrawString($"店铺: {barCode.ShopName}", font, System.Drawing.Brushes.Black, new PointF(10, topHeigth));
topHeigth += (heightSpace + sizeHeight);
args.Graphics.DrawImage(img, 1, topHeigth, 234, 50); args.Graphics.DrawImage(img, 1, topHeigth, 234, 50);
topHeigth += (50 + 5); topHeigth += (50 + 5);
args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, topHeigth)); args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, topHeigth));
@ -145,8 +149,12 @@ namespace BBWY.Client.Helpers
string barcodeSku = $"POP{barCode.SkuId}"; string barcodeSku = $"POP{barCode.SkuId}";
Barcode barcode = new Barcode(); Barcode barcode = new Barcode();
System.Drawing.Image img = barcode.Encode(TYPE.CODE128, barcodeSku, 500, 60); System.Drawing.Image img = barcode.Encode(TYPE.CODE128, barcodeSku, 500, 60);
args.Graphics.DrawString($"品名: {barCode.BrandName}", font, System.Drawing.Brushes.Black, new PointF(10, 10)); //args.Graphics.DrawString($"品名: {barCode.BrandName}", font, System.Drawing.Brushes.Black, new PointF(10, 10));
args.Graphics.DrawString($"规格: {barCode.SkuName}", font, System.Drawing.Brushes.Black, new PointF(10, 40)); //args.Graphics.DrawString($"规格: {barCode.SkuName}", font, System.Drawing.Brushes.Black, new PointF(10, 40));
args.Graphics.DrawString($"规格: {barCode.SkuName}", font, System.Drawing.Brushes.Black, new PointF(10, 10));
args.Graphics.DrawString($"店铺: {barCode.ShopName}", font, System.Drawing.Brushes.Black, new PointF(10, 40));
// g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias; // g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
SizeF size = args.Graphics.MeasureString(barcodeSku, font); SizeF size = args.Graphics.MeasureString(barcodeSku, font);
args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, 130)); args.Graphics.DrawString(barcodeSku, font, System.Drawing.Brushes.Black, new PointF((236 - size.Width) / 2, 130));

8
BBWY.Client/Models/APIModel/Request/BarCodeRequest.cs

@ -43,9 +43,9 @@ namespace BBWY.Client.Models.APIModel.Request
/// </summary> /// </summary>
public BarcodeLabelModel LabelModel { get; set; } public BarcodeLabelModel LabelModel { get; set; }
///// <summary> /// <summary>
///// 型号 /// 店铺名
///// </summary> /// </summary>
//public string ModelNo { get; set; } public string ShopName { get; set; }
} }
} }

6
BBWY.Client/Models/BatchPurchase/BatchPublishTask.cs

@ -419,7 +419,7 @@ namespace BBWY.Client.Models
Brand = productApiResponse.Data.Items[0].BrandName; Brand = productApiResponse.Data.Items[0].BrandName;
} }
var productSku = packTaskService.GetProductSku(skuid); var productSku = packTaskService.SearchProduct(skuid);
if (productSku == null || !productSku.Success) if (productSku == null || !productSku.Success)
{ {
@ -452,6 +452,10 @@ namespace BBWY.Client.Models
BarCodeModel = new BarCodeModel(); BarCodeModel = new BarCodeModel();
IsSetBarCode = true; IsSetBarCode = true;
} }
if (BarCodeModel.LabelModel== BarcodeLabelModel.)
{
BarCodeModel.LabelModel = BarcodeLabelModel.;
}
BarCodeModel.Brand = Brand; BarCodeModel.Brand = Brand;
if (!string.IsNullOrEmpty(BrandName)) if (!string.IsNullOrEmpty(BrandName))
BarCodeModel.BrandName = BrandName; BarCodeModel.BrandName = BrandName;

15
BBWY.Client/Models/PackTask/BarCodeModel.cs

@ -49,23 +49,16 @@ namespace BBWY.Client.Models
public string SkuId { get => skuId; set { Set(ref skuId, value); } } public string SkuId { get => skuId; set { Set(ref skuId, value); } }
private string modelNo;
/// <summary>
/// 型号
/// </summary>
public string ModelNo { get => modelNo; set { Set(ref modelNo, value); } }
private BarcodeLabelModel labelModel= BarcodeLabelModel.; private BarcodeLabelModel labelModel= BarcodeLabelModel.;
/// <summary> /// <summary>
/// 模板标签 /// 模板标签
/// </summary> /// </summary>
public BarcodeLabelModel LabelModel { get => labelModel; set { Set(ref labelModel, value); } } public BarcodeLabelModel LabelModel { get => labelModel; set { Set(ref labelModel, value); } }
/// <summary>
/// 店铺名
/// </summary>
public string ShopName { get; set; }
} }
} }

20
BBWY.Client/Models/PackTask/PackTaskModel.cs

@ -6,6 +6,7 @@ using BBWY.Client.ViewModels.PackTask;
using BBWY.Client.Views.PackTask; using BBWY.Client.Views.PackTask;
using BBWY.Client.Views.QualityTask; using BBWY.Client.Views.QualityTask;
using GalaSoft.MvvmLight.Command; using GalaSoft.MvvmLight.Command;
using NPOI.Util;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -101,7 +102,7 @@ namespace BBWY.Client.Models
return; return;
} }
LookCerWindow lookCerWindow = new LookCerWindow(CertificateModel); LookCerWindow lookCerWindow = new LookCerWindow(CertificateModel);
lookCerWindow.Show(); lookCerWindow.ShowDialog();
} }
@ -117,15 +118,7 @@ namespace BBWY.Client.Models
return; return;
} }
LookBarCodeWindow look = new LookBarCodeWindow(); LookBarCodeWindow look = new LookBarCodeWindow();
look.SetData(new BarCodeModel look.SetData(BarCodeModel.Copy());
{
Brand = BarCodeModel.Brand,
BrandName = BarCodeModel.BrandName,
LabelModel = BarCodeModel.LabelModel,
ProductNo = BarCodeModel.ProductNo,
SkuId = BarCodeModel.SkuId,
SkuName = BarCodeModel.SkuName
});
look.Show(); look.Show();
} }
@ -141,7 +134,7 @@ namespace BBWY.Client.Models
printWindow.CertificateModel = certificateModel; printWindow.CertificateModel = certificateModel;
printWindow.LoadData(); printWindow.LoadData();
//printWindow.Datas = LoadCerLabelModels(); //printWindow.Datas = LoadCerLabelModels();
printWindow.Show(); printWindow.ShowDialog();
} }
/// <summary> /// <summary>
@ -163,11 +156,12 @@ namespace BBWY.Client.Models
LabelModel = BarCodeModel.LabelModel, LabelModel = BarCodeModel.LabelModel,
ProductNo = BarCodeModel.ProductNo, ProductNo = BarCodeModel.ProductNo,
SkuId = BarCodeModel.SkuId, SkuId = BarCodeModel.SkuId,
SkuName = BarCodeModel.SkuName SkuName = BarCodeModel.SkuName,
ShopName = BarCodeModel.ShopName
}; };
printWindow.LoadData(); printWindow.LoadData();
//printWindow.Datas = LoadBarLabelModels(); //printWindow.Datas = LoadBarLabelModels();
printWindow.Show(); printWindow.ShowDialog();
} }

6
BBWY.Client/ViewModels/PackTask/CreatePackTaskViewModel.cs

@ -871,7 +871,7 @@ namespace BBWY.Client.ViewModels.PackTask
Brand = productApiResponse.Data.Items[0].BrandName; Brand = productApiResponse.Data.Items[0].BrandName;
} }
var productSku = packTaskService.GetProductSku(searchSkuId); var productSku = packTaskService.SearchProduct(searchSkuId);
if (productSku == null || !productSku.Success) if (productSku == null || !productSku.Success)
{ {
IsLoading = false; IsLoading = false;
@ -942,6 +942,10 @@ namespace BBWY.Client.ViewModels.PackTask
BarCodeModel = new BarCodeModel(); BarCodeModel = new BarCodeModel();
IsSetBarCode = true; IsSetBarCode = true;
} }
if (BarCodeModel.LabelModel == BarcodeLabelModel.)
{
BarCodeModel.LabelModel = BarcodeLabelModel.;
}
BarCodeModel.Brand = Brand; BarCodeModel.Brand = Brand;
if (!string.IsNullOrEmpty(BrandName)) if (!string.IsNullOrEmpty(BrandName))
BarCodeModel.BrandName = BrandName; BarCodeModel.BrandName = BrandName;

6
BBWY.Client/ViewModels/PackTask/PublishTaskViewModel.cs

@ -384,6 +384,7 @@ namespace BBWY.Client.ViewModels.PackTask
BarCodeModel.Brand = Brand; BarCodeModel.Brand = Brand;
BarCodeModel.SkuId = SkuId; BarCodeModel.SkuId = SkuId;
BarCodeModel.SkuName = SkuName; BarCodeModel.SkuName = SkuName;
BarCodeModel.ShopName = globalContext.User.Shop.ShopName;
} }
if (!string.IsNullOrEmpty(BrandName)) if (!string.IsNullOrEmpty(BrandName))
BarCodeModel.BrandName = BrandName; BarCodeModel.BrandName = BrandName;
@ -491,7 +492,7 @@ namespace BBWY.Client.ViewModels.PackTask
Brand = productApiResponse.Data.Items[0].BrandName; Brand = productApiResponse.Data.Items[0].BrandName;
} }
var productSku = packTaskService.GetProductSku(skuid); var productSku = packTaskService.SearchProduct(skuid);
if (productSku == null || !productSku.Success || productSku.Data == null) if (productSku == null || !productSku.Success || productSku.Data == null)
return; return;
if (TaskId <= 0) if (TaskId <= 0)
@ -521,6 +522,9 @@ namespace BBWY.Client.ViewModels.PackTask
{ {
BarCodeModel = new BarCodeModel(); BarCodeModel = new BarCodeModel();
} }
if (BarCodeModel.LabelModel == BarcodeLabelModel.)
BarCodeModel.LabelModel = BarcodeLabelModel.;
BarCodeModel.Brand = Brand; BarCodeModel.Brand = Brand;
if (!string.IsNullOrEmpty(BrandName)) if (!string.IsNullOrEmpty(BrandName))
BarCodeModel.BrandName = BrandName; BarCodeModel.BrandName = BrandName;

12
BBWY.Client/ViewModels/PackTask/TaskListViewModel.cs

@ -283,7 +283,7 @@ namespace BBWY.Client.ViewModels.PackTask
var id = (long)paramList[0]; var id = (long)paramList[0];
var markMsg = paramList[1].ToString(); var markMsg = paramList[1].ToString();
SubmitOverTimeMarkMsgWindow submitOverTimeMarkMsgWindow = new SubmitOverTimeMarkMsgWindow(OverTimeTaskType., id, markMsg, packTaskService, ReflashTask) ; SubmitOverTimeMarkMsgWindow submitOverTimeMarkMsgWindow = new SubmitOverTimeMarkMsgWindow(OverTimeTaskType., id, markMsg, packTaskService, ReflashTask) ;
submitOverTimeMarkMsgWindow.Show(); submitOverTimeMarkMsgWindow.ShowDialog();
} }
private void SetFallWareConfigured(object obj) private void SetFallWareConfigured(object obj)
@ -338,7 +338,7 @@ namespace BBWY.Client.ViewModels.PackTask
SealBoxConfigureWindow sealBoxConfigureWindow = new SealBoxConfigureWindow(updateSealBoxConfig.Data.UpdateSealBoxConfiguredTaskDatas, ReflashTask, sealBoxId); SealBoxConfigureWindow sealBoxConfigureWindow = new SealBoxConfigureWindow(updateSealBoxConfig.Data.UpdateSealBoxConfiguredTaskDatas, ReflashTask, sealBoxId);
sealBoxConfigureWindow.Show(); sealBoxConfigureWindow.ShowDialog();
} }
private void ConfiguredSealBox() private void ConfiguredSealBox()
@ -374,7 +374,7 @@ namespace BBWY.Client.ViewModels.PackTask
return; return;
} }
SealBoxConfigureWindow sealBoxConfigureWindow = new SealBoxConfigureWindow(updateSealBoxConfig.Data.UpdateSealBoxConfiguredTaskDatas, ReflashTask, 0); SealBoxConfigureWindow sealBoxConfigureWindow = new SealBoxConfigureWindow(updateSealBoxConfig.Data.UpdateSealBoxConfiguredTaskDatas, ReflashTask, 0);
sealBoxConfigureWindow.Show(); sealBoxConfigureWindow.ShowDialog();
} }
@ -536,7 +536,7 @@ namespace BBWY.Client.ViewModels.PackTask
try try
{ {
PackTaskList = new ObservableCollection<PackTaskModel>();//初始化数据 PackTaskList = new ObservableCollection<PackTaskModel>();//初始化数据
var datas = packTaskService.GetTaskList(SearchSkuId, SearchTaskId,SearchSpuId,SearchOrderSn, this.TaskState, var datas = packTaskService.SearchTaskList(SearchSkuId, SearchTaskId, this.TaskState,
PageIndex, PageSize); PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success) if (datas != null && datas.Data != null && datas.Success)
{ {
@ -596,6 +596,8 @@ namespace BBWY.Client.ViewModels.PackTask
if (item.BarCodeDTO != null && item.BarCodeDTO.Id > 0) if (item.BarCodeDTO != null && item.BarCodeDTO.Id > 0)
{ {
data.BarCodeModel = item.BarCodeDTO; data.BarCodeModel = item.BarCodeDTO;
if (data.BarCodeModel.LabelModel == BarcodeLabelModel.)
data.BarCodeModel.LabelModel = BarcodeLabelModel.;
} }
if (item.Cers != null) if (item.Cers != null)
{ {
@ -1032,7 +1034,7 @@ namespace BBWY.Client.ViewModels.PackTask
public void CreateTask() public void CreateTask()
{ {
PublishTaskWindow publish = new PublishTaskWindow(ReflashTask); PublishTaskWindow publish = new PublishTaskWindow(ReflashTask);
publish.Show(); publish.ShowDialog();
} }
/// <summary> /// <summary>

14
BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs

@ -435,7 +435,7 @@ namespace BBWY.Client.ViewModels.PackTask
} }
SubmitOverTimeMarkMsgWindow submitOverTimeMarkMsgWindow = new SubmitOverTimeMarkMsgWindow(overTimeTaskType, id, markMsg, packTaskService, ReflashTask); SubmitOverTimeMarkMsgWindow submitOverTimeMarkMsgWindow = new SubmitOverTimeMarkMsgWindow(overTimeTaskType, id, markMsg, packTaskService, ReflashTask);
submitOverTimeMarkMsgWindow.Show(); submitOverTimeMarkMsgWindow.ShowDialog();
} }
private void LookLSOrderConfigure(object obj) private void LookLSOrderConfigure(object obj)
@ -487,7 +487,7 @@ namespace BBWY.Client.ViewModels.PackTask
var totalPageIndex = data.GetWareLSOrderPurchases.Count() % 10 == 0 ? data.GetWareLSOrderPurchases.Count() / 10 : data.GetWareLSOrderPurchases.Count() / 10 + 1; var totalPageIndex = data.GetWareLSOrderPurchases.Count() % 10 == 0 ? data.GetWareLSOrderPurchases.Count() / 10 : data.GetWareLSOrderPurchases.Count() / 10 + 1;
WareLSAcceptOrderWindow wareLSAcceptOrderWindow = new WareLSAcceptOrderWindow(lsdTaskMsg, lookData, 1, totalPageIndex, model.BoxConfigureData.PrewOrder); WareLSAcceptOrderWindow wareLSAcceptOrderWindow = new WareLSAcceptOrderWindow(lsdTaskMsg, lookData, 1, totalPageIndex, model.BoxConfigureData.PrewOrder);
wareLSAcceptOrderWindow.Show(); wareLSAcceptOrderWindow.ShowDialog();
} }
private void PrintLSOrderConfigure(object obj) private void PrintLSOrderConfigure(object obj)
@ -691,14 +691,14 @@ namespace BBWY.Client.ViewModels.PackTask
if (fallware.WareType == WareType.) if (fallware.WareType == WareType.)
{ {
SetJDWareBoxWindow window = new SetJDWareBoxWindow(model); SetJDWareBoxWindow window = new SetJDWareBoxWindow(model);
window.Show(); window.ShowDialog();
//var w = new SetJDWareBoxWindow2(model, sealBoxService, fallware.WareType, ReflashTask, false); //var w = new SetJDWareBoxWindow2(model, sealBoxService, fallware.WareType, ReflashTask, false);
//w.ShowDialog(); //w.ShowDialog();
} }
if (fallware.WareType == WareType. || fallware.WareType == WareType.) if (fallware.WareType == WareType. || fallware.WareType == WareType.)
{ {
SetCloudWareBoxWindow window = new SetCloudWareBoxWindow(model, fallware.WareType); SetCloudWareBoxWindow window = new SetCloudWareBoxWindow(model, fallware.WareType);
window.Show(); window.ShowDialog();
} }
} }
@ -1343,7 +1343,7 @@ namespace BBWY.Client.ViewModels.PackTask
PackTaskList = new ObservableCollection<PackTaskModel>();//初始化数据 PackTaskList = new ObservableCollection<PackTaskModel>();//初始化数据
var datas = packTaskService.GetWareHouseList(SearchWayBillNo, SearchExpressName, SearchDepartment, SearchSkuId, SearchTaskId, this.TaskState, SearchShopName, var datas = packTaskService.SearchTaskList(SearchWayBillNo, SearchExpressName, SearchDepartment, SearchSkuId, SearchTaskId, this.TaskState, SearchShopName,
PageIndex, PageSize); PageIndex, PageSize);
if (datas != null && datas.Data != null && datas.Success) if (datas != null && datas.Data != null && datas.Success)
{ {
@ -1409,8 +1409,10 @@ namespace BBWY.Client.ViewModels.PackTask
if (item.BarCodeDTO != null && item.BarCodeDTO.Id > 0) if (item.BarCodeDTO != null && item.BarCodeDTO.Id > 0)
{ {
data.BarCodeModel = item.BarCodeDTO; data.BarCodeModel = item.BarCodeDTO;
if (data.BarCodeModel.LabelModel == BarcodeLabelModel.)
data.BarCodeModel.LabelModel = BarcodeLabelModel.;
} }
if (item.Cers != null) if (item.Cers != null)

5
BBWY.Client/ViewModels/QualityTask/QualityViewModel.cs

@ -482,6 +482,11 @@ namespace BBWY.Client.ViewModels
} }
BatchPrintWindow batchPrint = new BatchPrintWindow(); BatchPrintWindow batchPrint = new BatchPrintWindow();
//if (BarCodeModel!=null)
//{
// BarCodeModel.ShopName = OriginShopName;
//}
batchPrint.SetData(GoodProductQuantity, batchPrint.SetData(GoodProductQuantity,
PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Select(p => p.CerDTO).ToArray() PurchaseSkuList.Where(p => p.IsNeedCer && p.CerDTO.Id > 0).Select(p => p.CerDTO).ToArray()
, BarCodeModel); , BarCodeModel);

36
BBWY.Client/Views/PackTask/BarcodeControl.xaml

@ -9,28 +9,27 @@
<Grid DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:BarcodeControl}}}"> <Grid DataContext="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type local:BarcodeControl}}}">
<DockPanel Grid.Row="1"> <DockPanel Grid.Row="1">
<Border Name="jingjian" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=精简模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1"> <Border Name="jingjian" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=精简模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1">
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding model.BrandName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.BrandName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.SkuName}"/>
</TextBlock> </TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,25,10,0"/> <TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.SkuId}"/>
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
</Border> </Border>
<Border Name="biaozhun" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=标准模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1"> <Border Name="biaozhun" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=标准模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1">
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品牌:"/>
<Run Text="{Binding model.Brand,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding model.BrandName}"/> <Run Text="{Binding model.BrandName}"/>
@ -43,6 +42,10 @@
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName}"/> <Run Text="{Binding model.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/> <Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId}"/> <Run Text="{Binding model.SkuId}"/>
@ -51,10 +54,7 @@
</Border> </Border>
<Border Name="wuxinghao" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=无型号模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1"> <Border Name="wuxinghao" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=无型号模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="1">
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="品牌:"/>
<Run Text="{Binding model.Brand}"/>
</TextBlock>
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding model.BrandName}"/> <Run Text="{Binding model.BrandName}"/>
@ -63,6 +63,10 @@
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName}"/> <Run Text="{Binding model.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/> <Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId}"/> <Run Text="{Binding model.SkuId}"/>

27
BBWY.Client/Views/PackTask/MinBarcodeControl.xaml

@ -10,14 +10,15 @@
<DockPanel Grid.Row="1"> <DockPanel Grid.Row="1">
<Border Name="jingjian" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=精简模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Margin="1"> <Border Name="jingjian" Visibility="{Binding model.LabelModel,Converter={StaticResource objConverter},ConverterParameter=精简模板:Visible:Collapsed}" BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Margin="1">
<StackPanel Orientation="Vertical"> <StackPanel Orientation="Vertical">
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/>
<Run Text="{Binding model.BrandName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock>
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.SkuName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock>
<Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,25,10,0"/> <Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,25,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.SkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
@ -31,10 +32,7 @@
<Run Text="品牌:"/> <Run Text="品牌:"/>
<Run Text="{Binding model.Brand,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding model.Brand,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/>
<Run Text="{Binding model.BrandName}"/>
</TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="型号:"/> <Run Text="型号:"/>
<Run Text="{Binding model.ProductNo}"/> <Run Text="{Binding model.ProductNo}"/>
@ -43,6 +41,10 @@
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName}"/> <Run Text="{Binding model.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName}"/>
</TextBlock>
<Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,10,0"/> <Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId}"/> <Run Text="{Binding model.SkuId}"/>
@ -55,14 +57,15 @@
<Run Text="品牌:"/> <Run Text="品牌:"/>
<Run Text="{Binding model.Brand}"/> <Run Text="{Binding model.Brand}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/>
<Run Text="{Binding model.BrandName}"/>
</TextBlock>
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding model.SkuName}"/> <Run Text="{Binding model.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,5" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding model.ShopName}"/>
</TextBlock>
<Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,10,0"/> <Image Source="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding model.SkuId}"/> <Run Text="{Binding model.SkuId}"/>

1
BBWY.Client/Views/PackTask/ServiceWindow.xaml

@ -709,6 +709,7 @@
<local:MinBarcodeControl Grid.Row="1" BarcodeImage="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" model="{Binding PackTaskModel.BarCodeModel, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20 0 0 0" Width="250" Height="190" <local:MinBarcodeControl Grid.Row="1" BarcodeImage="{Binding BarcodeImage,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" model="{Binding PackTaskModel.BarCodeModel, Mode=TwoWay}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="20 0 0 0" Width="250" Height="190"
Visibility="{Binding PackTaskModel.BarCodeModel,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" Visibility="{Binding PackTaskModel.BarCodeModel,Mode=TwoWay,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}"
/> />
</StackPanel> </StackPanel>

6
BBWY.Client/Views/PackTask/ServiceWindow.xaml.cs

@ -39,6 +39,12 @@ namespace BBWY.Client.Views.PackTask
var serviceViewModel= this.DataContext as PackServiceViewModel; var serviceViewModel= this.DataContext as PackServiceViewModel;
//加载数据 //加载数据
if (model.BarCodeModel!=null)
{
model.BarCodeModel.ShopName= model.ShopName;
}
serviceViewModel.PackTaskModel = model; serviceViewModel.PackTaskModel = model;
serviceViewModel.PackTaskList = new System.Collections.ObjectModel.ObservableCollection<PackTaskModel> { model }; serviceViewModel.PackTaskList = new System.Collections.ObjectModel.ObservableCollection<PackTaskModel> { model };
serviceViewModel.FloorDragNumber = model.FloorDragNumber; serviceViewModel.FloorDragNumber = model.FloorDragNumber;

62
BBWY.Client/Views/PackTask/SetBarCode.xaml

@ -8,7 +8,7 @@
mc:Ignorable="d" mc:Ignorable="d"
Style="{StaticResource bwstyle}" Style="{StaticResource bwstyle}"
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls"
Height="651" Width="577" Height="380" Width="577"
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
xmlns:ctr="clr-namespace:BBWY.Client.Converters" xmlns:ctr="clr-namespace:BBWY.Client.Converters"
xmlns:cmodel="clr-namespace:BBWY.Client.Models" xmlns:cmodel="clr-namespace:BBWY.Client.Models"
@ -31,49 +31,44 @@
</Border> </Border>
<Grid Grid.Row="1"> <Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition/> <ColumnDefinition/>
<ColumnDefinition/> <ColumnDefinition/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<!--{Binding CertificateModel.IsLogo,Converter={StaticResource objConverter},ConverterParameter=1:true:false}-->
<RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.精简模板}}" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.精简模板}" Content="精简" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/> <RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.精简模板}}" Content="精简" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.精简模板}" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/>
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5"> <Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5">
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" >
<TextBlock Margin="10,20,10,10" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding BarCodeModel.BrandName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding BarCodeModel.BrandName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,25,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10" FontSize="15" FontWeight="Black" >
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding BarCodeModel.SkuName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding BarCodeModel.SkuName}"/>
</TextBlock> </TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,25,10,0"/> <TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding BarCodeModel.ShopName}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding BarCodeModel.SkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> <Run Text="{Binding BarCodeModel.SkuId}"/>
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
</Border> </Border>
</StackPanel> </StackPanel>
<StackPanel Grid.Column="1" Orientation="Vertical" > <StackPanel Grid.Column="1" Orientation="Vertical" >
<RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.标准模板}}" Content="标准" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.标准模板}" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/> <RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.标准模板}}" Content="标准" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.标准模板}" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/>
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5"> <Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5">
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品牌:"/>
<Run Text="{Binding BarCodeModel.Brand}"/>
</TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding BarCodeModel.BrandName}"/> <Run Text="{Binding BarCodeModel.BrandName}"/>
@ -86,6 +81,10 @@
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding BarCodeModel.SkuName}"/> <Run Text="{Binding BarCodeModel.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding BarCodeModel.ShopName}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/> <Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding BarCodeModel.SkuId}"/> <Run Text="{Binding BarCodeModel.SkuId}"/>
@ -99,15 +98,12 @@
</StackPanel> </StackPanel>
<StackPanel Grid.Column="0" Grid.Row="1" Orientation="Vertical" > <!--<StackPanel Grid.Column="0" Grid.Row="0" Orientation="Vertical" >
<RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.无型号模板}}" Content="无型号" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.无型号模板}" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/> <RadioButton GroupName="bar" IsChecked="{Binding BarCodeModel.LabelModel,Converter={StaticResource enumToBooleanConverter},ConverterParameter={x:Static cmodel:BarcodeLabelModel.精简模板}}" Content="精简" Command="{Binding BarLabelCheckCommand}" CommandParameter="{x:Static cmodel:BarcodeLabelModel.精简模板}" Margin="10,10,0,0" Height="30" VerticalAlignment="Top"/>
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5"> <Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1" Height="220" Margin="5">
<StackPanel Orientation="Vertical" > <StackPanel Orientation="Vertical" >
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="品牌:"/>
<Run Text="{Binding BarCodeModel.Brand}"/>
</TextBlock>
<TextBlock Margin="10,20,10,10" FontSize="15" FontWeight="Black" > <TextBlock Margin="10,20,10,10" FontSize="15" FontWeight="Black" >
<Run Text="品名:"/> <Run Text="品名:"/>
<Run Text="{Binding BarCodeModel.BrandName}"/> <Run Text="{Binding BarCodeModel.BrandName}"/>
@ -117,18 +113,18 @@
<Run Text="规格:"/> <Run Text="规格:"/>
<Run Text="{Binding BarCodeModel.SkuName}"/> <Run Text="{Binding BarCodeModel.SkuName}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="10,10,10,0" FontSize="15" FontWeight="Black" >
<Run Text="店铺:"/>
<Run Text="{Binding BarCodeModel.ShopName}"/>
</TextBlock>
<Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/> <Image Source="/resources/images/barcode.png" Margin="10,10,10,0"/>
<TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" > <TextBlock Text="POP" HorizontalAlignment="Center" Margin="10,0,10,0" FontSize="15" FontWeight="Black" >
<Run Text="{Binding BarCodeModel.SkuId}"/> <Run Text="{Binding BarCodeModel.SkuId}"/>
</TextBlock> </TextBlock>
</StackPanel> </StackPanel>
</Border> </Border>
</StackPanel> </StackPanel>-->
</Grid> </Grid>

3
BBWY.Client/Views/PackTask/SetBarCode.xaml.cs

@ -60,7 +60,8 @@ namespace BBWY.Client.Views.PackTask
ProductNo = BarCodeModel.ProductNo, ProductNo = BarCodeModel.ProductNo,
SkuId = BarCodeModel.SkuId, SkuId = BarCodeModel.SkuId,
SkuName = BarCodeModel.SkuName, SkuName = BarCodeModel.SkuName,
LabelModel = BarCodeModel.LabelModel LabelModel = BarCodeModel.LabelModel,
ShopName = BarCodeModel.ShopName,
}); });
if (resData == null) if (resData == null)

2
BBWY.Client/Views/QualityTask/BatchPrintWindow.xaml.cs

@ -41,7 +41,7 @@ namespace BBWY.Client.Views.QualityTask
this.DataContext = this; this.DataContext = this;
} }
public CertificateModel[] CertificateModel { get; set; } public CertificateModel[] CertificateModel { get; set; }

1
BBWY.Server.Business/PurchaseOrderV2/BatchPurchase/BatchPurchaseBusiness.cs

@ -973,7 +973,6 @@ namespace BBWY.Server.Business
if (payOrderResponse.Success) if (payOrderResponse.Success)
{ {
var order = fsql.Select<PurchaseOrderV2>().Where(p => p.Id == request.OrderId).ToOne(); var order = fsql.Select<PurchaseOrderV2>().Where(p => p.Id == request.OrderId).ToOne();
fsql.Update<PurchaseOrderV2>(order) fsql.Update<PurchaseOrderV2>(order)
.Set(a => a.OrderState, payOrderResponse.PurchaseOrderState) .Set(a => a.OrderState, payOrderResponse.PurchaseOrderState)
.ExecuteAffrows(); .ExecuteAffrows();

Loading…
Cancel
Save