Programmer:Stock Status Report 2: Difference between revisions

no edit summary
(Created page with "==References of AutoCount Accounting version 2.1== *nuget package "AutoCount2.Stock" AutoCount.dll AutoCount.Accounting.dll AutoCount.UI.dll AutoCount.Images.dll AutoCount.Accounting.UI.dll AutoCount.Inquiry.dll AutoCount.Invoicing.dll '''AutoCount.Stock.dll''' ==Get all tables in the DataSet of Stock Status== <syntaxhighlight lang="csharp"> public DataSet GetStockStatusDataSet(AutoCount.Authentication.UserSession userSession) { AutoCount.Stock.StockStatus...")
 
No edit summary
Line 38:
public DataTable GetStockStatusTable(AutoCount.Authentication.UserSession userSession)
{
AutoCount.Stock.StockStatus.StockStatusHelper ssHelper = new AutoCount.Stock.StockStatus.StockStatusHelper(myUserSessionuserSession);
 
//Filter Stock Location
Line 56:
This example shows how to add a column "ReadyStock" and calculate the value using two existing values.
<syntaxhighlight lang="csharp">
public DataTable GetStockStatusTableWithColumnExpression(BCEAutoCount.DataAuthentication.DBSettingUserSession dbSettinguserSession)
{
BCE.AutoCount.Stock.StockStatus.StockStatusHelper ssHelper = new BCE.AutoCount.Stock.StockStatus.StockStatusHelper(dbSettingmyUserSession);
 
//Filter Stock Location
AutoCount.Stock.StockStatus.StockStatusCriteria crit = ssHelper.Criteria;
crit.LocationFilter.Type = BCE.AutoCount.SearchFilter.FilterType.ByIndividual;
crit.LocationFilter.Add("HQ");
 
ssHelper.Inquire();
 
Line 76 ⟶ 75:
}
</syntaxhighlight>
 
 
{{SeeAlsoStock}}