diff --git a/.env b/.env index 491b9638..f5fb8331 100755 --- a/.env +++ b/.env @@ -18,7 +18,7 @@ DB_PORT=3306 # Alteracoes para funcionar com o servidor, porem não funciona na firma DB_HOST=ispt-innovation.com -DB_DATABASE=ispt40 +DB_DATABASE=ispt40_backup DB_USERNAME=ispt40 DB_PASSWORD=qu3ro3ntr@r diff --git a/app/Http/Controllers/WorkstationsJobsController.php b/app/Http/Controllers/WorkstationsJobsController.php index 5872a37a..77620a59 100644 --- a/app/Http/Controllers/WorkstationsJobsController.php +++ b/app/Http/Controllers/WorkstationsJobsController.php @@ -1,366 +1,13 @@ email; - -// // $equipmentsTodo= DB::select(" -// // WITH equipments_multiple_rows AS ( -// // SELECT -// // e.equipment_id, -// // e.equipment_tag, -// // COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks -// // FROM -// // users u -// // JOIN -// // construction_workstations cw ON u.user_name = cw.name_workstations -// // JOIN -// // workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// // JOIN -// // equipments e ON wat.company_projects_id = e.company_projects_id -// // JOIN -// // ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id -// // WHERE -// // u.email = :email -// // AND -// // oet.execution_order = 1 -// // GROUP BY -// // e.equipment_id, -// // e.equipment_tag -// // ), - -// // workstations_multiple_rows AS ( -// // SELECT -// // cw.id_workstations, -// // cw.name_workstations, -// // COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks -// // FROM -// // users u -// // JOIN -// // construction_workstations cw ON u.user_name = cw.name_workstations -// // JOIN -// // workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// // WHERE -// // u.email = :email -// // ), - -// // workstations_control_all_tasks AS ( -// // SELECT -// // cew.control_equipment_workstation_id, -// // cew.equipment_id, -// // CASE -// // WHEN cew.id_workstations IS NULL THEN NULL -// // WHEN cew.id_workstations IN ( -// // SELECT wat.id_workstations -// // FROM workstations_association_tasks wat -// // JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// // JOIN users u ON u.user_name = cw.name_workstations -// // WHERE u.email = :email -// // ) THEN cew.id_workstations -// // ELSE NULL -// // END AS control_id_workstations, -// // COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, -// // cew.equipment_comments_id, -// // cew.entry_date, -// // cew.departure_date -// // FROM -// // control_equipment_workstation cew -// // WHERE -// // cew.id_workstations IS NULL -// // OR cew.id_workstations IN ( -// // SELECT wat.id_workstations -// // FROM workstations_association_tasks wat -// // JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// // JOIN users u ON u.user_name = cw.name_workstations -// // WHERE u.email = :email -// // ) -// // ) - -// // SELECT -// // emr.equipment_id, -// // emr.equipment_tag -// // FROM -// // equipments_multiple_rows emr -// // WHERE -// // ( -// // emr.equipment_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) -// // AND NOT EXISTS ( -// // SELECT 1 -// // FROM workstations_control_all_tasks wc -// // WHERE wc.equipment_id = emr.equipment_id -// // AND wc.control_id_workstations IN (SELECT id_workstations FROM workstations_multiple_rows) -// // ) -// // ) -// // OR -// // ( -// // emr.equipment_id IN ( -// // SELECT equipment_id -// // FROM workstations_control_all_tasks -// // WHERE control_id_workstations IS NULL -// // AND entry_date IS NULL -// // AND departure_date IS NULL -// // AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) -// // ) -// // AND NOT EXISTS ( -// // SELECT 1 -// // FROM workstations_control_all_tasks wc -// // WHERE wc.equipment_id = emr.equipment_id -// // AND wc.control_id_workstations IS NOT NULL -// // GROUP BY wc.equipment_id -// // HAVING COUNT(DISTINCT wc.control_id_workstations) > 1 -// // ) -// // ) -// // GROUP BY -// // emr.equipment_id, -// // emr.equipment_tag -// // ORDER BY -// // emr.equipment_id ASC; -// // ", ['email' => $userEmail]); - - -// $equipmentsDone = DB::select(" -// WITH equipments_multiple_rows AS ( -// SELECT -// e.equipment_id, -// e.equipment_tag, -// COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks -// FROM -// users u -// JOIN -// construction_workstations cw ON u.user_name = cw.name_workstations -// JOIN -// workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// JOIN -// equipments e ON wat.company_projects_id = e.company_projects_id -// JOIN -// ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id -// WHERE -// u.email = :email -// AND -// oet.execution_order = 1 -// GROUP BY -// e.equipment_id, -// e.equipment_tag -// ), - -// workstations_multiple_rows AS ( -// SELECT -// cw.id_workstations, -// cw.name_workstations, -// COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks -// FROM -// users u -// JOIN -// construction_workstations cw ON u.user_name = cw.name_workstations -// JOIN -// workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// WHERE -// u.email = :email -// ), - -// workstations_control_all_tasks AS ( -// SELECT -// cew.control_equipment_workstation_id, -// cew.equipment_id, -// CASE -// WHEN cew.id_workstations IS NULL THEN NULL -// WHEN cew.id_workstations IN ( -// SELECT wat.id_workstations -// FROM workstations_association_tasks wat -// JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// JOIN users u ON u.user_name = cw.name_workstations -// WHERE u.email = :email -// ) THEN cew.id_workstations -// ELSE NULL -// END AS control_id_workstations, -// COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, -// cew.equipment_comments_id, -// cew.entry_date, -// cew.departure_date -// FROM -// control_equipment_workstation cew -// WHERE -// cew.id_workstations IS NULL -// OR cew.id_workstations IN ( -// SELECT wat.id_workstations -// FROM workstations_association_tasks wat -// JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// JOIN users u ON u.user_name = cw.name_workstations -// WHERE u.email = :email -// ) -// ) - -// SELECT -// emr.equipment_id, -// emr.equipment_tag -// FROM -// equipments_multiple_rows emr -// WHERE -// EXISTS ( -// SELECT 1 -// FROM workstations_control_all_tasks wc -// JOIN workstations_multiple_rows wmr ON wc.control_id_workstations = wmr.id_workstations -// WHERE wc.equipment_id = emr.equipment_id -// AND wc.control_workstation_all_tasks = wmr.all_tasks -// AND wc.entry_date IS NOT NULL -// AND wc.departure_date IS NOT NULL -// AND wc.control_id_workstations IS NOT NULL -// ) -// AND NOT EXISTS ( -// SELECT 1 -// FROM workstations_control_all_tasks wc -// WHERE wc.equipment_id = emr.equipment_id -// AND wc.control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) -// AND wc.control_id_workstations IS NULL -// ) -// GROUP BY -// emr.equipment_id, -// emr.equipment_tag -// ORDER BY -// emr.equipment_id ASC; -// ", ['email' => $userEmail]); - - -// $equipmentsReturned = DB::select(" -// WITH equipments_multiple_rows AS ( -// SELECT -// e.equipment_id, -// e.equipment_tag, -// COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks -// FROM -// users u -// JOIN -// construction_workstations cw ON u.user_name = cw.name_workstations -// JOIN -// workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// JOIN -// equipments e ON wat.company_projects_id = e.company_projects_id -// JOIN -// ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id -// WHERE -// u.email = :email -// AND -// oet.execution_order = 1 -// GROUP BY -// e.equipment_id, -// e.equipment_tag -// ), - -// workstations_multiple_rows AS ( -// SELECT -// cw.id_workstations, -// cw.name_workstations, -// COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks -// FROM -// users u -// JOIN -// construction_workstations cw ON u.user_name = cw.name_workstations -// JOIN -// workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations -// WHERE -// u.email = :email -// ), - -// workstations_control_all_tasks AS ( -// SELECT -// cew.control_equipment_workstation_id, -// cew.equipment_id, -// CASE -// WHEN cew.id_workstations IS NULL THEN NULL -// WHEN cew.id_workstations IN ( -// SELECT wat.id_workstations -// FROM workstations_association_tasks wat -// JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// JOIN users u ON u.user_name = cw.name_workstations -// WHERE u.email = :email -// ) THEN cew.id_workstations -// ELSE NULL -// END AS control_id_workstations, -// COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, -// cew.equipment_comments_id, -// cew.entry_date, -// cew.departure_date -// FROM -// control_equipment_workstation cew -// WHERE -// cew.id_workstations IS NULL -// OR cew.id_workstations IN ( -// SELECT wat.id_workstations -// FROM workstations_association_tasks wat -// JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id -// JOIN users u ON u.user_name = cw.name_workstations -// WHERE u.email = :email -// ) -// ) - -// SELECT -// emr.equipment_id, -// emr.equipment_tag -// FROM -// equipments_multiple_rows emr -// WHERE -// emr.equipment_id IN ( -// SELECT equipment_id -// FROM workstations_control_all_tasks -// WHERE control_id_workstations IS NULL -// AND entry_date IS NULL -// AND departure_date IS NULL -// AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) -// AND EXISTS ( -// SELECT 1 -// FROM workstations_control_all_tasks wc -// WHERE wc.equipment_id = emr.equipment_id -// AND wc.control_id_workstations IS NOT NULL -// GROUP BY wc.equipment_id -// HAVING COUNT(DISTINCT wc.control_id_workstations) >= 2 -// ) -// ) -// GROUP BY -// emr.equipment_id, -// emr.equipment_tag -// ORDER BY -// emr.equipment_id ASC; -// ", ['email' => $userEmail]); - -// $workstationNameQuery = DB::select(" -// SELECT construction_workstations.nomenclature_workstation -// FROM construction_workstations -// JOIN users -// WHERE construction_workstations.name_workstations = users.user_name -// AND users.email = :email; -// ", ['email' => $userEmail]); - -// $workstationName = $workstationNameQuery[0]->nomenclature_workstation; - -// //Counting of equipments -// // $equipmentsTodoCount = count($equipmentsTodo); -// $equipmentsDoneCount = count($equipmentsDone); -// $equipmentsReturnedCount = count($equipmentsReturned); - -// //Returning values of the queries to workstations layout -// return view('workstations.index', [ -// // 'equipmentsTodo' => $equipmentsTodo, 'equipmentsTodoCount' => $equipmentsTodoCount, -// 'equipmentsDone' => $equipmentsDone, 'equipmentsDoneCount' => $equipmentsDoneCount, -// 'equipmentsReturned' => $equipmentsReturned, 'equipmentsReturnedCount' => $equipmentsReturnedCount, -// 'workstationName' => $workstationName -// ]); -// } -// } - - - - namespace App\Http\Controllers; +use App\Models\ConstructionWorkstation; +use App\Models\ControlEquipmentWorkstation; +use App\Models\ElementalTasks; +use App\Models\Equipment; +use App\Models\workstationsTaskAnswers; + use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\DB; @@ -370,365 +17,188 @@ class WorkstationsJobsController extends Controller { public function index() { - $userEmail = Auth::user()->email; + return view('workstations.start'); + } - $equipmentsTodo = DB::select(" - WITH equipments_multiple_rows AS ( - SELECT - e.equipment_id, - e.equipment_tag, - COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - JOIN - equipments e ON wat.company_projects_id = e.company_projects_id - JOIN - ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id - WHERE - u.email = :email1 - AND - oet.execution_order = 1 - GROUP BY - e.equipment_id, - e.equipment_tag - ), - - workstations_multiple_rows AS ( - SELECT - cw.id_workstations, - cw.name_workstations, - COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - WHERE - u.email = :email2 - ), - - workstations_control_all_tasks AS ( - SELECT - cew.control_equipment_workstation_id, - cew.equipment_id, - CASE - WHEN cew.id_workstations IS NULL THEN NULL - WHEN cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email3 - ) THEN cew.id_workstations - ELSE NULL - END AS control_id_workstations, - COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, - cew.equipment_comments_id, - cew.entry_date, - cew.departure_date - FROM - control_equipment_workstation cew - WHERE - cew.id_workstations IS NULL - OR cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email4 - ) - ) - - SELECT - emr.equipment_id, - emr.equipment_tag - FROM - equipments_multiple_rows emr - WHERE - ( - emr.equipment_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) - AND NOT EXISTS ( - SELECT 1 - FROM workstations_control_all_tasks wc - WHERE wc.equipment_id = emr.equipment_id - AND wc.control_id_workstations IN (SELECT id_workstations FROM workstations_multiple_rows) - ) - ) - OR - ( - emr.equipment_id IN ( - SELECT equipment_id - FROM workstations_control_all_tasks - WHERE control_id_workstations IS NULL - AND entry_date IS NULL - AND departure_date IS NULL - AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) - ) - AND NOT EXISTS ( - SELECT 1 - FROM workstations_control_all_tasks wc - WHERE wc.equipment_id = emr.equipment_id - AND wc.control_id_workstations IS NOT NULL - GROUP BY wc.equipment_id - HAVING COUNT(DISTINCT wc.control_id_workstations) > 1 - ) - ) - GROUP BY - emr.equipment_id, - emr.equipment_tag - ORDER BY - emr.equipment_id ASC; - ", [ - 'email1' => $userEmail, - 'email2' => $userEmail, - 'email3' => $userEmail, - 'email4' => $userEmail - ]); + public function controlEquipment() + { + // A partir deste dado consigo receber os valores do WS,TE e Equipment + $controlEquipmentWorkstationId = 33; + $receiveEquipment = Equipment::where('equipment_id', 1443)->first(); - $equipmentsReturned = DB::select(" - WITH equipments_multiple_rows AS ( - SELECT - e.equipment_id, - e.equipment_tag, - COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - JOIN - equipments e ON wat.company_projects_id = e.company_projects_id - JOIN - ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id - WHERE - u.email = :email1 - AND - oet.execution_order = 1 - GROUP BY - e.equipment_id, - e.equipment_tag - ), - - workstations_multiple_rows AS ( - SELECT - cw.id_workstations, - cw.name_workstations, - COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - WHERE - u.email = :email2 - ), - - workstations_control_all_tasks AS ( - SELECT - cew.control_equipment_workstation_id, - cew.equipment_id, - CASE - WHEN cew.id_workstations IS NULL THEN NULL - WHEN cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email3 - ) THEN cew.id_workstations - ELSE NULL - END AS control_id_workstations, - COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, - cew.equipment_comments_id, - cew.entry_date, - cew.departure_date - FROM - control_equipment_workstation cew - WHERE - cew.id_workstations IS NULL - OR cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email4 - ) - ) - - SELECT - emr.equipment_id, - emr.equipment_tag - FROM - equipments_multiple_rows emr - WHERE - emr.equipment_id IN ( - SELECT equipment_id - FROM workstations_control_all_tasks - WHERE control_id_workstations IS NULL - AND entry_date IS NULL - AND departure_date IS NULL - AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) - AND EXISTS ( - SELECT 1 - FROM workstations_control_all_tasks wc - WHERE wc.equipment_id = emr.equipment_id - AND wc.control_id_workstations IS NOT NULL - GROUP BY wc.equipment_id - HAVING COUNT(DISTINCT wc.control_id_workstations) >= 2 - ) - ) - GROUP BY - emr.equipment_id, - emr.equipment_tag - ORDER BY - emr.equipment_id ASC; - - ", [ - - 'email1' => $userEmail, - 'email2' => $userEmail, - 'email3' => $userEmail, - 'email4' => $userEmail - - ]); - - - $equipmentsDone = DB::select(" - WITH equipments_multiple_rows AS ( - SELECT - e.equipment_id, - e.equipment_tag, - COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - JOIN - equipments e ON wat.company_projects_id = e.company_projects_id - JOIN - ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id - WHERE - u.email = :email1 - AND - oet.execution_order = 1 - GROUP BY - e.equipment_id, - e.equipment_tag - ), - - workstations_multiple_rows AS ( - SELECT - cw.id_workstations, - cw.name_workstations, - COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks - FROM - users u - JOIN - construction_workstations cw ON u.user_name = cw.name_workstations - JOIN - workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations - WHERE - u.email = :email2 - ), - - workstations_control_all_tasks AS ( - SELECT - cew.control_equipment_workstation_id, - cew.equipment_id, - CASE - WHEN cew.id_workstations IS NULL THEN NULL - WHEN cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email3 - ) THEN cew.id_workstations - ELSE NULL - END AS control_id_workstations, - COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, - cew.equipment_comments_id, - cew.entry_date, - cew.departure_date - FROM - control_equipment_workstation cew - WHERE - cew.id_workstations IS NULL - OR cew.id_workstations IN ( - SELECT wat.id_workstations - FROM workstations_association_tasks wat - JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id - JOIN users u ON u.user_name = cw.name_workstations - WHERE u.email = :email4 - ) - ) - - SELECT - emr.equipment_id, - emr.equipment_tag - FROM - equipments_multiple_rows emr - WHERE - EXISTS ( - SELECT 1 - FROM workstations_control_all_tasks wc - JOIN workstations_multiple_rows wmr ON wc.control_id_workstations = wmr.id_workstations - WHERE wc.equipment_id = emr.equipment_id - AND wc.control_workstation_all_tasks = wmr.all_tasks - AND wc.entry_date IS NOT NULL - AND wc.departure_date IS NOT NULL - AND wc.control_id_workstations IS NOT NULL - ) - AND NOT EXISTS ( - SELECT 1 - FROM workstations_control_all_tasks wc - WHERE wc.equipment_id = emr.equipment_id - AND wc.control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) - AND wc.control_id_workstations IS NULL - ) - GROUP BY - emr.equipment_id, - emr.equipment_tag - ORDER BY - emr.equipment_id ASC; - ", [ - 'email1' => $userEmail, - 'email2' => $userEmail, - 'email3' => $userEmail, - 'email4' => $userEmail - ]); - - $workstationNameQuery = DB::select(" - SELECT construction_workstations.nomenclature_workstation - FROM construction_workstations - JOIN users - WHERE construction_workstations.name_workstations = users.user_name - AND users.email = :email; - ", ['email' => $userEmail]); - - $workstationName = $workstationNameQuery[0]->nomenclature_workstation; - - //Counting of equipments - $equipmentsTodoCount = count($equipmentsTodo); - $equipmentsDoneCount = count($equipmentsDone); - $equipmentsReturnedCount = count($equipmentsReturned); - - //Returning values of the queries to workstations layout - return view('workstations.start', [ - 'equipmentsTodo' => $equipmentsTodo, 'equipmentsTodoCount' => $equipmentsTodoCount, - 'equipmentsDone' => $equipmentsDone, 'equipmentsDoneCount' => $equipmentsDoneCount, - 'equipmentsReturned' => $equipmentsReturned, 'equipmentsReturnedCount' => $equipmentsReturnedCount, - 'workstationName' => $workstationName + $task_todo = 1; + return view('workstations.workstations', [ + 'task_todo' => $task_todo, + 'controlEquipmentWorkstationId' => $controlEquipmentWorkstationId, + 'receiveEquipment' => $receiveEquipment ]); } -} \ No newline at end of file + + // public function receiveAnswersEquipment(Request $request) + // { + // $receiveAnswersElementalTasks = new workstationsTaskAnswers; + + // $receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstation_id; + // $receiveAnswersElementalTasks->answer_json = + + // } + + // Recebe as perguntas e respostas e deve criar um linha nova. + public function receiveAnswersEquipment(Request $request) + { + // Primeiro ele deve criar a associação entre id atual do control + perguntas e respostas + $receiveAnswersElementalTasks = new workstationsTaskAnswers; + $receiveAnswersElementalTasks->control_equipment_workstation_id = $request->control_equipment_workstationid; + + // Inicializando o array que vai armazenar os objetos JSON + $answersArray = []; + + foreach ($request->all() as $key => $value) { + // Ignorando a chave control_equipment_workstation_id + if ($key !== 'control_equipment_workstation_id') { + // Verificando se $key contém '-' + if (strpos($key, '-') === false) { + // Se não contiver, pular esta iteração + continue; + } + // Dividindo a chave em duas partes: question e type + list($question, $type) = explode('-', $key); + + // Adicionando um novo objeto JSON ao array + $answersArray[] = [ + 'type' => $type, + 'value' => $value, + 'question' => $question + ]; + } + } + + // Convertendo o array em uma string JSON + $jsonString = json_encode($answersArray); + + // Armazenando a string JSON no banco de dados + $receiveAnswersElementalTasks->answer_json = $jsonString; + $receiveAnswersElementalTasks->save(); + + // update departure_date value + $receiveDataControlWs = ControlEquipmentWorkstation::find($request->control_equipment_workstationid); + $receiveDataControlWs->departure_date = now(); + $receiveDataControlWs->save(); + + //FINALIZOU A TAREFA ANTERIOR COM DEPARTURE + + //Busca o Email + $userEmail = Auth::user()->email; + + //Busca o id Anterior + $control_ew_id = $request->control_equipment_workstationid; + + // Busca a Ws com base no id recebido da tabela Control. + $recebeDataControlId = ControlEquipmentWorkstation::find($request->control_equipment_workstationid); + + //Chama o procedimento + $controlTasks = DB::select('CALL ManageNextTask(?, ?)', [$userEmail, $control_ew_id]); + + //Saving the values to a variable + if (count($controlTasks) > 0) { + $current_workstation = $controlTasks[0]->id_workstations; + $next_workstation = $controlTasks[0]->next_workstation; + $next_todo = $controlTasks[0]->next_todo; + } else { + //It should always exist, but you never know :) + $next_todo = null; + } + //RECEBE OS VALORES DA PROXIMA WS E PROXIMA TAREFA + + // Recebe os dados de cada Tarefa Elementar. + $receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id); + $receiveDataEquipment = Equipment::find($recebeDataControlId->equipment_id); + + if ($next_todo < 25) { + $elemental_tasks_id = $next_todo; + $further_tasks_id = null; + } else { + $elemental_tasks_id = null; + $further_tasks_id = $next_todo; + } + //Se a proxima WS for igual a atual deve criar dados para a ws + if ($recebeDataControlId->id_workstations == $next_workstation) { + + $nextEquipmentTask = DB::select(" + INSERT INTO control_equipment_workstation + (equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date) + VALUES + (:equipment_id,:next_workstation,:elemental_tasks_id,:further_tasks_id,NULL,CURRENT_TIMESTAMP,NULL) + ", [ + 'equipment_id' => $receiveDataEquipment->equipment_id, + 'next_workstation' => $next_workstation, + 'elemental_tasks_id' => $elemental_tasks_id, + 'further_tasks_id' => $further_tasks_id + ]); + $lastInsertedId = DB::getPdo()->lastInsertId(); + + return view('workstations.workstations', [ + 'receiveDataElementalTask' => $receiveDataElementalTask, + 'receiveDataEquipment' => $receiveDataEquipment, + 'control_ew_id' => $lastInsertedId, + 'task_todo' => $next_todo + ]); + // Se verificar que a proxima tarefa e Null ele deve apenas voltar ao start + } else if($next_todo == null){ + return view('workstations.start'); + } + else { + $nextEquipmentTask = DB::select(" + INSERT INTO control_equipment_workstation + (equipment_id, id_workstations, elemental_tasks_id, further_tasks_id, equipment_comments_id, entry_date, departure_date) + VALUES + (:equipment_id,NULL,:elemental_tasks_id,:further_tasks_id,NULL,NULL,NULL) + ", [ + 'equipment_id' => $receiveDataEquipment->equipment_id, + 'elemental_tasks_id' => $elemental_tasks_id, + 'further_tasks_id' => $further_tasks_id + ]); + + return view('workstations.start'); + } + } + + // Ao selecionar o equipamento para se inicializar a tarefa deve mostrar os dados relacionados. + public function getEquipmentData($equipment_id) + { //vai receber o email atual, no caso o da workstation que se encontra + $userEmail = Auth::user()->email; + + $receiveDataEquipment = Equipment::where('equipment_id', $equipment_id)->first(); + + //Calling the MySQL procedure tthat will return a table with two columns and one row + + //cria a nova linha + $equipmentData = DB::select('CALL ManageEquipmentTasks(?, ?)', [$userEmail, $equipment_id]); + + // //Saving the values to a variable + if (count($equipmentData) > 0) { + $control_ew_id = $equipmentData[0]->control_ew_id; + $task_todo = $equipmentData[0]->task_todo; + } else { + //It should always exist, but you never know :) + $control_ew_id = null; + $task_todo = null; + } + + $recebeDataControlId = ControlEquipmentWorkstation::find($control_ew_id); + + // Recebe os dados de cada Tarefa Elementar. + $receiveDataElementalTask = ElementalTasks::find($recebeDataControlId->elemental_tasks_id); + + //Deve recupar os dados da tarefa Atual quando receber o control_id + + //Returning the values to a view "values" + return view('workstations.workstations', [ + 'receiveDataElementalTask' => $receiveDataElementalTask, + 'receiveDataEquipment' => $receiveDataEquipment, + 'control_ew_id' => $control_ew_id, + 'task_todo' => $task_todo + ]); + } +} diff --git a/app/Http/ViewComposers/WorkstationComposer.php b/app/Http/ViewComposers/WorkstationComposer.php new file mode 100644 index 00000000..16808d5c --- /dev/null +++ b/app/Http/ViewComposers/WorkstationComposer.php @@ -0,0 +1,379 @@ +email; + + $equipmentsTodo = DB::select(" + WITH equipments_multiple_rows AS ( + SELECT + e.equipment_id, + e.equipment_tag, + COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + JOIN + equipments e ON wat.company_projects_id = e.company_projects_id + JOIN + ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id + WHERE + u.email = :email1 + AND + oet.execution_order = 1 + GROUP BY + e.equipment_id, + e.equipment_tag + ), + + workstations_multiple_rows AS ( + SELECT + cw.id_workstations, + cw.name_workstations, + COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + WHERE + u.email = :email2 + ), + + workstations_control_all_tasks AS ( + SELECT + cew.control_equipment_workstation_id, + cew.equipment_id, + CASE + WHEN cew.id_workstations IS NULL THEN NULL + WHEN cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email3 + ) THEN cew.id_workstations + ELSE NULL + END AS control_id_workstations, + COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, + cew.equipment_comments_id, + cew.entry_date, + cew.departure_date + FROM + control_equipment_workstation cew + WHERE + cew.id_workstations IS NULL + OR cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email4 + ) + ) + + SELECT + emr.equipment_id, + emr.equipment_tag + FROM + equipments_multiple_rows emr + WHERE + ( + emr.equipment_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) + AND NOT EXISTS ( + SELECT 1 + FROM workstations_control_all_tasks wc + WHERE wc.equipment_id = emr.equipment_id + AND wc.control_id_workstations IN (SELECT id_workstations FROM workstations_multiple_rows) + ) + ) + OR + ( + emr.equipment_id IN ( + SELECT equipment_id + FROM workstations_control_all_tasks + WHERE control_id_workstations IS NULL + AND entry_date IS NULL + AND departure_date IS NULL + AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) + ) + AND NOT EXISTS ( + SELECT 1 + FROM workstations_control_all_tasks wc + WHERE wc.equipment_id = emr.equipment_id + AND wc.control_id_workstations IS NOT NULL + GROUP BY wc.equipment_id + HAVING COUNT(DISTINCT wc.control_id_workstations) > 1 + ) + ) + GROUP BY + emr.equipment_id, + emr.equipment_tag + ORDER BY + emr.equipment_id ASC; + ", [ + 'email1' => $userEmail, + 'email2' => $userEmail, + 'email3' => $userEmail, + 'email4' => $userEmail + ]); + + + $equipmentsReturned = DB::select(" + WITH equipments_multiple_rows AS ( + SELECT + e.equipment_id, + e.equipment_tag, + COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + JOIN + equipments e ON wat.company_projects_id = e.company_projects_id + JOIN + ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id + WHERE + u.email = :email1 + AND + oet.execution_order = 1 + GROUP BY + e.equipment_id, + e.equipment_tag + ), + + workstations_multiple_rows AS ( + SELECT + cw.id_workstations, + cw.name_workstations, + COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + WHERE + u.email = :email2 + ), + + workstations_control_all_tasks AS ( + SELECT + cew.control_equipment_workstation_id, + cew.equipment_id, + CASE + WHEN cew.id_workstations IS NULL THEN NULL + WHEN cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email3 + ) THEN cew.id_workstations + ELSE NULL + END AS control_id_workstations, + COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, + cew.equipment_comments_id, + cew.entry_date, + cew.departure_date + FROM + control_equipment_workstation cew + WHERE + cew.id_workstations IS NULL + OR cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email4 + ) + ) + + SELECT + emr.equipment_id, + emr.equipment_tag + FROM + equipments_multiple_rows emr + WHERE + emr.equipment_id IN ( + SELECT equipment_id + FROM workstations_control_all_tasks + WHERE control_id_workstations IS NULL + AND entry_date IS NULL + AND departure_date IS NULL + AND control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) + AND EXISTS ( + SELECT 1 + FROM workstations_control_all_tasks wc + WHERE wc.equipment_id = emr.equipment_id + AND wc.control_id_workstations IS NOT NULL + GROUP BY wc.equipment_id + HAVING COUNT(DISTINCT wc.control_id_workstations) >= 2 + ) + ) + GROUP BY + emr.equipment_id, + emr.equipment_tag + ORDER BY + emr.equipment_id ASC; + + ", [ + + 'email1' => $userEmail, + 'email2' => $userEmail, + 'email3' => $userEmail, + 'email4' => $userEmail + + ]); + + + $equipmentsDone = DB::select(" + WITH equipments_multiple_rows AS ( + SELECT + e.equipment_id, + e.equipment_tag, + COALESCE(MAX(oet.elemental_tasks_id), MAX(oet.further_tasks_id)) AS equipment_all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + JOIN + equipments e ON wat.company_projects_id = e.company_projects_id + JOIN + ordered_equipment_tasks oet ON e.equipment_id = oet.equipment_id + WHERE + u.email = :email1 + AND + oet.execution_order = 1 + GROUP BY + e.equipment_id, + e.equipment_tag + ), + + workstations_multiple_rows AS ( + SELECT + cw.id_workstations, + cw.name_workstations, + COALESCE(wat.elemental_tasks_id, wat.further_tasks_id) AS all_tasks + FROM + users u + JOIN + construction_workstations cw ON u.user_name = cw.name_workstations + JOIN + workstations_association_tasks wat ON cw.id_workstations = wat.id_workstations + WHERE + u.email = :email2 + ), + + workstations_control_all_tasks AS ( + SELECT + cew.control_equipment_workstation_id, + cew.equipment_id, + CASE + WHEN cew.id_workstations IS NULL THEN NULL + WHEN cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email3 + ) THEN cew.id_workstations + ELSE NULL + END AS control_id_workstations, + COALESCE(cew.elemental_tasks_id, cew.further_tasks_id) AS control_workstation_all_tasks, + cew.equipment_comments_id, + cew.entry_date, + cew.departure_date + FROM + control_equipment_workstation cew + WHERE + cew.id_workstations IS NULL + OR cew.id_workstations IN ( + SELECT wat.id_workstations + FROM workstations_association_tasks wat + JOIN construction_workstations cw ON wat.company_projects_id = cw.company_projects_id + JOIN users u ON u.user_name = cw.name_workstations + WHERE u.email = :email4 + ) + ) + + SELECT + emr.equipment_id, + emr.equipment_tag + FROM + equipments_multiple_rows emr + WHERE + EXISTS ( + SELECT 1 + FROM workstations_control_all_tasks wc + JOIN workstations_multiple_rows wmr ON wc.control_id_workstations = wmr.id_workstations + WHERE wc.equipment_id = emr.equipment_id + AND wc.control_workstation_all_tasks = wmr.all_tasks + AND wc.entry_date IS NOT NULL + AND wc.departure_date IS NOT NULL + AND wc.control_id_workstations IS NOT NULL + ) + AND NOT EXISTS ( + SELECT 1 + FROM workstations_control_all_tasks wc + WHERE wc.equipment_id = emr.equipment_id + AND wc.control_workstation_all_tasks IN (SELECT all_tasks FROM workstations_multiple_rows) + AND wc.control_id_workstations IS NULL + ) + GROUP BY + emr.equipment_id, + emr.equipment_tag + ORDER BY + emr.equipment_id ASC; + ", [ + 'email1' => $userEmail, + 'email2' => $userEmail, + 'email3' => $userEmail, + 'email4' => $userEmail + ]); + + $workstationNameQuery = DB::select(" + SELECT construction_workstations.nomenclature_workstation + FROM construction_workstations + JOIN users + WHERE construction_workstations.name_workstations = users.user_name + AND users.email = :email; + ", ['email' => $userEmail]); + + $workstationName = $workstationNameQuery[0]->nomenclature_workstation; + + //Counting of equipments + $equipmentsTodoCount = count($equipmentsTodo); + $equipmentsDoneCount = count($equipmentsDone); + $equipmentsReturnedCount = count($equipmentsReturned); + + + //Returning values of the queries to workstations layout + $view->with([ + 'equipmentsTodo' => $equipmentsTodo, + 'equipmentsTodoCount' => $equipmentsTodoCount, + 'equipmentsDone' => $equipmentsDone, + 'equipmentsDoneCount' => $equipmentsDoneCount, + 'equipmentsReturned' => $equipmentsReturned, + 'equipmentsReturnedCount' => $equipmentsReturnedCount, + 'workstationName' => $workstationName + ]); + } +} diff --git a/app/Models/ControlEquipmentWorkstation.php b/app/Models/ControlEquipmentWorkstation.php index 9e8e076a..6ff4d16c 100755 --- a/app/Models/ControlEquipmentWorkstation.php +++ b/app/Models/ControlEquipmentWorkstation.php @@ -13,6 +13,8 @@ class ControlEquipmentWorkstation extends Model protected $table = 'control_equipment_workstation'; + protected $primaryKey = 'control_equipment_workstation_id'; + // protected $primaryKey = 'id'; public function equipment() diff --git a/app/Models/workstationsTaskAnswers.php b/app/Models/workstationsTaskAnswers.php new file mode 100644 index 00000000..182e3cad --- /dev/null +++ b/app/Models/workstationsTaskAnswers.php @@ -0,0 +1,18 @@ +Email Tipo de Utilizador Ações - + Empresas @foreach ($users as $user) diff --git a/resources/views/Admin/DataManagement/manageassets.blade copy.php b/resources/views/Admin/DataManagement/manageassets.blade copy.php new file mode 100755 index 00000000..343cebad --- /dev/null +++ b/resources/views/Admin/DataManagement/manageassets.blade copy.php @@ -0,0 +1,450 @@ +@extends('Templates/templateAdmin') + +@section('Main-content') + +
+
+
+
+

