Added new feature to keep Background Document and Deviation Documents in Sync as the user moves through the procedure.
Added the ability for the Set Admin to use Admin Tools
This commit is contained in:
parent
14e0d8c756
commit
ba94c537cc
@ -157,6 +157,15 @@
|
||||
<setting name="UpdateSettings" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
<setting name="PasteNoReturns" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="PastePlainText" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="SyncEnhancedDocuments" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</VEPROMS.Properties.Settings>
|
||||
<UISampleNetBar1.Properties.Settings>
|
||||
<setting name="ShowDefaultFolderProp" serializeAs="String">
|
||||
|
@ -50,6 +50,7 @@ namespace VEPROMS
|
||||
SetUpAdminTools();
|
||||
lblWarning.Visible = false;
|
||||
}
|
||||
private List<string> myTreeNodePath;
|
||||
private void ResetTV()
|
||||
{
|
||||
ResetTV(false);
|
||||
@ -57,6 +58,7 @@ namespace VEPROMS
|
||||
private void ResetTV(bool noProcs)
|
||||
{
|
||||
this.Cursor = Cursors.WaitCursor;
|
||||
myTreeNodePath = new List<string>();
|
||||
myTV.Nodes.Clear();
|
||||
if (!selectedAdminTool.NoTreeView)
|
||||
{
|
||||
@ -85,6 +87,9 @@ namespace VEPROMS
|
||||
private void LoadDocVersions(FolderInfo fic, TreeNode tnc, bool noProcs)
|
||||
{
|
||||
foreach (DocVersionInfo dvi in fic.FolderDocVersions)
|
||||
{
|
||||
UserInfo ui = UserInfo.GetByUserID(MySessionInfo.UserID);
|
||||
if (ui.IsAdministrator() || ui.IsSetAdministrator(dvi))
|
||||
{
|
||||
tnc.Tag = dvi;
|
||||
myDocVersions.Add(tnc, dvi);
|
||||
@ -93,7 +98,27 @@ namespace VEPROMS
|
||||
if (dvi.Procedures.Count > 0)
|
||||
LoadProcedures(dvi, tnc);
|
||||
}
|
||||
myTreeNodePath.Add(tnc.FullPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
while (tnc != null && tnc.Text != "VEPROMS" && !IsUsedPath(tnc.FullPath))
|
||||
{
|
||||
TreeNode tmp = tnc.Parent;
|
||||
tnc.Remove();
|
||||
tnc = tmp;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
private bool IsUsedPath(string path)
|
||||
{
|
||||
foreach (string s in myTreeNodePath)
|
||||
{
|
||||
if (s.StartsWith(path))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private void LoadProcedures(DocVersionInfo dvi, TreeNode tnc)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user