/*
        Metodo que se utiliza para actualizar un proceso existente
        */
        private void updateAuxiliar()
        {
            if (HttpContext.Current.Session["ProcessId"] != null)
            {

                String reason = Session["reason"].ToString();
                String user = Context.User.Identity.Name;
                AuditDataFromWeb audit = new AuditDataFromWeb();
                audit.Reason = reason;
                audit.StationIP = General.getIp(this.Page);
                audit.UserName = user;

                ProcessService processService = new ProcessService();
                ProcessUpdateView processUpdate = new ProcessUpdateView();

                processUpdate.ProcessId = Int32.Parse(HttpContext.Current.Session["ProcessId"].ToString());
                processUpdate.ProcessPlotEnable = plotEnableText.Items[0].Selected;

                CUDView crud = processService.updateProcess(processUpdate,audit);

                if (crud.update == false)
                {
                    this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not update the Process')", true);
                }
                else
                {
                    clearFields();
                    fillProcessTable();
                }

            }
        }
        private void updateAuxiliar()
        {
            if (HttpContext.Current.Session["ProcessId"] != null)
            {
                string confirmValue = Request.Form["confirm_value"];
                if (confirmValue == "Yes")
                {
                    ProcessService processService = new ProcessService();
                    ProcessUpdateView processUpdate = new ProcessUpdateView();

                    processUpdate.ProcessId = Int32.Parse(HttpContext.Current.Session["ProcessId"].ToString());
                    processUpdate.ProcessPlotEnable = plotEnableText.Items[0].Selected;

                    CUDView crud = processService.updateProcess(processUpdate);

                    if (crud.update == false)
                    {
                        this.Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "alert('Could not update the Process')", true);
                    }
                    else
                    {
                        clearFields();
                        fillProcessTable();
                    }

                }
            }
        }