using HH.WCS.ZhongCeJinTan.util;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Services.Configuration;
using Top.Api;
namespace HH.WCS.ZhongCeJinTan.wms
{
///
/// 容器帮助类
///
internal class ContainerHelper
{
internal static string GenerateCntrNo()
{
var date = DateTime.Now.ToString("yyMMdd");
var id = SYSHelper.GetSerialNumber("托盘号", "KJZ" + date);
return $"KJZ{date}{id.ToString().PadLeft(4, '0')}";
}
internal static bool CreateCntrItem(CntrItemRel work)
{
try
{
var db = new SqlHelper