You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="text-danger"ng-if="dateError">You can't create an event in the past. Unless you are a wizard. Which I doubt.</p>
28
+
</div>
29
+
30
+
<divclass="form-group">
31
+
<inputtype="time"format="HH:mm"min="08:00"max="22:00"name="eventToUpdate.event.timeBegin"class="form-control"ng-model="eventToUpdate.event.timeBegin"placeholder="Time of the event beginning"value="{{eventToUpdate.event.timeBegin}}"required>
32
+
</div>
33
+
34
+
<divclass="form-group">
35
+
<inputtype="number"min="0.5"step="0.5"name="eventToUpdate.event.eventDurationHours"class="form-control"ng-model="eventToUpdate.event.eventDurationHours"placeholder="Duration in hours (can be 1.5)"value="{{eventToUpdate.event.eventDurationHours}}"required>
<inputtype="number"min="0"name="eventToUpdate.event.eventMaxPeople"class="form-control"ng-model="eventToUpdate.event.eventMaxPeople"placeholder="Maximum number of participants"value="{{eventToUpdate.event.eventMaxPeople}}"required>
returnawaitdb.ponctualEvent.SqlQuery("SELECT pe.* FROM ponctualEvent pe, Event e, Activity act WHERE pe.eventId=e.eventId AND e.activityId=act.activityId AND act.managerId = {0}",managerId).ToArrayAsync();
22
+
}
23
+
24
+
publicvoidupdateEvent(@eventevent1){
25
+
db.ponctualEvent.SqlQuery("UPDATE event SET roomId={0}, activityId={1}, eventName={2}, eventPrice={3}, eventDurationHours={4}, eventMaxPeople={5}, eventDescription={6}, timeBegin={7} WHERE eventId={8}",event1.roomId,event1.activityId,event1.eventName,event1.eventPrice,event1.eventDurationHours,event1.eventMaxPeople,event1.eventDescription,event1.timeBegin,event1.eventId);
0 commit comments