public void MergeC(ExamineeA e) { if (mPhase == ExamineePhase.Finished) { return; } bLog = e.bLog; if (mPhase < ExamineePhase.Examing || bLog) { tComp = e.tComp; } if (e.mPhase < ExamineePhase.Examing) { mPhase = ExamineePhase.Examing; } else { mPhase = e.mPhase; } if (mPhase < ExamineePhase.Examing) { return; } mAnsSheet = new AnsSheet(); mAnsSheet.uQSLvId = e.mAnsSheet.uQSLvId; if (mPhase < ExamineePhase.Submitting) { return; } mAnsSheet.aAns = e.mAnsSheet.aAns; }
public void MergeS(ExamineeA e) { //suppose e.eStt = NeeStt.Finished mPhase = e.mPhase; dtTim1 = e.dtTim1; dtTim2 = e.dtTim2; uGrade = e.uGrade; }
public override void Merge(ExamineeA e) { if (bFromC) { MergeC(e); } else { MergeS(e); } }
public ExamineeA Signin(ExamineeA e) { ExamineeA o; if (vExaminee.TryGetValue(e.LvId, out o) && o.tBirdate == e.tBirdate) { o.bFromC = true; o.Merge(e); return(o); } return(null); }
public ExamineeA Signin(ExamineeA e) { ExamineeA o; foreach (ExamRoom r in Rooms.Values) { if ((o = r.Signin(e)) != null) { return(o); } } return(null); }
public override void Merge(ExamineeA e) { mPhase = e.mPhase; if (mPhase == ExamineePhase.Finished) { uGrade = e.uGrade; } if (mPhase < ExamineePhase.Finished || bLog) { tBirdate = e.tBirdate; tName = e.tName; tBirthplace = e.tBirthplace; } bLog = false; }
public override void Merge(ExamineeA e) { if (mPhase == ExamineePhase.Finished) { return; } //suppose eStt = eINFO and e.eStt = NeeStt.Finished mPhase = ExamineePhase.Finished; bToVw = bToDB = true; tComp = e.tComp; mAnsSheet = e.mAnsSheet; dtTim1 = e.dtTim1; uGrade = e.uGrade; dtTim2 = e.dtTim2; }
public bool RegeneratePw() { Random r = new Random(); ExamineeA x = vExaminee.Values.First(); string otPw = tPw; tPw = GeneratePw(r); int n = DBConnect.Update("sqz_slot_room", "pw='" + tPw + "'", "dt='" + x.mDt.ToString(DT._) + "' AND t='" + x.mDt.ToString(DT.hh) + "' AND rid=" + ID); if (0 < n) { return(false); } tPw = otPw; return(true); }
public abstract void Merge(ExamineeA e);