Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 public void MergeS(ExamineeA e)
 {
     //suppose e.eStt = NeeStt.Finished
     mPhase = e.mPhase;
     dtTim1 = e.dtTim1;
     dtTim2 = e.dtTim2;
     uGrade = e.uGrade;
 }
Esempio n. 3
0
 public override void Merge(ExamineeA e)
 {
     if (bFromC)
     {
         MergeC(e);
     }
     else
     {
         MergeS(e);
     }
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        public ExamineeA Signin(ExamineeA e)
        {
            ExamineeA o;

            foreach (ExamRoom r in Rooms.Values)
            {
                if ((o = r.Signin(e)) != null)
                {
                    return(o);
                }
            }
            return(null);
        }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
        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);
        }
Esempio n. 9
0
 public abstract void Merge(ExamineeA e);