ModuleClientFunctions.cs
1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using System;
using System.Collections.Generic;
using System.Linq;
using Sungero.Core;
using Sungero.CoreEntities;
namespace Sungero.Projects.Client
{
public class ModuleFunctions
{
/// <summary>
/// Создать документ по проекту.
/// </summary>
public virtual void CreateDocument()
{
ProjectDocuments.CreateDocumentWithCreationDialog(ProjectDocuments.Info,
Docflow.SimpleDocuments.Info,
Docflow.Addendums.Info,
Docflow.MinutesBases.Info);
}
/// <summary>
/// Создать проект.
/// </summary>
public virtual void CreateProject()
{
Functions.Project.Remote.CreateProject().Show();
}
/// <summary>
/// Отобразить однократно нотифайку о выдаче прав на проект, папки проекта, проектные документы.
/// </summary>
/// <param name="e">Аргументы события.</param>
/// <param name="message">Текст уведомления.</param>
[Public]
public virtual void ShowProjectRightsNotifyOnce(Sungero.Domain.Shared.BaseEventArgs e, string message)
{
bool showProjectDocumentRightsNotify;
if (!e.Params.TryGetValue(Constants.Project.ShowProjectRightsNotify, out showProjectDocumentRightsNotify))
{
Dialogs.NotifyMessage(message);
e.Params.AddOrUpdate(Constants.Project.ShowProjectRightsNotify, false);
}
}
}
}