From 254336413c967f96427b93d44fc94834fd6214ee Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Wed, 2 Sep 2026 16:29:26 +0530 Subject: [PATCH] Team3 : Doctor Activities for Neb 2 changes --- ...e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php index 8c40024e..53c07b80 100644 --- a/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php +++ b/resources/views/form/rapport-team3/1655458541-00d0e7c9-c60e-410e-ada7-8e0fef8e6ac1.blade.php @@ -103,6 +103,18 @@
@csrf + @if(isset($form->manager_can_submit) && $form->manager_can_submit == true) +
+ + + +
+ @endif @foreach ($questions as $question) @if (in_array($question->code, ['record_date', 'name_of_the_speaker', 'msl_code', 'attendence','speciality','honorarium_amount','other_expenses','total_eas','no_of_patients_on_duolin','no_of_units_duolin_respules'])) @continue @@ -401,6 +413,36 @@ }) jQuery(document).ready(function($) { + $('#field-user_id').change(function(){ + let hierarchy = $('option:selected', this).attr('hierarchy'); + $('#field-hierarchy_id').val(hierarchy) + event.preventDefault(); + $("#pageloader").fadeIn(); + $.ajax({ + type: "GET", + url: '/form/getdoctorlist?partition={{$form->partition}}&hierarchy='+hierarchy, + processData: false, + contentType: false, + success: function( data ) { + $("#pageloader").fadeOut(); + $('#field-contact_id').html('') + $('#field-contact_id').append($("").attr("value",'').text('-- Select --')); + for (let itm of data) { + $('#field-contact_id').append($("").attr("value",itm.value).text(itm.display).attr("msl_code", itm.contact.msl_code).attr('speciality',itm.contact.speciality)); + } + + $('#field-contact_id').change(function() { + $('#field-msl_code').val($('option:selected', this).attr('msl_code')) + }) + + $('#field-contact_id').change(function() { + $('#field-speciality').val($('option:selected', this).attr('speciality')) + }) + }, + }); + + console.log(hierarchy) + }) $('#report-form').on('submit', function(event) { event.preventDefault(); $("#pageloader").fadeIn();