示例#1
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            if (e.DbName.IndexOf("@") == -1)
                e.ColumnTitles = this.MainForm.GetBrowseColumnProperties(e.DbName);
            else
            {
                string strFormat = "";
                if (this.m_biblioTable != null)
                {
                    BiblioInfo info = this.m_biblioTable[e.DbName] as BiblioInfo;
                    if (info != null)
                        strFormat = info.Format;
                }
                e.ColumnTitles = new ColumnPropertyCollection();
                string strColumnTitles = (string)_browseTitleTable[strFormat];
                List<string> titles = StringUtil.SplitList(strColumnTitles, '\t');
                foreach (string s in titles)
                {
                    ColumnProperty property = new ColumnProperty(s);
                    e.ColumnTitles.Add(property);
                }
            }

        }
示例#2
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            if (e.DbName.IndexOf("@") == -1)
            {
                e.ColumnTitles = Program.MainForm.GetBrowseColumnProperties(e.DbName);
            }
            else
            {
                string strFormat = "";
                if (this.m_biblioTable != null)
                {
                    BiblioInfo info = this.m_biblioTable[e.DbName] as BiblioInfo;
                    if (info != null)
                    {
                        strFormat = info.Format;
                    }
                }
                e.ColumnTitles = new ColumnPropertyCollection();
                string        strColumnTitles = (string)_browseTitleTable[strFormat];
                List <string> titles          = StringUtil.SplitList(strColumnTitles, '\t');
                foreach (string s in titles)
                {
                    ColumnProperty property = new ColumnProperty(s);
                    e.ColumnTitles.Add(property);
                }
            }
        }
示例#3
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection temp = Program.MainForm.GetBrowseColumnProperties(e.DbName);

            if (temp != null)
            {
                e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
            }
        }
示例#4
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties(e.DbName);
            if (temp != null)
                e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件

            /*
            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");
             * */
        }
示例#5
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            // e.ColumnTitles = this.MainForm.GetBrowseColumnNames(e.DbName);
            if (e.DbName.IndexOf("@") == -1)
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties(e.DbName);
                if (temp != null)
                    e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
            }
            else
            {
                string strFormat = "";
                if (this.m_biblioTable != null)
                {
                    BiblioInfo info = this.m_biblioTable[e.DbName] as BiblioInfo;
                    if (info != null)
                        strFormat = info.Format;
                }
                e.ColumnTitles = new ColumnPropertyCollection();
                string strColumnTitles = (string)_browseTitleTable[strFormat];
                List<string> titles = StringUtil.SplitList(strColumnTitles, '\t');
                foreach (string s in titles)
                {
                    ColumnProperty property = new ColumnProperty(s);
                    e.ColumnTitles.Add(property);
                }
            }

            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");

        }
示例#6
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            // e.ColumnTitles = this.MainForm.GetBrowseColumnNames(e.DbName);

            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection titles = this.GetBrowseColumnNames(e.DbName);
            if (titles == null) // 意外的数据库名
                return;
            e.ColumnTitles.AddRange(titles);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件

            /*
            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");
             * */

        }
示例#7
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                // 数量列的排序
                e.ListViewProperty.SetSortStyle(2, ColumnSortStyle.RightAlign);
                return;
            }

            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties(e.DbName);
            if (temp != null)
            {
                if (m_bBiblioSummaryColumn == true)
                    e.ColumnTitles.Insert(0, "书目摘要");
                e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
            }

            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");

            // e.ListViewProperty.SetSortStyle(2, ColumnSortStyle.LeftAlign);   // 应该根据 type为item_barcode 来决定排序方式
        }
示例#8
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (this._linkMarcFile != null
                || StringUtil.HasHead(e.DbName, "mem|") == true
                || StringUtil.HasHead(e.DbName, "file|") == true)
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("题名");
                e.ColumnTitles.Add("责任者");
                e.ColumnTitles.Add("出版社");
                e.ColumnTitles.Add("出版日期");
                return;
            }

            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            // e.ColumnTitles = this.MainForm.GetBrowseColumnNames(e.DbName);

            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection titles = this.GetBrowseColumnNames(e.DbName);
            if (titles == null) // 意外的数据库名
                return;
            e.ColumnTitles.AddRange(titles);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件

            /*
            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");
             * */

        }
示例#9
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
#if NO
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                // 数量列的排序
                e.ListViewProperty.SetSortStyle(2, ColumnSortStyle.RightAlign);
                return;
            }
#endif

            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties(e.DbName);
            if (temp != null)
            {
                e.ColumnTitles.Insert(0, "书目摘要");
                e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
            }
        }
示例#10
0
        void prop_GetBaseListColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
#if NO
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                // 数量列的排序
                e.ListViewProperty.SetSortStyle(2, ColumnSortStyle.RightAlign);
                return;
            }
#endif
            e.ColumnTitles = new ColumnPropertyCollection();
            ColumnPropertyCollection temp = this.MainForm.GetBrowseColumnProperties("[inventory_item]");  // e.DbName
            if (temp != null)
            {
                if (m_bBiblioSummaryColumn == true)
                    e.ColumnTitles.Insert(0, "书目摘要");
                e.ColumnTitles.AddRange(temp);  // 要复制,不要直接使用,因为后面可能会修改。怕影响到原件
            }

#if NO
            if (this.m_bFirstColumnIsKey == true)
                e.ColumnTitles.Insert(0, "命中的检索点");
#endif
            // 右侧补充的列
            if (this._defs != null)
            {
                ColumnPropertyCollection inventory_properties = this.MainForm.GetBrowseColumnProperties(this._defs.InventoryDbName);
                if (inventory_properties != null)
                {
                    foreach (int index in this._defs.source_indices)
                    {
                        if (index < inventory_properties.Count)
                        {
                            ColumnProperty source_prop = inventory_properties[index];
                            e.ColumnTitles.Add(source_prop);
                        }
                    }
                }
            }
        }
示例#11
0
        void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
        {
            if (e.DbName == "<blank>")
            {
                e.ColumnTitles = new ColumnPropertyCollection();
                e.ColumnTitles.Add("检索点");
                e.ColumnTitles.Add("数量");
                return;
            }

            e.ColumnTitles = this.MainForm.GetBrowseColumnProperties(e.DbName);
        }
示例#12
0
 void prop_GetColumnTitles(object sender, GetColumnTitlesEventArgs e)
 {
     e.ColumnTitles = this.MainForm.GetBrowseColumnProperties(e.DbName);
     e.ListViewProperty.SetSortStyle(2, ColumnSortStyle.LeftAlign);
 }