Gestão de ativos

+
+
+ +
+
+
+
+ + + + +
+
+
+
+
+ +
+ +
+ +
+
+

Tabela de Ativos

+
+ +
+ + {{--
+ +
+ + +
+ +
+ + +
+ +
+
+ + +
+
+ +
+ + +
+ +
--}} + +
+ {{-- Tabela para se usar com DataTables Yajra --}} + {{-- + + + + + + + + +
TagTipo EquipamentoFábricasDescrição Equipamento
--}} + + + + + + + + + + + + @foreach ($equipments as $equipment) + + + + + @endforeach + + + + + + {{-- --}} + + + + {{-- --}} + + + + + {{-- ./cardAssetsTable --}} + +
+ +
+ + + + +@endsection + +@section('scriptsTemplateAdmin') + + +{{-- + --}} + + {{-- Script para DataTables Yajra --}} + {{-- --}} + + + + {{-- --}} + + {{-- --}} + + +@endsection diff --git a/resources/views/Admin/DataManagement/manageassets.blade.php b/resources/views/Admin/DataManagement/manageassets.blade.php index 257b1218..aff9ae2e 100755 --- a/resources/views/Admin/DataManagement/manageassets.blade.php +++ b/resources/views/Admin/DataManagement/manageassets.blade.php @@ -6,7 +6,7 @@
-

