public bool LogicDeleteInfo(long id, string loginUser) { PackageBarcodeInfo info = dal.GetInfo(id); if (info.Status != (int)PackageBarcodeStatusConstants.Created) { throw new Exception("MC:0x00000683");///状态必须为已创建 } return(dal.LogicDelete(id, loginUser) > 0 ? true : false); }
public bool UpdateInfo(string fields, long id) { PackageBarcodeInfo info = dal.GetInfo(id); if (info.Status != (int)PackageBarcodeStatusConstants.Created) { throw new Exception("MC:0x00000683");///状态必须为已创建 } return(dal.UpdateInfo(fields, id) > 0 ? true : false); }
public long InsertInfo(PackageBarcodeInfo info) { info.BarcodeNo = new SeqDefineDAL().GetCurrentCode("BARCODE_NO"); return(dal.Add(info)); }