예제 #1
0
 protected void btndone_Click(object sender, EventArgs e)
 {
     try
     {
         string custreservationid = lbljobid.Text.ToString();
         int    affectedrow       = myappointment.Jobstatus(custreservationid, "DONE");
         if (affectedrow > 0)
         {
             btndone.Visible   = false;
             btnundone.Visible = false;
             lblstatus.Text    = "DONE";
             btndone.Enabled   = false;
             btnundone.Enabled = false;
             div_error.Visible = false;
         }
     }
     catch (Exception ex)
     {
         lblerror.Text     = ex.Message.ToString();
         div_error.Visible = true;
     }
 }