本文整理汇总了C#中Item.MoveNext方法的典型用法代码示例。如果您正苦于以下问题:C# Item.MoveNext方法的具体用法?C# Item.MoveNext怎么用?C# Item.MoveNext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Item
的用法示例。
在下文中一共展示了Item.MoveNext方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetRecievedItems
/// <summary>
/// Gets list of ever received items
/// </summary>
/// <returns></returns>
public static Dictionary<int, int> GetRecievedItems()
{
var query = HCMIS.Repository.Queries.Item.SelectGetRecievedItems();
Item itms = new Item();
itms.LoadFromRawSql(query);
System.Collections.Generic.Dictionary<int, int> dict = new System.Collections.Generic.Dictionary<int, int>();
int[] arr = new int[itms.RowCount];
for (int i = 0; i < itms.RowCount; i++)
{
dict.Add(itms.ID, itms.ID);
itms.MoveNext();
}
return dict;
}
示例2: GetItemsByReceiptInvoiceNoForSTVTransfer
/// <summary>
/// Returns items that have been issued using an STV/Invoice number for SRM
/// </summary>
/// <param name="receiptInvoiceID">The Receipt Invoice ID.</param>
/// <returns></returns>
public static DataTable GetItemsByReceiptInvoiceNoForSTVTransfer(int receiptInvoiceID)
{
string query = "";
query = HCMIS.Repository.Queries.Item.SelectGetItemsByReceiptInvoiceNoForSTVTransfer(receiptInvoiceID);
Item itms = new Item();
itms.LoadFromRawSql(query);
itms.AddColumn("LineNo", typeof(int));
// make a better numbering
int i = 1;
while (!itms.EOF)
{
itms.SetColumn("LineNo", i++);
itms.MoveNext();
}
return itms.DataTable;
}
示例3: GetItemsBySTVInvoiceNoForStockReturn
/// <summary>
/// Returns items that have been issued using an STV/Invoice number for SRM
/// </summary>
/// <param name="stvID">The STV ID.</param>
/// <param name="storeID">The store ID.</param>
/// <returns></returns>
public static DataTable GetItemsBySTVInvoiceNoForStockReturn(int stvID,int storeID)
{
var query = HCMIS.Repository.Queries.Item.SelectGetItemsBySTVInvoiceNoForStockReturn(stvID, storeID);
Item itms = new Item();
itms.LoadFromRawSql(query);
itms.AddColumn("LineNo", typeof(int));
// make a better numbering
int i = 1;
while (!itms.EOF)
{
itms.SetColumn("LineNo", i++);
itms.MoveNext();
}
return itms.DataTable;
}
示例4: GetItemPriceListByManufacturer
/// <summary>
/// Returns the price list by Manufacturer for items received on a specific date
/// </summary>
/// <param name="date">Date in Gregorian Calendar</param>
/// <param name="storeID">The store ID.</param>
/// <returns></returns>
public static DataTable GetItemPriceListByManufacturer(DateTime date, Int32 storeID)
{
var query = HCMIS.Repository.Queries.Item.SelectGetItemPriceListByManufacturer(date, storeID);
Item itm = new Item();
itm.LoadFromRawSql(query);
itm.AddColumn("UnitsSelling", typeof(string));
//For the items that haven't been priced
while (!itm.EOF)
{
string priceString = itm.GetColumn("UnitsSellingBeforeFormat").ToString();
itm.SetColumn("UnitsSelling", FormatNumber(priceString));
itm.MoveNext();
}
return itm.DataTable;
}