public ResourceCustomDataViewModel(Resource model, ResourceTemplate template) { _template = template; Model = model; }
public ResourceButton(ResourceTemplate model, Ticket selectedTicket) { _selectedTicket = selectedTicket; Model = model; }
public ResourceSearchResultViewModel(Resource model, ResourceTemplate template) { ResourceTemplate = template; Model = model; }
private void OnSelectResource(ResourceTemplate obj) { var ticketResource = SelectedTicket.TicketResources.SingleOrDefault(x => x.ResourceTemplateId == obj.Id); var selectedResource = ticketResource != null ? _cacheService.GetResourceById(ticketResource.ResourceId) : Resource.GetNullResource(obj.Id); EntityOperationRequest<Resource>.Publish(selectedResource, EventTopicNames.SelectResource, EventTopicNames.ResourceSelected); }
private bool CanSelectResource(ResourceTemplate arg) { return !SelectedTicket.Locked && SelectedTicket.CanSubmit && _applicationState.CurrentDepartment.ResourceScreens.Any(x => x.ResourceTemplateId == arg.Id); }
private void OnSelectResource(ResourceTemplate obj) { throw new NotImplementedException(); }
public ResourceSearchResultViewModel(Resource model, ResourceTemplate template) { AccountTemplate = template; Model = model; UpdateDetailedInfo(); }