private void TBOK_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (DatabaseLinker.ApproveRent(rent))
            {
                rent.GetApproved();

                SysMsg msg = new SysMsg(0, rent.pId, DateTime.Now, "您申请的课程 " + rent.rId + ", " + rent.Info + " 已经通过审核.");
                DatabaseLinker.SendSysMsg(msg);

                MessageBox.Show("审核已通过.");
                this.Close();
            }
        }
 public bool ApproveRent(Rent r)
 {
     r.GetApproved();
     return DatabaseLinker.ApproveRent(r);
 }
Esempio n. 3
0
 public bool ApproveRent(Rent r)
 {
     r.GetApproved();
     return(DatabaseLinker.ApproveRent(r));
 }