当前位置: 首页>>代码示例>>C#>>正文


C# Item.MoveNext方法代码示例

本文整理汇总了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;
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:20,代码来源:Item.cs

示例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;
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:23,代码来源:Item.cs

示例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;
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:22,代码来源:Item.cs

示例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;
        }
开发者ID:USAID-DELIVER-PROJECT,项目名称:ethiopia-hcmis-warehouse,代码行数:24,代码来源:Item.cs


注:本文中的Item.MoveNext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。