示例#1
0
        /// <summary>
        /// 箱号条码
        /// </summary>
        /// <param name="label">标签对象</param>
        public void CreateClientRequireOne(t_labels label)
        {
            string cro = null, date = null, serialNumber = null;

            cro                    = label.packType == 1 || label.packType == 2 ? "SL14756" : "SC14756";
            date                   = CustomFormatDate.GetyyyyMMdd(label.createDate);
            serialNumber           = label.serialNumber.ToString().Trim();
            label.ClientRequireOne = cro + date + serialNumber;
        }
示例#2
0
        /// <summary>
        /// A+2003834(供应商代码)+yyyyMMdd(日期)+00001(5位流水号)
        /// </summary>
        /// <param name="label">标签对象</param>
        public void CreateClientRequireOne(t_labels label)
        {
            //A+2003834(供应商代码)+yyyyMMdd(日期)+00001(5位流水号)
            string require = "A" + _vendorCode;
            string date    = CustomFormatDate.GetyyyyMMdd(label.createDate);

            date = date.Substring(2);
            //int temp = 5-label.serialNumber.ToString().Length;
            string serialNumber = label.serialNumber.ToString();

            serialNumber           = serialNumber.PadLeft(5, Convert.ToChar("0"));
            require                = require + date + serialNumber;
            label.ClientRequireOne = require;
        }