public static void DeleteConstructProgressReport(string ProgressCode) { try { EntityData entity = ConstructDAO.GetStandard_ConstructProgressByCode(ProgressCode); if (entity.HasRecord()) { string pBSUnitCode = entity.GetString("PBSUnitCode"); ConstructDAO.DeleteStandard_ConstructProgress(entity); UpdatePBSUnitByConstructProgressReport(pBSUnitCode); } entity.Dispose(); } catch (Exception exception) { throw exception; } }