public btCHSTRAS_091_Item(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice) { database = new btCHSTRAS_091_Database(); bt = new btCHSTRAS_091_Base(); userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice); startTime = DateTime.Now; }
private void getStatistics() { String where = "StartDateTime>=#" + startTime + "#"; String[] selections = new String[] { "TestScore" }; database = new btCHSTRAS_091_Database(); IDataReader reader = database.query("R_SHFItemScores", selections, where, null); completeNum = database.getSize(); totalScore = 0; while (reader.Read()) { totalScore += reader.GetInt32(0); } where = "StartDateTime>=#" + startTime + "# AND TestRight=true"; database.query("R_SHFItemScores", selections, where, null); rightNum = database.getSize(); }