using Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using VueWebCoreApi.Models;
namespace VueWebCoreApi.Tools
{
public class AppLableBarCode
{
public static ToMessage mes = new ToMessage(); //定义全局返回信息对象
#region [获取规则编码]
///
/// 根据功能编码获取最新规则编码
///
/// 功能编码
/// 物料编码
/// 数量
/// 单标签数量
///
public static ToMessage EncodingSeach(string rightcode, string partcode, string qty, string onelabqty)
{
string sql, year = "", month = "", day = "", fdate = "", q = "", cunm2 = "", Encode = "", cunm = "";
int digit2 = 0, value2 = 0, digit3 = 0, digitdiff = 0;
bool stf;
List