protected void lbRedesignar_Click(object sender, EventArgs e) { try { cto = (Cto)Session["cto_redesignate"]; OperationsCmApiBll operationsCmApiBll = new OperationsCmApiBll(); operationsCmApiBll.redesignateFacility(Session["usuario"].ToString(), cto.idOlt , Convert.ToInt32(gvRedesignar.DataKeys[gvRedesignar.SelectedIndex].Values["ID_OLT"]), cto.point_id, cto.idSubPorta, Convert.ToInt32(gvRedesignar.DataKeys[gvRedesignar.SelectedIndex].Values["POINT_ID"]), Convert.ToInt32(gvRedesignar.DataKeys[gvRedesignar.SelectedIndex].Values["ID_SUB_PORTA"]), txtCircuito.Text, txtStatus.Text); divMsg.Attributes.Add("class", "alert alert-success alert-dismissible"); divMsg.Visible = true; lblMsg.Text = ViewState["MSG_REDESIGNATE"].ToString(); lbRedesignar.Attributes.Remove("disabled"); } catch (Exception ex) { divMsg.Attributes.Add("class", "alert alert-danger alert-dismissible"); divMsg.Visible = true; lblMsg.Text = string.Concat(ex.Message, " - ", ex.InnerException); } }
public string Check() { try { OperationsCmApiBll con = new OperationsCmApiBll(); return(con.getSession()); } catch (Exception ex) { throw new Exception(ex.Message, ex.InnerException); } }
private void save(string acao) { try { setFacility(); OperationsCmApiBll operationsCmApiBll = new OperationsCmApiBll(); olt.acao = acao; operationsCmApiBll.atualizaFacilidades(cto.point_id, olt, Session["usuario"].ToString()); if (acao.Equals("LIBERAR")) { Session["CTO_SEARCH_NOME"] = cto.nome; Response.Redirect("search", false); } } catch (Exception ex) { Utility.Alertbootsrap(ex.Message, this, UpSave); } }