protected string getOpcoes(int _IdDocumento) { try { string strOpcoes = ""; DocumentoDAL dDAL = new DocumentoDAL(); if (dDAL.NaoRecebido(_IdDocumento, Convert.ToInt32(Session["sesIdProcesso"]))) { strOpcoes = strOpcoes + "<a href=\\\"#\\\" onclick=\\\"return confirmaRecebimento(this, " + _IdDocumento + ");\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Receber Documento\\\"><i class=\\\"fa fa-mail-reply\\\" style=\\\"margin-right:10px\\\"></i></a>"; } else { strOpcoes = strOpcoes + "<a href=\\\"MovimentarDocumento.aspx?idDoc=" + _IdDocumento + "\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Movimentar Documento\\\" class=\\\"movimentarDocumento\\\"><i class=\\\"fa fa-mail-forward\\\" style=\\\"margin-right:10px\\\"></i></a>"; } strOpcoes = strOpcoes + "<a href=\\\"HistoricoDocumento.aspx?idDoc=" + _IdDocumento + "\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Histórico do Documento\\\" class=\\\"historicoDocumento\\\"><i class=\\\"fa fa-calendar\\\" style=\\\"margin-right:10px\\\"></i></a>"; if (!dDAL.NaoRecebido(_IdDocumento, Convert.ToInt32(Session["sesIdProcesso"]))) { strOpcoes = strOpcoes + "<a href=\\\"#\\\" onclick=\\\"return arquivarDocumento(this, " + _IdDocumento + ");\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Arquivar Documento\\\"><i class=\\\"fa fa-folder-open\\\"></i></a>"; } //strOpcoes = strOpcoes + " <button class=\\\"btn btn-primary btn-xs\\\" onclick=\\\"return confirmaExclusao(this, " + _IdDocumento + ");\\\"><i class=\\\"fa fa-trash\\\"></i></button>"; return(strOpcoes); } catch (Exception) { throw; } }
protected string getOpcoes(Int32 _IdDocumento) { try { String strOpcoes = ""; DocumentoDAL dDAL = new DocumentoDAL(); if (dDAL.NaoRecebido(_IdDocumento, Convert.ToInt32(Session["sesIdProcesso"]))) { strOpcoes = strOpcoes + "<button class=\\\"btn btn-danger btn-xs\\\" onclick=\\\"return confirmaRecebimento(this, " + _IdDocumento + ");\\\"><i class=\\\"fa fa-mail-reply\\\"></i></button>"; } else { strOpcoes = strOpcoes + "<a href=\\\"MovimentarDocumento.aspx?idDoc=" + _IdDocumento + "\\\" class=\\\"movimentarDocumento\\\"><button class=\\\"btn btn-success btn-xs\\\"><i class=\\\"fa fa-mail-forward\\\"></i></button></a>"; } strOpcoes = strOpcoes + " <a href=\\\"HistoricoDocumento.aspx?idDoc=" + _IdDocumento + "\\\" class=\\\"historicoDocumento\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-calendar\\\"></i></button></a> <a href=\\\"AlterarDocumento.aspx?idDoc=" + _IdDocumento + "\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-edit\\\"></i></button></a>"; if (!dDAL.NaoRecebido(_IdDocumento, Convert.ToInt32(Session["sesIdProcesso"]))) { strOpcoes = strOpcoes + " <button class=\\\"btn btn-primary btn-xs\\\" onclick=\\\"return arquivarDocumento(this, " + _IdDocumento + ");\\\"><i class=\\\"fa fa-folder-open\\\"></i></button>"; } //strOpcoes = strOpcoes + " <button class=\\\"btn btn-primary btn-xs\\\" onclick=\\\"return confirmaExclusao(this, " + _IdDocumento + ");\\\"><i class=\\\"fa fa-trash\\\"></i></button>"; return(strOpcoes); } catch (Exception) { throw; } }