Пример #1
0
 public btCHSTRAS_091_Unit(DateTime startTime, int totalNum, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     bt = new btCHSTRAS_091_Base();
     time = new btCHSTRAS_091_Time();
     userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice);
     answerTime = time.getAnswerTime(startTime);
     this.startTime = startTime;
     this.totalNum = totalNum;
 }
Пример #2
0
 public btCHSTRAS_091_Unit(int totalNum, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     this.shfUnitPratice = shfUnitPratice;
     this.shfUserLogin = shfUserLogin;
     bt = new btCHSTRAS_091_Base();
     time = new btCHSTRAS_091_Time();
     userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice);
     startTime = DateTime.Now;
     this.totalNum = totalNum;
     keyValues = new Hashtable();
 }
Пример #3
0
 public void record(int questionID, DateTime startTime,
     String testAnswer, bool testRight, int testScore)
 {
     btCHSTRAS_091_Time time = new btCHSTRAS_091_Time();
     Hashtable keyValues = new Hashtable();
     foreach (DictionaryEntry userUnitID in userUnitIDs)
     {
         keyValues.Add(userUnitID.Key, userUnitID.Value);
     }
     keyValues.Add("QuestionID", questionID);
     keyValues.Add("StartDateTime", startTime);
     keyValues.Add("AnswerTime", time.getAnswerTime(startTime));
     keyValues.Add("TestAnswer", testAnswer);
     keyValues.Add("TestRight", testRight);
     keyValues.Add("TestScore", testScore);
     database.insert("R_SHFItemScores", keyValues);
 }
Пример #4
0
 public uiCHSTRAS_091_Base(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit)
     : base(callForm, callLog, callUnit)
 {
     InitializeComponent();
     times = new btCHSTRAS_091_Time();
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     String title = callUnit.UnitPracticeName;
     this.Text = title;
     this.labelPageTitle.Text = title;
     this.label课程信息.Text = bt.getClassInfo(callUnit);
     this.label程序信息.Text = bt.getProgramInfo(callUnit);
     startTime = DateTime.Now;
     this.labelBegin.Text += times.getTime(startTime);
     answeredNum = 1;
     this.labelAnswered.Text += answeredNum;
     this.timer1.Enabled = true;
 }