/// <summary> /// 流水号 /// </summary> /// <param name="label">t_labels 标签信息</param> public void CreateClientRequireOne(t_labels label) { string temp = CustomFormatDate.GetyyMMd(label.createDate); string serialNumber = label.serialNumber.ToString(); serialNumber = serialNumber.PadLeft(3, Convert.ToChar("0")); temp = temp + serialNumber; label.ClientRequireOne = temp; }
/// <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; }
/// <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; }
/// <summary> /// 年周yyweek /// </summary> /// <param name="label">t_labels 标签信息</param> public void CreateClientRequireTwo(t_labels label) { label.ClientRequireTwo = CustomFormatDate.GetyyWeek(label.createDate); }