private void btnNO_Click(object sender, System.EventArgs e)
 {
     try
     {
         order = new clsWorkOrders();
         order.iOrgId = OrgId;
         order.iId = OrderId;
         order.bStaying = false;
         if(order.UpdateStayingWorkOrder() == -1)
         {
             Session["lastpage"] = "ok_editStaying.aspx?orderid=" + OrderId.ToString() + "&equipid=" + EquipId.ToString();
             Session["error"] = _functions.ErrorMessage(120);
             Response.Redirect("error.aspx", false);
         }
         else
             Response.Redirect("ok_editNote.aspx?orderid=" + OrderId.ToString() + "&equipid=" + EquipId.ToString(), false);
     }
     catch(Exception ex)
     {
         _functions.Log(ex, HttpContext.Current.User.Identity.Name, SourcePageName);
         Session["lastpage"] = "ok_editStaying.aspx?orderid=" + OrderId.ToString() + "&equipid=" + EquipId.ToString();
         Session["error"] = ex.Message;
         Session["error_report"] = ex.ToString();
         Response.Redirect("error.aspx", false);
     }
     finally
     {
         if(order != null)
             order.Dispose();
     }
 }