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();
 }