public bool CheckPurchaseIsACCEPT(string sPurNo) { try { DBO.PUR_PurchaseOrderDBO dbo = new PUR_PurchaseOrderDBO(ref USEDB); int iCount = dbo.CheckPurchaseIsACCEPT(sPurNo); if (iCount == 0) { return false; } else { return true; } } catch (Exception ex) { throw ex; } }