Gestão de ativos

+

Gestão de ativos

TagTipo EquipamentoFábricasDescrição Equipamento
{{ $equipment->equipment_tag }}
+
+ + + + @foreach ($equipments as $equipment) + + + + + + + + @endforeach +
Tag Tipo Equipamento Fábricas Descrição EquipamentoAções
{{ $equipment->equipment_tag }}{{ $equipment->equipmentType->equipment_type_name }}{{ $equipment->unit->unit_name }}{{ $equipment->equipment_description }}Ações
- - - {{-- --}} - - - - {{-- --}}
+
{{-- ./cardAssetsTable --}} @@ -312,28 +89,41 @@ class="checkboxChoseTasksOficesCV" @endsection @section('scriptsTemplateAdmin') + + + {{-- + --}} - + --}} - - --}} + + {{-- + --}} @endsection diff --git a/resources/views/Admin/profile.blade.php b/resources/views/Admin/profile.blade.php index 470eeb7e..24b2306d 100755 --- a/resources/views/Admin/profile.blade.php +++ b/resources/views/Admin/profile.blade.php @@ -130,8 +130,7 @@ class="col-md-4 col-lg-3 form-label">Actualizar o seu logótipo.
- +
diff --git a/resources/views/LinksTemplate.blade.php b/resources/views/LinksTemplate.blade.php deleted file mode 100755 index e8e21ac7..00000000 --- a/resources/views/LinksTemplate.blade.php +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - -{{-- Serve para trabelhar com data e hora no bootstrap , ver se necessario! --}} - -{{-- Para estilzar (checkbox) ver se necessario --}} - -{{-- EStudar este Plugins --}} - - - - {{-- Se você precisa de uma interface onde os utilizadors possam selecionar uma série de datas, como para uma reserva de hotel, por exemplo,--}} - - {{-- Estudar --}} - - {{-- Criacao de interface, Estudar --}} - - {{-- --}} - - {{-- DataTables --}} - - - - - - - - - - - - - - - - - - - - - - -{{-- Parte de Cima - Header --}} - - - - - -{{-- PARTE DE baixo no BODY --}} - - - - - {{-- DataTables --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{{-- Segunda Versao : --}} - - - - - - - - - - - - - {{-- DataTables --}} - - - - - - - - - -{{-- Parde de Baixo antes de fechar body --}} - - - - - - - - - - - - - - - - - -{{-- DataTables --}} - - - - - - - - - - - - - - - -{{-- Plugins-Scripts --}} - - - - - - - - - -{{-- FUNCIONA REAL --}} -{{-- PARTE DE CIMA --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{{-- Parte de Baixo --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{{-- - - --}} - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resources/views/Templates/templateWorkstations.blade.php b/resources/views/Templates/templateWorkstations.blade.php index 0177e506..2b5b2164 100644 --- a/resources/views/Templates/templateWorkstations.blade.php +++ b/resources/views/Templates/templateWorkstations.blade.php @@ -31,6 +31,15 @@ + + @@ -47,19 +56,19 @@ @@ -67,7 +76,7 @@
- - -
diff --git a/resources/views/email/email.blade.php b/resources/views/email/email.blade.php index 4e99a952..f263751d 100755 --- a/resources/views/email/email.blade.php +++ b/resources/views/email/email.blade.php @@ -1,4 +1,4 @@ -{{-- + @@ -16,16 +16,15 @@

Se não estava à espera deste e-mail ou não reconhece o projeto 'Ispt4.0', por favor, ignore esta mensagem.

Agradecemos a sua atenção e ficamos ao dispor para qualquer esclarecimento.

Com os melhores cumprimentos,

-

Yure Ispt4.0

+

Ispt4.0

- --}} + - +{{-- -{{-- Greeting --}}

@if (! empty($greeting)) {{ $greeting }} @@ -38,21 +37,17 @@ @endif

-{{-- Intro Lines --}}

Temos o prazer de apresentar-lhe o acesso exclusivo ao formulário do projeto 'ISPT4.0'

-{{-- Action Button --}} @isset($actionText) {{ $actionText }} @endisset -{{-- Outro Lines --}}

Se não estava à espera deste e-mail ou não reconhece o projeto 'ISPT4.0', por favor, ignore esta mensagem.

Agradecemos a sua atenção e ficamos ao dispor para qualquer esclarecimento.

Com os melhores cumprimentos,

Yure Ispt4.0

-{{-- Image --}} -
\ No newline at end of file +
--}} \ No newline at end of file diff --git a/resources/views/enterWorkstation.blade.php b/resources/views/enterWorkstation.blade.php deleted file mode 100755 index 127ef28c..00000000 --- a/resources/views/enterWorkstation.blade.php +++ /dev/null @@ -1,7 +0,0 @@ -@extends('Templates/templateAdmin') - -@section('Main-content') - -

Bem Vindo ...

- -@endsection \ No newline at end of file diff --git a/resources/views/recebeIdiota.blade.php b/resources/views/recebeIdiota.blade.php deleted file mode 100755 index abb22402..00000000 --- a/resources/views/recebeIdiota.blade.php +++ /dev/null @@ -1,67 +0,0 @@ -@extends('testIdiota') - -@section('idiota') -

Teste

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NamePositionOfficeAgeStart dateSalary
Tiger NixonSystem ArchitectEdinburgh612011-04-25$320,800
Garrett WintersAccountantTokyo632011-07-25$170,750
-@endsection - -@section('idiotaScripts') - -@endsection diff --git a/resources/views/recebeTestProgressBar.blade.php b/resources/views/recebeTestProgressBar.blade.php deleted file mode 100755 index e546ebeb..00000000 --- a/resources/views/recebeTestProgressBar.blade.php +++ /dev/null @@ -1,114 +0,0 @@ -@extends('Templates/templateAdmin') - -@section('Main-content') - - - -@endsection - -@section('scriptsTemplateAdmin') - -@endsection diff --git a/resources/views/templateAdminReal.blade.php b/resources/views/templateAdminReal.blade.php deleted file mode 100755 index 46b9df13..00000000 --- a/resources/views/templateAdminReal.blade.php +++ /dev/null @@ -1,344 +0,0 @@ - - - - - - - - - - ISPT 4.0 - - - - - - - - - - - - - - - - - - - - - - - - - - - {{-- --}} - - {{-- DataTables --}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - {{--
- AdminLTELogo -
--}} - - - - - - - - -
-
-
-
-
- - @yield('Main-content') - -
- {{-- ./col-md-12 --}} -
- {{-- ./row justify-content-center --}} -
- {{-- ./container-fluid --}} -
- {{-- ./content --}} -
- {{-- ./content-wrapper --}} - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@yield('scripts') -{{-- Script que dao erro no projecto --}} - - - - - - -{{-- --}} - diff --git a/resources/views/test.blade.php b/resources/views/test.blade.php deleted file mode 100755 index 5fa44114..00000000 --- a/resources/views/test.blade.php +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - - - {{-- --}} - - - - -
-
-
- -
-
- - -
- -
-
About
-

Sunt est soluta temporibus accusantium neque nam maiores - cumque temporibus. Tempora libero non est unde veniam est qui dolor. Ut sunt iure - rerum quae quisquam autem eveniet perspiciatis odit. Fuga sequi sed ea saepe at - unde.

- -
Profile Details
- -
-
Full Name
-
Kevin Anderson
-
- -
-
Company
-
Lueilwitz, Wisoky and Leuschke
-
- -
-
Job
-
Web Designer
-
- -
-
Country
-
USA
-
- -
-
Address
-
A108 Adam Street, New York, NY 535022
-
- -
-
Phone
-
(436) 486-3538 x29071
-
- -
-
Email
-
k.anderson@example.com
-
- -
- -
- - -
-
- -
- Profile -
- - -
-
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
-
- -
- -
- - -
- -
- -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
- -
-
- -
- -
- -
- -
- -
- -
-
- -
- -
- -
-
- -
- -
- -
-
- -
- -
-
- -
- -
- -
-
- -
-
-
- - {{-- --}} - - - - @livewire('management-dashboard.work-management') - - - - diff --git a/resources/views/testIdiota.blade.php b/resources/views/testIdiota.blade.php deleted file mode 100755 index 15bf4304..00000000 --- a/resources/views/testIdiota.blade.php +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - Document - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @yield('idiota') - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @yield('idiotaScripts') - - - - - - - -
- -
-
-
-
- -
- - - {{-- --}} -
-
-
{{ $user->userType->type }} :: {{ $user->name }}
-
- -
-
- {{--

{{ $tipo_Utilizador }}

--}} -
-
-
-
-
-

Nome:

-
- -
-

Email:

-
-
- -
-
-

Telemovel:

-
- -
-

NIF:

-
-
- - {{--
-
-

Palavra-passe :

-
- -
-

Confirmar Palavra-passe :

-
-
--}} - -
-
- {{--

Nova Palavra-passe:

--}} -
-
- -
-
-
- - - -
- - - - - - - - - - - - - - - - - - - - - - - -{{-- Oficial --}} - - - -{{-- ./content --}} - -{{-- ./content-wrapper --}} \ No newline at end of file diff --git a/resources/views/workstations/TE1.blade.php b/resources/views/workstations/TE1.blade.php deleted file mode 100644 index e34fed03..00000000 --- a/resources/views/workstations/TE1.blade.php +++ /dev/null @@ -1,151 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') -
-
-
- - -
-
-
-

TE1 - Desmontar da linha

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- x - -
-
- - - -
-
- -
-
- -
-
- - - -
-
- - -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- - -
-
-
-@endsection diff --git a/resources/views/workstations/TE10(2).blade.php b/resources/views/workstations/TE10(2).blade.php deleted file mode 100644 index a5b37703..00000000 --- a/resources/views/workstations/TE10(2).blade.php +++ /dev/null @@ -1,68 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE10 - CV - Montagem na linha

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - - -
-
- -
-
- -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE10(2)1.blade.php b/resources/views/workstations/TE10(2)1.blade.php deleted file mode 100644 index 2c30ba29..00000000 --- a/resources/views/workstations/TE10(2)1.blade.php +++ /dev/null @@ -1,51 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE10.1 - CV - Confirmação das ligações

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE10.blade.php b/resources/views/workstations/TE10.blade.php deleted file mode 100644 index c7451e54..00000000 --- a/resources/views/workstations/TE10.blade.php +++ /dev/null @@ -1,68 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE10 - PSV ISV - Montagem na linha

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - - -
-
- -
-
- -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE11.blade.php b/resources/views/workstations/TE11.blade.php deleted file mode 100644 index fb601a24..00000000 --- a/resources/views/workstations/TE11.blade.php +++ /dev/null @@ -1,63 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE11 - Inspeção final

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - - -
-
- - -
-
- - - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE12.blade.php b/resources/views/workstations/TE12.blade.php deleted file mode 100644 index 244b83b7..00000000 --- a/resources/views/workstations/TE12.blade.php +++ /dev/null @@ -1,196 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE12 - CV - Inspeção visual

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE13.blade.php b/resources/views/workstations/TE13.blade.php deleted file mode 100644 index f118ee70..00000000 --- a/resources/views/workstations/TE13.blade.php +++ /dev/null @@ -1,395 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE13 - CV - Teste final

- Válvula XXXXX -
-
-
-
-
- -
- - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - -
- - -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - -
- - - - -
- - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
- - -
- - -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE14.blade.php b/resources/views/workstations/TE14.blade.php deleted file mode 100644 index 9ac5f390..00000000 --- a/resources/views/workstations/TE14.blade.php +++ /dev/null @@ -1,140 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE14 - ISV - Ensaio

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- -
-
- - - -
- - -
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE15.blade.php b/resources/views/workstations/TE15.blade.php deleted file mode 100644 index 8c03d989..00000000 --- a/resources/views/workstations/TE15.blade.php +++ /dev/null @@ -1,146 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE15 - ISV - Empancar

- Válvula XXXXX -
-
-
-
-
- - -
-
- - -
-
- - - -
- - -
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE2.blade.php b/resources/views/workstations/TE2.blade.php deleted file mode 100644 index 26ea4a95..00000000 --- a/resources/views/workstations/TE2.blade.php +++ /dev/null @@ -1,67 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE2 - Descontaminar

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE3(2).blade.php b/resources/views/workstations/TE3(2).blade.php deleted file mode 100644 index eac47822..00000000 --- a/resources/views/workstations/TE3(2).blade.php +++ /dev/null @@ -1,364 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE3 - CV - Pré-teste

- Válvula XXXXX -
-
-
-
-
- -
- - -
- - -
-
- - -
-
- - - -
- - -
- - - -
-
- -
-
-
- -
-
-
-
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
-
- -
-
-
- - -
-
- - -
-
-
-
- - - -
-
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - -
- - - - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE3.blade.php b/resources/views/workstations/TE3.blade.php deleted file mode 100644 index 9b5b6ecf..00000000 --- a/resources/views/workstations/TE3.blade.php +++ /dev/null @@ -1,407 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE3 - PSV - Pré-teste

- Válvula XXXXX -
-
-
-
-
- -
- - -
- - -
-
- - -
-
- - - -
- - -
- - - -
-
- -
-
-
- -
-
-
-
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- - -
-
-
- - -
-
- - -
-
-
- - -
- - - - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- - -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- - - -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- - - -
-
- - -
-
-
- - -
-
- - -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - -
Falha ao abrirFalha de estanquicidade (Fuga)
- -
- - -
- -
- -
- - -
- -
- -
- - -
- -
- -
- - -
- -
- -
- - -
- -
- -
- - -
- -
- - -
- - - - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE4(2).blade.php b/resources/views/workstations/TE4(2).blade.php deleted file mode 100644 index 3ebf7993..00000000 --- a/resources/views/workstations/TE4(2).blade.php +++ /dev/null @@ -1,399 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE4 - PSV - Abertura de válvula, análise e controle dos componentes -

- Válvula XXXXX -
-
-
-
-
- -
-
- -
- - -
-
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
-
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE4(3).blade.php b/resources/views/workstations/TE4(3).blade.php deleted file mode 100644 index 8727d25d..00000000 --- a/resources/views/workstations/TE4(3).blade.php +++ /dev/null @@ -1,250 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE4 - ISV - Abertura de válvula, análise e controle dos componentes -

- Válvula XXXXX -
-
-
-
-
- -
- - -
- - -
-
- - -
-
- - - -
- - -
- - -
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE4.blade.php b/resources/views/workstations/TE4.blade.php deleted file mode 100644 index fb46b086..00000000 --- a/resources/views/workstations/TE4.blade.php +++ /dev/null @@ -1,339 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE4 - PSV - Abertura de válvula, análise e controle dos componentes -

- Válvula XXXXX -
-
-
-
-
- -
- - -
-
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
-
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
- - -
- - -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE5.blade.php b/resources/views/workstations/TE5.blade.php deleted file mode 100644 index 5c76f66a..00000000 --- a/resources/views/workstations/TE5.blade.php +++ /dev/null @@ -1,59 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE5 - Limpeza e lavagem dos componentes

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
-
- - -
-
- - -
-
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE6.blade.php b/resources/views/workstations/TE6.blade.php deleted file mode 100644 index db3eba74..00000000 --- a/resources/views/workstations/TE6.blade.php +++ /dev/null @@ -1,84 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE6 - PSV - Retificação e limpeza

- Válvula XXXXX -
-
-
-
-
- -
- -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- -
- - -
-
- -
-
- -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE7(2).blade.php b/resources/views/workstations/TE7(2).blade.php deleted file mode 100644 index 93ccaf95..00000000 --- a/resources/views/workstations/TE7(2).blade.php +++ /dev/null @@ -1,591 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE7 - CV - Fecho de válvula e substituição de componentes

- Válvula XXXXX -
-
-
-
-
- -
- - -
-
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE7(3).blade.php b/resources/views/workstations/TE7(3).blade.php deleted file mode 100644 index 950611e2..00000000 --- a/resources/views/workstations/TE7(3).blade.php +++ /dev/null @@ -1,393 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE7 - ISV - Fecho de válvula e substituição de componentes

- Válvula XXXXX -
-
-
-
-
- -
- - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
- - - - -
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - -
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- -
- - -
- -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE7.blade.php b/resources/views/workstations/TE7.blade.php deleted file mode 100644 index dd4051c2..00000000 --- a/resources/views/workstations/TE7.blade.php +++ /dev/null @@ -1,227 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE7 - PSV - Fecho da válvula e substituição de componentes

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- - -
-
- - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE8.blade.php b/resources/views/workstations/TE8.blade.php deleted file mode 100644 index f29d72de..00000000 --- a/resources/views/workstations/TE8.blade.php +++ /dev/null @@ -1,187 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE8 - PSV - Calibrar e certificar

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
-
- -
-
-
-
-
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- -
-
- - - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/TE9.blade.php b/resources/views/workstations/TE9.blade.php deleted file mode 100644 index b012f50c..00000000 --- a/resources/views/workstations/TE9.blade.php +++ /dev/null @@ -1,59 +0,0 @@ -@extends('Templates.templateWorkstations') -@section('content') - -
-
-
- - -
-
-
-

TE9 - Pintura

- Válvula XXXXX -
-
-
-
-
- - -
-
- -
-
-
- - -
-
- - -
-
-
- - - -
-
- -
-
- - -
-
-
- -@endsection diff --git a/resources/views/workstations/start.blade.php b/resources/views/workstations/start.blade.php index eaef43f4..468f46bd 100644 --- a/resources/views/workstations/start.blade.php +++ b/resources/views/workstations/start.blade.php @@ -1,5 +1,6 @@ @extends('Templates.templateWorkstations') @section('content') +
diff --git a/resources/views/workstations/workstations.blade.php b/resources/views/workstations/workstations.blade.php new file mode 100644 index 00000000..5877880a --- /dev/null +++ b/resources/views/workstations/workstations.blade.php @@ -0,0 +1,4992 @@ +@extends('Templates.templateWorkstations') + +@section('content') + {{-- TE1 - Desmontar da linha --}} + @if ($task_todo == 1) +
+
+
+ + +
+
+
+

TE1 - Desmontar da linha

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+ +
+ @csrf + + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ x + + +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE2 - Descontaminar --}} + @if ($task_todo == 2) +
+
+
+ + +
+
+
+

TE2 - Descontaminar

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + + +
+
+ + +
+
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+ + + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE3 - Pré-teste --}} + @if ($task_todo == 3) +
+
+
+ + +
+
+
+

TE3 - PSV - Pré-teste

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ +
+ + +
+ + +
+
+ + +
+
+ + + +
+ + +
+ + + +
+
+ +
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Falha ao abrirFalha de estanquicidade (Fuga)
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+ + + + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE3(2)-CV Pré-teste --}} + @if ($task_todo == 4) +
+
+
+ + +
+
+
+

TE3 - CV - Pré-teste

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} + +
+
+
+ @csrf + + +
+
+ +
+ + +
+ + +
+
+ + +
+
+ + + +
+ + +
+ + + +
+
+ +
+
+
+ +
+
+
+
+
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Falha ao abrirFalha de estanquicidade (Fuga)
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE4 - Abertura da válvula, análise e controle dos componentes --}} + @if ($task_todo == 5) +
+
+
+ + +
+
+
+

