function updateQC1JobState(id) {
	if (id != '') {
		let form = new FormData();
		form.append('id', id);
		let xhttp = new XMLHttpRequest();
		xhttp.onreadystatechange = function () {
			if (this.readyState == 4 && this.status == 200) {

				showAlert("Successfully accepted")
				setTimeout(() => {
					location.reload();;
				}, 1000)

			}
		};
		xhttp.open("POST", baseUrl + "Qc1/updateCurrentQC1jobCardState", true);
		xhttp.send(form);


	}

}
//Accected by QC1 to update job card status
Accected by QC1 to update job card status
Accected by QC1 to update job card status
function updateQC1JobState(id) {
	if (id != '') {
		let form = new FormData();
		form.append('id', id);
		let xhttp = new XMLHttpRequest();
		xhttp.onreadystatechange = function () {
			if (this.readyState == 4 && this.status == 200) {
				showAlert("Successfully accepted")
				setTimeout(() => {
					location.reload();;
				}, 1000)
			}
		};
		xhttp.open("POST", baseUrl + "Qc1/updateCurrentQC1jobCardState", true);
		xhttp.send(form);
	}
}
function updateQC1JobState ( id ) { if ( id != '' ) { let form = new FormData ( ) ; form . append ( 'id' , id ) ; let xhttp = new XMLHttpRequest ( ) ; xhttp . onreadystatechange = function ( ) { if ( this . readyState == 4 && this . status == 200 ) { showAlert ( "Successfully accepted" ) setTimeout ( ( ) => { location . reload ( ) ; ; } , 1000 ) } } ; xhttp . open ( "POST" , baseUrl + "Qc1/updateCurrentQC1jobCardState" , true ) ; xhttp . send ( form ) ; } }
Accected by QC1 to update job card status
Accected by QC1 to update job card status