示例#1
0
        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);
            }
        }
示例#2
0
 public string Check()
 {
     try
     {
         OperationsCmApiBll con = new OperationsCmApiBll();
         return(con.getSession());
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message, ex.InnerException);
     }
 }
示例#3
0
        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);
            }
        }