TE4 - PSV - Abertura de válvula, análise e controle dos + componentes +

+ Válvula XXXXX +
+
+
+ @csrf + + +
+
+ +
+ + +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+ + +
+ + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE4(2)-CV - Abertura da válvula, análise e controle dos componentes --}} + @if ($task_todo == 6) +
+
+
+ + +
+
+
+

TE4 - CV - Abertura de válvula, análise e controle dos + componentes +

+ Válvula XXXXX +
+
+
+ @csrf +
+
+ +
+
+ +
+ + +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE4(2)-ISV - Abertura da válvula, análise e controle dos componentes --}} + @if ($task_todo == 7) +
+
+
+ + +
+
+
+

TE4 - ISV - Abertura de válvula, análise e controle dos + componentes +

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ +
+ + +
+ + +
+
+ + +
+
+ + + +
+ + +
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE5 - Limpeza e lavagem dos componentes --}} + @if ($task_todo == 8) +
+
+
+ + +
+
+
+

TE5 - Limpeza e lavagem dos componentes

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE6 - Retificação e lapidação --}} + @if ($task_todo == 9) +
+
+
+ + +
+
+
+

TE6 - PSV - Retificação e limpeza

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ +
+ +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE7 - Fecho da válvula e substituição de componentes --}} + @if ($task_todo == 10) +
+
+
+ + +
+
+
+

