public bool SaveCommitTime(DateTime dt) { string cond = "dt='" + dt.ToString(DT._) + "' AND t='" + dt.ToString(DT.hh) + "' AND rid=" + ID; string val = "t2='" + t2.ToString(DT.hh) + "'"; if (DBConnect.Update("sqz_slot_room", val, cond) < 1) { return(true); } return(false); }
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 static void DBDelete(IUx eIU, string ids) { DBConnect.Update("sqz_question", "del=1", ids); }