public int GetUnmixCount(string billNo) { using (PersistentManager pm = new PersistentManager()) { ProductStateDao psDao = new ProductStateDao(); return psDao.FindUnmixCount(billNo); } }