public ResourceCustomDataViewModel(Resource model, ResourceTemplate template)
 {
     _template = template;
     Model = model;
 }
예제 #2
0
 public ResourceButton(ResourceTemplate model, Ticket selectedTicket)
 {
     _selectedTicket = selectedTicket;
     Model = model;
 }
 public ResourceSearchResultViewModel(Resource model, ResourceTemplate template)
 {
     ResourceTemplate = template;
     Model = model;
 }
예제 #4
0
 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);
 }
예제 #5
0
 private bool CanSelectResource(ResourceTemplate arg)
 {
     return !SelectedTicket.Locked && SelectedTicket.CanSubmit && _applicationState.CurrentDepartment.ResourceScreens.Any(x => x.ResourceTemplateId == arg.Id);
 }
예제 #6
0
 private void OnSelectResource(ResourceTemplate obj)
 {
     throw new NotImplementedException();
 }
 public ResourceSearchResultViewModel(Resource model, ResourceTemplate template)
 {
     AccountTemplate = template;
     Model = model;
     UpdateDetailedInfo();
 }