Example #1
0
        protected string getOpcoes(Int32 _IdDocumento)
        {
            try
            {
                String strOpcoes = "";

                DocumentoDAL dDAL = new DocumentoDAL();

                ArquivamentoInternoDAL aiDAL = new ArquivamentoInternoDAL();
                ArquivamentoInterno    ai    = aiDAL.CarregarDadosPorIdDocumento(_IdDocumento);

                if (ai.ArquivoDocumento == "-")
                {
                    strOpcoes = strOpcoes + "<a href=\\\"JavaScript:alert('Documento sem arquivo cadastrado');\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Visualizar Documento\\\"><i class=\\\"fa fa-search\\\" style=\\\"margin-right:10px\\\"></i></a>";
                }
                else
                {
                    strOpcoes = strOpcoes + "<a href=\\\"http://www.lfcnet.org.br/gesdoc/arquivos/ArquivamentosInternos/" + ai.ArquivoDocumento + "\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Visualizar Documento\\\" target=\\\"_blank\\\"><i class=\\\"fa fa-search\\\" 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>";
                strOpcoes = strOpcoes + "<a href=\\\"ArquivarExterno.aspx?idDoc=" + _IdDocumento + "\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Arquivar Externamente o Documento\\\"><i class=\\\"fa fa-globe\\\" style=\\\"margin-right:10px\\\"></i></a>";
                strOpcoes = strOpcoes + "<a href=\\\"#\\\" onclick=\\\"return confirmaDesarquivamento(this, " + _IdDocumento + ");\\\" data-toggle=\\\"tooltip\\\" data-placement=\\\"top\\\" title=\\\"Desarquivar Documento\\\"><i class=\\\"fa fa-folder-open\\\"></i>";

                return(strOpcoes);
            }
            catch (Exception)
            { throw; }
        }
Example #2
0
        protected string getTipoDocumentoLocalizacao(Int32 _IdDocumento, Int32 _IdTipoDocumento)
        {
            try
            {
                ArquivamentoInternoDAL aiDAL = new ArquivamentoInternoDAL();
                ArquivamentoInterno    ai    = aiDAL.CarregarDadosPorIdDocumento(_IdDocumento);

                TipoDocumentoDAL tdDAL = new TipoDocumentoDAL();

                String strTipoDocumentoLocalizacao;

                strTipoDocumentoLocalizacao  = tdDAL.CarregarDadosPorIdTipoDocumento(_IdTipoDocumento).Nome + "<br />";
                strTipoDocumentoLocalizacao += "(Arquivo: <span class=\\\"text-red\\\"><b>" + ai.Arquivo + "</b></span> | Gaveta: <span class=\\\"text-red\\\"><b>" + ai.Gaveta + "</b></span> | Pasta: <span class=\\\"text-red\\\"><b>" + ai.Pasta + "</b></span>)";

                return(strTipoDocumentoLocalizacao);
            }
            catch (Exception)
            { throw; }
        }
Example #3
0
        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 + "&nbsp;<a href=\\\"HistoricoDocumento.aspx?idDoc=" + _IdDocumento + "\\\" class=\\\"historicoDocumento\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-calendar\\\"></i></button></a>&nbsp;<a href=\\\"AlterarDocumento.aspx?idDoc=" + _IdDocumento + "\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-edit\\\"></i></button></a>";

                ArquivamentoInternoDAL aiDAL = new ArquivamentoInternoDAL();
                ArquivamentoInterno    ai    = aiDAL.CarregarDadosPorIdDocumento(_IdDocumento);

                if (ai.ArquivoDocumento == "-")
                {
                    strOpcoes = strOpcoes + "<a href=\\\"JavaScript:alert('Documento sem arquivo cadastrado');\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-search\\\"></i></button></a>";
                }
                else
                {
                    strOpcoes = strOpcoes + "<a href=\\\"http://www.lfcnet.org.br/gesdoc/sgd/img/arquivamentosInternos/" + ai.ArquivoDocumento + "\\\" target=\\\"_blank\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-search\\\"></i></button></a>";
                }

                strOpcoes = strOpcoes + "&nbsp;<a href=\\\"HistoricoDocumento.aspx?idDoc=" + _IdDocumento + "\\\" class=\\\"historicoDocumento\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-calendar\\\"></i></button></a>";
                strOpcoes = strOpcoes + "&nbsp;<a href=\\\"ArquivarExterno.aspx?idDoc=" + _IdDocumento + "\\\" class=\\\"arquivarExterno\\\"><button class=\\\"btn btn-primary btn-xs\\\"><i class=\\\"fa fa-globe\\\"></i></button></a>";
                strOpcoes = strOpcoes + "&nbsp;<button class=\\\"btn btn-primary btn-xs\\\" onclick=\\\"return confirmaDesarquivamento(this, " + _IdDocumento + ");\\\"><i class=\\\"fa fa-folder-open\\\"></i></button>";

                return(strOpcoes);
            }
            catch (Exception)
            { throw; }
        }