Added SessionInfo property to dlgApproveProcedure and ApprovalInfo classes.

Added SessionInfo property to DlgPrintProcedure and added checks to print routines to notify user that another user has procedure checked out with a confirmation to continue printing.
Added code to support multiuser and security including initializing security, creating user if user does not exist in database, checking in and out DocVersions, Procedures and Documents and keeping the database notified that user is still active.
Added label to bottom of PROMS main form to indicate who user is and what security they have on open objects.
This commit is contained in:
Rich
2013-11-20 23:00:28 +00:00
parent 46a70899bd
commit b634967817
4 changed files with 357 additions and 5 deletions

View File

@@ -39,6 +39,16 @@ namespace VEPROMS
get { return _ApplicabilityIndex; }
set { _ApplicabilityIndex = value; }
}
private SessionInfo _MySessionInfo;
public SessionInfo MySessionInfo
{
get { return _MySessionInfo; }
set
{
_MySessionInfo = value;
_MyApproval.MySessionInfo = _MySessionInfo;
}
}
private ApprovalInfo _MyApproval = new ApprovalInfo();
private bool _CheckForMore = false;
private DocVersionInfo _MyDocVersion;
@@ -703,6 +713,12 @@ namespace VEPROMS
if (StatusUpdated != null)
StatusUpdated(sender, e);
}
private SessionInfo _MySessionInfo;
public SessionInfo MySessionInfo
{
get { return _MySessionInfo; }
set { _MySessionInfo = value; }
}
private int _RevType;
public int RevType
{