private void onWhileLogToHistory(object sender, EventArgs e) { TraceEvent("Entering CloseManyIPRAccounts.onWhileLogToHistory", 74, TraceSeverity.Verbose); WhileLogToHistory_HistoryOutcome = "Closing account"; using (IPRLinq.Entities _entities = new IPRLinq.Entities(workflowProperties.WebUrl)) { IPRLinq.IPR _ipr = IPRLinq.Element.GetAtIndex <IPRLinq.IPR>(_entities.IPR, m_InitializationData.AccountsArray[m_LoopCounter]); WhileLogToHistory_HistoryDescription = String.Format("Closing account: {0} - Item: {1}/{2}", _ipr.Title, m_LoopCounter + 1, m_InitializationData.AccountsArray.Length); TraceEvent("CloseManyIPRAccounts.onWhileLogToHistory: " + WhileLogToHistory_HistoryDescription, 79, TraceSeverity.Verbose); } }
private void GetProductType(Entities edc) { Entities.ProductDescription product = edc.GetProductType(this.SKU, this.StorLoc); this.ProductType = product.productType; this.IPRType = product.IPRMaterial; }
/// <summary> /// Processes the entry. /// </summary> /// <param name="edc">The <see cref="Entities"/> item.</param> /// <param name="warnings">The warnings.</param> public void ProcessEntry(Entities edc, ErrorsList warnings) { GetProductType(edc); GetBatchLookup(edc, warnings); }