//没用了 public int InsertLabel(t_labels label, int createQty, int boxQty, int reelQty, int labelQty) { t_opencardpack opencardpack = openCardPackDao.FindOpencardpackByCode(label.code); if (opencardpack != null) { //还是要返回一个数量 long oldNumber = execProcedureDao.ExecPrSaveSerialNumber(label.clientCode.ToUpper().Trim(), labelQty); label.typeCode = opencardpack.FProductNo; while (createQty > 0) { label.qty = reelQty; label.serialNumber = oldNumber; tLabelsDao.InsertLabel(label); createQty = createQty - reelQty; } while (createQty > 0) { label.qty = boxQty; tLabelsDao.InsertLabel(label); createQty = createQty - boxQty; } } return(0); }
public Entity.t_opencardpack FindOpencardpackByCode(Entity.t_opencardpack opencardpack) { t_opencardpack newOpencardpack = dao.FindOpencardpackByCode(opencardpack); if (newOpencardpack != null) { return(newOpencardpack); } else { return(null); } }
/// <summary> /// PO+订单明细项目号 /// </summary> /// <param name="label">标签对象</param> public void CreateClientRequireTwo(t_labels label) { //PO+订单明细项目号 string require = null; string xinagMuHao = null; _soDetailsDao = new SoDetailsDaoImpl(); _openCardPack = new OpenCardPackDaoImpl(); var fsaId = _openCardPack.FindOpencardpackByCode(label.code).FsaID; if (fsaId != null) { int sodetailsId = (int)fsaId; SO_SODetails soDetail = _soDetailsDao.FindSoDetailsById(sodetailsId); xinagMuHao = soDetail.cFree3; } require = label.po + "#" + xinagMuHao; label.ClientRequireTwo = require; }