Browse Source

打包端新增打印 ,仓库端打印包装费改为包装收益 并默认为0.85折扣

AddValidOverTime
506583276@qq.com 2 years ago
parent
commit
e933b23ec9
  1. 2
      BBWY.Client/App.xaml.cs
  2. 11
      BBWY.Client/GlobalContext.cs
  3. 11
      BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs
  4. 5
      BBWY.Client/Models/APIModel/Response/PackTask/GetPackDetailResponse.cs
  5. 6
      BBWY.Client/Models/PackUser/PackerTaskModel.cs
  6. 5
      BBWY.Client/ViewModels/MainViewModel.cs
  7. 14
      BBWY.Client/ViewModels/PackTask/PackDetailViewModel.cs
  8. 42
      BBWY.Client/ViewModels/PackTask/WareHouseListViewModel.cs
  9. 50
      BBWY.Client/ViewModels/PackerTask/PackerTaskViewModel.cs
  10. 2
      BBWY.Client/Views/MainWindow.xaml
  11. 4
      BBWY.Client/Views/PackTask/PackDetailWindow.xaml
  12. 6
      BBWY.Client/Views/PackTask/PackDetailWindow.xaml.cs
  13. 2
      BBWY.Client/Views/PackerTask/AddOneItemWeightWindow.xaml
  14. 43
      BBWY.Client/Views/PackerTask/PackerPackCompletedControl.xaml
  15. 2
      BBWY.Client/Views/PackerTask/PackerTaskList.xaml
  16. 43
      BBWY.Client/Views/PackerTask/PackerWaitPackageControl.xaml

2
BBWY.Client/App.xaml.cs

@ -68,7 +68,7 @@ namespace BBWY.Client
// userToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxNjI0OTUxNjgzNTc2NTAwMjI0IiwidGVhbUlkIjoiMTYyMDM0MjAxNDcwNjk3ODgxNiIsInNvblRlYW1JZHMiOiIxNjIwMzQyMDE0NzA2OTc4ODE2LDE2MjAzNDQxNDA4NTAwMDgwNjQsMTQxMDk1NTYwNDYxMjA5MTkwNCIsImV4cCI6MTcyNDkxNDM5M30.tIgo70tzRxZyUQkX1Jsh9I4ySciX0VC9HMMOoTnwVtM"; // userToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxNjI0OTUxNjgzNTc2NTAwMjI0IiwidGVhbUlkIjoiMTYyMDM0MjAxNDcwNjk3ODgxNiIsInNvblRlYW1JZHMiOiIxNjIwMzQyMDE0NzA2OTc4ODE2LDE2MjAzNDQxNDA4NTAwMDgwNjQsMTQxMDk1NTYwNDYxMjA5MTkwNCIsImV4cCI6MTcyNDkxNDM5M30.tIgo70tzRxZyUQkX1Jsh9I4ySciX0VC9HMMOoTnwVtM";
//包装组 //包装组
userToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMzk1NzA4MjA4NjU1MzcyMjg4IiwidGVhbUlkIjoiMTcxODU0MTA2MzM5NzgzODg0OCIsInNvblRlYW1JZHMiOiIiLCJleHAiOjE3MzAyODcxNjh9.lpiLJjP0prtQgZZfpG0NN6n60LNKstbFCJc-nLgb62A"; /// userToken = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiIxMzk1NzA4MjA4NjU1MzcyMjg4IiwidGVhbUlkIjoiMTcxODU0MTA2MzM5NzgzODg0OCIsInNvblRlYW1JZHMiOiIiLCJleHAiOjE3MzAyODcxNjh9.lpiLJjP0prtQgZZfpG0NN6n60LNKstbFCJc-nLgb62A";
//齐越琳琳 //齐越琳琳

11
BBWY.Client/GlobalContext.cs

@ -13,11 +13,20 @@ namespace BBWY.Client
{ {
ShopServiceGroupList = new List<string>(); ShopServiceGroupList = new List<string>();
ShopServiceGroupLowerList = new List<string>(); ShopServiceGroupLowerList = new List<string>();
ClientVersion = "10193"; ClientVersion = "10194";
} }
private string title;
public string Title { get=> title; set { Set(ref title, value); } }
private User user; private User user;
public User User { get => user; set { Set(ref user, value); } } public User User { get => user; set { Set(ref user, value); } }
public string UserToken { get; set; } public string UserToken { get; set; }

