func (VS *Server) changeAssignment(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "changeAssignment", "service, _ := VS.getOurService")
	if !b {
		return
	}
	idAssignment, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	ass := VS.getAssignmentByID(c, idAssignment, "h_worker", "changeAssignment", "ass := VS.getAssignmentByID")
	check := VS.getCheckBoxFromHTML(c, "returned")
	if check {
		ass.IsBack = true
		VS.addElementToDatabaseWithRegister(c, ass, ass.ID, service.ID, "h_worker", "changeAssignment", "v.addElementToDatabaseWithRegister")

	}
	VS.goodFeedback(c, "records/assignments/"+idservicetype.Hex())
}
// Stores the new Assignment information into the DataBase
Stores the new Assignment information into the DataBase
// Stores the new Assignment information into the DataBase
func (VS *Server) changeAssignment(c *gin.Context) {
	service, b := VS.getOurService(c, "h_worker", "changeAssignment", "service, _ := VS.getOurService")
	if !b {
		return
	}
	idAssignment, b := VS.getIDParamFromURL(c, "id")
	if !b {
		return
	}
	idservicetype, b := VS.getIDParamFromURL(c, "idservicetype")
	if !b {
		return
	}
	ass := VS.getAssignmentByID(c, idAssignment, "h_worker", "changeAssignment", "ass := VS.getAssignmentByID")
	check := VS.getCheckBoxFromHTML(c, "returned")
	if check {
		ass.IsBack = true
		VS.addElementToDatabaseWithRegister(c, ass, ass.ID, service.ID, "h_worker", "changeAssignment", "v.addElementToDatabaseWithRegister")
	}
	VS.goodFeedback(c, "records/assignments/"+idservicetype.Hex())
}
func ( VS * Server ) changeAssignment ( c * gin . Context ) { service , b := VS . getOurService ( c , " " , " " , " " ) if ! b { return } idAssignment , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } idservicetype , b := VS . getIDParamFromURL ( c , " " ) if ! b { return } ass := VS . getAssignmentByID ( c , idAssignment , " " , " " , " " ) check := VS . getCheckBoxFromHTML ( c , " " ) if check { ass . IsBack = true VS . addElementToDatabaseWithRegister ( c , ass , ass . ID , service . ID , " " , " " , " " ) } VS . goodFeedback ( c , " " + idservicetype . Hex ( ) ) }
Stores the new Assignment information into the DataBase
Stores the new Assignment information into the DataBase