public DocumentTypeDetailsViewModel(Guid orgnaisationUID, TimeTrackDocumentType timeTrackDocumentType = null)
		{
			OrganisationUID = orgnaisationUID;
			if (timeTrackDocumentType == null)
			{
				Title = "Создание документа";
				TimeTrackDocumentType = new TimeTrackDocumentType()
				{
					Name = "Название документа",
					OrganisationUID = OrganisationUID
				};
			}
			else
			{
				TimeTrackDocumentType = timeTrackDocumentType;
				Title = string.Format("Свойства документа: {0}", TimeTrackDocumentType.Name);
			}

			AvailableDocumentTypes = new ObservableCollection<DocumentType>();
			AvailableDocumentTypes.Add(DocumentType.Overtime);
			AvailableDocumentTypes.Add(DocumentType.Presence);
			AvailableDocumentTypes.Add(DocumentType.Absence);

			CopyProperties();
		}
		public OperationResult<bool> EditTimeTrackDocumentType(TimeTrackDocumentType timeTrackDocumentType)
		{
			return SafeOperationCall(() =>
			{
				var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10));
				using (rubezhService as IDisposable)
					return rubezhService.EditTimeTrackDocumentType(RubezhServiceFactory.UID, timeTrackDocumentType);
			}, "EditTimeTrackDocumentType");
		}
		public OperationResult<bool> EditTimeTrackDocumentType(Guid clientUID, TimeTrackDocumentType timeTrackDocumentType)
		{
			return SafeOperationCall(clientUID, () => RubezhService.EditTimeTrackDocumentType(clientUID, timeTrackDocumentType), "EditTimeTrackDocumentType");
		}
		public OperationResult<bool> EditTimeTrackDocumentType(Guid clientUID, TimeTrackDocumentType timeTrackDocumentType)
		{
			using (var databaseService = new RubezhDAL.DataClasses.DbService())
			{
				return databaseService.TimeTrackDocumentTypeTranslator.EditTimeTrackDocumentType(timeTrackDocumentType);
			}
		}
		public static bool Edit(TimeTrackDocumentType documentType)
		{
			var operationResult = ClientManager.RubezhService.EditTimeTrackDocumentType(documentType);
			return Common.ShowErrorIfExists(operationResult);
		}