Commit f2be132b authored by sandroresende's avatar sandroresende

troca oficio e modulo ente publico

parent b2ed1942
......@@ -14,11 +14,11 @@ DB_USERNAME=sishab
DB_PASSWORD=sishab09mcmv20cva
DB_CONNECTION_CORP=pgsql_corp
DB_HOST_CORP=boavista.cidades.gov.br
DB_HOST_CORP=127.0.0.1
DB_PORT_CORP=5432
DB_DATABASE_CORP=corporativo
DB_USERNAME_CORP=sandro.resende
DB_PASSWORD_CORP=san123
DB_USERNAME_CORP=postgres
DB_PASSWORD_CORP=postgres
BROADCAST_DRIVER=log
CACHE_DRIVER=file
......
......@@ -39,10 +39,74 @@ class HomeController extends Controller
$usuario = Auth::user();
$propostasCadastradas = ViewPropostasCadastradasUf::get();
$propostasCadastradas = ViewPropostasCadastradasUf::get();
$totalProposta = ['total_propostas'=> 0,
'total_inteverncao'=> 0,
'total_num_propostas_ac'=> 0,
'total_num_propostas_al'=> 0,
'total_num_propostas_am'=> 0,
'total_num_propostas_ap'=> 0,
'total_num_propostas_ba'=> 0,
'total_num_propostas_ce'=> 0,
'total_num_propostas_df'=> 0,
'total_num_propostas_es'=> 0,
'total_num_propostas_go'=> 0,
'total_num_propostas_ma'=> 0,
'total_num_propostas_mg'=> 0,
'total_num_propostas_ms'=> 0,
'total_num_propostas_mt'=> 0,
'total_num_propostas_ms'=> 0,
'total_num_propostas_pa'=> 0,
'total_num_propostas_pb'=> 0,
'total_num_propostas_pe'=> 0,
'total_num_propostas_pi'=> 0,
'total_num_propostas_pr'=> 0,
'total_num_propostas_rj'=> 0,
'total_num_propostas_rn'=> 0,
'total_num_propostas_ro'=> 0,
'total_num_propostas_rr'=> 0,
'total_num_propostas_rs'=> 0,
'total_num_propostas_sc'=> 0,
'total_num_propostas_se'=> 0,
'total_num_propostas_sp'=> 0,
'total_num_propostas_to'=> 0,
];
foreach($propostasCadastradas as $valor){
$totalProposta['total_propostas'] += $valor->num_propostas;
$totalProposta['total_inteverncao'] += $valor->num_propostas;
$totalProposta['total_num_propostas_ac'] += $valor->num_propostas_ac;
$totalProposta['total_num_propostas_al'] += $valor->num_propostas_al;
$totalProposta['total_num_propostas_am'] += $valor->num_propostas_am;
$totalProposta['total_num_propostas_ap'] += $valor->num_propostas_ap;
$totalProposta['total_num_propostas_ba'] += $valor->num_propostas_ba;
$totalProposta['total_num_propostas_ce'] += $valor->num_propostas_ce;
$totalProposta['total_num_propostas_df'] += $valor->num_propostas_df;
$totalProposta['total_num_propostas_es'] += $valor->num_propostas_es;
$totalProposta['total_num_propostas_go'] += $valor->num_propostas_go;
$totalProposta['total_num_propostas_ma'] += $valor->num_propostas_ma;
$totalProposta['total_num_propostas_mg'] += $valor->num_propostas_mg;
$totalProposta['total_num_propostas_ms'] += $valor->num_propostas_ms;
$totalProposta['total_num_propostas_mt'] += $valor->num_propostas_mt;
$totalProposta['total_num_propostas_pa'] += $valor->num_propostas_pa;
$totalProposta['total_num_propostas_pb'] += $valor->num_propostas_pb;
$totalProposta['total_num_propostas_pe'] += $valor->num_propostas_pe;
$totalProposta['total_num_propostas_pi'] += $valor->num_propostas_pi;
$totalProposta['total_num_propostas_pr'] += $valor->num_propostas_pr;
$totalProposta['total_num_propostas_rj'] += $valor->num_propostas_rj;
$totalProposta['total_num_propostas_rn'] += $valor->num_propostas_rn;
$totalProposta['total_num_propostas_ro'] += $valor->num_propostas_ro;
$totalProposta['total_num_propostas_rr'] += $valor->num_propostas_rr;
$totalProposta['total_num_propostas_rs'] += $valor->num_propostas_rs;
$totalProposta['total_num_propostas_sc'] += $valor->num_propostas_sc;
$totalProposta['total_num_propostas_se'] += $valor->num_propostas_se;
$totalProposta['total_num_propostas_sp'] += $valor->num_propostas_sp;
$totalProposta['total_num_propostas_to'] += $valor->num_propostas_to;
}
//return $totalProposta;
$where = [];
$where[] = ['bln_oficio',true];
......@@ -54,12 +118,24 @@ class HomeController extends Controller
->where($where)
->groupBy('sg_uf')
->get();
$totalOficios = ['total_oficios'=> 0,
'total_num_aguardando_analise'=> 0,
'total_num_validado'=> 0,
'total_num_invalidado'=> 0
];
foreach($arquivosOficio as $valor){
$totalOficios['total_oficios'] += $valor->num_oficios;
$totalOficios['total_num_aguardando_analise'] += $valor->num_aguardando_analise;
$totalOficios['total_num_validado'] += $valor->num_validado;
$totalOficios['total_num_invalidado'] += $valor->num_invalidado;
}
return view('home',compact('usuario','arquivosOficio','propostasCadastradas'));
return view('home',compact('usuario','arquivosOficio','propostasCadastradas','totalProposta','totalOficios'));
}
......
......@@ -67,14 +67,14 @@ class PropostaController extends Controller
$proposta = Propostas::where($where)->get();
$itensFinanciveis = '';
$moduloSistema = $request->moduloSistema;
if($selecao->modalidade_participacao_id == 3){
return view('modulo_propostas.proposta.semob.CadastrarPropostaSemob',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis'));
return view('modulo_propostas.proposta.semob.CadastrarPropostaSemob',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis','moduloSistema'));
}if($selecao->modalidade_participacao_id == 2){
return view('modulo_propostas.proposta.snsa.CadastrarPropostaSnsa',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis'));
return view('modulo_propostas.proposta.snsa.CadastrarPropostaSnsa',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis','moduloSistema'));
}if($selecao->modalidade_participacao_id == 1){
return view('modulo_propostas.proposta.sndum.CadastrarPropostaSndum',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis'));
return view('modulo_propostas.proposta.sndum.CadastrarPropostaSndum',compact('cpfUsuario','entePublicoId','selecao','itensFinanciveis','moduloSistema'));
}
......@@ -189,6 +189,8 @@ class PropostaController extends Controller
//return $request->all();
$moduloSistema = $request->moduloSistema;
$where = [];
$entePublicoId = Crypt::decrypt($request->ente_publico_id);
......@@ -244,6 +246,8 @@ class PropostaController extends Controller
$itensFinanciveis = RlcItensFinanciaveisProposta::where('proposta_id',$proposta->id)->get();
if ($salvoComSucesso && $salvouItensFinanciaveis){
DB::commit();
flash()->sucesso("Sucesso", "Proposta cadastrada com sucesso!");
......@@ -251,10 +255,11 @@ class PropostaController extends Controller
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
// return view('modulo_propostas.proposta.semob.DadosPropostaSemob',compact('cpfUsuario','entePublicoId','proposta','itensFinanciveis'));
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
} else {
DB::rollBack();
......@@ -267,6 +272,7 @@ class PropostaController extends Controller
public function editarPropostaSemob(Request $request){
//return $request->all();
$moduloSistema = $request->moduloSistema;
$where = [];
......@@ -319,11 +325,11 @@ class PropostaController extends Controller
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
//return view('modulo_propostas.proposta.semob.DadosPropostaSemob',compact('cpfUsuario','entePublicoId','proposta','usuario','itensFinanciveis'));
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
} else {
DB::rollBack();
......@@ -342,6 +348,8 @@ class PropostaController extends Controller
//return $request->all(0);
$moduloSistema = $request->moduloSistema;
$where = [];
$entePublicoId = Crypt::decrypt($request->ente_publico_id);
......@@ -403,11 +411,12 @@ class PropostaController extends Controller
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
//return view('modulo_propostas.proposta.sndum.DadosPropostaSndum',compact('cpfUsuario','entePublicoId','proposta','itensFinanciveis'));
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
......@@ -418,6 +427,8 @@ class PropostaController extends Controller
//return $request->all();
$moduloSistema = $request->moduloSistema;
$where = [];
$entePublicoId = Crypt::decrypt($request->ente_publico_id);
......@@ -463,22 +474,23 @@ class PropostaController extends Controller
if ($salvoComSucesso && $salvouItensFinanciaveis && $deletadoSucesso){
DB::commit();
flash()->sucesso("Sucesso", "Proposta atualizada com sucesso!");
DB::commit();
flash()->sucesso("Sucesso", "Proposta atualizada com sucesso!");
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
//return view('modulo_propostas.proposta.sndum.DadosPropostaSndum',compact('cpfUsuario','entePublicoId','proposta','usuario','itensFinanciveis'));
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
}
////////////////////////////PROPOSTAS SNSA/////////////////////////////////////////////////
......@@ -488,6 +500,8 @@ class PropostaController extends Controller
//return $request->all();
$moduloSistema = $request->moduloSistema;
$where = [];
$entePublicoId = Crypt::decrypt($request->ente_publico_id);
......@@ -551,28 +565,31 @@ class PropostaController extends Controller
if ($salvoComSucesso && $salvouItensFinanciaveis){
DB::commit();
flash()->sucesso("Sucesso", "Proposta cadastrada com sucesso!");
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
//return view('modulo_propostas.proposta.snsa.DadosPropostaSnsa',compact('cpfUsuario','entePublicoId','proposta','itensFinanciveis'));
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
DB::commit();
flash()->sucesso("Sucesso", "Proposta cadastrada com sucesso!");
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
}
public function editarPropostaSnsa(Request $request){
//return $request->all();
$moduloSistema = $request->moduloSistema;
$where = [];
$entePublicoId = Crypt::decrypt($request->ente_publico_id);
......@@ -624,18 +641,16 @@ class PropostaController extends Controller
$entePublicoId = Crypt::encrypt($entePublicoId);
$cpfUsuario = Crypt::encrypt($cpfUsuario);
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
//return view('modulo_propostas.proposta.snsa.DadosPropostaSnsa',compact('cpfUsuario','entePublicoId','proposta','usuario','itensFinanciveis'));
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
if($moduloSistema){
return redirect('/selecao/ente_publico/propostas');
}else{
return redirect('/ente_publico/propostas/'. $cpfUsuario . '/' . $entePublicoId);
}
} else {
DB::rollBack();
flash()->erro("Erro", "Não foi possível cadastrar os dados da proposta.");
return back();
}
}
}
......@@ -26,9 +26,11 @@ class RedirecionarUsuario
if($sistemaAtivo){
if($usuario->status_usuario_id == 2){
//return redirect('/usuario/primeiro_acesso');
flash()->info("Sistema em desenvolvimento", "Módulo Ente Público em desenvolvimento");
Auth::logout();
return redirect('/');
}elseif(!$usuario->bln_aceite_termo){
return redirect('/usuario/termo_responsabilidade');
} else{
......
......@@ -29,38 +29,38 @@
<div class="table-responsive">
<table class="table table-bordered table-sm tab_executivo">
<thead>
<tr>
<th>Modalidade</th>
<th>Seleção</th>
<th>Propostas</th>
<th>Valor</th>
<th>AC</th>
<th>AL</th>
<th>AM</th>
<th>AP</th>
<th>BA</th>
<th>CE</th>
<th>DF</th>
<th>ES</th>
<th>GO</th>
<th>MA</th>
<th>MG</th>
<th>MS</th>
<th>MT</th>
<th>PA</th>
<th>PB</th>
<th>PE</th>
<th>PI</th>
<th>PR</th>
<th>RJ</th>
<th>RN</th>
<th>RO</th>
<th>RR</th>
<th>RS</th>
<th>SC</th>
<th>SE</th>
<th>SP</th>
<th>TO</th>
<tr class="text-center">
<th class="text-center">Modalidade</th>
<th class="text-center">Seleção</th>
<th class="text-center">Propostas</th>
<th class="text-center">Valor</th>
<th class="text-center">AC</th>
<th class="text-center">AL</th>
<th class="text-center">AM</th>
<th class="text-center">AP</th>
<th class="text-center">BA</th>
<th class="text-center">CE</th>
<th class="text-center">DF</th>
<th class="text-center">ES</th>
<th class="text-center">GO</th>
<th class="text-center">MA</th>
<th class="text-center">MG</th>
<th class="text-center">MS</th>
<th class="text-center">MT</th>
<th class="text-center">PA</th>
<th class="text-center">PB</th>
<th class="text-center">PE</th>
<th class="text-center">PI</th>
<th class="text-center">PR</th>
<th class="text-center">RJ</th>
<th class="text-center">RN</th>
<th class="text-center">RO</th>
<th class="text-center">RR</th>
<th class="text-center">RS</th>
<th class="text-center">SC</th>
<th class="text-center">SE</th>
<th class="text-center">SP</th>
<th class="text-center">TO</th>
</tr>
<tr>
<!--
......@@ -78,7 +78,7 @@
@foreach($propostasCadastradas as $dados)
<tr>
<td>{{$dados->txt_modalidade_participacao}}</td>
<td>{{$dados->num_selecao}}ª</td>
<td class="text-center">{{$dados->num_selecao}}ª</td>
<td class="text-center">{{number_format( ($dados->num_propostas), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($dados->vlr_total), 2, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($dados->num_propostas_ac), 0, ',' , '.')}}</td>
......@@ -109,7 +109,39 @@
<td class="text-center">{{number_format( ($dados->num_propostas_sp), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($dados->num_propostas_to), 0, ',' , '.')}}</td>
</tr>
@endforeach
@endforeach
<tr class="total text-weight-semi-bold">
<td colspan="2" class="text-center">TOTAL</td>
<td class="text-center">{{number_format( ($totalProposta['total_propostas']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_inteverncao']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ac']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_al']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_am']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ap']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ba']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ce']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_df']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_es']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_go']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ma']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_mg']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ms']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_mt']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_pa']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_pb']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_pe']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_pi']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_pr']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_rj']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_rn']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_ro']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_rr']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_rs']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_sc']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_se']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_sp']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalProposta['total_num_propostas_to']), 0, ',' , '.')}}</td>
</tr>
</tbody>
</table>
......@@ -181,7 +213,14 @@
<td class="text-center">{{number_format( ($dados->num_invalidado), 0, ',' , '.')}}</td>
</tr>
@endforeach
@endforeach
<tr class="total text-weight-semi-bold">
<td class="text-center">TOTAL</td>
<td class="text-center">{{number_format( ($totalOficios['total_oficios']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalOficios['total_num_aguardando_analise']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalOficios['total_num_validado']), 0, ',' , '.')}}</td>
<td class="text-center">{{number_format( ($totalOficios['total_num_invalidado']), 0, ',' , '.')}}</td>
</tr>
</tbody>
</table>
......
......@@ -169,6 +169,7 @@
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo">
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
......@@ -310,7 +311,7 @@
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo" >
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
......@@ -537,7 +538,9 @@
<form class="form-horizontal" role="form" method="POST" action='{{ url("proposta/cadastrar/selecao/3") }}'>
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo" >
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
</button>
......
......@@ -40,7 +40,7 @@
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($cpfUsuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($entePublicoId)}}">
<input type="hidden" id="selecao_id" name="selecao_id" value="1">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<cadastrar-proposta-semob
:url="'{{ url('/') }}'"
......@@ -52,8 +52,15 @@
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">Fechar
</button>
@if($moduloSistema)
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/selecao/andamento'">
Fechar
</button>
@else
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">
Fechar
</button>
@endif
</cadastrar-proposta-semob>
......
......@@ -52,9 +52,15 @@
v-bind:blnbotao="false"
>
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">Fechar
</button>
@if($moduloSistema)
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/selecao/ente_publico/propostas'">
Fechar
</button>
@else
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">
Fechar
</button>
@endif
</cadastrar-proposta-semob>
......
......@@ -41,6 +41,7 @@
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($cpfUsuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($entePublicoId)}}">
<input type="hidden" id="selecao_id" name="selecao_id" value="2">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<cadastrar-proposta-sndum
......@@ -53,8 +54,15 @@
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">Fechar
</button>
@if($moduloSistema)
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/selecao/andamento'">
Fechar
</button>
@else
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">
Fechar
</button>
@endif
</cadastrar-proposta-sndum>
</form>
......
......@@ -32,15 +32,16 @@
<p>
A inserção de propostas não se constitui garantia de acesso a recursos pelo
proponente, que deverá atestar ciência da natureza discricionária da requisição
conforme modelo disponível no sítio eletrônico do Ministério das Cidades
(<a href="https://www.gov.br/cidades/pt-br/cadastramento/PS_Emendas_Discricionrias_4A_RP2_MOBILIDADE_rev3.pdf" target="_blank"> 7.1.1 do Manual disciplina rito para acesso aos recursos discricionários</a>).
conforme disponível no sítio eletrônico do
(<a href="https://www.gov.br/cidades/pt-br/cadastramento/saneamento/1a-selecao" target="_blank"> Ministério das Cidades</a>).
</p>
<form id="form_cad_proposta_snsa" class="form-horizontal" role="form" method="POST" action='{{ url("proposta/snsa/salvar") }}'>
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($cpfUsuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($entePublicoId)}}">
<input type="hidden" id="selecao_id" name="selecao_id" value="3">
<input type="hidden" id="selecao_id" name="selecao_id" value="3">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="true">
<cadastrar-proposta-snsa
:url="'{{ url('/') }}'"
......@@ -52,8 +53,15 @@
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">Fechar
</button>
@if($moduloSistema)
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/selecao/andamento'">
Fechar
</button>
@else
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">
Fechar
</button>
@endif
</cadastrar-proposta-snsa>
</form>
......
......@@ -53,11 +53,15 @@
>
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">Fechar
</button>
@if($moduloSistema)
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/selecao/ente_publico/propostas'">
Fechar
</button>
@else
<button class="br-button danger mr-3" type="button" onclick="window.location.href='/ente_publico/propostas/{{Crypt::encrypt($cpfUsuario)}}/{{Crypt::encrypt($entePublicoId)}}'">
Fechar
</button>
@endif
</cadastrar-proposta-snsa>
......
......@@ -369,7 +369,8 @@
<form class="form-horizontal" role="form" method="POST" action='{{ url("proposta/cadastrar/selecao/2") }}'>
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="false">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo">
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
......@@ -511,7 +512,7 @@
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="false">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo" >
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
......@@ -738,7 +739,9 @@
<form class="form-horizontal" role="form" method="POST" action='{{ url("proposta/cadastrar/selecao/3") }}'>
{{ csrf_field() }}
<input type="hidden" id="txt_cpf_usuario" name="txt_cpf_usuario" value="{{Crypt::encrypt($usuario->txt_cpf_usuario)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="ente_publico_id" name="ente_publico_id" value="{{Crypt::encrypt($usuario->ente_publico_id)}}">
<input type="hidden" id="moduloSistema" name="moduloSistema" value="false">
<button type="submit" class="br-button block secondary mr-3" aria-label="Ícone ilustrativo" >
<i class="fas fa-edit" aria-hidden="true"></i>Cadastrar Proposta
</button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment