예제 #1
0
파일: frmMain.cs 프로젝트: jworkman119/HTC
 private void deleteWaitList()
 {
     if (blWaitList == true)
     {
         clsDatabase objDB  = new clsDatabase(strDB);
         string      SQL    = deleteWaitListSQL();
         bool        blPass = objDB.ExecuteNonQuery(SQL);
         if (blPass == true)
         {
             MessageBox.Show(txtPatient.Text + " has been deleted from the wait list.");
         }
         else
         {
             MessageBox.Show("Error - was not able to delete the user to the wait list. If the problem persists please contact IT.");
         }
     }
     else
     {
         blWaitList = true;
     }
 }
예제 #2
0
파일: frmMain.cs 프로젝트: jworkman119/HTC
 private void deleteTP()
 {
     if (TP_ID != 0)
     {
         clsDatabase objDB  = new clsDatabase(strDB);
         string      SQL    = deleteTPSQL();
         bool        blPass = objDB.ExecuteNonQuery(SQL);
         if (blPass == true)
         {
             MessageBox.Show(txtPatient.Text + " has removed his treatment plan.");
             clearTPPanel();
         }
         else
         {
             MessageBox.Show("Error - was not able to delete the user to the treatment plan. If the problem persists please contact IT.");
         }
     }
     else
     {
         blTP = true;
     }
 }