Allow approval to work if no existing approved versions

Try too set margins if bottom margin is undefined for MSWord section
Corrected comment
This commit is contained in:
Rich
2012-06-15 16:41:39 +00:00
parent 0927762693
commit 25db26519e
3 changed files with 22 additions and 5 deletions

View File

@@ -925,9 +925,12 @@ namespace VEPROMS
foreach (ApprovalProcedure ap in MyProcedures) //spin thru looking for updating current revision
{
RevisionInfo ric = RevisionInfo.GetCurrentByItemID(ap.ProcInfo.ItemID);
VersionInfo vi = ric.LatestVersion;
if (ap.RevNumber == ric.RevisionNumber && nsi.IsApproved == 0 && vi.MyStage.IsApproved == 1)
sb.AppendLine(string.Format("{0} - '{1}'", ap.ProcInfo.DisplayNumber, vi.MyStage.Name));
if (ric != null)
{
VersionInfo vi = ric.LatestVersion;
if (ap.RevNumber == ric.RevisionNumber && nsi.IsApproved == 0 && vi.MyStage.IsApproved == 1)
sb.AppendLine(string.Format("{0} - '{1}'", ap.ProcInfo.DisplayNumber, vi.MyStage.Name));
}
}
if (sb.Length > 0)
{