11
BBWY.Client/Models/APIModel/Response/PackTask/FeesItemResponse.cs

@ -62,6 +62,17 @@ namespace BBWY.Client.Models.APIModel.Response.PackTask
/// </summary> /// </summary>
public decimal PackFees { get; set; } public decimal PackFees { get; set; }
/// <summary>
/// 包装人员折扣
/// </summary>
public decimal? PackerDiscount { get; set; }
/// <summary>
/// 包装收益(包装员收益)
/// </summary>
public decimal? PackerPackFees { get; set; }
/// <summary> /// <summary>
/// 增值费用小计(待移除) /// 增值费用小计(待移除)
/// </summary> /// </summary>

5
BBWY.Client/Models/APIModel/Response/PackTask/GetPackDetailResponse.cs

@ -7,6 +7,11 @@ namespace BBWY.Client.Models
{ {
public class GetPackDetailResponse public class GetPackDetailResponse
{ {
///// <summary>
///// 打包折扣
///// </summary>
//public decimal PackDiscount { get; set; }
public string ProcessTypeName { get; set; } public string ProcessTypeName { get; set; }
public string ProcessComboName { get; set; } public string ProcessComboName { get; set; }

6
BBWY.Client/Models/PackUser/PackerTaskModel.cs

@ -2,6 +2,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text; using System.Text;
using System.Windows.Input;
namespace BBWY.Client.Models.PackUser namespace BBWY.Client.Models.PackUser
{ {
@ -39,5 +40,10 @@ namespace BBWY.Client.Models.PackUser
/// 展示留言信息 /// 展示留言信息
/// </summary> /// </summary>
public bool ShowMoreMsg { get => showMoreMsg; set { Set(ref showMoreMsg, value); } } public bool ShowMoreMsg { get => showMoreMsg; set { Set(ref showMoreMsg, value); } }
} }
} }

5
BBWY.Client/ViewModels/MainViewModel.cs

@ -329,7 +329,7 @@ namespace BBWY.Client.ViewModels
CreateMenu(); CreateMenu();
GlobalContext.Title = GlobalContext.User.Name;
try try
{ {
var res = packTaskExpressService.GetExpressNameList(); var res = packTaskExpressService.GetExpressNameList();
@ -441,6 +441,7 @@ namespace BBWY.Client.ViewModels
{ {
Environment.Exit(Environment.ExitCode); Environment.Exit(Environment.ExitCode);
} }
}); });
} }
catch (Exception ex) catch (Exception ex)
@ -502,6 +503,8 @@ namespace BBWY.Client.ViewModels
} }
GlobalContext.User.Shop = shop; GlobalContext.User.Shop = shop;
GlobalContext.Title = GlobalContext.User.Shop.ShopName;
//ShowShopChoosePanel = false; //ShowShopChoosePanel = false;
Task.Factory.StartNew(GetLogisticsList); Task.Factory.StartNew(GetLogisticsList);
if (shop.Platform == Platform.) if (shop.Platform == Platform.)

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

