internal void Adjust(Entities edc, ref decimal _toDispose, SharePoint.Logging.NamedTraceLogger.TraceAction trace) { trace("Entering Disposal.Adjust", 193, TraceSeverity.Verbose); this.SettledQuantityDec += this.Disposal2IPRIndex.Withdraw(ref _toDispose, this.SettledQuantityDec); if (this.CustomsStatus.Value == Linq.CustomsStatus.Finished) { this.Disposal2IPRIndex.RecalculateClearedRecords(edc, trace); } }
internal void AddNewDisposals(Entities edc, Linq.DisposalEnum _kind, ref decimal _toDispose, InvoiceContent invoiceContent, SharePoint.Logging.NamedTraceLogger.TraceAction trace) { trace("Entering Material.AddNewDisposals", 421, TraceSeverity.Verbose); foreach (IPR _iprx in this.Accounts2Dispose) { if (_iprx.TobaccoNotAllocated <= 0) { continue; } _iprx.AddDisposal(edc, _kind, ref _toDispose, this, invoiceContent, trace); if (_toDispose <= 0) { break; } } }
/// <summary> /// Batches the processing. /// </summary> /// <param name="edc">The <see cref="Entities" /> instance.</param> /// <param name="contentInfo">The content info.</param> /// <param name="parent">The parent.</param> /// <param name="newBatch">if set to <c>true</c> it is new batch.</param> /// <param name="trace">The trace action.</param> public void BatchProcessing(Entities edc, SummaryContentInfo contentInfo, BatchLib parent, bool newBatch, SharePoint.Logging.NamedTraceLogger.TraceAction trace) { trace("Entering Batch.BatchProcessing", 73, TraceSeverity.Verbose); BatchLibraryIndex = parent; Material.Ratios _mr = GetDependences(edc, contentInfo); contentInfo.Analyze(edc, this, _mr, newBatch, trace); AssignContentInfo(contentInfo, newBatch); }