TE7 - PSV - Fecho da válvula e substituição de componentes +

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE7(2)-CV - Fecho da válvula e substituição de componentes --}} + @if ($task_todo == 11) +
+
+
+ + +
+
+
+

TE7 - CV - Fecho de válvula e substituição de componentes

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ +
+ + +
+
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE7(3)-ISV - Fecho da válvula e substituição de componentes --}} + @if ($task_todo == 12) +
+
+
+ + +
+
+
+

TE7 - ISV - Fecho de válvula e substituição de componentes +

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ +
+ + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE8 - Calibrar e certificar --}} + @if ($task_todo == 13) +
+
+
+ + +
+
+
+

TE8 - PSV - Calibrar e certificar

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ + +
+
+ +
+
+
+ +
+
+
+
+
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE9 - Pintura --}} + @if ($task_todo == 14) +
+
+
+ + +
+
+
+

TE9 - Pintura

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE10 - Montagem na linha --}} + @if ($task_todo == 15) +
+
+
+ + +
+
+
+

TE10 - PSV ISV - Montagem na linha

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE10(2)-CV - Montagem na linha --}} + @if ($task_todo == 16) +
+
+
+ + +
+
+
+

TE10 - CV - Montagem na linha

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+ +
+ @csrf + +
+
+ + +
+
+ + +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE11 - Inspeção Final --}} + @if ($task_todo == 17) +
+
+
+ + +
+
+
+