@ -23,6 +23,7 @@ using System.IO;
using BBWY.Client.Models.APIModel; using BBWY.Client.Models.APIModel;
using Org.BouncyCastle.Bcpg; using Org.BouncyCastle.Bcpg;
using System.Threading; using System.Threading;
using Org.BouncyCastle.Ocsp;
namespace BBWY.Client.ViewModels.PackTask namespace BBWY.Client.ViewModels.PackTask
{ {
@ -445,6 +446,13 @@ namespace BBWY.Client.ViewModels.PackTask
public string PackUserName { get => packUserName; set { Set(ref packUserName, value); } } public string PackUserName { get => packUserName; set { Set(ref packUserName, value); } }
private decimal? packerFee;
/// <summary>
/// 包装员费用
/// </summary>
public decimal? PackerFee { get => packerFee; set { Set(ref packerFee, value); } }
private int incrementPartTaskCount; private int incrementPartTaskCount;
/// <summary> /// <summary>
/// 配件任务数量 /// 配件任务数量
@ -674,6 +682,9 @@ namespace BBWY.Client.ViewModels.PackTask
} }
private List<ProductResistantResponse> productResistantList; private List<ProductResistantResponse> productResistantList;
public List<ProductResistantResponse> ProductResistantList { get => productResistantList; set { Set(ref productResistantList, value); } } public List<ProductResistantResponse> ProductResistantList { get => productResistantList; set { Set(ref productResistantList, value); } }
/// <summary> /// <summary>
@ -733,6 +744,7 @@ namespace BBWY.Client.ViewModels.PackTask
if (!packDetailRes.Success) if (!packDetailRes.Success)
{ {
App.Current.Dispatcher.Invoke(() => App.Current.Dispatcher.Invoke(() =>
{ {
MessageBox.Show(packDetailRes.Msg); MessageBox.Show(packDetailRes.Msg);
@ -740,8 +752,10 @@ namespace BBWY.Client.ViewModels.PackTask
} }
if (packDetailRes.Success && packDetailRes.Data != null) if (packDetailRes.Success && packDetailRes.Data != null)
{ {
var resData = packDetailRes.Data; var resData = packDetailRes.Data;
PackProcessType = resData.PackProcessType; PackProcessType = resData.PackProcessType;
switch (PackProcessType) switch (PackProcessType)

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

@ -26,6 +26,8 @@ using BBWY.Client.Models.SealBox;
using Newtonsoft.Json; using Newtonsoft.Json;
using System.Diagnostics; using System.Diagnostics;
using BBWY.Client.Extensions; using BBWY.Client.Extensions;
using BBWY.Client.APIServices.QiKu;
using BBWY.Client.Views.PackerTask;
namespace BBWY.Client.ViewModels.PackTask namespace BBWY.Client.ViewModels.PackTask
{ {
@ -593,7 +595,7 @@ namespace BBWY.Client.ViewModels.PackTask
private readonly PackTaskService packTaskService; private readonly PackTaskService packTaskService;
private readonly SealBoxService sealBoxService; private readonly SealBoxService sealBoxService;
public GlobalContext globalContext; public GlobalContext globalContext;
public WareHouseListViewModel(PackTaskService packTaskService, GlobalContext globalContext, SealBoxService sealBoxService) public WareHouseListViewModel(PackTaskService packTaskService, GlobalContext globalContext, SealBoxService sealBoxService, PackUserService packUserService)
{ {
@ -684,6 +686,7 @@ namespace BBWY.Client.ViewModels.PackTask
LoadTransportSkuDataCommand = new RelayCommand<WareWaitTransport>(LoadTransportSkuData); LoadTransportSkuDataCommand = new RelayCommand<WareWaitTransport>(LoadTransportSkuData);
LoadCompletedSkuDataCommand = new RelayCommand<WareWaitCompleted>(LoadCompletedSkuData); LoadCompletedSkuDataCommand = new RelayCommand<WareWaitCompleted>(LoadCompletedSkuData);
this.packUserService = packUserService;
} }
private void LoadCompletedSkuData(WareWaitCompleted model) private void LoadCompletedSkuData(WareWaitCompleted model)
@ -955,6 +958,7 @@ namespace BBWY.Client.ViewModels.PackTask
Task.Factory.StartNew(() => SearchTaskList()); Task.Factory.StartNew(() => SearchTaskList());
} }
PackUserService packUserService;
private void CompletedPackTask(object obj) private void CompletedPackTask(object obj)
{ {
var model = (PackTaskModel)obj; var model = (PackTaskModel)obj;
@ -964,23 +968,29 @@ namespace BBWY.Client.ViewModels.PackTask
System.Windows.MessageBox.Show("请先设置打包费用!"); System.Windows.MessageBox.Show("请先设置打包费用!");
return; return;
} }
if (System.Windows.MessageBox.Show("是否完成打包?", "提示", //if (System.Windows.MessageBox.Show("是否完成打包?", "提示",
MessageBoxButton.YesNo, // MessageBoxButton.YesNo,
MessageBoxImage.Warning) != MessageBoxResult.Yes) // MessageBoxImage.Warning) != MessageBoxResult.Yes)
return; // return;
var res = packTaskService.CompletedPackTask(model.TaskId);
if (res == null)
{
return;
}
if (!res.Success)
{
System.Windows.MessageBox.Show(res.Msg);
return;
}
Task.Factory.StartNew(() => SearchTaskList()); AddOneItemWeightWindow addOneItemWeightWindow = new AddOneItemWeightWindow(ReflashTask, packUserService, model.TaskId);
addOneItemWeightWindow.ShowDialog();
//var res = packTaskService.CompletedPackTask(model.TaskId);
//if (res == null)
//{
// return;
//}
//if (!res.Success)
//{
// System.Windows.MessageBox.Show(res.Msg);
// return;
//}
//Task.Factory.StartNew(() => SearchTaskList());
} }
private void StoreGetBySelf(long taskId) private void StoreGetBySelf(long taskId)

50
BBWY.Client/ViewModels/PackerTask/PackerTaskViewModel.cs

@ -17,6 +17,7 @@ using System.Collections.Generic;
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using System.Linq; using System.Linq;
using System.Net.Mail; using System.Net.Mail;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -383,8 +384,54 @@ namespace BBWY.Client.ViewModels.PackerTask
this.globalContext = globalContext; this.globalContext = globalContext;
ShowMoreMessageCommand = new RelayCommand<long>(ShowMoreMessage); ShowMoreMessageCommand = new RelayCommand<long>(ShowMoreMessage);
PrintBarcodeCommand = new RelayCommand<BarCodeModel>(PrintBarcode);
PrintCerCommand = new RelayCommand<CertificateModel[]>(PrintCer);
}
private void PrintCer(CertificateModel[] certificateModel)
{
if (certificateModel == null)
{
new TipsWindow("该任务无设置合格证信息,无法打印!").Show();
return;
}
PrintWindow printWindow = new PrintWindow();
printWindow.CertificateModel = certificateModel;
printWindow.LoadData();
//printWindow.Datas = LoadCerLabelModels();
printWindow.ShowDialog();
}
/// <summary>
/// 打印条形码
/// </summary>
private void PrintBarcode(BarCodeModel BarCodeModel)
{
if (BarCodeModel == null)
{
new TipsWindow("该任务无设置条形码信息,无法打印!").Show();
return;
} }
PrintWindow printWindow = new PrintWindow();
printWindow.BarCodeModel = new BarCodeModel
{
Brand = BarCodeModel.Brand,
BrandName = BarCodeModel.BrandName,
LabelModel = BarCodeModel.LabelModel,
ProductNo = BarCodeModel.ProductNo,
SkuId = BarCodeModel.SkuId,
SkuName = BarCodeModel.SkuName,
ShopName = BarCodeModel.ShopName
};
printWindow.LoadData();
//printWindow.Datas = LoadBarLabelModels();
printWindow.ShowDialog();
}
private void ShowMoreMessage(long taskId) private void ShowMoreMessage(long taskId)
{ {
var model = PackerTaskModelList?.SingleOrDefault(p => p.TaskId == taskId); var model = PackerTaskModelList?.SingleOrDefault(p => p.TaskId == taskId);
@ -474,6 +521,9 @@ namespace BBWY.Client.ViewModels.PackerTask
public ICommand AppendMarkMessageCommand { get; set; } public ICommand AppendMarkMessageCommand { get; set; }
public ICommand ShowMoreMessageCommand { get; set; } public ICommand ShowMoreMessageCommand { get; set; }
public ICommand PrintBarcodeCommand { get; set; }
public ICommand PrintCerCommand { get; set; }
public void SetTaskState() public void SetTaskState()
{ {
PageIndex = 1; PageIndex = 1;

2
BBWY.Client/Views/MainWindow.xaml

@ -9,7 +9,7 @@
DataContext="{Binding Main,Source={StaticResource Locator}}" DataContext="{Binding Main,Source={StaticResource Locator}}"
mc:Ignorable="d" mc:Ignorable="d"
Style="{StaticResource bwstyle}" Style="{StaticResource bwstyle}"
Title="{Binding GlobalContext.User.Shop.ShopName,StringFormat=步步为盈 \{0\}}" Height="450" Width="800"> Title="{Binding GlobalContext.Title}" Height="450" Width="800">
<b:Interaction.Triggers> <b:Interaction.Triggers>
<b:EventTrigger EventName="Closing"> <b:EventTrigger EventName="Closing">
<b:InvokeCommandAction Command="{Binding ClosingCommand}" PassEventArgsToCommand="True"/> <b:InvokeCommandAction Command="{Binding ClosingCommand}" PassEventArgsToCommand="True"/>

4
BBWY.Client/Views/PackTask/PackDetailWindow.xaml

@ -621,8 +621,8 @@
<Run Text="{Binding PackTaskModel.PackUser}"/> <Run Text="{Binding PackTaskModel.PackUser}"/>
</TextBlock> </TextBlock>
<TextBlock Margin="0 0 0 0" Style="{StaticResource middleTextBlock}" Grid.Column="1" FontWeight="Bold"> <TextBlock Margin="0 0 0 0" Style="{StaticResource middleTextBlock}" Grid.Column="1" FontWeight="Bold">
<Run Text="包装:"/> <Run Text="包装收益:"/>
<Run Text="{Binding PackTaskModel.FeesItemResponse.PackFees,StringFormat='0.00'}"/> <Run Text="{Binding PackerFee,StringFormat='0.00'}"/>
</TextBlock> </TextBlock>
</Grid> </Grid>
<TextBlock Margin="0 0 0 0" FontSize="13" FontWeight="Bold"> <TextBlock Margin="0 0 0 0" FontSize="13" FontWeight="Bold">

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

@ -65,6 +65,8 @@ namespace BBWY.Client.Views.PackTask
serviceViewModel.OrderId = model.OrderId; serviceViewModel.OrderId = model.OrderId;
serviceViewModel.SkuId = model.SkuId; serviceViewModel.SkuId = model.SkuId;
serviceViewModel.PackUserName = model.PackUser?.Replace("\r\n", ",")?.Replace("\n", ",")?.Replace("\r", ","); serviceViewModel.PackUserName = model.PackUser?.Replace("\r\n", ",")?.Replace("\n", ",")?.Replace("\r", ",");
serviceViewModel.PackerFee = model.FeesItemResponse?.PackFees*(model.FeesItemResponse?.PackerDiscount??0.85m) ;
serviceViewModel.LoadPackDatas(); serviceViewModel.LoadPackDatas();
if (reflashWindow != null) if (reflashWindow != null)
serviceViewModel.ReflashWindow = reflashWindow; serviceViewModel.ReflashWindow = reflashWindow;
@ -151,8 +153,6 @@ namespace BBWY.Client.Views.PackTask
{ {
try try
{ {
using (HttpClient client = new HttpClient()) using (HttpClient client = new HttpClient())
{ {
// 发送 HTTP 请求并获取图片数据 // 发送 HTTP 请求并获取图片数据
@ -180,8 +180,6 @@ namespace BBWY.Client.Views.PackTask
private void DownloadImags(string url) private void DownloadImags(string url)
{ {
var client = new HttpClient(); var client = new HttpClient();
var uri = new Uri(Uri.EscapeUriString(url)); var uri = new Uri(Uri.EscapeUriString(url));
byte[] urlContents = client.GetByteArrayAsync(uri).Result; byte[] urlContents = client.GetByteArrayAsync(uri).Result;
var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); var applicationPath = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

2
BBWY.Client/Views/PackerTask/AddOneItemWeightWindow.xaml

@ -32,7 +32,7 @@
<Label HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="60" Content="单件重量:"/> <Label HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="60" Content="单件重量:"/>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<c:BTextBox Height="30" Width="150" Text="{Binding Weigth}" BorderThickness="1" /> <c:BTextBox Height="30" Width="150" Text="{Binding Weigth}" BorderThickness="1" />
<Label Content="kg" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="50" /> <Label Content="g" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Width="50" />
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Grid> </Grid>

43
BBWY.Client/Views/PackerTask/PackerPackCompletedControl.xaml

@ -432,10 +432,15 @@ TextWrapping="Wrap"
<StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}"> <StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}">
<c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0" <c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/> Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/>
<c:BButton x:Name="btn_daCer" Content="打印" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.PrintBarcodeCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}" />
</StackPanel> </StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0" <TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/> />
</StackPanel> </StackPanel>
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" > <StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="合格证:"/> <TextBlock Text="合格证:"/>
@ -448,6 +453,10 @@ TextWrapping="Wrap"
> >
<c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0" <c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/> Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/>
<c:BButton x:Name="btn_dayinCer" Content="打印" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.PrintCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}" />
</StackPanel> </StackPanel>
<TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0" <TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}" Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}"
@ -460,6 +469,40 @@ TextWrapping="Wrap"
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="条形码:"/>
<StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}">
<c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/>
</StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/>
</StackPanel>
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="合格证:"/>
<StackPanel Orientation="Horizontal"
Visibility="{Binding Cers,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}"
>
<StackPanel Orientation="Horizontal"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Collapsed:Visible}"
>
<c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/>
</StackPanel>
<TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}"
/>
</StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding Cers,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/>
</StackPanel>
</StackPanel>-->

2
BBWY.Client/Views/PackerTask/PackerTaskList.xaml

@ -12,7 +12,7 @@
DataContext="{Binding PackerTaskVM,Source={StaticResource Locator}}" DataContext="{Binding PackerTaskVM,Source={StaticResource Locator}}"
mc:Ignorable="d" Background="White" mc:Ignorable="d" Background="White"
d:DesignHeight="450" d:DesignWidth="2048" d:DesignHeight="450" d:DesignWidth="2048"
Title="TaskList"> Title="cesih">
<Page.Resources> <Page.Resources>
<Style TargetType="RadioButton"> <Style TargetType="RadioButton">

43
BBWY.Client/Views/PackerTask/PackerWaitPackageControl.xaml

@ -434,10 +434,15 @@ TextWrapping="Wrap"
<StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}"> <StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}">
<c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0" <c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/> Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/>
<c:BButton x:Name="btn_daCer" Content="打印" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.PrintBarcodeCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}" />
</StackPanel> </StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0" <TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/> />
</StackPanel> </StackPanel>
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" > <StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="合格证:"/> <TextBlock Text="合格证:"/>
@ -450,6 +455,10 @@ TextWrapping="Wrap"
> >
<c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0" <c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/> Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/>
<c:BButton x:Name="btn_dayinCer" Content="打印" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.PrintCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}" />
</StackPanel> </StackPanel>
<TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0" <TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}" Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}"
@ -462,6 +471,40 @@ TextWrapping="Wrap"
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
<!--<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="条形码:"/>
<StackPanel Orientation="Horizontal" Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}">
<c:BButton x:Name="btn_lookBarCode" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookBarCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding BarCodeDTO}"/>
</StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding BarCodeDTO,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/>
</StackPanel>
<StackPanel Margin="10,5" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left" >
<TextBlock Text="合格证:"/>
<StackPanel Orientation="Horizontal"
Visibility="{Binding Cers,Converter={StaticResource objConverter}, ConverterParameter=#null:Collapsed:Visible}"
>
<StackPanel Orientation="Horizontal"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Collapsed:Visible}"
>
<c:BButton x:Name="btn_lookCer" Content="查看" Style="{StaticResource LinkButton}" Margin="5,0,0,0"
Command="{Binding DataContext.LookCerCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" CommandParameter="{Binding Cers}"/>
</StackPanel>
<TextBlock Text="无需合格证" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding CertificatePosition,Converter={StaticResource objConverter}, ConverterParameter=无需合格证:Visible:Collapsed}"
/>
</StackPanel>
<TextBlock Text="未配置" Style="{StaticResource middleTextBlock}" Margin="5,0,0,0"
Visibility="{Binding Cers,Converter={StaticResource objConverter}, ConverterParameter=#null:Visible:Collapsed}"
/>
</StackPanel>
</StackPanel>-->

Loading…
Cancel
Save