//是否可以存空箱 public int canSaveEnptycarton(string customerid, string custorderno, string cartonNum, string action, string currStep) { try { dbInstance.BeginTransaction(); AssyBoxDal dal = new AssyBoxDal(dbInstance); int re = dal.canSaveEnptycarton(customerid, custorderno, cartonNum, action, currStep); dbInstance.Commit(); return re; } catch (Exception ex) { dbInstance.Rollback(); return -1; throw ex; } finally { dbInstance.CloseConnection(); } }
public AssyBoxBll(ContextInfo contextInfo) : base(contextInfo) { localDal = new AssyBoxDal(dbInstance); baseDal = localDal; }