Titans (Core HCP Connect Drive) - Number of Patient Hide/Show
Specific Folder FTP Upload / ftp-deploy (push) Successful in 42s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 42s
Details
This commit is contained in:
parent
29363167b2
commit
5e8459348f
|
|
@ -542,54 +542,10 @@
|
||||||
|
|
||||||
|
|
||||||
// Show Patients Screened only for LHC during Execution
|
// Show Patients Screened only for LHC during Execution
|
||||||
const selectedActivity = ($('#execution-activity').val() || '').trim().toUpperCase();
|
|
||||||
|
|
||||||
if (selectedActivity === 'Oscar Screening Camps') {
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.show();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', true);
|
|
||||||
} else {
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.hide();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', false)
|
|
||||||
.val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#execution-activity').off('change.patientsScreened').on('change.patientsScreened', function () {
|
|
||||||
|
|
||||||
const activity = ($(this).val() || '').trim().toUpperCase();
|
|
||||||
|
|
||||||
if (activity === 'Oscar Screening Camps') {
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.show();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', true);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.hide();
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.prop('required', false)
|
|
||||||
.val('');
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened')
|
|
||||||
.closest('.col-md-12')
|
|
||||||
.after('<h4>Prescription Generated</h4>');
|
|
||||||
|
|
||||||
$('#execution-dpi,#execution-mdi,#execution-sync,#execution-cip').on('input', function() {
|
$('#execution-dpi,#execution-mdi,#execution-sync,#execution-cip').on('input', function() {
|
||||||
var total=(
|
var total=(
|
||||||
|
|
@ -603,7 +559,7 @@
|
||||||
|
|
||||||
$('#execution-total').val(total);
|
$('#execution-total').val(total);
|
||||||
|
|
||||||
$('#execution-no_of_flutter_utilized').on('keyup', function () {
|
$('#execution-no_of_flutter_utilized').on('keyup', function () {
|
||||||
let val = parseFloat($(this).val());
|
let val = parseFloat($(this).val());
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -624,14 +580,22 @@
|
||||||
if(activityName==='Oscar Screening Camps'){
|
if(activityName==='Oscar Screening Camps'){
|
||||||
$('#execution-count-execution-lhc').val('1');
|
$('#execution-count-execution-lhc').val('1');
|
||||||
$('#execution-count-execution-novel').val('0');
|
$('#execution-count-execution-novel').val('0');
|
||||||
|
$('#execution-no_of_patients_screened').parent().show();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', true);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else if(activityName==='Novel'){
|
else if(activityName==='Novel'){
|
||||||
$('#execution-count-execution-lhc').val('0');
|
$('#execution-count-execution-lhc').val('0');
|
||||||
$('#execution-count-execution-novel').val('1');
|
$('#execution-count-execution-novel').val('1');
|
||||||
|
$('#execution-no_of_patients_screened').parent().hide();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', false);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$('#execution-count-execution-lhc').val('0');
|
$('#execution-count-execution-lhc').val('0');
|
||||||
$('#execution-count-execution-novel').val('0');
|
$('#execution-count-execution-novel').val('0');
|
||||||
|
$('#execution-no_of_patients_screened').parent().hide();
|
||||||
|
$('#execution-no_of_patients_screened').prop('required', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -733,15 +697,15 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#execution-no_of_patients_screened').on('input', function () {
|
$('#execution-no_of_patients_screened').on('input', function () {
|
||||||
|
|
||||||
let value = $(this).val();
|
let value = $(this).val();
|
||||||
|
|
||||||
// Remove everything except digits
|
// Remove everything except digits
|
||||||
value = value.replace(/[^0-9]/g, '');
|
value = value.replace(/[^0-9]/g, '');
|
||||||
|
|
||||||
$(this).val(value);
|
$(this).val(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue