104 changed files with 5758 additions and 1507 deletions
@ -0,0 +1,27 @@ |
|||||
|
using BBWY.Client.Models.APIModel; |
||||
|
using BBWY.Client.Models.APIModel.Request; |
||||
|
using BBWY.Common.Http; |
||||
|
using BBWY.Common.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Net.Http; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.APIServices |
||||
|
{ |
||||
|
public class DictionaryService : BaseApiService, IDenpendency |
||||
|
{ |
||||
|
public DictionaryService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ApiResponse<GetDictionaryByKeyResponse> GetDictionaryByKey(string key) |
||||
|
{ |
||||
|
return SendRequest<GetDictionaryByKeyResponse>(globalContext.QKApiHost, $"api/Dictionary/GetDictionaryByKey?key={key}", |
||||
|
null |
||||
|
, null, HttpMethod.Get); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,201 @@ |
|||||
|
using BBWY.Client.Models; |
||||
|
using BBWY.Client.Models.APIModel; |
||||
|
using BBWY.Client.Models.APIModel.Response.PackTask; |
||||
|
using BBWY.Client.Views.PackTask; |
||||
|
using BBWY.Common.Http; |
||||
|
using BBWY.Common.Models; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Net.Http; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.APIServices |
||||
|
{ |
||||
|
public class SealBoxService : BaseApiService, IDenpendency |
||||
|
{ |
||||
|
public SealBoxService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<SealBoxWaitConfigureResponse> GetSealBoxWaitConfigureList(string SkuId, string TaskId, int? PageSize = 10, int? PageIndex = 1, string SpuId = null) |
||||
|
{ |
||||
|
return SendRequest<SealBoxWaitConfigureResponse>(globalContext.QKApiHost, $"api/SealBox/GetSealBoxWaitConfigureList", |
||||
|
new |
||||
|
{ |
||||
|
ShopId = globalContext.User.Shop.ShopId.ToString(), |
||||
|
TaskId = TaskId, |
||||
|
SkuId = SkuId, |
||||
|
SpuId, |
||||
|
PageSize, |
||||
|
PageIndex, |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<SealBoxPackStateCountResponse> GetSealBoxPackStateCount() |
||||
|
{ |
||||
|
return SendRequest<SealBoxPackStateCountResponse>(globalContext.QKApiHost, $"api/SealBox/GetSealBoxPackStateCount", |
||||
|
new |
||||
|
{ |
||||
|
ShopId = globalContext.User.Shop.ShopId.ToString(), |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
public ApiResponse<bool> SetSealBoxConfigured(SetSealBoxConfiguredRequest setSealBoxConfiguredRequest) |
||||
|
{ |
||||
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/SealBox/SetSealBoxConfigured", |
||||
|
setSealBoxConfiguredRequest |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
public ApiResponse<SealBoxConfiguredResponse> GetSealBoxConfiguredList(PositionState PositionState, string SkuId, string TaskId, string shopId, int? PageSize = 10, int? PageIndex = 1, string SpuId = null) |
||||
|
{ |
||||
|
return SendRequest<SealBoxConfiguredResponse>(globalContext.QKApiHost, $"api/SealBox/GetSealBoxConfiguredList", |
||||
|
new |
||||
|
{ |
||||
|
PositionState, |
||||
|
ShopId = shopId, |
||||
|
TaskId = TaskId, |
||||
|
SkuId = SkuId, |
||||
|
SpuId, |
||||
|
PageSize, |
||||
|
PageIndex, |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<UpdateSealBoxConfiguredResponse> GetUpdateSealBoxConfigured(long SealBoxId, long[] TaskIds) |
||||
|
{ |
||||
|
return SendRequest<UpdateSealBoxConfiguredResponse>(globalContext.QKApiHost, $"api/SealBox/GetUpdateSealBoxConfigured", |
||||
|
new |
||||
|
{ |
||||
|
SealBoxId, |
||||
|
TaskIds |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<bool> BatchUpdateSealBoxConfigured(BatchUpdateSealBoxConfiguredRequest batchUpdateSealBoxConfiguredRequest) |
||||
|
{ |
||||
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/SealBox/BatchUpdateSealBoxConfigured", |
||||
|
batchUpdateSealBoxConfiguredRequest |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
public ApiResponse<GetWareSealBoxResponse> GetWareSealBoxList(string ShopName, long? TaskId, string SkuId, int? PageIndex, int? PageSize) |
||||
|
{ |
||||
|
return SendRequest<GetWareSealBoxResponse>(globalContext.QKApiHost, $"api/SealBox/GetWareSealBoxList", |
||||
|
new |
||||
|
{ |
||||
|
ShopName, |
||||
|
TaskId, |
||||
|
SkuId, |
||||
|
PageIndex, |
||||
|
PageSize |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
public ApiResponse<bool> WareCompeteSealBox(long SealBoxId, int? BoxCount) |
||||
|
{ |
||||
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/SealBox/WareCompeteSealBox", |
||||
|
new |
||||
|
{ |
||||
|
SealBoxId, |
||||
|
BoxCount |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 仓库端获取待落仓列表
|
||||
|
/// </summary>
|
||||
|
/// <param name="ShopName"></param>
|
||||
|
/// <param name="TaskId"></param>
|
||||
|
/// <param name="SkuId"></param>
|
||||
|
/// <param name="PageIndex"></param>
|
||||
|
/// <param name="PageSize"></param>
|
||||
|
/// <returns></returns>
|
||||
|
public ApiResponse<SearchWaitFallWareResponse> SearchWareFallWareConfigureList(PositionState positionState, string ShopName = null, long? TaskId = null, string SkuId = null, int PageIndex = 1 |
||||
|
, int PageSize = 10) |
||||
|
{ |
||||
|
return SendRequest<SearchWaitFallWareResponse>(globalContext.QKApiHost, $"api/SealBox/SearchWareFallWareConfigureList", |
||||
|
new |
||||
|
{ |
||||
|
ShopName, |
||||
|
TaskId, |
||||
|
SkuId, |
||||
|
PageIndex, |
||||
|
PageSize, |
||||
|
positionState |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商家端 获取待落仓列表
|
||||
|
/// </summary>
|
||||
|
/// <param name="ShopName"></param>
|
||||
|
/// <param name="TaskId"></param>
|
||||
|
/// <param name="SkuId"></param>
|
||||
|
/// <param name="PageIndex"></param>
|
||||
|
/// <param name="PageSize"></param>
|
||||
|
/// <returns></returns>
|
||||
|
public ApiResponse<SearchFallWareConfiguredResponse> SearchFallWareConfiguredList(PositionState positionState, long? TaskId = null, string SkuId = null, int PageIndex = 1 |
||||
|
, int PageSize = 10) |
||||
|
{ |
||||
|
return SendRequest<SearchFallWareConfiguredResponse>(globalContext.QKApiHost, $"api/SealBox/SearchFallWareConfiguredList", |
||||
|
new |
||||
|
{ |
||||
|
shopId = globalContext.User.Shop.ShopId.ToString(), |
||||
|
positionState, |
||||
|
TaskId, |
||||
|
SkuId, |
||||
|
PageIndex, |
||||
|
PageSize |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public ApiResponse<bool> SetFallWareConfigure(long SealBoxId, string ProductTitle, string PurchaseOrder, string PrewOrder, string WaybillNo) |
||||
|
{ |
||||
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/SealBox/SetFallWareConfigure", |
||||
|
new |
||||
|
{ |
||||
|
SealBoxId, |
||||
|
ProductTitle, |
||||
|
PurchaseOrder, |
||||
|
PrewOrder, |
||||
|
WaybillNo |
||||
|
} |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<FallWareConfigureCountResponse> GetFallWareConfigureCounts(string shopId) |
||||
|
{ |
||||
|
return SendRequest<FallWareConfigureCountResponse>(globalContext.QKApiHost, $"api/SealBox/GetFallWareConfigureCounts?shopId={shopId}", |
||||
|
null |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public ApiResponse<bool> WareCompeteFallWare(long SealBoxId) |
||||
|
{ |
||||
|
return SendRequest<bool>(globalContext.QKApiHost, $"api/SealBox/WareCompeteFallWare?SealBoxId={SealBoxId}", |
||||
|
null |
||||
|
, null, HttpMethod.Post); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,101 @@ |
|||||
|
using NPOI.SS.Formula.Functions; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Runtime.InteropServices; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
|
||||
|
namespace BBWY.Client.Helpers |
||||
|
{ |
||||
|
public class UnitConverHelper |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
int dpiX = 0; |
||||
|
int dpiY = 0; |
||||
|
|
||||
|
|
||||
|
public UnitConverHelper() |
||||
|
{ |
||||
|
|
||||
|
GetDpi(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
private void GetDpi() |
||||
|
{ |
||||
|
var hDc = GetDC(IntPtr.Zero); |
||||
|
|
||||
|
dpiX = GetDeviceCaps(hDc, LOGPIXELSX); |
||||
|
dpiY = GetDeviceCaps(hDc, LOGPIXELSY); |
||||
|
ReleaseDC(IntPtr.Zero, hDc); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 毫米转像素(获取打印的宽和高)
|
||||
|
/// </summary>
|
||||
|
/// <param name="mm"></param>
|
||||
|
/// <returns></returns>
|
||||
|
public PrintPx MmToPx(double mWidth, double mHeight) |
||||
|
{ |
||||
|
if(dpiX<=0||dpiY<=0) GetDpi(); |
||||
|
|
||||
|
return new PrintPx |
||||
|
{ |
||||
|
Width = mWidth * dpiX / 25.4, |
||||
|
Height = mHeight * dpiY / 25.4, |
||||
|
|
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 像素转毫米
|
||||
|
/// </summary>
|
||||
|
/// <param name="pxWidth"></param>
|
||||
|
/// <param name="pxHeight"></param>
|
||||
|
/// <returns></returns>
|
||||
|
public PrintPx PxToMm(double pxWidth, double pxHeight) |
||||
|
{ |
||||
|
if (dpiX <= 0 || dpiY <= 0) GetDpi(); |
||||
|
return new PrintPx |
||||
|
{ |
||||
|
Width = pxWidth * 25.4 / dpiX, |
||||
|
Height = pxHeight * 25.4 / dpiY, |
||||
|
|
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
private const int LOGPIXELSX = 88; |
||||
|
private const int LOGPIXELSY = 90; |
||||
|
|
||||
|
[DllImport("gdi32.dll")] |
||||
|
private static extern int GetDeviceCaps(IntPtr hdc, int index); |
||||
|
|
||||
|
[DllImport("user32.dll")] |
||||
|
private static extern IntPtr GetDC(IntPtr hWnd); |
||||
|
|
||||
|
[DllImport("user32.dll")] |
||||
|
private static extern int ReleaseDC(IntPtr hWnd, IntPtr hDc); |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public class PrintPx |
||||
|
{ |
||||
|
|
||||
|
public double Width { get; set; } |
||||
|
|
||||
|
public double Height { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class BatchUpdateSealBoxConfiguredRequest |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 判断当前的封箱任务是否 是带封箱状态
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
public string ShopId { get; set; } |
||||
|
|
||||
|
public IList<UpdateSealBoxConfiguredDataRequest> UpdateSealBoxConfiguredDatas { get; set; } |
||||
|
|
||||
|
} |
||||
|
public class UpdateSealBoxConfiguredDataRequest |
||||
|
{ |
||||
|
public long TaskId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// sku总量任务量
|
||||
|
/// </summary>
|
||||
|
public int SkuCount { get; set; } |
||||
|
|
||||
|
public IList<SealBoxConfiguredWareHourseRequest> SealBoxConfiguredWareHourseRequests { get; set; } |
||||
|
} |
||||
|
|
||||
|
public class SealBoxConfiguredWareHourseRequest : WareHourseData |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
///待封箱 = 0, 待落仓 = 1, 待完结 = 2
|
||||
|
/// </summary>
|
||||
|
public PositionState? WareState { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,61 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SetSealBoxConfiguredRequest |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 店铺id
|
||||
|
/// </summary>
|
||||
|
public string ShopId { get; set; } |
||||
|
|
||||
|
public IList<SetSealBoxConfiguredData> SetSealBoxConfiguredDatas { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
public class SetSealBoxConfiguredData |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 任务Id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// sku
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// sku总量任务量(校对)
|
||||
|
/// </summary>
|
||||
|
public int TotalCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库去向
|
||||
|
/// </summary>
|
||||
|
public IList<WareHourseData> WareHourseDatas { get; set; } |
||||
|
|
||||
|
} |
||||
|
public class WareHourseData |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 仓库id
|
||||
|
/// </summary>
|
||||
|
public string WareId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库名称
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 数量
|
||||
|
/// </summary>
|
||||
|
public int Count { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 入仓类型 (京仓=0 云仓=1,商家仓=2,聚水潭=3)
|
||||
|
/// </summary>
|
||||
|
public WareType WareType { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class GetDictionaryByKeyResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 字典类型
|
||||
|
/// </summary>
|
||||
|
public string Key { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 字典类型名称
|
||||
|
/// </summary>
|
||||
|
public string KeyName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 字典值列表
|
||||
|
/// </summary>
|
||||
|
public IList<DicValue> DicValueList { get; set; } |
||||
|
} |
||||
|
|
||||
|
public class DicValue |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 字典值
|
||||
|
/// </summary>
|
||||
|
public string Value { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 字典值标签
|
||||
|
/// </summary>
|
||||
|
public string ValueName { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class FallWareConfigureCountResponse |
||||
|
{ |
||||
|
public int FallWareWaitConfigureCount { get; set; } |
||||
|
|
||||
|
public int FallWareConfiguredCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,13 @@ |
|||||
|
using BBWY.Client.Models.FallWare; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SearchFallWareConfiguredResponse |
||||
|
{ |
||||
|
public IList<FallWareConfiguredModel> FallWareConfiguredModels { get; set; } |
||||
|
public int TotalCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,156 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SearchWaitFallWareResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 数量
|
||||
|
/// </summary>
|
||||
|
public int TotalCount { get; set; } |
||||
|
|
||||
|
|
||||
|
public IList<WaitFallWareModelResponse> WaitFallWareList { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
public class WaitFallWareModelResponse |
||||
|
{ /// <summary>
|
||||
|
/// 仓库类型
|
||||
|
/// </summary>
|
||||
|
public WareType WareType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺Id
|
||||
|
/// </summary>
|
||||
|
public string ShopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库Id(同一个店铺 唯一)
|
||||
|
/// </summary>
|
||||
|
public string WareId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺名称
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库名
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队名称
|
||||
|
/// </summary>
|
||||
|
public string DepartmentName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对接人(同团队下)
|
||||
|
/// </summary>
|
||||
|
public List<string> AcceptUserNames { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 封箱sku列表
|
||||
|
/// </summary>
|
||||
|
public List<SealBoxSku> SealBoxSkus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 封箱的箱子数量
|
||||
|
/// </summary>
|
||||
|
public int SealBoxCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 封箱id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 落仓材料
|
||||
|
/// </summary>
|
||||
|
public BoxConfigureData BoxConfigureData { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 商品数量(封箱sku任务数总和)
|
||||
|
/// </summary>
|
||||
|
public int ProductCount { get; set; } |
||||
|
} |
||||
|
|
||||
|
public class WaitFallWareModel |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 仓库类型
|
||||
|
/// </summary>
|
||||
|
public WareType WareType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺Id
|
||||
|
/// </summary>
|
||||
|
public string ShopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库Id(同一个店铺 唯一)
|
||||
|
/// </summary>
|
||||
|
public string WareId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺名称
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库名
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队名称
|
||||
|
/// </summary>
|
||||
|
public string DepartmentName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对接人(同团队下)
|
||||
|
/// </summary>
|
||||
|
public string AcceptUserNames { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 封箱sku列表
|
||||
|
/// </summary>
|
||||
|
public List<SealBoxSku> SealBoxSkus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 封箱的箱子数量
|
||||
|
/// </summary>
|
||||
|
public int SealBoxCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 封箱id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 落仓材料
|
||||
|
/// </summary>
|
||||
|
public BoxConfigureData BoxConfigureData { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 商品数量(封箱sku任务数总和)
|
||||
|
/// </summary>
|
||||
|
public int ProductCount { get; set; } |
||||
|
} |
||||
|
public class BoxConfigureData |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 采购单号
|
||||
|
/// </summary>
|
||||
|
public string PurchaseOrder { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 预约单号
|
||||
|
/// </summary>
|
||||
|
public string PrewOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 运单号
|
||||
|
/// </summary>
|
||||
|
public string WaybillNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品名称
|
||||
|
/// </summary>
|
||||
|
public string ProductTitle { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class GetWareSealBoxResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 数量
|
||||
|
/// </summary>
|
||||
|
public int TotalCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分箱列表
|
||||
|
/// </summary>
|
||||
|
public List<WareSealBoxData> WaitSealBoxModels { get; set; } |
||||
|
} |
||||
|
|
||||
|
public class WareSealBoxData |
||||
|
{ |
||||
|
public long SealBoxId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺Id
|
||||
|
/// </summary>
|
||||
|
public string ShopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库Id(同一个店铺 唯一)
|
||||
|
/// </summary>
|
||||
|
public string WareId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 店铺名称
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库名
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 团队名称
|
||||
|
/// </summary>
|
||||
|
public string DepartmentName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 对接人(同团队下)
|
||||
|
/// </summary>
|
||||
|
public List<string> AcceptUserNames { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 封箱sku列表
|
||||
|
/// </summary>
|
||||
|
public List<WareSealBoxSku> SealBoxSkus { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
public class WareSealBoxSku |
||||
|
{ |
||||
|
|
||||
|
public TaskState TaskState { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 任务Id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 图片链接
|
||||
|
/// </summary>
|
||||
|
public string Logo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// skuid
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku标题
|
||||
|
/// </summary>
|
||||
|
public string SkuTitle { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 品名
|
||||
|
/// </summary>
|
||||
|
public string BrandName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 货号
|
||||
|
/// </summary>
|
||||
|
public string ProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// (分箱的仓库的sku产品数量)
|
||||
|
/// </summary>
|
||||
|
public int WareHourseSkuCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SealBoxConfiguredResponse |
||||
|
{ |
||||
|
public int TotalCount { get; set; } |
||||
|
|
||||
|
public IList<SealBoxConfiguredModel> SealBoxConfiguredModels { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,18 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SealBoxPackStateCountResponse |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 封箱 待配置数
|
||||
|
/// </summary>
|
||||
|
public int SealBoxWaitConfigureCount { get; set; } |
||||
|
/// <summary>
|
||||
|
///封箱 已配置数
|
||||
|
/// </summary>
|
||||
|
public int SealBoxConfiguredCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,16 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class SealBoxWaitConfigureResponse |
||||
|
{ |
||||
|
public int TotalCount { get; set; } |
||||
|
|
||||
|
public IList<SealBoxWaitConfigureModel> SealBoxWaitConfigureModels { get; set; } |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,12 @@ |
|||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.APIModel |
||||
|
{ |
||||
|
public class UpdateSealBoxConfiguredResponse |
||||
|
{ |
||||
|
public IList<SealBoxConfigureModel> UpdateSealBoxConfiguredTaskDatas { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,44 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.FallWare |
||||
|
{ |
||||
|
public class CloudWareBoxModel |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 箱子id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// CLPS采购单号
|
||||
|
/// </summary>
|
||||
|
public string CLPSPurchaseOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 预约单号
|
||||
|
/// </summary>
|
||||
|
public string PrewOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 目的城市-仓库
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子数
|
||||
|
/// </summary>
|
||||
|
public int BoxCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品数量
|
||||
|
/// </summary>
|
||||
|
public int ProductCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.FallWare |
||||
|
{ |
||||
|
public class FallWareConfiguredModel |
||||
|
{ /// <summary>
|
||||
|
/// 商品名称
|
||||
|
/// </summary>
|
||||
|
public string ProductTitle { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 采购单号
|
||||
|
/// </summary>
|
||||
|
public string PurchaseOrder { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 预约单号
|
||||
|
/// </summary>
|
||||
|
public string PrewOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 运单号
|
||||
|
/// </summary>
|
||||
|
public string WaybillNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库类型
|
||||
|
/// </summary>
|
||||
|
public WareType? WareType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 封箱id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库名称
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子数
|
||||
|
/// </summary>
|
||||
|
public int? BoxCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子总数量
|
||||
|
/// </summary>
|
||||
|
public int SealBoxTotalCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库任务列表
|
||||
|
/// </summary>
|
||||
|
public IList<FallWareConfigureTask> SealBoxConfigureTasks { get; set; } |
||||
|
} |
||||
|
public class FallWareConfigureTask : SealBoxConfigureTask |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Collections.ObjectModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.FallWare |
||||
|
{ |
||||
|
public class FallWareWaitConfigureModel |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 封箱id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子总数量
|
||||
|
/// </summary>
|
||||
|
public int SealBoxTotalCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库名称
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库类型
|
||||
|
/// </summary>
|
||||
|
public WareType? WareType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库任务列表
|
||||
|
/// </summary>
|
||||
|
public ObservableCollection<SealBoxConfigureTask> SealBoxConfigureTasks { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,53 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.FallWare |
||||
|
{ |
||||
|
public class JDWareBoxModel |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string ShopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 采购单号
|
||||
|
/// </summary>
|
||||
|
public string PurchaseOrder { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 预约单号
|
||||
|
/// </summary>
|
||||
|
public string PrewOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 运单号
|
||||
|
/// </summary>
|
||||
|
public string WaybillNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 目的城市-仓库
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品名称
|
||||
|
/// </summary>
|
||||
|
public string ProductTitle { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子数
|
||||
|
/// </summary>
|
||||
|
public int BoxCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 商品数量
|
||||
|
/// </summary>
|
||||
|
public int ProductCount { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Collections.ObjectModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.SealBox |
||||
|
{ |
||||
|
public class SealBoxConfigureModel : NotifyObject |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// skuid
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 任务id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku任务数
|
||||
|
/// </summary>
|
||||
|
public int SkuCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// sku图片
|
||||
|
/// </summary>
|
||||
|
public string Logo { get; set; } |
||||
|
|
||||
|
private int splitCount; |
||||
|
/// <summary>
|
||||
|
/// 份数
|
||||
|
/// </summary>
|
||||
|
public int SplitCount { get=>splitCount; set {Set(ref splitCount,value); } } |
||||
|
|
||||
|
private ObservableCollection<SealBoxConfigureWareHourseModel> wareHourseDatas = new ObservableCollection<SealBoxConfigureWareHourseModel>(); |
||||
|
/// <summary>
|
||||
|
/// 装箱配置列表
|
||||
|
/// </summary>
|
||||
|
public ObservableCollection<SealBoxConfigureWareHourseModel> WareHourseDatas { get => wareHourseDatas; set { Set(ref wareHourseDatas, value); } } |
||||
|
|
||||
|
} |
||||
|
/// <summary>
|
||||
|
/// 封箱配置 装箱配置
|
||||
|
/// </summary>
|
||||
|
public class SealBoxConfigureWareHourseModel : NotifyObject |
||||
|
{ |
||||
|
private int index; |
||||
|
|
||||
|
public int Index { get => index; set { Set(ref index, value); } } |
||||
|
|
||||
|
private int count; |
||||
|
|
||||
|
public int Count { get=>count; set {Set(ref count,value); } } |
||||
|
|
||||
|
private string wareId; |
||||
|
|
||||
|
public string WareId { get => wareId; set { Set(ref wareId, value); } } |
||||
|
|
||||
|
|
||||
|
private string wareName; |
||||
|
|
||||
|
public string WareName { get => wareName; set { Set(ref wareName, value); } } |
||||
|
|
||||
|
|
||||
|
private WareType? wareType; |
||||
|
|
||||
|
public WareType? WareType { get => wareType; set { Set(ref wareType, value); } } |
||||
|
|
||||
|
/// <summary>
|
||||
|
///待封箱 = 0, 待落仓 = 1, 待完结 = 2
|
||||
|
/// </summary>
|
||||
|
public PositionState? WareState { get; set; } |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,60 @@ |
|||||
|
using BBWY.Client.Models.APIModel; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Collections.ObjectModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.SealBox |
||||
|
{ |
||||
|
public class SealBoxConfiguredModel:NotifyObject |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 封箱id
|
||||
|
/// </summary>
|
||||
|
public long SealBoxId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 箱子总数量
|
||||
|
/// </summary>
|
||||
|
public int SealBoxTotalCount { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库名称
|
||||
|
/// </summary>
|
||||
|
public string WareName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库类型
|
||||
|
/// </summary>
|
||||
|
public WareType? WareType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 仓库任务列表
|
||||
|
/// </summary>
|
||||
|
public ObservableCollection<SealBoxConfigureTask> SealBoxConfigureTasks { get; set; } |
||||
|
} |
||||
|
public class SealBoxConfigureTask:NotifyObject |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// skuid
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 任务id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 仓库sku任务数
|
||||
|
/// </summary>
|
||||
|
public int WareHourseCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku名称
|
||||
|
/// </summary>
|
||||
|
public string SkuName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku图片
|
||||
|
/// </summary>
|
||||
|
public string Logo { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,39 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models |
||||
|
{ |
||||
|
public class SealBoxWaitConfigureModel : NotifyObject |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// skuid
|
||||
|
/// </summary>
|
||||
|
public string SkuId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 任务id
|
||||
|
/// </summary>
|
||||
|
public long TaskId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku任务数
|
||||
|
/// </summary>
|
||||
|
public int SkuCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku名称
|
||||
|
/// </summary>
|
||||
|
public string SkuName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// sku图片
|
||||
|
/// </summary>
|
||||
|
public string Logo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 预计完成时间
|
||||
|
/// </summary>
|
||||
|
public DateTime? PreCompletedTime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 任务状态
|
||||
|
/// </summary>
|
||||
|
public TaskState? TaskState { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
using BBWY.Client.Models.APIModel; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Collections.ObjectModel; |
||||
|
using System.Text; |
||||
|
|
||||
|
namespace BBWY.Client.Models.SealBox |
||||
|
{ |
||||
|
public class UpdateSealBoxConfiguredTaskModel:NotifyObject |
||||
|
{ |
||||
|
public string Logo { get; set; } |
||||
|
|
||||
|
public string SkuId { get; set; } |
||||
|
|
||||
|
public long TaskId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 采购数量
|
||||
|
/// </summary>
|
||||
|
public int SkuCount { get; set; } |
||||
|
public string SkuName { get; set; } |
||||
|
|
||||
|
private int taskWareCount; |
||||
|
/// <summary>
|
||||
|
/// 份数
|
||||
|
/// </summary>
|
||||
|
public int TaskWareCount { get => taskWareCount; set { Set(ref taskWareCount, value); } } |
||||
|
|
||||
|
|
||||
|
|
||||
|
private ObservableCollection<UpdateSealBoxWareHourseModel> wareHourseDatas; |
||||
|
|
||||
|
public ObservableCollection<UpdateSealBoxWareHourseModel> WareHourseDatas { get => wareHourseDatas; set { Set(ref wareHourseDatas, value); } } |
||||
|
} |
||||
|
public class UpdateSealBoxWareHourseModel:WareHourseData |
||||
|
{ |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
///待封箱 = 0, 待落仓 = 1, 待完结 = 2
|
||||
|
/// </summary>
|
||||
|
public PositionState? WareState { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,304 @@ |
|||||
|
using AutoMapper.Internal; |
||||
|
using BBWY.Client.APIServices; |
||||
|
using BBWY.Client.Models; |
||||
|
using BBWY.Client.Models.APIModel; |
||||
|
using BBWY.Client.Models.QiKu; |
||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using BBWY.Client.Views.BatchPurchase; |
||||
|
using BBWY.Controls; |
||||
|
using GalaSoft.MvvmLight.Command; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Collections.ObjectModel; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Windows; |
||||
|
using System.Windows.Input; |
||||
|
|
||||
|
namespace BBWY.Client.ViewModels.SealBox |
||||
|
{ |
||||
|
public class SealBoxConfigureViewModel : BaseVM |
||||
|
{ |
||||
|
private IList<StoreResponse> storeList;//仓库列表
|
||||
|
private LogisticsService logisticsService; |
||||
|
private SealBoxService sealBoxService; |
||||
|
private GlobalContext globalContext; |
||||
|
private ObservableCollection<SealBoxConfigureModel> sealBoxConfigureModelList; |
||||
|
|
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分箱配置列表
|
||||
|
/// </summary>
|
||||
|
public ObservableCollection<SealBoxConfigureModel> SealBoxConfigureModelList { get => sealBoxConfigureModelList; set { Set(ref sealBoxConfigureModelList, value); } } |
||||
|
public SealBoxConfigureViewModel(LogisticsService logisticsService, SealBoxService sealBoxService, GlobalContext globalContext) |
||||
|
{ |
||||
|
this.logisticsService = logisticsService; |
||||
|
this.sealBoxService = sealBoxService; |
||||
|
SetSplitCountCommand = new RelayCommand<SealBoxConfigureModel>(SetSplitCount); |
||||
|
SetPackCountAndStoreCommand = new RelayCommand<object>(SetPackCountAndStore); |
||||
|
SaveCommand = new RelayCommand<object>(Save); |
||||
|
SealBoxConfigureModelList = new ObservableCollection<SealBoxConfigureModel>(); |
||||
|
this.globalContext = globalContext; |
||||
|
} |
||||
|
|
||||
|
private long sealBoxId; |
||||
|
public long SealBoxId { get => sealBoxId; set { Set(ref sealBoxId, value); } } |
||||
|
|
||||
|
public ICommand SetSplitCountCommand { get; set; } |
||||
|
|
||||
|
public ICommand SetPackCountAndStoreCommand { get; set; } |
||||
|
|
||||
|
public ICommand SaveCommand { get; set; } |
||||
|
|
||||
|
private void SetSplitCount(SealBoxConfigureModel sealBoxConfigureModel) |
||||
|
{ |
||||
|
sealBoxConfigureModel.WareHourseDatas.Where(w => w.WareState == null || w.WareState == PositionState.待封箱).ToList().ForEach( |
||||
|
s => sealBoxConfigureModel.WareHourseDatas.Remove(s) |
||||
|
|
||||
|
); |
||||
|
var otherCount = sealBoxConfigureModel.WareHourseDatas.Count(); |
||||
|
if (sealBoxConfigureModel.SplitCount <= 0 || sealBoxConfigureModel.SplitCount < otherCount) |
||||
|
{ |
||||
|
MessageBox.Show("份数不正确"); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
int resetIndex = 1; |
||||
|
foreach (var item in sealBoxConfigureModel.WareHourseDatas) |
||||
|
{ |
||||
|
item.Index = resetIndex; |
||||
|
resetIndex++; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
for (var i = 1 + otherCount; i <= sealBoxConfigureModel.SplitCount; i++) |
||||
|
{ |
||||
|
sealBoxConfigureModel.WareHourseDatas.Add(new SealBoxConfigureWareHourseModel() |
||||
|
{ |
||||
|
Index = i, |
||||
|
Count = 0 |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
private StoreResponse store; |
||||
|
private void SetPackCountAndStore(object obj) |
||||
|
{ |
||||
|
|
||||
|
var sealBoxConfigureWareHourseModel = obj as SealBoxConfigureWareHourseModel; |
||||
|
if (storeList == null) |
||||
|
{ |
||||
|
var response = logisticsService.GetStoreList(); |
||||
|
if (!response.Success) |
||||
|
{ |
||||
|
MessageBox.Show(response.Msg, "获取仓库"); |
||||
|
return; |
||||
|
} |
||||
|
storeList = response.Data.Where(s => s.Status == StockStatus.使用).ToArray(); |
||||
|
} |
||||
|
if (store == null) |
||||
|
{ |
||||
|
if (sealBoxConfigureWareHourseModel != null) |
||||
|
store = new StoreResponse |
||||
|
{ |
||||
|
Id = sealBoxConfigureWareHourseModel.WareId, |
||||
|
Name = sealBoxConfigureWareHourseModel.WareName, |
||||
|
Type = ToStockType(sealBoxConfigureWareHourseModel.WareType), |
||||
|
Status = StockStatus.使用 |
||||
|
}; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
var w = new PackSkuSplitCountAndStoreWindow(sealBoxConfigureWareHourseModel.Count, store, storeList, sealBoxConfigureWareHourseModel.WareType == WareType.聚水潭齐越仓); |
||||
|
if (w.ShowDialog() == true) |
||||
|
{ |
||||
|
store = w.Store; |
||||
|
sealBoxConfigureWareHourseModel.Count = w.Quantity; |
||||
|
IsJST = w.IsJST; |
||||
|
sealBoxConfigureWareHourseModel.WareType = w.IsJST ? WareType.聚水潭齐越仓 : ToWareType(w.Store.Type); |
||||
|
sealBoxConfigureWareHourseModel.WareId = w.IsJST ? "qiyuejushuitan" : w.Store.Id; |
||||
|
sealBoxConfigureWareHourseModel.WareName = w.IsJST ? "齐越聚水潭" : w.Store.Name; |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否聚水潭
|
||||
|
/// </summary>
|
||||
|
public bool IsJST { get; set; } |
||||
|
|
||||
|
private WareType ToWareType(StockType stockType) |
||||
|
{ |
||||
|
switch (stockType) |
||||
|
{ |
||||
|
case StockType.商家仓: |
||||
|
return WareType.商家仓; |
||||
|
break; |
||||
|
case StockType.京仓: |
||||
|
return WareType.京仓; |
||||
|
break; |
||||
|
case StockType.云仓: |
||||
|
return WareType.云仓; |
||||
|
break; |
||||
|
default: |
||||
|
break; |
||||
|
} |
||||
|
return WareType.聚水潭齐越仓; |
||||
|
} |
||||
|
|
||||
|
private StockType ToStockType(WareType? wareType) |
||||
|
{ |
||||
|
switch (wareType) |
||||
|
{ |
||||
|
case WareType.京仓: |
||||
|
return StockType.京仓; |
||||
|
break; |
||||
|
case WareType.云仓: |
||||
|
return StockType.云仓; |
||||
|
break; |
||||
|
case WareType.商家仓: |
||||
|
return StockType.商家仓; |
||||
|
break; |
||||
|
case WareType.聚水潭齐越仓: |
||||
|
break; |
||||
|
default: |
||||
|
break; |
||||
|
} |
||||
|
|
||||
|
return StockType.京仓; |
||||
|
} |
||||
|
|
||||
|
private void Save(object obj) |
||||
|
{ |
||||
|
|
||||
|
if (SealBoxId <= 0)//设置分箱
|
||||
|
{ |
||||
|
SetSealBoxConfiguredRequest setSealBoxConfiguredRequest = new SetSealBoxConfiguredRequest(); |
||||
|
setSealBoxConfiguredRequest.ShopId = globalContext.User.Shop.ShopId.ToString(); |
||||
|
IList<SetSealBoxConfiguredData> SetSealBoxConfiguredDatas = new List<SetSealBoxConfiguredData>(); |
||||
|
foreach (var sealBoxConfigureModel in SealBoxConfigureModelList) |
||||
|
{ |
||||
|
////todo: 到分箱界面判断
|
||||
|
//if (sealBoxConfigureModel.WareHourseDatas.Select(s => s.WareId).Distinct().Count() != sealBoxConfigureModel.WareHourseDatas.Count())
|
||||
|
//{
|
||||
|
// MessageBox.Show($"任务id:{sealBoxConfigureModel.TaskId} ,分箱出现重复仓库,请重新设置!");
|
||||
|
// return;
|
||||
|
//}
|
||||
|
//判断任务数量与分箱数量总和是否相等
|
||||
|
if (sealBoxConfigureModel.SkuCount != sealBoxConfigureModel.WareHourseDatas.Select(s => s.Count).Sum()) |
||||
|
{ |
||||
|
MessageBox.Show($"任务id:{sealBoxConfigureModel.TaskId}中,采购数量:{sealBoxConfigureModel.SkuCount} 不等于 分箱总数量:{sealBoxConfigureModel.WareHourseDatas.Select(s => s.Count).Sum()}"); |
||||
|
return; |
||||
|
} |
||||
|
SetSealBoxConfiguredDatas.Add(new SetSealBoxConfiguredData |
||||
|
{ |
||||
|
SkuId = sealBoxConfigureModel.SkuId, |
||||
|
TaskId = sealBoxConfigureModel.TaskId, |
||||
|
TotalCount = sealBoxConfigureModel.SkuCount, |
||||
|
WareHourseDatas = sealBoxConfigureModel.WareHourseDatas.Select(x => new WareHourseData |
||||
|
{ |
||||
|
Count = x.Count, |
||||
|
WareId = x.WareId, |
||||
|
WareName = x.WareName, |
||||
|
WareType = x.WareType.Value, |
||||
|
}).ToList(), |
||||
|
}); |
||||
|
} |
||||
|
setSealBoxConfiguredRequest.SetSealBoxConfiguredDatas = SetSealBoxConfiguredDatas; |
||||
|
var setSealBoxRes = sealBoxService.SetSealBoxConfigured(setSealBoxConfiguredRequest); |
||||
|
if (setSealBoxRes == null) |
||||
|
{ |
||||
|
MessageBox.Show("网络异常"); |
||||
|
return; |
||||
|
} |
||||
|
if (!setSealBoxRes.Success || setSealBoxRes.Data == null || !setSealBoxRes.Data) |
||||
|
{ |
||||
|
MessageBox.Show(setSealBoxRes.Msg); |
||||
|
return; |
||||
|
} |
||||
|
if (ReflashWindow != null) ReflashWindow(); |
||||
|
|
||||
|
var window = obj as BWindow; |
||||
|
window.Close(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
if (SealBoxId > 0)//修改分箱
|
||||
|
{ |
||||
|
BatchUpdateSealBoxConfiguredRequest res = new BatchUpdateSealBoxConfiguredRequest() |
||||
|
{ |
||||
|
|
||||
|
SealBoxId = SealBoxId, |
||||
|
ShopId = globalContext.User.Shop.ShopId.ToString() |
||||
|
}; |
||||
|
|
||||
|
IList<UpdateSealBoxConfiguredDataRequest> UpdateSealBoxConfiguredDatas = new List<UpdateSealBoxConfiguredDataRequest>(); |
||||
|
foreach (var sealBoxConfigureModel in SealBoxConfigureModelList) |
||||
|
{ |
||||
|
|
||||
|
////todo: 到分箱界面判断
|
||||
|
//if (sealBoxConfigureModel.WareHourseDatas.Select(s => s.WareId).Distinct().Count() != sealBoxConfigureModel.WareHourseDatas.Count())
|
||||
|
//{
|
||||
|
// MessageBox.Show($"任务id:{sealBoxConfigureModel.TaskId} ,分箱出现重复仓库,请重新设置!");
|
||||
|
// return;
|
||||
|
//}
|
||||
|
//判断任务数量与分箱数量总和是否相等
|
||||
|
if (sealBoxConfigureModel.SkuCount != sealBoxConfigureModel.WareHourseDatas.Select(s => s.Count).Sum()) |
||||
|
{ |
||||
|
MessageBox.Show($"任务id:{sealBoxConfigureModel.TaskId} 中,采购数量:{sealBoxConfigureModel.SkuCount} 不等于 分箱总数量:{sealBoxConfigureModel.WareHourseDatas.Select(s => s.Count).Sum()}"); |
||||
|
return; |
||||
|
} |
||||
|
UpdateSealBoxConfiguredDatas.Add(new UpdateSealBoxConfiguredDataRequest |
||||
|
{ |
||||
|
|
||||
|
TaskId = sealBoxConfigureModel.TaskId, |
||||
|
SkuCount = sealBoxConfigureModel.SkuCount, |
||||
|
SealBoxConfiguredWareHourseRequests = sealBoxConfigureModel.WareHourseDatas.Select(x => new SealBoxConfiguredWareHourseRequest |
||||
|
{ |
||||
|
Count = x.Count, |
||||
|
WareId = x.WareId, |
||||
|
WareName = x.WareName, |
||||
|
WareType = x.WareType.Value, |
||||
|
WareState = x.WareState, |
||||
|
|
||||
|
}).ToList(), |
||||
|
}); |
||||
|
} |
||||
|
res.UpdateSealBoxConfiguredDatas = UpdateSealBoxConfiguredDatas; |
||||
|
|
||||
|
|
||||
|
var setSealBoxRes = sealBoxService.BatchUpdateSealBoxConfigured(res); |
||||
|
if (setSealBoxRes == null) |
||||
|
{ |
||||
|
MessageBox.Show("网络异常"); |
||||
|
return; |
||||
|
} |
||||
|
if (!setSealBoxRes.Success || setSealBoxRes.Data == null || !setSealBoxRes.Data) |
||||
|
{ |
||||
|
MessageBox.Show(setSealBoxRes.Msg); |
||||
|
return; |
||||
|
} |
||||
|
if (ReflashWindow != null) ReflashWindow(); |
||||
|
var window = obj as BWindow; |
||||
|
window.Close(); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
public Action ReflashWindow { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,250 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.FallWare.FallWareConfiguredControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
|
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="任务信息" Grid.Column="1" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="采购单号" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="预约单号" Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="操作" Grid.Column="4" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text=" " Grid.Column="5" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
|
||||
|
<!--<Border Height="1" VerticalAlignment="Top" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="6"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding FallWareConfiguredList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="68"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition MinHeight="68"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" > |
||||
|
<TextBlock VerticalAlignment="Center" Text="仓库:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding WareName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding WareName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
</StackPanel> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding SealBoxTotalCount}"/> |
||||
|
</Grid> |
||||
|
<!--<Grid Grid.Column="2"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="修改"/> |
||||
|
</Grid>--> |
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="150"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<ListBox Name="listbox_orerSku" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="62"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="48" DecodePixelWidth="48" |
||||
|
VerticalAlignment="Top" Margin="14,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="SkuId"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical" Margin="8,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="任务ID:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<ListBox Grid.Column="1" Name="listbox_skuCount" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Grid.Column="1" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding WareHourseCount}"/> |
||||
|
</Grid> |
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
<Grid Grid.Column="2"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding PurchaseOrder}"/> |
||||
|
</Grid> |
||||
|
<Grid Grid.Column="3"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding PrewOrder}"/> |
||||
|
</Grid> |
||||
|
<Grid Grid.Column="4"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="修改" Command="{Binding DataContext.SetFallWareConfiguredCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" CommandParameter="{Binding}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
|
||||
|
<Grid Grid.Column="5" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="0 0 2 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="0 0 1 0"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.FallWare |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// FallWareConfiguredControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class FallWareConfiguredControl : UserControl |
||||
|
{ |
||||
|
public FallWareConfiguredControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,238 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.FallWare.FallWareWaitConfigureControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
|
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="任务信息" Grid.Column="1" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
|
||||
|
<TextBlock Text="操作" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text=" " Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
|
||||
|
<!--<Border Height="1" VerticalAlignment="Top" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="6"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding FallWareWaitConfigureList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="68"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition MinHeight="68"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" > |
||||
|
<TextBlock VerticalAlignment="Center" Text="仓库:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding WareName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding WareName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
</StackPanel> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding SealBoxTotalCount}"/> |
||||
|
</Grid> |
||||
|
<!--<Grid Grid.Column="2"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="修改"/> |
||||
|
</Grid>--> |
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<ListBox Name="listbox_orerSku" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="62"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="48" DecodePixelWidth="48" |
||||
|
VerticalAlignment="Top" Margin="14,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="SkuId"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical" Margin="8,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="任务ID:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<ListBox Grid.Column="1" Name="listbox_skuCount" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Grid.Column="1" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding WareHourseCount}"/> |
||||
|
</Grid> |
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
<Grid Grid.Column="2"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="设置" Command="{Binding DataContext.SetFallWareConfiguredCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" CommandParameter="{Binding}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
|
||||
|
<Grid Grid.Column="3" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="0 0 2 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="0 0 1 0"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
||||
|
|
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.FallWare |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// FallWareWaitConfigureControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class FallWareWaitConfigureControl : UserControl |
||||
|
{ |
||||
|
public FallWareWaitConfigureControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,105 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.FallWare.SetCloudWareBoxWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
|
||||
|
WindowStartupLocation="CenterScreen" |
||||
|
CloseButtonVisibility="Visible" |
||||
|
CloseButtonColor="{StaticResource WindowButtonColor}" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Width="450" Height="330" |
||||
|
RightButtonGroupMargin="0,5,5,0"> |
||||
|
<!--CloseButtonColor="{StaticResource WindowButtonColor}" --> |
||||
|
<c:BWindow.Resources> |
||||
|
<ResourceDictionary> |
||||
|
|
||||
|
<Style x:Key="middleTextBox" TargetType="TextBox"> |
||||
|
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
||||
|
<Setter Property="Margin" Value="1"/> |
||||
|
|
||||
|
</Style> |
||||
|
|
||||
|
</ResourceDictionary> |
||||
|
</c:BWindow.Resources> |
||||
|
<Grid> |
||||
|
|
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="39"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="36"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="云仓箱唛" FontSize="16" HorizontalAlignment="Left" Margin="10 0 0 0" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="1" Margin="1 0 1 1" Name="jd_box"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
|
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" VerticalAlignment="Top" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="1" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="2" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="3" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="4" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="5" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="6" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
|
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="0" HorizontalAlignment="Left" Grid.RowSpan="7"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="0" HorizontalAlignment="Right" Grid.RowSpan="7"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="3" HorizontalAlignment="Right" Grid.RowSpan="7"/> |
||||
|
|
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Right" Grid.RowSpan="1"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Right" Grid.RowSpan="1"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="供应商名称"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding ShopName}" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="CLPS采购单号" Grid.Row="1"/> |
||||
|
<TextBox Style="{StaticResource middleTextBox}" Text="{Binding PurchaseOrder ,Mode=TwoWay}" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="目的城市-仓库" Grid.Row="2"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding WareName}" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="箱数" Grid.Row="3"/> |
||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="3" Grid.Column="1" > |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="1/"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding BoxCount,Mode=TwoWay}" /> |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="商品数量" Grid.Row="3" Grid.Column="2"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding ProductCount}" Grid.Row="3" Grid.Column="3" /> |
||||
|
|
||||
|
</Grid> |
||||
|
<c:BButton Grid.Row="2" Content="保存" HorizontalAlignment="Right" Width="105" VerticalAlignment="Center" Height="40" Click="BButton_Click" |
||||
|
Name="btn_save" /> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
||||
|
|
@ -0,0 +1,72 @@ |
|||||
|
using BBWY.Client.APIServices; |
||||
|
using BBWY.Client.Models.FallWare; |
||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Shapes; |
||||
|
using WebSocketSharp; |
||||
|
|
||||
|
namespace BBWY.Client.Views.FallWare |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SetCloudWareBoxWindow.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SetCloudWareBoxWindow : BWindow |
||||
|
{ |
||||
|
public SetCloudWareBoxWindow(JDWareBoxModel model, SealBoxService sealBoxService, WareType wareType, Action reflashWindow, bool isEnabled = true) |
||||
|
{ |
||||
|
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; |
||||
|
} |
||||
|
} |
||||
|
public JDWareBoxModel JDWareBoxModel { get; set; } |
||||
|
|
||||
|
private SealBoxService SealBoxService { get; set; } |
||||
|
|
||||
|
private Action ReflashWindow { get; set; } |
||||
|
|
||||
|
private WareType WareType { get; set; } |
||||
|
private void BButton_Click(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (JDWareBoxModel.PurchaseOrder.IsNullOrEmpty()) |
||||
|
{ |
||||
|
MessageBox.Show("采购单号不能为空"); |
||||
|
return; |
||||
|
} |
||||
|
if (JDWareBoxModel.PrewOrder.IsNullOrEmpty() && WareType == WareType.京仓) |
||||
|
{ |
||||
|
MessageBox.Show("预约单号不能为空"); |
||||
|
return; |
||||
|
} |
||||
|
var res = SealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle, JDWareBoxModel.PurchaseOrder, JDWareBoxModel.PrewOrder, JDWareBoxModel.WaybillNo); |
||||
|
|
||||
|
if (res != null && res.Success) |
||||
|
{ |
||||
|
if (ReflashWindow != null) ReflashWindow(); |
||||
|
this.Close(); |
||||
|
|
||||
|
return; |
||||
|
} |
||||
|
if (res != null) MessageBox.Show(res.Msg); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,113 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.FallWare.SetJDWareBoxWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
|
||||
|
WindowStartupLocation="CenterScreen" |
||||
|
CloseButtonVisibility="Visible" |
||||
|
CloseButtonColor="{StaticResource WindowButtonColor}" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Width="450" Height="500" |
||||
|
RightButtonGroupMargin="0,5,5,0"> |
||||
|
<!--CloseButtonColor="{StaticResource WindowButtonColor}" --> |
||||
|
<c:BWindow.Resources> |
||||
|
<ResourceDictionary> |
||||
|
|
||||
|
<Style x:Key="middleTextBox" TargetType="TextBox"> |
||||
|
<Setter Property="HorizontalAlignment" Value="Stretch"/> |
||||
|
<Setter Property="VerticalAlignment" Value="Stretch"/> |
||||
|
<Setter Property="BorderThickness" Value="0"/> |
||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/> |
||||
|
<Setter Property="VerticalContentAlignment" Value="Center"/> |
||||
|
<Setter Property="Margin" Value="1"/> |
||||
|
|
||||
|
</Style> |
||||
|
|
||||
|
</ResourceDictionary> |
||||
|
</c:BWindow.Resources> |
||||
|
<Grid> |
||||
|
|
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="39"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="36"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="京仓箱唛" FontSize="16" HorizontalAlignment="Left" Margin="10 0 0 0" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="1" Margin="1 0 1 1" Name="jd_box"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" VerticalAlignment="Top" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="0" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="1" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="2" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="3" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="4" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="5" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" Grid.Row="6" VerticalAlignment="Bottom" Grid.ColumnSpan="4"/> |
||||
|
|
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="0" HorizontalAlignment="Left" Grid.RowSpan="7"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="0" HorizontalAlignment="Right" Grid.RowSpan="7"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="3" HorizontalAlignment="Right" Grid.RowSpan="7"/> |
||||
|
|
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Right" Grid.RowSpan="1"/> |
||||
|
<Border Width="1" Background="{StaticResource Border.Brush}" Grid.Column="2" Grid.Row="6" HorizontalAlignment="Right" Grid.RowSpan="1"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="供应商名称"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding ShopName}" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="采购单号" Grid.Row="1"/> |
||||
|
<TextBox Style="{StaticResource middleTextBox}" Text="{Binding PurchaseOrder ,Mode=TwoWay}" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="预约单号" Grid.Row="2"/> |
||||
|
<TextBox Style="{StaticResource middleTextBox}" Text="{Binding PrewOrder,Mode=TwoWay}" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="运单号" Grid.Row="3"/> |
||||
|
<TextBox Style="{StaticResource middleTextBox}" Text="{Binding WaybillNo,Mode=TwoWay}" Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="目的城市-仓库" Grid.Row="4"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding WareName}" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="商品名称" Grid.Row="5"/> |
||||
|
<TextBox Style="{StaticResource middleTextBox}" Text="{Binding ProductTitle,Mode=TwoWay}" Grid.Row="5" Grid.Column="1" Grid.ColumnSpan="3"/> |
||||
|
|
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="箱数" Grid.Row="6"/> |
||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="6" Grid.Column="1" > |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="1/"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding BoxCount,Mode=TwoWay}" /> |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="商品数量" Grid.Row="6" Grid.Column="2"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding ProductCount}" Grid.Row="6" Grid.Column="3" /> |
||||
|
|
||||
|
</Grid> |
||||
|
<c:BButton Grid.Row="2" Content="保存" HorizontalAlignment="Right" Width="105" VerticalAlignment="Center" Height="40" Click="BButton_Click" |
||||
|
Name="btn_save" /> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,75 @@ |
|||||
|
using BBWY.Client.APIServices; |
||||
|
using BBWY.Client.Models; |
||||
|
using BBWY.Client.Models.FallWare; |
||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Shapes; |
||||
|
using WebSocketSharp; |
||||
|
|
||||
|
namespace BBWY.Client.Views.FallWare |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SetJDWareBoxWindow.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SetJDWareBoxWindow : BWindow |
||||
|
{ |
||||
|
public SetJDWareBoxWindow(JDWareBoxModel model, SealBoxService sealBoxService,WareType wareType, Action reflashWindow,bool isEnabled = true) |
||||
|
{ |
||||
|
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; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
||||
|
public JDWareBoxModel JDWareBoxModel { get; set; } |
||||
|
|
||||
|
private SealBoxService SealBoxService { get; set; } |
||||
|
|
||||
|
private Action ReflashWindow { get; set; } |
||||
|
|
||||
|
private WareType WareType { get; set; } |
||||
|
private void BButton_Click(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
|
||||
|
if (JDWareBoxModel.PurchaseOrder.IsNullOrEmpty()) |
||||
|
{ |
||||
|
MessageBox.Show("采购单号不能为空"); |
||||
|
return; |
||||
|
} |
||||
|
if (JDWareBoxModel.PrewOrder.IsNullOrEmpty()&& WareType== WareType.京仓) |
||||
|
{ |
||||
|
MessageBox.Show("预约单号不能为空"); |
||||
|
return; |
||||
|
} |
||||
|
var res = SealBoxService.SetFallWareConfigure(JDWareBoxModel.SealBoxId, JDWareBoxModel.ProductTitle,JDWareBoxModel.PurchaseOrder,JDWareBoxModel.PrewOrder,JDWareBoxModel.WaybillNo); |
||||
|
|
||||
|
if (res!=null&&res.Success) |
||||
|
{ |
||||
|
if (ReflashWindow != null) ReflashWindow(); |
||||
|
this.Close(); |
||||
|
|
||||
|
return; |
||||
|
} |
||||
|
if (res != null) MessageBox.Show(res.Msg); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,307 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.PackTask.WaitFallWareControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask" |
||||
|
mc:Ignorable="d" Background="white" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition Width="110"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="落仓材料" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text=" " Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="操作" Grid.Column="4" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<!--ItemsSource="{Binding OrderList}"--> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding WaitFallWareList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="100"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition MinHeight="90"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition Width="110"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="11"> |
||||
|
|
||||
|
<TextBlock Text="店铺:" Style="{StaticResource middleTextBlock}" Margin="10 0 0 0"/> |
||||
|
<c:BButton Content="{Binding ShopName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding ShopName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
|
||||
|
|
||||
|
<TextBlock VerticalAlignment="Center" Text="仓库:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding WareName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding WareName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
|
||||
|
<Label Width="70" Height="25" HorizontalAlignment="Center" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" VerticalAlignment="Center" Content="{Binding TaskState}" Foreground="White" Background="{Binding TaskState,Converter={StaticResource objConverter} , ConverterParameter=已完成:#02a7f0:#facd91 }" Margin="5,0,0,0"/> |
||||
|
|
||||
|
<TextBlock VerticalAlignment="Center" Text="部门:" Margin="14,0,0,0" /> |
||||
|
<c:BButton Content="{Binding DepartmentName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding DepartmentName}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
|
||||
|
<TextBlock VerticalAlignment="Center" Text="对接人:" Margin="16,0,0,0" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{Binding AcceptUserNames}" Margin="5,0,0,0" /> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="80"/> |
||||
|
<ColumnDefinition Width="110"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<ListBox x:Name="listbox_orerSku" ItemsSource="{Binding SealBoxSkus}" |
||||
|
Style="{StaticResource NoScrollViewListBoxStyle}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" > |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="100" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="90"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<!--{Binding Logo}--> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="80" DecodePixelWidth="80" |
||||
|
VerticalAlignment="Top" Margin="11,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="DataContext.Id" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox},AncestorLevel=1}"/> |
||||
|
<Binding Path="Id"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="8,15,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuTitle,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuTitle}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextWrapping="Wrap" Margin="0,13,0 0"> |
||||
|
<Run Text="品名:"/> |
||||
|
<Run Text="{Binding BrandName}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,15,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" > |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
||||
|
<Run Text="货号:" /> |
||||
|
</TextBlock> |
||||
|
<c:BButton Content="{Binding ProductNo}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding ProductNo}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0,13,0,5"> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
||||
|
<Run Text="任务ID:" /> |
||||
|
</TextBlock> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<ListBox x:Name="listbox_skuCount" ItemsSource="{Binding SealBoxSkus}" |
||||
|
Style="{StaticResource NoScrollViewListBoxStyle}" Grid.Column="1" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" > |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="100" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<Grid> |
||||
|
<TextBlock x:Name="txt_storeName" |
||||
|
Text="{Binding SkuCount}" |
||||
|
TextWrapping="Wrap" |
||||
|
HorizontalAlignment="Center" VerticalAlignment="Center" |
||||
|
/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<Grid Grid.Column="2" > |
||||
|
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" |
||||
|
|
||||
|
> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="箱唛:" /> |
||||
|
|
||||
|
|
||||
|
<StackPanel Orientation="Horizontal" |
||||
|
Visibility="{Binding BoxConfigureData,Converter={StaticResource objConverter},ConverterParameter=#null:Collapsed:Visible}" |
||||
|
> |
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="查看" |
||||
|
Command="{Binding DataContext.LookBoxConfigureCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
/> |
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="打印" |
||||
|
Command="{Binding DataContext.PrintBoxConfigureCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type UserControl}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
Visibility="Collapsed" |
||||
|
/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="未配置" |
||||
|
Visibility="{Binding BoxConfigureData,Converter={StaticResource objConverter},ConverterParameter=#null:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
<Grid Grid.Column="3" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Grid Grid.Column="4" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="完成" |
||||
|
Command="{Binding DataContext.CompeteFallWareCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
> |
||||
|
|
||||
|
</c:BButton> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.PackTask |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// WaitFallWareControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class WaitFallWareControl : UserControl |
||||
|
{ |
||||
|
public WaitFallWareControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.FallWare.WareFallWareListControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:packtask ="clr-namespace:BBWY.Client.Views.PackTask" |
||||
|
xmlns:fallware="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
<Style TargetType="RadioButton"> |
||||
|
|
||||
|
<Setter Property="IsChecked" Value="False" /> |
||||
|
<Setter Property="Background" Value="#8080FF" /> |
||||
|
<Setter Property="Foreground" Value="Black" /> |
||||
|
<!--<Setter Property="Content" Value="{Binding ElementName=txt,Path=Text}"/>--> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="RadioButton"> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Rectangle.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform ScaleY="-1"/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform/> |
||||
|
</TransformGroup> |
||||
|
</Rectangle.RenderTransform> |
||||
|
</Rectangle> |
||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="35"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Content}" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Tag}" Foreground="{StaticResource Text.Pink}" Margin="5 0 0 0" /> |
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
<ControlTemplate.Triggers> |
||||
|
<Trigger Property="IsChecked" Value="true"> |
||||
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" /> |
||||
|
<Setter Property="Foreground" Value="white"/> |
||||
|
</Trigger> |
||||
|
</ControlTemplate.Triggers> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="40"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<RadioButton Content="已配置" Height="35" Width="130" Tag="{Binding FallWareConfiguredCount,Mode=TwoWay}" IsChecked="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=已配置:True:False}" |
||||
|
Command="{Binding SetSealBoxConfigureTypeCommand}" CommandParameter="{x:Static cmodel:SealBoxConfigureType.已配置}" |
||||
|
/> |
||||
|
<RadioButton Content="待配置" Height="35" Width="130" Tag="{Binding FallWareWaitConfigureCount,Mode=TwoWay}" IsChecked="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=待配置:True:False}" |
||||
|
Command="{Binding SetSealBoxConfigureTypeCommand}" CommandParameter="{x:Static cmodel:SealBoxConfigureType.待配置}" |
||||
|
/> |
||||
|
</StackPanel> |
||||
|
<Grid Grid.Row="1" |
||||
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待落仓:Visible:Collapsed}" |
||||
|
> |
||||
|
|
||||
|
<packtask:WaitFallWareControl/> |
||||
|
|
||||
|
|
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.FallWare |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// WareFallWareListControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class WareFallWareListControl : UserControl |
||||
|
{ |
||||
|
public WareFallWareListControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -1,95 +0,0 @@ |
|||||
<Page x:Class="BBWY.Client.Views.PackTask.PersonList" |
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
||||
xmlns:local="clr-namespace:BBWY.Client.Views.PackTask" |
|
||||
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
|
||||
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
|
||||
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
|
||||
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
|
||||
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
|
||||
DataContext="{Binding WareHouseList,Source={StaticResource Locator}}" |
|
||||
mc:Ignorable="d" |
|
||||
d:DesignHeight="450" d:DesignWidth="2048" |
|
||||
Title="TaskList"> |
|
||||
<Page.Resources> |
|
||||
<sys:Int32 x:Key="d0">0</sys:Int32> |
|
||||
<sys:Int32 x:Key="d1">1</sys:Int32> |
|
||||
<sys:Int32 x:Key="d3">2</sys:Int32> |
|
||||
<sys:Int32 x:Key="d7">6</sys:Int32> |
|
||||
<sys:Int32 x:Key="d15">14</sys:Int32> |
|
||||
<sys:Int32 x:Key="d30">29</sys:Int32> |
|
||||
|
|
||||
</Page.Resources> |
|
||||
<Grid> |
|
||||
<StackPanel Panel.ZIndex="10" HorizontalAlignment="Left" VerticalAlignment="Top" Orientation="Vertical" Margin="810,15,0,0"> |
|
||||
<c:BTextBox x:Name="tb" Width="150" Height="30" TextChanged="tb_TextChanged" Text="{Binding SearchDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"></c:BTextBox> |
|
||||
<ListBox MaxHeight="300" x:Name="tipBox" SelectionChanged="SelectionChangeCommand" Background="{StaticResource Border.Background}"> |
|
||||
</ListBox> |
|
||||
</StackPanel> |
|
||||
|
|
||||
<c:RoundWaitProgress Play="{Binding IsLoading}" Panel.ZIndex="999"/> |
|
||||
<Grid Margin="5,0"> |
|
||||
<Grid.RowDefinitions> |
|
||||
<RowDefinition Height="50"/> |
|
||||
<RowDefinition Height="40"/> |
|
||||
<RowDefinition Height="*"/> |
|
||||
<RowDefinition Height="30"/> |
|
||||
<!----> |
|
||||
</Grid.RowDefinitions> |
|
||||
<Grid Background="{StaticResource Border.Background}" HorizontalAlignment="Left" Panel.ZIndex="999" Margin="0,5,0,0" Width="1100"> |
|
||||
<Grid.ColumnDefinitions> |
|
||||
<ColumnDefinition /> |
|
||||
<ColumnDefinition Width="auto"/> |
|
||||
</Grid.ColumnDefinitions> |
|
||||
<StackPanel Orientation="Horizontal" Margin="0,5,0,0" Height="30"> |
|
||||
<StackPanel.Resources> |
|
||||
<Style TargetType="DatePickerTextBox"> |
|
||||
<Setter Property="IsReadOnly" Value="True"/> |
|
||||
</Style> |
|
||||
</StackPanel.Resources> |
|
||||
<TextBlock Text="提交时间:" VerticalAlignment="Center" Margin="11,0,0,0"/> |
|
||||
<DatePicker SelectedDate="{Binding StartTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="10,0,0,0"/> |
|
||||
<DatePicker SelectedDate="{Binding EndTime}" Width="133.5" Height="30" VerticalContentAlignment="Center" FocusVisualStyle="{x:Null}" Margin="10,0,0,0"/> |
|
||||
<TextBlock Text="花名:" VerticalAlignment="Center" Margin="16,0,0,0"/> |
|
||||
<c:BTextBox Width="150" Margin="5,0,0,0" WaterRemark="" Text="{Binding SearchSkuId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"/> |
|
||||
<TextBlock Text="任务ID:" VerticalAlignment="Center" Margin="16,0,0,0"/> |
|
||||
<c:BTextBox Width="150" Margin="5,0,0,0" Text="{Binding SearchTaskId,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" WaterRemark=""/> |
|
||||
|
|
||||
<TextBlock Text="部门:" VerticalAlignment="Center" Margin="16,0,0,0"/> |
|
||||
|
|
||||
|
|
||||
</StackPanel> |
|
||||
|
|
||||
<Grid Grid.Column="1" > |
|
||||
<Grid.ColumnDefinitions> |
|
||||
<ColumnDefinition/> |
|
||||
<ColumnDefinition/> |
|
||||
</Grid.ColumnDefinitions> |
|
||||
<Button Content="搜索" Width="80" VerticalAlignment="Stretch" Margin="5,0,0,0" |
|
||||
Command="{Binding SearchTaskCommand}" |
|
||||
Grid.RowSpan="2" Background="{StaticResource Button.Selected.Background}" BorderThickness="0" Foreground="White"/> |
|
||||
|
|
||||
</Grid> |
|
||||
</Grid> |
|
||||
|
|
||||
|
|
||||
<Border Grid.Row="2" Margin="0,5,0,0" BorderBrush="{StaticResource Border.Brush}" BorderThickness="0,1,0,0"/> |
|
||||
|
|
||||
|
|
||||
|
|
||||
<c:PageControl PageIndex="{Binding PageIndex}" |
|
||||
PageSize="{Binding PageSize}" |
|
||||
RecordCount="{Binding OrderCount}" |
|
||||
Grid.Row="3" |
|
||||
HorizontalAlignment="Left" Width="450"> |
|
||||
<b:Interaction.Triggers> |
|
||||
<b:EventTrigger EventName="OnPageIndexChanged"> |
|
||||
<b:InvokeCommandAction Command="{Binding TaskPageIndexChangedCommand}" PassEventArgsToCommand="True"/> |
|
||||
</b:EventTrigger> |
|
||||
</b:Interaction.Triggers> |
|
||||
</c:PageControl> |
|
||||
</Grid> |
|
||||
</Grid> |
|
||||
</Page> |
|
@ -1,135 +0,0 @@ |
|||||
using BBWY.Client.Helpers; |
|
||||
using BBWY.Client.Models.PackTask; |
|
||||
using BBWY.Common.Models; |
|
||||
using Microsoft.Extensions.Configuration; |
|
||||
using Newtonsoft.Json; |
|
||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
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.Navigation; |
|
||||
using System.Windows.Shapes; |
|
||||
using System.Linq; |
|
||||
|
|
||||
namespace BBWY.Client.Views.PackTask |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// PersonList.xaml 的交互逻辑
|
|
||||
/// </summary>
|
|
||||
public partial class PersonList : Page |
|
||||
{ |
|
||||
public PersonList() |
|
||||
{ |
|
||||
InitializeComponent(); |
|
||||
|
|
||||
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; |
|
||||
|
|
||||
} |
|
||||
/// <summary>
|
|
||||
/// 主机域名
|
|
||||
/// </summary>
|
|
||||
string QKApiHost = ""; |
|
||||
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<string> departments = new List<string>(); |
|
||||
|
|
||||
private void tb_TextChanged(object sender, TextChangedEventArgs e) |
|
||||
{ |
|
||||
try |
|
||||
{ |
|
||||
var textBoxt = (TextBox)sender; |
|
||||
//创建一个ListBox
|
|
||||
|
|
||||
if (tipBox != null && tipBox.Items.Count > 0) |
|
||||
{ |
|
||||
tipBox.Items.Clear(); |
|
||||
|
|
||||
} |
|
||||
|
|
||||
if (departments.Count <= 0) |
|
||||
{ |
|
||||
HttpClientHelper helper = new HttpClientHelper(QKApiHost); |
|
||||
|
|
||||
string url = $"{QKApiHost}/api/PackTask/GetAllDepartment";//获取所有数据
|
|
||||
var data = helper.Get(url); |
|
||||
|
|
||||
var res = JsonConvert.DeserializeObject<ApiResponse<UserDepartment[]>>(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) |
|
||||
{ |
|
||||
|
|
||||
|
|
||||
} |
|
||||
|
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,202 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.SealBox.SealBoxConfigureWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
mc:Ignorable="d" |
||||
|
Title="PackSkuConfigWindow" Height="500" Width="1024" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Style="{StaticResource bwstyle}" |
||||
|
DataContext="{Binding SealBoxConfigureVModel,Source={StaticResource Locator}}"> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="40"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="40"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="封箱配置" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
|
||||
|
<ListBox x:Name="listbox" |
||||
|
ItemsSource="{Binding SealBoxConfigureModelList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,0,0,0" |
||||
|
Grid.Row="1"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox,Converter={StaticResource widthConverter},ConverterParameter=3}"> |
||||
|
|
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="170"/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<!--{Binding Logo}--> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="150" DecodePixelWidth="150" |
||||
|
VerticalAlignment="Top" Margin="10 10 10 10" |
||||
|
Cursor="Hand"/> |
||||
|
|
||||
|
<Grid Grid.Column="1"> |
||||
|
<Grid.RowDefinitions> |
||||
|
|
||||
|
<RowDefinition Height="60"/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<StackPanel Orientation="Vertical"> |
||||
|
<TextBlock VerticalAlignment="Center" Margin="10,10,0,0"> |
||||
|
<Run Text="SKU:"/> |
||||
|
<Run Text="{Binding SkuId}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock VerticalAlignment="Center" Margin="10,10,0,0"> |
||||
|
<Run Text="任务ID:"/> |
||||
|
<Run Text="{Binding TaskId}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
<StackPanel Orientation="Vertical"> |
||||
|
<TextBlock VerticalAlignment="Center" Grid.Column="1" Margin="30,10,0,0"> |
||||
|
<Run Text="采购数量:"/> |
||||
|
<Run Text="{Binding SkuCount}"/> |
||||
|
</TextBlock> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1" Margin="30,5,0,0"> |
||||
|
<TextBlock Text="份数:" VerticalAlignment="Center"/> |
||||
|
<c:BTextBox Text="{Binding SplitCount}" Width="40" Margin="5,0" Height="25"/> |
||||
|
<c:BButton Command="{Binding DataContext.SetSplitCountCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
||||
|
CommandParameter="{Binding }" |
||||
|
Content="设置" |
||||
|
Style="{StaticResource LinkButton}"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<Grid Grid.Row="2" Grid.ColumnSpan="2" |
||||
|
Visibility="{Binding WareHourseDatas.Count,ConverterParameter=0:Collapsed:Visible,Converter={StaticResource objConverter}}" |
||||
|
> |
||||
|
<!--<ListBox Grid.Row="2" Grid.ColumnSpan="2" Name="listbox_ware" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderThickness="1,1,0,1" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
ItemsSource="{Binding WareHourseDatas}" |
||||
|
Width="Auto" |
||||
|
Margin="10,0,0,10" |
||||
|
HorizontalAlignment="Left" Height="92" |
||||
|
Visibility="{Binding DataContext.SealBoxId,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type c:BWindow}},ConverterParameter=0:Visible:Collapsed,Converter={StaticResource objConverter}}" |
||||
|
> |
||||
|
<ListBox.ItemsPanel> |
||||
|
<ItemsPanelTemplate> |
||||
|
<StackPanel Orientation="Horizontal"/> |
||||
|
</ItemsPanelTemplate> |
||||
|
</ListBox.ItemsPanel> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="auto" Height="90" > |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition /> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<TextBlock Text="{Binding Index,StringFormat=第\{0\}份}" Style="{StaticResource middleTextBlock}"/> |
||||
|
<c:BButton MinWidth="100" Content="设置" Style="{StaticResource LinkButton}" Grid.Row="1" |
||||
|
Command="{Binding DataContext.SetPackCountAndStoreCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}}" |
||||
|
CommandParameter="{Binding}"/> |
||||
|
<TextBlock Grid.Row="2" Style="{StaticResource middleTextBlock}" Margin="5 0 5 0 "> |
||||
|
<Run Text="{Binding WareName}"/> |
||||
|
<Run Text="{Binding Count,StringFormat= \{0\}件}"/> |
||||
|
|
||||
|
</TextBlock> |
||||
|
<Border Width="1" Grid.RowSpan="3" HorizontalAlignment="Right" |
||||
|
Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" |
||||
|
VerticalAlignment="Bottom"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" |
||||
|
VerticalAlignment="Bottom" Grid.Row="1"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
|
||||
|
</ListBox>--> |
||||
|
<ListBox Grid.Row="2" Grid.ColumnSpan="2" |
||||
|
|
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderThickness="1,1,0,1" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
ItemsSource="{Binding WareHourseDatas}" |
||||
|
Width="Auto" |
||||
|
Margin="10,0,0,10" |
||||
|
HorizontalAlignment="Left" Height="122" > |
||||
|
<!--Visibility="{Binding DataContext.SealBoxId,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type c:BWindow}},Converter={StaticResource objConverter},ConverterParameter=0:Collapsed:Visible}"--> |
||||
|
<ListBox.ItemsPanel> |
||||
|
<ItemsPanelTemplate> |
||||
|
<StackPanel Orientation="Horizontal"/> |
||||
|
</ItemsPanelTemplate> |
||||
|
</ListBox.ItemsPanel> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="auto" Height="120" > |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition /> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<TextBlock Text="{Binding Index,StringFormat=第\{0\}份}" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Grid.Row="1" Style="{StaticResource middleTextBlock}" Margin="5 0 5 0 "> |
||||
|
<Run Text="{Binding Count,StringFormat=\{0\}件}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock Grid.Row="2" Style="{StaticResource middleTextBlock}" Margin="5 0 5 0 "> |
||||
|
<Run Text="{Binding WareName}"/> |
||||
|
</TextBlock> |
||||
|
<c:BButton MinWidth="100" Content="{Binding Count,Converter={StaticResource objConverter},ConverterParameter=0:设置:修改}" Style="{StaticResource LinkButton}" Grid.Row="3" |
||||
|
Command="{Binding DataContext.SetPackCountAndStoreCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
IsEnabled="{Binding WareState,Converter={StaticResource objConverter},ConverterParameter=#null|待封箱:True:False}" |
||||
|
/> |
||||
|
<Border Width="1" Grid.RowSpan="4" HorizontalAlignment="Right" |
||||
|
Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" |
||||
|
VerticalAlignment="Bottom"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" |
||||
|
VerticalAlignment="Bottom" Grid.Row="1"/> |
||||
|
<Border Height="1" Background="{StaticResource Border.Brush}" |
||||
|
VerticalAlignment="Bottom" Grid.Row="2"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
|
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.ColumnSpan="2" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
|
||||
|
<Border HorizontalAlignment="Right" Width="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
<Border Grid.ColumnSpan="2" Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
<c:BButton Content="{Binding SealBoxId,Converter={StaticResource objConverter},ConverterParameter=0:提交任务:保存}" Width="80" HorizontalAlignment="Right" Grid.Row="2" |
||||
|
Command="{Binding SaveCommand}" Margin="0,0,5,0" |
||||
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type c:BWindow}}}" |
||||
|
/> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,44 @@ |
|||||
|
using BBWY.Client.Models; |
||||
|
using BBWY.Client.Models.SealBox; |
||||
|
using BBWY.Client.ViewModels.SealBox; |
||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SealBoxConfigureWindow.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SealBoxConfigureWindow : BWindow |
||||
|
{ |
||||
|
public SealBoxConfigureWindow(IList<SealBoxConfigureModel> sealBoxWaitConfigureModels, Action ReflashWindow, long sealboxId=0) |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
var sealBoxConfigureViewModel = (SealBoxConfigureViewModel)this.DataContext; |
||||
|
|
||||
|
sealBoxConfigureViewModel.SealBoxId = sealboxId; |
||||
|
sealBoxConfigureViewModel.SealBoxConfigureModelList = new System.Collections.ObjectModel.ObservableCollection<SealBoxConfigureModel>(); |
||||
|
|
||||
|
sealBoxConfigureViewModel.ReflashWindow = ReflashWindow; |
||||
|
|
||||
|
foreach (var sealBoxWaitConfigureModel in sealBoxWaitConfigureModels) |
||||
|
{ |
||||
|
sealBoxWaitConfigureModel.Logo= sealBoxWaitConfigureModel.Logo.Replace("80x80", "150x150"); |
||||
|
App.Current.Dispatcher.Invoke(new Action(() => |
||||
|
{ |
||||
|
sealBoxConfigureViewModel.SealBoxConfigureModelList.Add(sealBoxWaitConfigureModel); |
||||
|
})); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,240 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.SealBox.SealBoxConfiguredControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
|
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="任务信息" Grid.Column="1" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<TextBlock Text="封箱数量" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
|
||||
|
<TextBlock Text="操作" Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text=" " Grid.Column="3" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
|
||||
|
<!--<Border Height="1" VerticalAlignment="Top" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="6"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding SealBoxConfiguredList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="68"> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition MinHeight="68"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="0" > |
||||
|
<TextBlock VerticalAlignment="Center" Text="仓库:" Margin="16,0,0,0" /> |
||||
|
<c:BButton Content="{Binding WareName}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Center" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding WareName}" |
||||
|
Margin=" 5,0,7,0"/> |
||||
|
</StackPanel> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding SealBoxTotalCount}"/> |
||||
|
</Grid> |
||||
|
<!--<Grid Grid.Column="2"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="修改"/> |
||||
|
</Grid>--> |
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition Width="100"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<ListBox Name="listbox_orerSku" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="62"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="48" DecodePixelWidth="48" |
||||
|
VerticalAlignment="Top" Margin="14,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="SkuId"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical" Margin="8,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="任务ID:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<ListBox Grid.Column="1" Name="listbox_skuCount" |
||||
|
ItemsSource="{Binding SealBoxConfigureTasks}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="0,0,0,0" |
||||
|
Foreground="{StaticResource Text.Color}" |
||||
|
> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid MinHeight="68" Grid.Column="1" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<Grid Grid.Column="1"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="{Binding WareHourseCount}"/> |
||||
|
</Grid> |
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<Grid Grid.Column="2"> |
||||
|
<c:BButton Style="{StaticResource LinkButton}" Content="修改" Command="{Binding DataContext.UpdateSealBoxConfiguredCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" CommandParameter="{Binding}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
|
||||
|
<Grid Grid.Column="3" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="0 0 2 0"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="0 0 1 0"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SealBoxConfiguredControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SealBoxConfiguredControl : UserControl |
||||
|
{ |
||||
|
public SealBoxConfiguredControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,234 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.SealBox.SealBoxWaitConfigureControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="35"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
|
||||
|
<Border BorderBrush="{StaticResource Border.Brush}" BorderThickness="1,1,1,0" |
||||
|
Background="#F2F2F2"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<TextBlock Text="商品信息" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBlock Text="任务信息" Grid.Column="1" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="封箱数量" Grid.Column="2" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<TextBlock Text=" " Grid.Column="2" Style="{StaticResource middleTextBlock}"/> |
||||
|
<!--<TextBlock Text="操作" Grid.Column="3" Style="{StaticResource middleTextBlock}"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Left" Background="{StaticResource Border.Brush}"/>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/>--> |
||||
|
|
||||
|
<!--<Border Height="1" VerticalAlignment="Top" Background="{StaticResource Border.Brush}" Grid.ColumnSpan="6"/>--> |
||||
|
</Grid> |
||||
|
</Border> |
||||
|
<ListBox x:Name="listbox_order" |
||||
|
Grid.Row="7" |
||||
|
ItemsSource="{Binding SealBoxWaitConfigureList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,1,1,0" |
||||
|
Foreground="{StaticResource Text.Color}"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox_order,Converter={StaticResource widthConverter},ConverterParameter=-0}" |
||||
|
MinHeight="68"> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="400"/> |
||||
|
<ColumnDefinition Width="300"/> |
||||
|
<ColumnDefinition MinWidth="80"/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<Grid MinHeight="68" Width="{Binding ActualWidth,ElementName=listbox_orerSku}"> |
||||
|
<Grid> |
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="62"/> |
||||
|
<ColumnDefinition/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="48" DecodePixelWidth="48" |
||||
|
VerticalAlignment="Top" Margin="14,10,0,10" |
||||
|
Cursor="Hand"> |
||||
|
<b:Interaction.Triggers> |
||||
|
<b:EventTrigger EventName="PreviewMouseLeftButtonDown"> |
||||
|
<b:InvokeCommandAction Command="{Binding DataContext.OpenSkuDetailCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}"> |
||||
|
<b:InvokeCommandAction.CommandParameter> |
||||
|
<MultiBinding Converter="{StaticResource mptConverter}"> |
||||
|
<Binding Path="SkuId"/> |
||||
|
</MultiBinding> |
||||
|
</b:InvokeCommandAction.CommandParameter> |
||||
|
</b:InvokeCommandAction> |
||||
|
</b:EventTrigger> |
||||
|
</b:Interaction.Triggers> |
||||
|
</c:BAsyncImage> |
||||
|
|
||||
|
<StackPanel Grid.Column="1" Grid.ColumnSpan="2" Orientation="Vertical" Margin="8,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 0 0 13"> |
||||
|
<TextBlock Text="SKU:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding SkuId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding SkuId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
</StackPanel> |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}" TextTrimming="CharacterEllipsis"> |
||||
|
<TextBlock.ToolTip> |
||||
|
<ToolTip Style="{StaticResource OrderCouponToolipStyle}"> |
||||
|
<TextBlock Text="{Binding SkuName,Mode=TwoWay}"/> |
||||
|
</ToolTip> |
||||
|
</TextBlock.ToolTip> |
||||
|
<Run Text="SKU名称:"/> |
||||
|
<Run Text="{Binding SkuName}"/> |
||||
|
</TextBlock> |
||||
|
</StackPanel> |
||||
|
<StackPanel Orientation="Vertical" Grid.Column="2" Margin="20,10,0,10"> |
||||
|
<StackPanel Orientation="Horizontal" > |
||||
|
<TextBlock Foreground="{StaticResource Text.Gray}"> |
||||
|
<Run Text="数量:" /> |
||||
|
<Run Text="{Binding SkuCount}"/> |
||||
|
</TextBlock> |
||||
|
<!--<c:BButton Content="{Binding ProductNo}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" VerticalAlignment="Top" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding ProductNo}" |
||||
|
Margin=" 5,0,0,0"/>--> |
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="0"/> |
||||
|
<Grid MinHeight="68" Grid.Column="1" Width="{Binding ActualWidth,ElementName=listbox_skuCount}"> |
||||
|
<StackPanel Orientation="Vertical"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="10 10 0 13"> |
||||
|
<TextBlock Text="任务ID:" Style="{StaticResource middleTextBlock}" /> |
||||
|
<c:BButton Content="{Binding TaskId}" Style="{StaticResource LinkButton}" HorizontalAlignment="Left" |
||||
|
Command="{Binding DataContext.CopyTextCommand,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding TaskId}" |
||||
|
Margin=" 5,0,0,0"/> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Margin="40 0 0 0"> |
||||
|
<Run Text="状态:"/> |
||||
|
<Run Text="{Binding TaskState}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
</StackPanel> |
||||
|
<StackPanel Orientation="Horizontal" Margin="10 0 0 13"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}"> |
||||
|
<Run Text="预计完成时间:"/> |
||||
|
<Run Text="{Binding PreCompletedTime,StringFormat=yyyy-MM-dd HH:mm:ss}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
</StackPanel> |
||||
|
</StackPanel> |
||||
|
<Border Grid.Row="0" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<!--<Grid Grid.Column="2" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="设置" |
||||
|
Command="{Binding DataContext.SetSealBoxCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
> |
||||
|
|
||||
|
</c:BButton> |
||||
|
|
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid>--> |
||||
|
<Grid Grid.Column="2" > |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<!--<Grid Grid.Column="3" > |
||||
|
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Column="11" HorizontalAlignment="Stretch" Style="{StaticResource LinkButton}" VerticalAlignment="Center" Content="完成" |
||||
|
Command="{Binding DataContext.CompeteSealBoxCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Page}}}" |
||||
|
CommandParameter="{Binding}" |
||||
|
|
||||
|
> |
||||
|
|
||||
|
</c:BButton> |
||||
|
--> |
||||
|
<!-- Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待打包:Visible:Collapsed}" --> |
||||
|
<!-- |
||||
|
|
||||
|
|
||||
|
</StackPanel> |
||||
|
</Grid>--> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="1"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="2"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="3" Margin="0 0 2 0"/> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="4" Margin="0 0 1 0"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/>--> |
||||
|
<!--<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="5"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="6"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="7"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="8"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="9"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="10"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="11"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="12"/> |
||||
|
<Border Width="1" HorizontalAlignment="Right" Background="{StaticResource Border.Brush}" Grid.Column="13"/>--> |
||||
|
|
||||
|
</Grid> |
||||
|
<Border Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
|
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SealBoxNoConfigureControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SealBoxWaitConfigureControl : UserControl |
||||
|
{ |
||||
|
public SealBoxWaitConfigureControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.SealBox.SetSealBoxWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
|
||||
|
WindowStartupLocation="CenterScreen" |
||||
|
CloseButtonVisibility="Visible" |
||||
|
|
||||
|
CloseButtonColor="{StaticResource WindowButtonColor}" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Width="378" Height="219" |
||||
|
RightButtonGroupMargin="0,5,5,0"> |
||||
|
<!--CloseButtonColor="{StaticResource WindowButtonColor}" --> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="39"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="36"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="封箱数量" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
<Grid Grid.Row="1"> |
||||
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center"> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 41 0 0"> |
||||
|
<TextBlock Text="封箱数:" Style="{StaticResource middleTextBlock}"/> |
||||
|
<TextBox x:Name="tbSealBoxCount" Width="200" VerticalContentAlignment="Center" |
||||
|
Height="25"/> |
||||
|
</StackPanel> |
||||
|
<StackPanel Orientation="Horizontal" Margin="0 5 0 0" Visibility="Collapsed"> |
||||
|
<TextBlock Style="{StaticResource middleTextBlock}" Text="打印机:" /> |
||||
|
<ComboBox x:Name="cbPrint" Width="200" Height="25" VerticalContentAlignment="Center"/> |
||||
|
</StackPanel > |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
|
||||
|
<c:BButton Grid.Row="2" Content="确定" HorizontalAlignment="Right" Width="105" VerticalAlignment="Center" Height="40" Click="BButton_Click" |
||||
|
/> |
||||
|
|
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,188 @@ |
|||||
|
using BBWY.Client.Extensions; |
||||
|
using BBWY.Client.Helpers; |
||||
|
using BBWY.Client.Models.PackTask; |
||||
|
using BBWY.Controls; |
||||
|
using NPOI.HSSF.UserModel; |
||||
|
using NPOI.SS.UserModel; |
||||
|
using NPOI.XSSF.UserModel; |
||||
|
using Spire.Xls; |
||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Diagnostics; |
||||
|
using System.Drawing.Printing; |
||||
|
using System.IO; |
||||
|
using System.Printing; |
||||
|
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; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// SetSealBoxWindow.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class SetSealBoxWindow : BWindow |
||||
|
{ |
||||
|
public SetSealBoxWindow(SealBoxModel sealBoxModel) |
||||
|
{ |
||||
|
SealBoxModel = sealBoxModel; |
||||
|
InitializeComponent(); |
||||
|
LoadPrints(); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
SealBoxModel SealBoxModel { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 获取打印机名称
|
||||
|
/// </summary>
|
||||
|
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); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
public Action<int> SendBoxCount { get; set; } |
||||
|
private void BButton_Click(object sender, RoutedEventArgs e) |
||||
|
{ |
||||
|
int boxCount = 0; |
||||
|
try |
||||
|
{ |
||||
|
boxCount = Convert.ToInt32(tbSealBoxCount.Text); |
||||
|
} |
||||
|
catch (Exception) |
||||
|
{ |
||||
|
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() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
<UserControl x:Class="BBWY.Client.Views.SealBox.ShopSealBoxListControl" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:ctr="clr-namespace:BBWY.Client.Converters" Background="White" |
||||
|
xmlns:sys="clr-namespace:System;assembly=mscorlib" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
xmlns:fallware="clr-namespace:BBWY.Client.Views.FallWare" |
||||
|
xmlns:cmodel="clr-namespace:BBWY.Client.Models" |
||||
|
DataContext="{Binding TaskList,Source={StaticResource Locator}}" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
mc:Ignorable="d" |
||||
|
d:DesignHeight="450" d:DesignWidth="1500"> |
||||
|
<UserControl.Resources> |
||||
|
<ObjectDataProvider x:Key="storageTypeProvider" MethodName="GetValues" ObjectType="{x:Type sys:Enum}"> |
||||
|
<ObjectDataProvider.MethodParameters> |
||||
|
<x:Type TypeName="cmodel:StorageType"/> |
||||
|
</ObjectDataProvider.MethodParameters> |
||||
|
</ObjectDataProvider> |
||||
|
<ctr:OrderStorageTypeOptionConverter x:Key="ostConverter"/> |
||||
|
<ctr:ProfitRatioConverter x:Key="profitRatioConverter"/> |
||||
|
<ctr:WaybillNoConverter x:Key="waybillConverter"/> |
||||
|
<ctr:MultiParameterTransferConverter x:Key="mptConverter"/> |
||||
|
<ctr:SaleGrossProfitConverter x:Key="sgpcConverter"/> |
||||
|
<Style TargetType="RadioButton"> |
||||
|
|
||||
|
<Setter Property="IsChecked" Value="False" /> |
||||
|
<Setter Property="Background" Value="#8080FF" /> |
||||
|
<Setter Property="Foreground" Value="Black" /> |
||||
|
<!--<Setter Property="Content" Value="{Binding ElementName=txt,Path=Text}"/>--> |
||||
|
<Setter Property="Template"> |
||||
|
<Setter.Value> |
||||
|
<ControlTemplate TargetType="RadioButton"> |
||||
|
<Grid Background="#F2F2F2" > |
||||
|
<Rectangle x:Name="_Rect" Fill="#F2F2F2" HorizontalAlignment="Center" Height="35" VerticalAlignment="Center" Width="{TemplateBinding Width}" RenderTransformOrigin="0.5,0.5"> |
||||
|
<Rectangle.RenderTransform> |
||||
|
<TransformGroup> |
||||
|
<ScaleTransform ScaleY="-1"/> |
||||
|
<SkewTransform/> |
||||
|
<RotateTransform/> |
||||
|
<TranslateTransform/> |
||||
|
</TransformGroup> |
||||
|
</Rectangle.RenderTransform> |
||||
|
</Rectangle> |
||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Height="35"> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Content}" /> |
||||
|
<TextBlock VerticalAlignment="Center" Text="{TemplateBinding Tag}" Foreground="{StaticResource Text.Pink}" Margin="5 0 0 0" /> |
||||
|
</StackPanel> |
||||
|
</Grid> |
||||
|
<ControlTemplate.Triggers> |
||||
|
<Trigger Property="IsChecked" Value="true"> |
||||
|
<Setter TargetName="_Rect" Property="Fill" Value="#8080FF" /> |
||||
|
<Setter Property="Foreground" Value="white"/> |
||||
|
</Trigger> |
||||
|
</ControlTemplate.Triggers> |
||||
|
</ControlTemplate> |
||||
|
</Setter.Value> |
||||
|
</Setter> |
||||
|
</Style> |
||||
|
</UserControl.Resources> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="40"/> |
||||
|
<RowDefinition /> |
||||
|
</Grid.RowDefinitions> |
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<RadioButton Content="已配置" Height="35" Width="130" Tag="{Binding SealBoxConfiguredCount,Mode=TwoWay}" IsChecked="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=已配置:True:False}" |
||||
|
Command="{Binding SetSealBoxConfigureTypeCommand}" CommandParameter="{x:Static cmodel:SealBoxConfigureType.已配置}" |
||||
|
/> |
||||
|
<RadioButton Content="待配置" Height="35" Width="130" Tag="{Binding SealBoxWaitConfigureCount,Mode=TwoWay}" IsChecked="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=待配置:True:False}" |
||||
|
Command="{Binding SetSealBoxConfigureTypeCommand}" CommandParameter="{x:Static cmodel:SealBoxConfigureType.待配置}" |
||||
|
/> |
||||
|
<c:BButton Content="配置封箱策略" Width="130" Height="35" Margin="40 0 0 0" Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱:Visible:Collapsed}" |
||||
|
Command="{Binding ConfiguredSealBoxCommand}" |
||||
|
/> |
||||
|
</StackPanel> |
||||
|
<Grid Grid.Row="1" |
||||
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待封箱:Visible:Collapsed}" |
||||
|
> |
||||
|
|
||||
|
<local:SealBoxConfiguredControl |
||||
|
Visibility="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=已配置:Visible:Collapsed}" |
||||
|
/> |
||||
|
<local:SealBoxWaitConfigureControl |
||||
|
Visibility="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=待配置:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</Grid> |
||||
|
<Grid Grid.Row="1" |
||||
|
Visibility="{Binding TaskState,Converter={StaticResource objConverter},ConverterParameter=待落仓:Visible:Collapsed}" |
||||
|
> |
||||
|
|
||||
|
<fallware:FallWareConfiguredControl |
||||
|
Visibility="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=已配置:Visible:Collapsed}" |
||||
|
/> |
||||
|
<fallware:FallWareWaitConfigureControl |
||||
|
Visibility="{Binding SealBoxConfigureType,Converter={StaticResource objConverter},ConverterParameter=待配置:Visible:Collapsed}" |
||||
|
/> |
||||
|
|
||||
|
</Grid> |
||||
|
</Grid> |
||||
|
</UserControl> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Navigation; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// ShopSealBoxListControl.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class ShopSealBoxListControl : UserControl |
||||
|
{ |
||||
|
public ShopSealBoxListControl() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,104 @@ |
|||||
|
<c:BWindow x:Class="BBWY.Client.Views.SealBox.UpdateSealBoxConfiguredWindow" |
||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
||||
|
xmlns:local="clr-namespace:BBWY.Client.Views.SealBox" |
||||
|
mc:Ignorable="d" |
||||
|
xmlns:c="clr-namespace:BBWY.Controls;assembly=BBWY.Controls" |
||||
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors" |
||||
|
Title="修改分箱配置表" Height="500" Width="1024" |
||||
|
MinButtonVisibility="Collapsed" |
||||
|
MaxButtonVisibility="Collapsed" |
||||
|
Style="{StaticResource bwstyle}" |
||||
|
DataContext="{Binding SealBoxConfigureVModel,Source={StaticResource Locator}}"> |
||||
|
<Grid> |
||||
|
<Grid.RowDefinitions> |
||||
|
<RowDefinition Height="30"/> |
||||
|
<RowDefinition/> |
||||
|
<RowDefinition Height="40"/> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
<Border BorderThickness="0,0,0,1" BorderBrush="{StaticResource MainMenu.BorderBrush}" |
||||
|
Background="{StaticResource Border.Background}"> |
||||
|
<TextBlock Text="封箱配置修改" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
||||
|
</Border> |
||||
|
|
||||
|
<ListBox x:Name="listbox" |
||||
|
ItemsSource="{Binding SealBoxConfigureModelList}" |
||||
|
ItemContainerStyle="{StaticResource NoBgListBoxItemStyle}" |
||||
|
BorderBrush="{StaticResource Border.Brush}" |
||||
|
BorderThickness="1,0,0,0" |
||||
|
Grid.Row="1"> |
||||
|
<ListBox.ItemTemplate> |
||||
|
<DataTemplate> |
||||
|
<Grid Width="{Binding ActualWidth,ElementName=listbox,Converter={StaticResource widthConverter},ConverterParameter=3}"> |
||||
|
|
||||
|
<Grid.ColumnDefinitions> |
||||
|
<ColumnDefinition Width="170"/> |
||||
|
<ColumnDefinition/> |
||||
|
</Grid.ColumnDefinitions> |
||||
|
|
||||
|
<!--{Binding Logo}--> |
||||
|
<c:BAsyncImage UrlSource="{Binding Logo}" |
||||
|
Width="150" DecodePixelWidth="150" |
||||
|
VerticalAlignment="Top" Margin="10 10 10 10" |
||||
|
Cursor="Hand"/> |
||||
|
|
||||
|
<Grid Grid.Column="1"> |
||||
|
<Grid.RowDefinitions> |
||||
|
|
||||
|
<RowDefinition Height="60"/> |
||||
|
<RowDefinition/> |
||||
|
</Grid.RowDefinitions> |
||||
|
|
||||
|
<StackPanel Orientation="Horizontal"> |
||||
|
<StackPanel Orientation="Vertical"> |
||||
|
<TextBlock VerticalAlignment="Center" Margin="10,10,0,0"> |
||||
|
<Run Text="SKU:"/> |
||||
|
<Run Text="{Binding SkuId}"/> |
||||
|
</TextBlock> |
||||
|
<TextBlock VerticalAlignment="Center" Margin="10,10,0,0"> |
||||
|
<Run Text="任务ID:"/> |
||||
|
<Run Text="{Binding TaskId}"/> |
||||
|
</TextBlock> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
<StackPanel Orientation="Vertical"> |
||||
|
<TextBlock VerticalAlignment="Center" Grid.Column="1" Margin="30,10,0,0"> |
||||
|
<Run Text="采购数量:"/> |
||||
|
<Run Text="{Binding SkuCount}"/> |
||||
|
</TextBlock> |
||||
|
<StackPanel Orientation="Horizontal" Grid.Column="1" Grid.Row="1" Margin="30,5,0,0"> |
||||
|
<TextBlock Text="份数:" VerticalAlignment="Center"/> |
||||
|
<c:BTextBox Text="{Binding SplitCount}" Width="40" Margin="5,0" Height="25"/> |
||||
|
<c:BButton Command="{Binding DataContext.SetSplitCountCommand,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type ListBox}}}" |
||||
|
CommandParameter="{Binding }" |
||||
|
Content="设置" |
||||
|
Style="{StaticResource LinkButton}"/> |
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
</StackPanel> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
</Grid> |
||||
|
|
||||
|
<Border Grid.ColumnSpan="2" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
|
||||
|
<Border HorizontalAlignment="Right" Width="1" Background="{StaticResource Border.Brush}"/> |
||||
|
</Grid> |
||||
|
</DataTemplate> |
||||
|
</ListBox.ItemTemplate> |
||||
|
</ListBox> |
||||
|
<Border Grid.ColumnSpan="2" Grid.Row="1" VerticalAlignment="Bottom" Height="1" Background="{StaticResource Border.Brush}"/> |
||||
|
<c:BButton Content="保存" Width="80" HorizontalAlignment="Right" Grid.Row="2" |
||||
|
Command="{Binding SaveUpdateCommand}" Margin="0,0,5,0" |
||||
|
CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type c:BWindow}}}" |
||||
|
/> |
||||
|
</Grid> |
||||
|
</c:BWindow> |
@ -0,0 +1,26 @@ |
|||||
|
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.Media; |
||||
|
using System.Windows.Media.Imaging; |
||||
|
using System.Windows.Shapes; |
||||
|
|
||||
|
namespace BBWY.Client.Views.SealBox |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// UpdateSealBoxConfiguredWindow.xaml 的交互逻辑
|
||||
|
/// </summary>
|
||||
|
public partial class UpdateSealBoxConfiguredWindow : BWindow |
||||
|
{ |
||||
|
public UpdateSealBoxConfiguredWindow() |
||||
|
{ |
||||
|
InitializeComponent(); |
||||
|
} |
||||
|
} |
||||
|
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue