コード例 #1
0
ファイル: SearchForm.cs プロジェクト: paopaofeng/dp2
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SearchForm));
            this.tabControl_query = new System.Windows.Forms.TabControl();
            this.tabPage_querySimple = new System.Windows.Forms.TabPage();
            this.splitContainer_simpleQeury = new System.Windows.Forms.SplitContainer();
            this.treeView_simpleQueryResTree = new DigitalPlatform.rms.Client.ResTree();
            this.panel_simpleQueryOther = new System.Windows.Forms.Panel();
            this.button_test = new System.Windows.Forms.Button();
            this.button_simpleQueryProperty = new System.Windows.Forms.Button();
            this.textBox_simpleQuery_comment = new System.Windows.Forms.TextBox();
            this.label1 = new System.Windows.Forms.Label();
            this.textBox_simpleQueryWord = new System.Windows.Forms.TextBox();
            this.button_simpleQuerySearch = new System.Windows.Forms.Button();
            this.tabPage_queryAdvance = new System.Windows.Forms.TabPage();
            this.textBox_complexQuery_comment = new System.Windows.Forms.TextBox();
            this.button_complexQuerySearch = new System.Windows.Forms.Button();
            this.button_complex_server4 = new System.Windows.Forms.Button();
            this.imageList_complex_serverButton = new System.Windows.Forms.ImageList(this.components);
            this.button_complex_server3 = new System.Windows.Forms.Button();
            this.button_complex_server2 = new System.Windows.Forms.Button();
            this.button_complex_server1 = new System.Windows.Forms.Button();
            this.comboBox_complex_logic4 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_from4 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_db4 = new System.Windows.Forms.ComboBox();
            this.textBox_complex_word4 = new System.Windows.Forms.TextBox();
            this.comboBox_complex_logic3 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_from3 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_db3 = new System.Windows.Forms.ComboBox();
            this.textBox_complex_word3 = new System.Windows.Forms.TextBox();
            this.comboBox_complex_logic2 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_from2 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_db2 = new System.Windows.Forms.ComboBox();
            this.textBox_complex_word2 = new System.Windows.Forms.TextBox();
            this.comboBox_complex_from1 = new System.Windows.Forms.ComboBox();
            this.comboBox_complex_db1 = new System.Windows.Forms.ComboBox();
            this.textBox_complex_word1 = new System.Windows.Forms.TextBox();
            this.tabPage_queryXml = new System.Windows.Forms.TabPage();
            this.button_xmlQuerySearch = new System.Windows.Forms.Button();
            this.textBox_xmlQueryString = new System.Windows.Forms.TextBox();
            this.toolTip_serverUrl = new System.Windows.Forms.ToolTip(this.components);
            this.splitContainer_main = new System.Windows.Forms.SplitContainer();
            this.listView_browse = new DigitalPlatform.rms.Client.BrowseList();
            this.splitContainer_xml = new System.Windows.Forms.SplitContainer();
            this.textBox_xmlQuery_comment = new System.Windows.Forms.TextBox();
            this.tabControl_query.SuspendLayout();
            this.tabPage_querySimple.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_simpleQeury)).BeginInit();
            this.splitContainer_simpleQeury.Panel1.SuspendLayout();
            this.splitContainer_simpleQeury.Panel2.SuspendLayout();
            this.splitContainer_simpleQeury.SuspendLayout();
            this.panel_simpleQueryOther.SuspendLayout();
            this.tabPage_queryAdvance.SuspendLayout();
            this.tabPage_queryXml.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_main)).BeginInit();
            this.splitContainer_main.Panel1.SuspendLayout();
            this.splitContainer_main.Panel2.SuspendLayout();
            this.splitContainer_main.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_xml)).BeginInit();
            this.splitContainer_xml.Panel1.SuspendLayout();
            this.splitContainer_xml.Panel2.SuspendLayout();
            this.splitContainer_xml.SuspendLayout();
            this.SuspendLayout();
            // 
            // tabControl_query
            // 
            this.tabControl_query.Controls.Add(this.tabPage_querySimple);
            this.tabControl_query.Controls.Add(this.tabPage_queryAdvance);
            this.tabControl_query.Controls.Add(this.tabPage_queryXml);
            this.tabControl_query.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl_query.Location = new System.Drawing.Point(0, 0);
            this.tabControl_query.Name = "tabControl_query";
            this.tabControl_query.SelectedIndex = 0;
            this.tabControl_query.Size = new System.Drawing.Size(536, 231);
            this.tabControl_query.TabIndex = 0;
            this.tabControl_query.SelectedIndexChanged += new System.EventHandler(this.tabControl_query_SelectedIndexChanged);
            // 
            // tabPage_querySimple
            // 
            this.tabPage_querySimple.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_querySimple.Controls.Add(this.splitContainer_simpleQeury);
            this.tabPage_querySimple.Location = new System.Drawing.Point(4, 22);
            this.tabPage_querySimple.Name = "tabPage_querySimple";
            this.tabPage_querySimple.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage_querySimple.Size = new System.Drawing.Size(528, 205);
            this.tabPage_querySimple.TabIndex = 0;
            this.tabPage_querySimple.Text = "简单";
            this.tabPage_querySimple.UseVisualStyleBackColor = true;
            // 
            // splitContainer_simpleQeury
            // 
            this.splitContainer_simpleQeury.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer_simpleQeury.Location = new System.Drawing.Point(3, 3);
            this.splitContainer_simpleQeury.Name = "splitContainer_simpleQeury";
            // 
            // splitContainer_simpleQeury.Panel1
            // 
            this.splitContainer_simpleQeury.Panel1.Controls.Add(this.treeView_simpleQueryResTree);
            // 
            // splitContainer_simpleQeury.Panel2
            // 
            this.splitContainer_simpleQeury.Panel2.Controls.Add(this.panel_simpleQueryOther);
            this.splitContainer_simpleQeury.Size = new System.Drawing.Size(522, 199);
            this.splitContainer_simpleQeury.SplitterDistance = 209;
            this.splitContainer_simpleQeury.TabIndex = 0;
            // 
            // treeView_simpleQueryResTree
            // 
            this.treeView_simpleQueryResTree.Dock = System.Windows.Forms.DockStyle.Fill;
            this.treeView_simpleQueryResTree.HideSelection = false;
            this.treeView_simpleQueryResTree.ImageIndex = 0;
            this.treeView_simpleQueryResTree.Location = new System.Drawing.Point(0, 0);
            this.treeView_simpleQueryResTree.Name = "treeView_simpleQueryResTree";
            this.treeView_simpleQueryResTree.SelectedImageIndex = 0;
            this.treeView_simpleQueryResTree.Size = new System.Drawing.Size(209, 199);
            this.treeView_simpleQueryResTree.TabIndex = 0;
            // 
            // panel_simpleQueryOther
            // 
            this.panel_simpleQueryOther.Controls.Add(this.button_test);
            this.panel_simpleQueryOther.Controls.Add(this.button_simpleQueryProperty);
            this.panel_simpleQueryOther.Controls.Add(this.textBox_simpleQuery_comment);
            this.panel_simpleQueryOther.Controls.Add(this.label1);
            this.panel_simpleQueryOther.Controls.Add(this.textBox_simpleQueryWord);
            this.panel_simpleQueryOther.Controls.Add(this.button_simpleQuerySearch);
            this.panel_simpleQueryOther.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel_simpleQueryOther.Location = new System.Drawing.Point(0, 0);
            this.panel_simpleQueryOther.Name = "panel_simpleQueryOther";
            this.panel_simpleQueryOther.Size = new System.Drawing.Size(309, 199);
            this.panel_simpleQueryOther.TabIndex = 2;
            // 
            // button_test
            // 
            this.button_test.Location = new System.Drawing.Point(6, 52);
            this.button_test.Name = "button_test";
            this.button_test.Size = new System.Drawing.Size(75, 23);
            this.button_test.TabIndex = 6;
            this.button_test.Text = "Test";
            this.button_test.UseVisualStyleBackColor = true;
            this.button_test.Visible = false;
            this.button_test.Click += new System.EventHandler(this.button_test_Click);
            // 
            // button_simpleQueryProperty
            // 
            this.button_simpleQueryProperty.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.button_simpleQueryProperty.Location = new System.Drawing.Point(249, 176);
            this.button_simpleQueryProperty.Name = "button_simpleQueryProperty";
            this.button_simpleQueryProperty.Size = new System.Drawing.Size(60, 23);
            this.button_simpleQueryProperty.TabIndex = 5;
            this.button_simpleQueryProperty.Text = "属性(&P)";
            this.button_simpleQueryProperty.Click += new System.EventHandler(this.button_simpleQueryProperty_Click);
            // 
            // textBox_simpleQuery_comment
            // 
            this.textBox_simpleQuery_comment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_simpleQuery_comment.Location = new System.Drawing.Point(8, 88);
            this.textBox_simpleQuery_comment.Multiline = true;
            this.textBox_simpleQuery_comment.Name = "textBox_simpleQuery_comment";
            this.textBox_simpleQuery_comment.ReadOnly = true;
            this.textBox_simpleQuery_comment.Size = new System.Drawing.Size(297, 82);
            this.textBox_simpleQuery_comment.TabIndex = 4;
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(6, 6);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(90, 18);
            this.label1.TabIndex = 2;
            this.label1.Text = "检索词(&W):";
            // 
            // textBox_simpleQueryWord
            // 
            this.textBox_simpleQueryWord.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_simpleQueryWord.ImeMode = System.Windows.Forms.ImeMode.Off;
            this.textBox_simpleQueryWord.Location = new System.Drawing.Point(6, 25);
            this.textBox_simpleQueryWord.Name = "textBox_simpleQueryWord";
            this.textBox_simpleQueryWord.Size = new System.Drawing.Size(303, 21);
            this.textBox_simpleQueryWord.TabIndex = 1;
            // 
            // button_simpleQuerySearch
            // 
            this.button_simpleQuerySearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_simpleQuerySearch.Location = new System.Drawing.Point(249, 52);
            this.button_simpleQuerySearch.Name = "button_simpleQuerySearch";
            this.button_simpleQuerySearch.Size = new System.Drawing.Size(60, 23);
            this.button_simpleQuerySearch.TabIndex = 3;
            this.button_simpleQuerySearch.Text = "检索(&S)";
            this.button_simpleQuerySearch.Click += new System.EventHandler(this.button_simpleQuerySearch_Click);
            // 
            // tabPage_queryAdvance
            // 
            this.tabPage_queryAdvance.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_queryAdvance.Controls.Add(this.textBox_complexQuery_comment);
            this.tabPage_queryAdvance.Controls.Add(this.button_complexQuerySearch);
            this.tabPage_queryAdvance.Controls.Add(this.button_complex_server4);
            this.tabPage_queryAdvance.Controls.Add(this.button_complex_server3);
            this.tabPage_queryAdvance.Controls.Add(this.button_complex_server2);
            this.tabPage_queryAdvance.Controls.Add(this.button_complex_server1);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_logic4);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_from4);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_db4);
            this.tabPage_queryAdvance.Controls.Add(this.textBox_complex_word4);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_logic3);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_from3);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_db3);
            this.tabPage_queryAdvance.Controls.Add(this.textBox_complex_word3);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_logic2);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_from2);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_db2);
            this.tabPage_queryAdvance.Controls.Add(this.textBox_complex_word2);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_from1);
            this.tabPage_queryAdvance.Controls.Add(this.comboBox_complex_db1);
            this.tabPage_queryAdvance.Controls.Add(this.textBox_complex_word1);
            this.tabPage_queryAdvance.Location = new System.Drawing.Point(4, 22);
            this.tabPage_queryAdvance.Name = "tabPage_queryAdvance";
            this.tabPage_queryAdvance.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage_queryAdvance.Size = new System.Drawing.Size(528, 205);
            this.tabPage_queryAdvance.TabIndex = 1;
            this.tabPage_queryAdvance.Text = "高级";
            this.tabPage_queryAdvance.UseVisualStyleBackColor = true;
            // 
            // textBox_complexQuery_comment
            // 
            this.textBox_complexQuery_comment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
            | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_complexQuery_comment.Location = new System.Drawing.Point(13, 139);
            this.textBox_complexQuery_comment.Multiline = true;
            this.textBox_complexQuery_comment.Name = "textBox_complexQuery_comment";
            this.textBox_complexQuery_comment.ReadOnly = true;
            this.textBox_complexQuery_comment.Size = new System.Drawing.Size(504, 53);
            this.textBox_complexQuery_comment.TabIndex = 20;
            // 
            // button_complexQuerySearch
            // 
            this.button_complexQuerySearch.Location = new System.Drawing.Point(13, 109);
            this.button_complexQuerySearch.Name = "button_complexQuerySearch";
            this.button_complexQuerySearch.Size = new System.Drawing.Size(80, 23);
            this.button_complexQuerySearch.TabIndex = 19;
            this.button_complexQuerySearch.Text = "检索(&S)";
            this.button_complexQuerySearch.Click += new System.EventHandler(this.button_complexQuerySearch_Click);
            // 
            // button_complex_server4
            // 
            this.button_complex_server4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_complex_server4.ImageIndex = 0;
            this.button_complex_server4.ImageList = this.imageList_complex_serverButton;
            this.button_complex_server4.Location = new System.Drawing.Point(236, 81);
            this.button_complex_server4.Name = "button_complex_server4";
            this.button_complex_server4.Size = new System.Drawing.Size(24, 23);
            this.button_complex_server4.TabIndex = 16;
            this.button_complex_server4.Click += new System.EventHandler(this.button_complex_server4_Click);
            this.button_complex_server4.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_complex_server4_MouseMove);
            // 
            // imageList_complex_serverButton
            // 
            this.imageList_complex_serverButton.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList_complex_serverButton.ImageStream")));
            this.imageList_complex_serverButton.TransparentColor = System.Drawing.Color.Fuchsia;
            this.imageList_complex_serverButton.Images.SetKeyName(0, "");
            // 
            // button_complex_server3
            // 
            this.button_complex_server3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_complex_server3.ImageIndex = 0;
            this.button_complex_server3.ImageList = this.imageList_complex_serverButton;
            this.button_complex_server3.Location = new System.Drawing.Point(236, 57);
            this.button_complex_server3.Name = "button_complex_server3";
            this.button_complex_server3.Size = new System.Drawing.Size(24, 23);
            this.button_complex_server3.TabIndex = 11;
            this.button_complex_server3.Click += new System.EventHandler(this.button_complex_server3_Click);
            this.button_complex_server3.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_complex_server3_MouseMove);
            // 
            // button_complex_server2
            // 
            this.button_complex_server2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_complex_server2.ImageIndex = 0;
            this.button_complex_server2.ImageList = this.imageList_complex_serverButton;
            this.button_complex_server2.Location = new System.Drawing.Point(236, 33);
            this.button_complex_server2.Name = "button_complex_server2";
            this.button_complex_server2.Size = new System.Drawing.Size(24, 23);
            this.button_complex_server2.TabIndex = 6;
            this.button_complex_server2.Click += new System.EventHandler(this.button_complex_server2_Click);
            this.button_complex_server2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_complex_server2_MouseMove);
            // 
            // button_complex_server1
            // 
            this.button_complex_server1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.button_complex_server1.ImageIndex = 0;
            this.button_complex_server1.ImageList = this.imageList_complex_serverButton;
            this.button_complex_server1.Location = new System.Drawing.Point(236, 9);
            this.button_complex_server1.Name = "button_complex_server1";
            this.button_complex_server1.Size = new System.Drawing.Size(24, 23);
            this.button_complex_server1.TabIndex = 1;
            this.button_complex_server1.Click += new System.EventHandler(this.button_complex_server1_Click);
            this.button_complex_server1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.button_complex_server1_MouseMove);
            // 
            // comboBox_complex_logic4
            // 
            this.comboBox_complex_logic4.Location = new System.Drawing.Point(13, 83);
            this.comboBox_complex_logic4.Name = "comboBox_complex_logic4";
            this.comboBox_complex_logic4.Size = new System.Drawing.Size(80, 20);
            this.comboBox_complex_logic4.TabIndex = 14;
            // 
            // comboBox_complex_from4
            // 
            this.comboBox_complex_from4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_from4.Location = new System.Drawing.Point(396, 83);
            this.comboBox_complex_from4.Name = "comboBox_complex_from4";
            this.comboBox_complex_from4.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_from4.TabIndex = 18;
            // 
            // comboBox_complex_db4
            // 
            this.comboBox_complex_db4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_db4.Location = new System.Drawing.Point(269, 83);
            this.comboBox_complex_db4.Name = "comboBox_complex_db4";
            this.comboBox_complex_db4.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_db4.TabIndex = 17;
            this.comboBox_complex_db4.SelectedIndexChanged += new System.EventHandler(this.comboBox_complex_db4_SelectedIndexChanged);
            // 
            // textBox_complex_word4
            // 
            this.textBox_complex_word4.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_complex_word4.Location = new System.Drawing.Point(99, 83);
            this.textBox_complex_word4.Name = "textBox_complex_word4";
            this.textBox_complex_word4.Size = new System.Drawing.Size(131, 21);
            this.textBox_complex_word4.TabIndex = 15;
            // 
            // comboBox_complex_logic3
            // 
            this.comboBox_complex_logic3.Location = new System.Drawing.Point(13, 59);
            this.comboBox_complex_logic3.Name = "comboBox_complex_logic3";
            this.comboBox_complex_logic3.Size = new System.Drawing.Size(80, 20);
            this.comboBox_complex_logic3.TabIndex = 9;
            // 
            // comboBox_complex_from3
            // 
            this.comboBox_complex_from3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_from3.Location = new System.Drawing.Point(396, 59);
            this.comboBox_complex_from3.Name = "comboBox_complex_from3";
            this.comboBox_complex_from3.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_from3.TabIndex = 13;
            // 
            // comboBox_complex_db3
            // 
            this.comboBox_complex_db3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_db3.Location = new System.Drawing.Point(269, 59);
            this.comboBox_complex_db3.Name = "comboBox_complex_db3";
            this.comboBox_complex_db3.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_db3.TabIndex = 12;
            this.comboBox_complex_db3.SelectedIndexChanged += new System.EventHandler(this.comboBox_complex_db3_SelectedIndexChanged);
            // 
            // textBox_complex_word3
            // 
            this.textBox_complex_word3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_complex_word3.Location = new System.Drawing.Point(99, 59);
            this.textBox_complex_word3.Name = "textBox_complex_word3";
            this.textBox_complex_word3.Size = new System.Drawing.Size(131, 21);
            this.textBox_complex_word3.TabIndex = 10;
            // 
            // comboBox_complex_logic2
            // 
            this.comboBox_complex_logic2.Location = new System.Drawing.Point(13, 35);
            this.comboBox_complex_logic2.Name = "comboBox_complex_logic2";
            this.comboBox_complex_logic2.Size = new System.Drawing.Size(80, 20);
            this.comboBox_complex_logic2.TabIndex = 4;
            // 
            // comboBox_complex_from2
            // 
            this.comboBox_complex_from2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_from2.Location = new System.Drawing.Point(396, 35);
            this.comboBox_complex_from2.Name = "comboBox_complex_from2";
            this.comboBox_complex_from2.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_from2.TabIndex = 8;
            // 
            // comboBox_complex_db2
            // 
            this.comboBox_complex_db2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_db2.Location = new System.Drawing.Point(269, 35);
            this.comboBox_complex_db2.Name = "comboBox_complex_db2";
            this.comboBox_complex_db2.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_db2.TabIndex = 7;
            this.comboBox_complex_db2.SelectedIndexChanged += new System.EventHandler(this.comboBox_complex_db2_SelectedIndexChanged);
            // 
            // textBox_complex_word2
            // 
            this.textBox_complex_word2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_complex_word2.Location = new System.Drawing.Point(99, 35);
            this.textBox_complex_word2.Name = "textBox_complex_word2";
            this.textBox_complex_word2.Size = new System.Drawing.Size(131, 21);
            this.textBox_complex_word2.TabIndex = 5;
            // 
            // comboBox_complex_from1
            // 
            this.comboBox_complex_from1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_from1.Location = new System.Drawing.Point(396, 11);
            this.comboBox_complex_from1.Name = "comboBox_complex_from1";
            this.comboBox_complex_from1.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_from1.TabIndex = 3;
            // 
            // comboBox_complex_db1
            // 
            this.comboBox_complex_db1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.comboBox_complex_db1.Location = new System.Drawing.Point(269, 11);
            this.comboBox_complex_db1.Name = "comboBox_complex_db1";
            this.comboBox_complex_db1.Size = new System.Drawing.Size(121, 20);
            this.comboBox_complex_db1.TabIndex = 2;
            this.comboBox_complex_db1.SelectedIndexChanged += new System.EventHandler(this.comboBox_complex_db1_SelectedIndexChanged);
            // 
            // textBox_complex_word1
            // 
            this.textBox_complex_word1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
            | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox_complex_word1.Location = new System.Drawing.Point(99, 11);
            this.textBox_complex_word1.Name = "textBox_complex_word1";
            this.textBox_complex_word1.Size = new System.Drawing.Size(131, 21);
            this.textBox_complex_word1.TabIndex = 0;
            // 
            // tabPage_queryXml
            // 
            this.tabPage_queryXml.BackColor = System.Drawing.Color.Transparent;
            this.tabPage_queryXml.Controls.Add(this.splitContainer_xml);
            this.tabPage_queryXml.Controls.Add(this.button_xmlQuerySearch);
            this.tabPage_queryXml.Location = new System.Drawing.Point(4, 22);
            this.tabPage_queryXml.Name = "tabPage_queryXml";
            this.tabPage_queryXml.Padding = new System.Windows.Forms.Padding(6);
            this.tabPage_queryXml.Size = new System.Drawing.Size(528, 205);
            this.tabPage_queryXml.TabIndex = 2;
            this.tabPage_queryXml.Text = "XML";
            this.tabPage_queryXml.UseVisualStyleBackColor = true;
            // 
            // button_xmlQuerySearch
            // 
            this.button_xmlQuerySearch.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.button_xmlQuerySearch.Location = new System.Drawing.Point(625, 179);
            this.button_xmlQuerySearch.Name = "button_xmlQuerySearch";
            this.button_xmlQuerySearch.Size = new System.Drawing.Size(60, 20);
            this.button_xmlQuerySearch.TabIndex = 4;
            this.button_xmlQuerySearch.Text = "检索(&S)";
            this.button_xmlQuerySearch.Click += new System.EventHandler(this.button_xmlQuerySearch_Click);
            // 
            // textBox_xmlQueryString
            // 
            this.textBox_xmlQueryString.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBox_xmlQueryString.Location = new System.Drawing.Point(0, 0);
            this.textBox_xmlQueryString.Multiline = true;
            this.textBox_xmlQueryString.Name = "textBox_xmlQueryString";
            this.textBox_xmlQueryString.ScrollBars = System.Windows.Forms.ScrollBars.Both;
            this.textBox_xmlQueryString.Size = new System.Drawing.Size(516, 111);
            this.textBox_xmlQueryString.TabIndex = 0;
            // 
            // splitContainer_main
            // 
            this.splitContainer_main.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer_main.Location = new System.Drawing.Point(0, 0);
            this.splitContainer_main.Name = "splitContainer_main";
            this.splitContainer_main.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer_main.Panel1
            // 
            this.splitContainer_main.Panel1.Controls.Add(this.tabControl_query);
            // 
            // splitContainer_main.Panel2
            // 
            this.splitContainer_main.Panel2.Controls.Add(this.listView_browse);
            this.splitContainer_main.Size = new System.Drawing.Size(536, 368);
            this.splitContainer_main.SplitterDistance = 231;
            this.splitContainer_main.TabIndex = 1;
            // 
            // listView_browse
            // 
            this.listView_browse.Dock = System.Windows.Forms.DockStyle.Fill;
            this.listView_browse.FullRowSelect = true;
            this.listView_browse.HideSelection = false;
            this.listView_browse.Location = new System.Drawing.Point(0, 0);
            this.listView_browse.Name = "listView_browse";
            this.listView_browse.Size = new System.Drawing.Size(536, 133);
            this.listView_browse.TabIndex = 0;
            this.listView_browse.UseCompatibleStateImageBehavior = false;
            this.listView_browse.View = System.Windows.Forms.View.Details;
            this.listView_browse.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.listView_browse_ColumnClick);
            this.listView_browse.SelectedIndexChanged += new System.EventHandler(this.listView_browse_SelectedIndexChanged);
            this.listView_browse.DoubleClick += new System.EventHandler(this.listView_browse_DoubleClick);
            this.listView_browse.MouseUp += new System.Windows.Forms.MouseEventHandler(this.listView_browse_MouseUp);
            // 
            // splitContainer_xml
            // 
            this.splitContainer_xml.Dock = System.Windows.Forms.DockStyle.Fill;
            this.splitContainer_xml.Location = new System.Drawing.Point(6, 6);
            this.splitContainer_xml.Name = "splitContainer_xml";
            this.splitContainer_xml.Orientation = System.Windows.Forms.Orientation.Horizontal;
            // 
            // splitContainer_xml.Panel1
            // 
            this.splitContainer_xml.Panel1.Controls.Add(this.textBox_xmlQueryString);
            // 
            // splitContainer_xml.Panel2
            // 
            this.splitContainer_xml.Panel2.Controls.Add(this.textBox_xmlQuery_comment);
            this.splitContainer_xml.Size = new System.Drawing.Size(516, 193);
            this.splitContainer_xml.SplitterDistance = 111;
            this.splitContainer_xml.SplitterWidth = 8;
            this.splitContainer_xml.TabIndex = 5;
            // 
            // textBox_xmlQuery_comment
            // 
            this.textBox_xmlQuery_comment.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBox_xmlQuery_comment.Location = new System.Drawing.Point(0, 0);
            this.textBox_xmlQuery_comment.Multiline = true;
            this.textBox_xmlQuery_comment.Name = "textBox_xmlQuery_comment";
            this.textBox_xmlQuery_comment.ReadOnly = true;
            this.textBox_xmlQuery_comment.Size = new System.Drawing.Size(516, 74);
            this.textBox_xmlQuery_comment.TabIndex = 21;
            // 
            // SearchForm
            // 
            this.AcceptButton = this.button_simpleQuerySearch;
            this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
            this.ClientSize = new System.Drawing.Size(536, 368);
            this.Controls.Add(this.splitContainer_main);
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "SearchForm";
            this.Text = "检索窗";
            this.Activated += new System.EventHandler(this.SearchForm_Activated);
            this.Closing += new System.ComponentModel.CancelEventHandler(this.SearchForm_Closing);
            this.Closed += new System.EventHandler(this.SearchForm_Closed);
            this.Load += new System.EventHandler(this.SearchForm_Load);
            this.tabControl_query.ResumeLayout(false);
            this.tabPage_querySimple.ResumeLayout(false);
            this.splitContainer_simpleQeury.Panel1.ResumeLayout(false);
            this.splitContainer_simpleQeury.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_simpleQeury)).EndInit();
            this.splitContainer_simpleQeury.ResumeLayout(false);
            this.panel_simpleQueryOther.ResumeLayout(false);
            this.panel_simpleQueryOther.PerformLayout();
            this.tabPage_queryAdvance.ResumeLayout(false);
            this.tabPage_queryAdvance.PerformLayout();
            this.tabPage_queryXml.ResumeLayout(false);
            this.splitContainer_main.Panel1.ResumeLayout(false);
            this.splitContainer_main.Panel2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_main)).EndInit();
            this.splitContainer_main.ResumeLayout(false);
            this.splitContainer_xml.Panel1.ResumeLayout(false);
            this.splitContainer_xml.Panel1.PerformLayout();
            this.splitContainer_xml.Panel2.ResumeLayout(false);
            this.splitContainer_xml.Panel2.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.splitContainer_xml)).EndInit();
            this.splitContainer_xml.ResumeLayout(false);
            this.ResumeLayout(false);

		}
コード例 #2
0
ファイル: RmsChannel.cs プロジェクト: paopaofeng/dp2
        // 获取浏览记录
        public long DoBrowse(
            BrowseList listView,
            string strLang,
            DigitalPlatform.Stop stop,
            string strResultSetName,
            string strOutputStyle,
            out string strError)
        {
            strError = "";

            Record[] records = null;

            long nStart = 0;
            long nPerCount = -1;

            int nCount = 0;

            bool bOutputKeyID = StringUtil.IsInList("keyid", strOutputStyle);

            long lTotalCount = -1;
            for (; ; )
            {
                DoIdle(); // 出让控制权,避免CPU资源耗费过度

                if (stop != null)
                {
                    if (stop.State != 0)
                    {
                        strError = "用户中断";
                        return -1;
                    }
                }

                nPerCount = -1; // 2013/2/12
            REDO:
                try
                {
                    IAsyncResult soapresult = this.ws.BeginGetRecords(
                        strResultSetName,
                        nStart,
                        nPerCount,
                        strLang,
                        strOutputStyle, //"id,cols",
                        null,
                        null);

                    for (; ; )
                    {
                        DoIdle(); // 出让控制权,避免CPU资源耗费过度
                        bool bRet = soapresult.AsyncWaitHandle.WaitOne(100, false);
                        if (bRet == true)
                            break;
                    }
                    if (this.m_ws == null)
                    {
                        strError = "用户中断";
                        this.ErrorCode = ChannelErrorCode.RequestCanceled;
                        return -1;
                    }
                    Result result = this.ws.EndGetRecords(
                        out records,soapresult);

                    if (result.Value == -1)
                    {
                        // 2011/4/21
                        if (result.ErrorCode == ErrorCodeValue.NotLogin
                            && this.Container != null)
                        {
                            // return:
                            //		-1	error
                            //		0	login failed
                            //		1	login succeed
                            int nRet = this.UiLogin("",
                                out strError);
                            if (nRet == -1 || nRet == 0)
                            {
                                return -1;
                            }

                            goto REDO;
                        }

                        ConvertErrorCode(result);
                        strError = result.ErrorString;
                        return -1;
                    }
                    else
                    {
                        Debug.Assert(records != null, "WebService GetRecords() API record参数返回值不应为null");

                        lTotalCount = result.Value;

                        if (nStart == 0 && stop != null)
                            stop.SetProgressRange(0, lTotalCount);
                    }

                    if (records != null)
                    {
                        nCount += records.Length;
                    }

                    listView.BeginUpdate();
                    try
                    {
                        // 做事
                        for (int i = 0; i < records.Length; i++)
                        {
                            DoIdle(); // 出让控制权,避免CPU资源耗费过度

                            if (stop != null)
                            {
                                if (stop.State != 0)
                                {
                                    strError = "用户中断";
                                    return -1;
                                }

                                stop.SetMessage("正在装入 " + Convert.ToString(nStart + i) + " / "
                                    + ((lTotalCount == -1) ? "?" : Convert.ToString(lTotalCount)));
                            }

                            Record record = records[i];

                            string[] cols = null;
                            if (bOutputKeyID == true)
                            {
                                cols = new string[(record.Cols == null ? 0 : record.Cols.Length) + 1];
                                cols[0] = BuildDisplayKeyString(record.Keys);
                                if (cols.Length > 1)
                                    Array.Copy(record.Cols, 0, cols, 1, cols.Length - 1);
                            }
                            else
                                cols = record.Cols;

                            listView.NewLine(record.Path + " @" + this.Url,
                                cols);
                            // record.ID 放入第一列
                            // record.Cols 放入其他列(如果为keyid方式,key在这一群的第一列)
                        }

                        if (stop != null)
                            stop.SetProgressValue(nStart + records.Length);
                    }
                    finally
                    {
                        listView.EndUpdate();
                    }

                    if (nCount >= result.Value)
                        break;

                    if (records != null)
                    {
                        nStart += records.Length;
                    }

                }
                catch (Exception ex)
                {
                    /*
                    strError = ConvertWebError(ex);
                    return -1;
                     * */
                    int nRet = ConvertWebError(ex, out strError);
                    if (nRet == 0)
                        return -1;
                    // 2013/2/11
                    if (this.ErrorCode == ChannelErrorCode.QuotaExceeded)
                    {
                        if (nPerCount > 1 || nPerCount == -1)
                            nPerCount = 1;   // 修改为最小数量重做一次
                        else
                            return -1;
                    }
                    goto REDO;
                }
            }

            this.ClearRedoCount();
            if (stop != null)
                stop.HideProgress();
            return 0;
        }