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
@ -66,7 +66,7 @@
|
|||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="OperatingMode" value="Debug" />
|
<add key="OperatingMode" value="Debug" />
|
||||||
<!--"Debug" "Production" "Demo"/-->
|
<!--"Debug" "Production" "Demo"/-->
|
||||||
<add key ="OriginalPageBreak" value="False"/>
|
<add key="OriginalPageBreak" value="False"/>
|
||||||
<add key="CslaAuthentication" value="Windows" />
|
<add key="CslaAuthentication" value="Windows" />
|
||||||
<!--
|
<!--
|
||||||
<add key="CslaDataPortalProxy"
|
<add key="CslaDataPortalProxy"
|
||||||
@ -157,6 +157,15 @@
|
|||||||
<setting name="UpdateSettings" serializeAs="String">
|
<setting name="UpdateSettings" serializeAs="String">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</setting>
|
</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>
|
</VEPROMS.Properties.Settings>
|
||||||
<UISampleNetBar1.Properties.Settings>
|
<UISampleNetBar1.Properties.Settings>
|
||||||
<setting name="ShowDefaultFolderProp" serializeAs="String">
|
<setting name="ShowDefaultFolderProp" serializeAs="String">
|
||||||
|
@ -50,6 +50,7 @@ namespace VEPROMS
|
|||||||
SetUpAdminTools();
|
SetUpAdminTools();
|
||||||
lblWarning.Visible = false;
|
lblWarning.Visible = false;
|
||||||
}
|
}
|
||||||
|
private List<string> myTreeNodePath;
|
||||||
private void ResetTV()
|
private void ResetTV()
|
||||||
{
|
{
|
||||||
ResetTV(false);
|
ResetTV(false);
|
||||||
@ -57,6 +58,7 @@ namespace VEPROMS
|
|||||||
private void ResetTV(bool noProcs)
|
private void ResetTV(bool noProcs)
|
||||||
{
|
{
|
||||||
this.Cursor = Cursors.WaitCursor;
|
this.Cursor = Cursors.WaitCursor;
|
||||||
|
myTreeNodePath = new List<string>();
|
||||||
myTV.Nodes.Clear();
|
myTV.Nodes.Clear();
|
||||||
if (!selectedAdminTool.NoTreeView)
|
if (!selectedAdminTool.NoTreeView)
|
||||||
{
|
{
|
||||||
@ -86,15 +88,38 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
foreach (DocVersionInfo dvi in fic.FolderDocVersions)
|
foreach (DocVersionInfo dvi in fic.FolderDocVersions)
|
||||||
{
|
{
|
||||||
tnc.Tag = dvi;
|
UserInfo ui = UserInfo.GetByUserID(MySessionInfo.UserID);
|
||||||
myDocVersions.Add(tnc, dvi);
|
if (ui.IsAdministrator() || ui.IsSetAdministrator(dvi))
|
||||||
if (!noProcs)
|
|
||||||
{
|
{
|
||||||
if (dvi.Procedures.Count > 0)
|
tnc.Tag = dvi;
|
||||||
LoadProcedures(dvi, tnc);
|
myDocVersions.Add(tnc, dvi);
|
||||||
|
if (!noProcs)
|
||||||
|
{
|
||||||
|
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)
|
private void LoadProcedures(DocVersionInfo dvi, TreeNode tnc)
|
||||||
{
|
{
|
||||||
foreach (ProcedureInfo pi in dvi.Procedures)
|
foreach (ProcedureInfo pi in dvi.Procedures)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user