@Override
	public void loadToView(BaseModel model) {
		ExecutedService executedService = (ExecutedService)model;
		PatientServicesEditor view = (PatientServicesEditor) this.view;
		view.model.setValue(executedService.getDatum());
		for(int i = 0; i<view.dijagnoza.getItemCount(); i++) {
			Diagnosis diagnosis = (Diagnosis)view.dijagnoza.getItemAt(i);
			if(diagnosis.getIdDijagnoze().longValue() == executedService.getDijagnoza().longValue())
				view.dijagnoza.setSelectedItem(diagnosis);
		}
		for(int i = 0; i<view.idStom.getItemCount(); i++) {
			Dentist dentist = (Dentist)view.idStom.getItemAt(i);
			if(dentist.getIdStom().longValue() == executedService.getIdStom().longValue())
				view.idStom.setSelectedItem(dentist);
		}
		for(int i = 0; i<view.materijal.getItemCount(); i++) {
			Material material = (Material)view.materijal.getItemAt(i);
			if(material.getIdMat().longValue() == executedService.getMaterijal().longValue())
				view.materijal.setSelectedItem(material);
		}
		for(int i = 0; i<view.usluga.getItemCount(); i++) {
			Service service = (Service)view.usluga.getItemAt(i);
			if(service.getIdUsl().longValue() == executedService.getUsluga().longValue())
				view.usluga.setSelectedItem(service);
		}
		view.napomena.setText(executedService.getNapomena());
		view.povrsine.setText(executedService.getPovrsine());
		view.idZuba.setText(executedService.getIdZuba().toString());
		view.increment.setText(String.valueOf(executedService.getIncrement()));
		
	}