TE11 - Inspeção final

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ + +
+
+ + +
+
+ + + +
+
+ + +
+
+ + + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE12 - Inspeção visual --}} + @if ($task_todo == 18) +
+
+
+ + +
+
+
+

TE12 - CV - Inspeção visual

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- Verificar quantos inputs sao retornados --}} + {{-- TE13 - Teste final --}} + @if ($task_todo == 19) +
+
+
+ + +
+
+
+

TE13 - CV - Teste final

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + +
+
+ +
+ + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + +
+ + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + +
+ + + + +
+ + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + +
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+ + +
+ + +
+ + +
+ +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- Consertar Formatacao --}} + {{-- TE14 - Ensaio --}} + @if ($task_todo == 20) +
+
+
+ + +
+
+
+

TE14 - ISV - Ensaio

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+
+ @csrf + +
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+
+ + +
+
+ + +
+
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+ + +
+ + +
+
+ +
+
+ + +
+
+
+ @endif + + {{-- TE15 - Empancar --}} + @if ($task_todo == 21) +
+
+
+ + +
+
+
+

TE15 - Empancar

+

+ {{ $receiveDataElementalTask->elemental_tasks_code }}-{{ $receiveDataElementalTask->elemental_tasks_description }} +

+ {{ $receiveDataEquipment->equipment_tag }} +
+
+
+ @csrf + + +
+
+ + +
+
+ + +
+
+ + + +
+ + +
+ + +
+
+
+ + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + + +
+
+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+
+ @endif +@endsection diff --git a/routes/web.php b/routes/web.php index 99d1b1aa..658e48d5 100755 --- a/routes/web.php +++ b/routes/web.php @@ -29,11 +29,17 @@ use App\Http\Controllers\ExecutionProjectController; use App\Http\Controllers\WorkstationsJobsController; + + +Route::get('formulario', function () { + return view('email/FormAdmin'); +})->name('formulario'); + route::get('testt', function () { return view('test'); }); -Route::get('te102', function(){ +Route::get('te102', function () { return view('workstations.TE10(2)'); }); @@ -114,7 +120,7 @@ Route::post('editProfile/{id}', 'EditProfile')->name('editProfile'); }); - Route::controller(CreateProjectController::class) +Route::controller(CreateProjectController::class) ->group(function () { // indication of progress bar to projects that are in 'Planning' Route::get('test1/{id}', 'showStep1')->name('test1'); @@ -165,36 +171,22 @@ */ Route::get('manageAssets', [ProjectoDatacontroller::class, 'ManageAssets'])->name('manageAssets'); + +Route::get('enterWorkstation', [WorkstationsJobsController::class, 'index'])->name('enterWorkstation'); +Route::get('controlEquipment', [WorkstationsJobsController::class, 'controlEquipment'])->name('controlEquipment'); + +Route::get('/getEquipmentData/{equipment_id}', [WorkstationsJobsController::class, 'getEquipmentData'])->name('getEquipmentData'); + + +Route::post('receiveAnswersEquipment', [WorkstationsJobsController::class, 'receiveAnswersEquipment'])->name('receiveAnswersEquipment'); + + Route::middleware(['auth', 'checkUserType'])->group(function () { // Rotas protegidas que exigem verificação de e-mail Route::get('/', [ProjectoDatacontroller::class, ('HomePage')])->name('home'); - - - - Route::get('enterWorkstation', [WorkstationsJobsController::class, 'index'])->name('enterWorkstation'); - /* - |-------------------------------------------------------------------------- - | Create Projects with Super Admin and Admin - |-------------------------------------------------------------------------- - | - |Crud model for the application's projects, where both their creation and the indication of project statuses are handled. - | - */ - Route::get('/CreateUsers/{id}', [Pending_UserController::class, 'ShowFormUser'])->name('ShowPendingUser'); - Route::post('formulario/receive', [Pending_UserController::class, 'store'])->name('criarUser'); - - - Route::post('/register', [CustomRegistrationController::class, 'store'])->name('register'); - - - - - - - - +}); /* @@ -208,11 +200,23 @@ | */ - // Mostrar Instalação click - Route::get('units/{id}', [ProjectoDatacontroller::class, 'showUnit'])->name('showUnit'); +// Mostrar Instalação click +Route::get('units/{id}', [ProjectoDatacontroller::class, 'showUnit'])->name('showUnit'); - -}); + +/* + |-------------------------------------------------------------------------- + | Create Projects with Super Admin and Admin + |-------------------------------------------------------------------------- + | + |Crud model for the application's projects, where both their creation and the indication of project statuses are handled. + | + */ +Route::get('/CreateUsers/{id}', [Pending_UserController::class, 'ShowFormUser'])->name('ShowPendingUser'); +Route::post('formulario/receive', [Pending_UserController::class, 'store'])->name('criarUser'); + + +Route::post('/register', [CustomRegistrationController::class, 'store'])->name('register'); Route::get('/CreateUsers', [Pending_UserController::class, 'ListPendingUsers'])->name('CreateUsers'); @@ -228,10 +232,6 @@ | be assigned to the "web" middleware group. Make something great! | */ -Route::get('formulario', function () { - return view('email/FormAdmin'); -})->name('formulario'); - diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 902574e4..7896523c 100755 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -39,6 +39,7 @@ 'App\\Http\\Middleware\\TrustProxies' => $baseDir . '/app/Http/Middleware/TrustProxies.php', 'App\\Http\\Middleware\\ValidateSignature' => $baseDir . '/app/Http/Middleware/ValidateSignature.php', 'App\\Http\\Middleware\\VerifyCsrfToken' => $baseDir . '/app/Http/Middleware/VerifyCsrfToken.php', + 'App\\Http\\ViewComposers\\WorkstationComposer' => $baseDir . '/app/Http/ViewComposers/WorkstationComposer.php', 'App\\Livewire\\Articulado\\AdditonalTask' => $baseDir . '/app/Livewire/Articulado/AdditonalTask.php', 'App\\Livewire\\Articulado\\SelectElementalTasksInWonkstation' => $baseDir . '/app/Livewire/Articulado/SelectElementalTasksInWonkstation.php', 'App\\Livewire\\Execução\\EquipmentsDashboard' => $baseDir . '/app/Livewire/Execução/EquipmentsDashboard.php', diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index a4bb5611..b46fd11d 100755 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -629,6 +629,7 @@ class ComposerStaticInit4de2290df2a8c5142f72130885c7079d 'App\\Http\\Middleware\\TrustProxies' => __DIR__ . '/../..' . '/app/Http/Middleware/TrustProxies.php', 'App\\Http\\Middleware\\ValidateSignature' => __DIR__ . '/../..' . '/app/Http/Middleware/ValidateSignature.php', 'App\\Http\\Middleware\\VerifyCsrfToken' => __DIR__ . '/../..' . '/app/Http/Middleware/VerifyCsrfToken.php', + 'App\\Http\\ViewComposers\\WorkstationComposer' => __DIR__ . '/../..' . '/app/Http/ViewComposers/WorkstationComposer.php', 'App\\Livewire\\Articulado\\AdditonalTask' => __DIR__ . '/../..' . '/app/Livewire/Articulado/AdditonalTask.php', 'App\\Livewire\\Articulado\\SelectElementalTasksInWonkstation' => __DIR__ . '/../..' . '/app/Livewire/Articulado/SelectElementalTasksInWonkstation.php', 'App\\Livewire\\Execução\\EquipmentsDashboard' => __DIR__ . '/../..' . '/app/Livewire/Execução/EquipmentsDashboard.php',