Merge branch 'main' of http://192.168.1.200:3000/Stratawiz/Rapport-Laravel
Specific Folder FTP Upload / ftp-deploy (push) Successful in 53s Details

This commit is contained in:
zeeshan 2026-06-09 15:06:57 +05:30
commit c7f9730691
1 changed files with 63 additions and 28 deletions

View File

@ -957,43 +957,50 @@ $brandData2 = [
// })
$('.edit-btn').click(function() {
// First make all readonly
// $('#execution-form input').prop('readonly', true);
// Keep only PLAN fields editable
$('#execution-vintor_4k_units').prop('readonly', false);
$('#execution-vintor_10k_units').prop('readonly', false);
$('#execution-encicarb_500_units').prop('readonly', false);
$('#execution-encicarb_100_units').prop('readonly', false);
$('#execution-dynulta_units').prop('readonly', false);
// Keep only PLAN fields editable (plan with value that user filled while making plan and week selection fields)
$('#execution-vintor_4k_units').prop('readonly', true);
$('#execution-vintor_6k_units').prop('readonly', true);
$('#execution-vintor_10k_units').prop('readonly', true);
$('#execution-encicarb_500_units').prop('readonly', true);
$('#execution-encicarb_100_units').prop('readonly', true);
$('#execution-dynulta_units').prop('readonly', true);
$('#execution-vintor_4k_week1').prop('readonly', false);
$('#execution-vintor_4k_week2').prop('readonly', false);
$('#execution-vintor_4k_week3').prop('readonly', false);
$('#execution-vintor_4k_week4').prop('readonly', false);
$('#execution-vintor_4k_week1').prop('readonly', true);
$('#execution-vintor_4k_week2').prop('readonly', true);
$('#execution-vintor_4k_week3').prop('readonly', true);
$('#execution-vintor_4k_week4').prop('readonly', true);
$('#execution-vintor_6k_week1').prop('readonly', true);
$('#execution-vintor_6k_week2').prop('readonly', true);
$('#execution-vintor_6k_week3').prop('readonly', true);
$('#execution-vintor_6k_week4').prop('readonly', true);
$('#execution-vintor_10k_week1').prop('readonly', false);
$('#execution-vintor_10k_week2').prop('readonly', false);
$('#execution-vintor_10k_week3').prop('readonly', false);
$('#execution-vintor_10k_week4').prop('readonly', false);
$('#execution-vintor_10k_week1').prop('readonly', true);
$('#execution-vintor_10k_week2').prop('readonly', true);
$('#execution-vintor_10k_week3').prop('readonly', true);
$('#execution-vintor_10k_week4').prop('readonly', true);
$('#execution-encicarb_500_week1').prop('readonly', false);
$('#execution-encicarb_500_week2').prop('readonly', false);
$('#execution-encicarb_500_week3').prop('readonly', false);
$('#execution-encicarb_500_week4').prop('readonly', false);
$('#execution-encicarb_500_week1').prop('readonly', true);
$('#execution-encicarb_500_week2').prop('readonly', true);
$('#execution-encicarb_500_week3').prop('readonly', true);
$('#execution-encicarb_500_week4').prop('readonly', true);
$('#execution-encicarb_100_week1').prop('readonly', false);
$('#execution-encicarb_100_week2').prop('readonly', false);
$('#execution-encicarb_100_week3').prop('readonly', false);
$('#execution-encicarb_100_week4').prop('readonly', false);
$('#execution-encicarb_100_week1').prop('readonly', true);
$('#execution-encicarb_100_week2').prop('readonly', true);
$('#execution-encicarb_100_week3').prop('readonly', true);
$('#execution-encicarb_100_week4').prop('readonly', true);
$('#execution-dynulta_week1').prop('readonly', false);
$('#execution-dynulta_week2').prop('readonly', false);
$('#execution-dynulta_week3').prop('readonly', false);
$('#execution-dynulta_week4').prop('readonly', false);
$('#execution-dynulta_week1').prop('readonly', true);
$('#execution-dynulta_week2').prop('readonly', true);
$('#execution-dynulta_week3').prop('readonly', true);
$('#execution-dynulta_week4').prop('readonly', true);
// execution fields still editable
// $('[id*="_exe"]').prop('readonly', false);
@ -1024,7 +1031,7 @@ $brandData2 = [
e.preventDefault();
})
$('#execution-speciality').prop('readonly', true)
$('#execution-plan_date').prop('readonly', true)
$('#execution-uid_number').prop('readonly',true);
@ -1686,6 +1693,34 @@ $brandData2 = [
$('#execution-msl_code').prop('readonly',true);
// Month Plan Units editable
$('#execution-vintor_4k_units').prop('readonly', false);
$('#execution-vintor_6k_units').prop('readonly', false);
$('#execution-vintor_10k_units').prop('readonly', false);
$('#execution-encicarb_500_units').prop('readonly', false);
$('#execution-encicarb_100_units').prop('readonly', false);
$('#execution-dynulta_units').prop('readonly', false);
// Week fields editable
$('#execution-vintor_4k_week1,#execution-vintor_4k_week2,#execution-vintor_4k_week3,#execution-vintor_4k_week4').prop('readonly', false);
$('#execution-vintor_6k_week1,#execution-vintor_6k_week2,#execution-vintor_6k_week3,#execution-vintor_6k_week4').prop('readonly', false);
$('#execution-vintor_10k_week1,#execution-vintor_10k_week2,#execution-vintor_10k_week3,#execution-vintor_10k_week4').prop('readonly', false);
$('#execution-encicarb_500_week1,#execution-encicarb_500_week2,#execution-encicarb_500_week3,#execution-encicarb_500_week4').prop('readonly', false);
$('#execution-encicarb_100_week1,#execution-encicarb_100_week2,#execution-encicarb_100_week3,#execution-encicarb_100_week4').prop('readonly', false);
$('#execution-dynulta_week1,#execution-dynulta_week2,#execution-dynulta_week3,#execution-dynulta_week4').prop('readonly', false);
let selected = JSON.parse($(this).attr('plan_details'))
console.log("Plan_Details : ",selected);
console.log("Hospital Name is : ",selected['contact_id']);