<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-br">
		<id>http://wiki.mstech.com.br/index.php?action=history&amp;feed=atom&amp;title=Docentes_n%C3%A3o_reg%C3%AAncia</id>
		<title>Docentes não regência - Histórico de revisão</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.mstech.com.br/index.php?action=history&amp;feed=atom&amp;title=Docentes_n%C3%A3o_reg%C3%AAncia"/>
		<link rel="alternate" type="text/html" href="http://wiki.mstech.com.br/index.php?title=Docentes_n%C3%A3o_reg%C3%AAncia&amp;action=history"/>
		<updated>2026-05-07T21:43:37Z</updated>
		<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.mstech.com.br/index.php?title=Docentes_n%C3%A3o_reg%C3%AAncia&amp;diff=4277&amp;oldid=prev</id>
		<title>Andre.iguera: Criou página com '&lt;syntaxhighlight lang=&quot;sql&quot; line=&quot;1&quot; &gt; /* - Docentes não regência (exibir ano letivo, turma, disciplina) - Só turmas/atribuições ativas */  USE DEV_FRA_GestaoEscolar --AL...'</title>
		<link rel="alternate" type="text/html" href="http://wiki.mstech.com.br/index.php?title=Docentes_n%C3%A3o_reg%C3%AAncia&amp;diff=4277&amp;oldid=prev"/>
				<updated>2017-01-24T17:16:09Z</updated>
		
		<summary type="html">&lt;p&gt;Criou página com &amp;#039;&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot; line=&amp;quot;1&amp;quot; &amp;gt; ‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;- Docentes não regência (exibir ano letivo, turma, disciplina) - Só turmas/atribuições ativas: &lt;/span&gt;  USE DEV_FRA_GestaoEscolar --AL...&amp;#039;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;sql&amp;quot; line=&amp;quot;1&amp;quot; &amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
- Docentes não regência (exibir ano letivo, turma, disciplina) - Só turmas/atribuições ativas&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
USE DEV_FRA_GestaoEscolar --ALTERAR BD&lt;br /&gt;
GO&lt;br /&gt;
&lt;br /&gt;
SELECT&lt;br /&gt;
	UadSuperior.uad_nome AS DRE&lt;br /&gt;
	, Esc.esc_nome AS Escola&lt;br /&gt;
	, Pes.pes_nome as Docente&lt;br /&gt;
	, Usu.usu_login AS [login]&lt;br /&gt;
	, Tdc.tdc_nome AS TipoDocente&lt;br /&gt;
	, Cal.cal_ano AS AnoLetivo&lt;br /&gt;
	, Tur.tur_codigo AS Turma&lt;br /&gt;
	, CASE Tur.tur_tipo WHEN 1 THEN 'Normal' WHEN 2 THEN 'Recuperação paralela' WHEN 3 THEN 'Educação Física' WHEN 4 THEN 'Educação Física' ELSE '' END AS TipoTurma&lt;br /&gt;
	, Tud.tud_nome AS Disciplina&lt;br /&gt;
	, Tur.tur_id&lt;br /&gt;
	, Tud.tud_id&lt;br /&gt;
	, tud_tipo&lt;br /&gt;
	, Tur.esc_id&lt;br /&gt;
	, (SELECT COUNT(alu_id) FROM MTR_MatriculaTurma WITH(NOLOCK) WHERE tur_id = Tur.tur_id AND mtu_situacao &amp;lt;&amp;gt; 3) AS QtAlunos&lt;br /&gt;
FROM TUR_TurmaDocente Tdt WITH(NOLOCK)&lt;br /&gt;
INNER JOIN TUR_TurmaDisciplina Tud WITH(NOLOCK)&lt;br /&gt;
ON Tud.tud_id = Tdt.tud_id&lt;br /&gt;
inner join TUR_TurmaRelTurmaDisciplina RelTud WITH(NOLOCK)&lt;br /&gt;
ON Reltud.tud_id = Tud.tud_id&lt;br /&gt;
INNER JOIN ACA_TipoDocente Tdc WITH(NOLOCK)&lt;br /&gt;
	ON Tdc.tdc_posicao = Tdt.tdt_posicao&lt;br /&gt;
INNER JOIN TUR_Turma Tur WITH(NOLOCK)&lt;br /&gt;
	ON Tur.tur_id = RelTud.tur_id&lt;br /&gt;
INNER JOIN ACA_CalendarioAnual Cal WITH(NOLOCK)&lt;br /&gt;
	ON Cal.cal_id = Tur.cal_id&lt;br /&gt;
INNER JOIN ACA_Docente Doc WITH(NOLOCK)&lt;br /&gt;
	ON Doc.doc_id = Tdt.doc_id&lt;br /&gt;
INNER JOIN RHU_Colaborador Col WITH(NOLOCK)&lt;br /&gt;
	ON Col.col_id = Doc.col_id&lt;br /&gt;
	AND Col.col_situacao &amp;lt;&amp;gt; 3&lt;br /&gt;
INNER JOIN RHU_ColaboradorCargo Coc WITH(NOLOCK)&lt;br /&gt;
	ON Coc.col_id = Col.col_id&lt;br /&gt;
	AND Coc.crg_id = Tdt.crg_id&lt;br /&gt;
	AND Coc.coc_id = Tdt.coc_id&lt;br /&gt;
	AND Coc.coc_situacao &amp;lt;&amp;gt; 3&lt;br /&gt;
INNER JOIN Synonym_PES_Pessoa Pes WITH(NOLOCK)&lt;br /&gt;
	ON Pes.pes_id = Col.pes_id&lt;br /&gt;
INNER JOIN Synonym_SYS_Usuario Usu WITH(NOLOCK)&lt;br /&gt;
	ON Usu.pes_id = Pes.pes_id&lt;br /&gt;
	AND Usu.usu_situacao &amp;lt;&amp;gt; 3&lt;br /&gt;
INNER JOIN ESC_Escola Esc WITH(NOLOCK)&lt;br /&gt;
	ON Esc.esc_id = Tur.esc_id&lt;br /&gt;
INNER JOIN Synonym_SYS_UnidadeAdministrativa Uad WITH(NOLOCK)&lt;br /&gt;
	ON Uad.ent_id = Esc.ent_id&lt;br /&gt;
	AND Uad.uad_id = Esc.uad_id&lt;br /&gt;
INNER JOIN Synonym_SYS_UnidadeAdministrativa UadSuperior WITH(NOLOCK)&lt;br /&gt;
	ON UadSuperior.ent_id = Uad.ent_id&lt;br /&gt;
	AND UadSuperior.uad_id = ISNULL(esc.uad_idSuperiorGestao, Uad.uad_idSuperior)&lt;br /&gt;
WHERE&lt;br /&gt;
	Tdt.tdt_situacao = 1&lt;br /&gt;
	AND Tur.tur_situacao = 1&lt;br /&gt;
	AND Tud.tud_situacao &amp;lt;&amp;gt; 3&lt;br /&gt;
	&lt;br /&gt;
	-- Regência&lt;br /&gt;
	AND Tud.tud_tipo NOT IN (11 , 12, 13)&lt;br /&gt;
&lt;br /&gt;
order by&lt;br /&gt;
	Uad.uad_nome&lt;br /&gt;
	, Esc.esc_nome&lt;br /&gt;
	, Pes.pes_nome&lt;br /&gt;
	, Coc.coc_matricula&lt;br /&gt;
	, Tur.tur_codigo&lt;br /&gt;
	, Tud.tud_nome&lt;br /&gt;
	, Tdc.tdc_nome&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andre.iguera</name></author>	</entry>

	</feed>