Esempio n. 1
0
        /// <summary>
        /// 获得索取号事项数组
        /// </summary>
        /// <returns>CallNumberItem 数组</returns>
        public List<CallNumberItem> GetCallNumberItems()
        {
            ItemBindingItem cur_item = null;
            if (this.m_item is ItemBindingItem)
            {
                cur_item = (ItemBindingItem)this.m_item;
            }

            // 返回同一种期刊内的全部册事项信息
            List<CallNumberItem> callnumber_items = this.bindingControl1.GetCallNumberItems(cur_item);

            {
                CallNumberItem item = null;
                // 增补一个对象
                item = new CallNumberItem();
                callnumber_items.Add(item);

                item.CallNumber = "";   // 不要给出当前的,以免影响到取号结果

                item.RecPath = this.entityEditControl1.RecPath;
                item.Location = entityEditControl1.LocationString;
                item.Barcode = entityEditControl1.Barcode;
            }

            // FOUND:
            return callnumber_items;
        }
Esempio n. 2
0
        /// <summary>
        /// 构造索取号信息集合
        /// </summary>
        /// <returns>CallNumberItem事项集合</returns>
        public List<CallNumberItem> GetCallNumberItems()
        {
            List<CallNumberItem> results = new List<CallNumberItem>();
            foreach (BookItem book_item in this)
            {
                CallNumberItem item = new CallNumberItem();
                item.RecPath = book_item.RecPath;
                item.CallNumber = DomUtil.GetElementText(book_item.RecordDom.DocumentElement, "accessNo");
                item.Location = DomUtil.GetElementText(book_item.RecordDom.DocumentElement, "location");
                item.Barcode = DomUtil.GetElementText(book_item.RecordDom.DocumentElement, "barcode");

                results.Add(item);
            }

            return results;
        }
Esempio n. 3
0
        public List<CallNumberItem> GetCallNumberItems()
        {
            List<CallNumberItem> callnumber_items = this.BookItems.GetCallNumberItems();

            CallNumberItem item = null;

            int index = this.BookItems.IndexOf(this.BookItem);
            if (index == -1)
            {
                // 增补一个对象
                item = new CallNumberItem();
                callnumber_items.Add(item);

                item.CallNumber = "";   // 不要给出当前的,以免影响到取号结果
            }
            else
            {
                // 刷新自己的位置
                item = callnumber_items[index];
                item.CallNumber = entityEditControl_editing.AccessNo;
            }

            item.RecPath = this.entityEditControl_editing.RecPath;
            item.Location = entityEditControl_editing.LocationString;
            item.Barcode = entityEditControl_editing.Barcode;

            return callnumber_items;
        }
Esempio n. 4
0
        /// <summary>
        /// 构造索取号信息集合
        /// </summary>
        /// <returns>CallNumberItem事项集合</returns>
        public List<CallNumberItem> GetCallNumberItems()
        {
            List<CallNumberItem> results = new List<CallNumberItem>();
            foreach (Control control in this.flowLayoutPanel1.Controls)
            {
                if (!(control is EntityEditControl))
                    continue;

                EntityEditControl edit = control as EntityEditControl;

                CallNumberItem item = new CallNumberItem();
                item.RecPath = edit.RecPath;
                item.CallNumber = edit.AccessNo;
                item.Location = edit.LocationString;
                item.Barcode = edit.Barcode;

                results.Add(item);
            }

            return results;
        }