Session Console and Internals.
This commit is contained in:
@@ -26,7 +26,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Bus
|
||||
base(internals.UserContext, id, affIdOwner, processCategory)
|
||||
{
|
||||
this.internals = internals;
|
||||
itemDataTypes = SbmSystem.GetCodesOfType(internals.UserContext, Sbm.SystemCode.ItemDataType);
|
||||
itemDataTypes = internals.GetSystemCodes(Sbm.SystemCode.ItemDataType);
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
|
||||
@@ -33,10 +33,9 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Bus
|
||||
base(internals.UserContext, id, affIdOwner, assocId, transactionType)
|
||||
{
|
||||
this.internals = internals;
|
||||
transactionTypes = internals.GetCodesOfType(Sbm.SystemCode.TransactionType);
|
||||
transactionStatusCats = internals.GetCodesOfType(Sbm.SystemCode.TransactionStatusCat);
|
||||
requirementStatusCats = internals.GetCodesOfType(Sbm.SystemCode.RequirementStatusCat);
|
||||
constituentStatusCats = internals.GetCodesOfType(Sbm.SystemCode.ConstituentStatusCat);
|
||||
transactionStatusCats = internals.GetSystemCodes(Sbm.SystemCode.TransactionStatusCat);
|
||||
requirementStatusCats = internals.GetSystemCodes(Sbm.SystemCode.RequirementStatusCat);
|
||||
constituentStatusCats = internals.GetSystemCodes(Sbm.SystemCode.ConstituentStatusCat);
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
@@ -86,7 +85,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Dbas.Bus
|
||||
if (TransactionStatusCat == SbmTransaction.StatusCat.Closed)
|
||||
{
|
||||
// Once the 'grace' period has passed, only the status can be modified.
|
||||
int graceDaysUpdateClosedTrans = Math.Max(0, internals.UserContext.GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodDays.UpdateClosedTransaction, 0));
|
||||
int graceDaysUpdateClosedTrans = Math.Max(0, internals.GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodDays.UpdateClosedTransaction, 0));
|
||||
DateTime closed = Closed;
|
||||
detailsAreReadOnly = (DateUtil.IsValid(closed) && closed <= DateTime.Today.AddDays(-graceDaysUpdateClosedTrans));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user