From 8f6d2b48f22b695574bd4a6c4ac91b1ac9f780b1 Mon Sep 17 00:00:00 2001 From: ningshuxia <ningshuxia0927@outlook.com> Date: 星期一, 06 五月 2024 17:28:35 +0800 Subject: [PATCH] 调度算法 大致完成 --- Schedule/IStation.Client/Form1.Designer.cs | 165 +++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 125 insertions(+), 40 deletions(-) diff --git a/Schedule/IStation.Client/Form1.Designer.cs b/Schedule/IStation.Client/Form1.Designer.cs index 589fd7a..a8adc26 100644 --- a/Schedule/IStation.Client/Form1.Designer.cs +++ b/Schedule/IStation.Client/Form1.Designer.cs @@ -29,42 +29,52 @@ private void InitializeComponent() { btnAnaCh1Combine = new Button(); - richTextBox1 = new RichTextBox(); + txtInfo = new RichTextBox(); btnAnaChConclusion = new Button(); tableLayoutPanel1 = new TableLayoutPanel(); - btnAnaCh2Combine = new Button(); tableLayoutPanel2 = new TableLayoutPanel(); txtFlow = new TextBox(); txtHead = new TextBox(); btnAna = new Button(); - txtOpenCombineList = new RichTextBox(); + splitContainer1 = new SplitContainer(); + btnAnaCh2Combine = new Button(); + tableLayoutPanel3 = new TableLayoutPanel(); + txtMustOpen = new RichTextBox(); + txtMustNotOpen = new RichTextBox(); + txtCurrentOpen = new RichTextBox(); + cmbStation = new ComboBox(); tableLayoutPanel1.SuspendLayout(); tableLayoutPanel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); + splitContainer1.Panel1.SuspendLayout(); + splitContainer1.Panel2.SuspendLayout(); + splitContainer1.SuspendLayout(); + tableLayoutPanel3.SuspendLayout(); SuspendLayout(); // // btnAnaCh1Combine // btnAnaCh1Combine.Dock = DockStyle.Fill; - btnAnaCh1Combine.Location = new Point(3, 3); + btnAnaCh1Combine.Location = new Point(0, 0); btnAnaCh1Combine.Name = "btnAnaCh1Combine"; - btnAnaCh1Combine.Size = new Size(512, 104); + btnAnaCh1Combine.Size = new Size(257, 104); btnAnaCh1Combine.TabIndex = 0; btnAnaCh1Combine.Text = "鍒嗘瀽1杈撴按娉电粍鍚�"; btnAnaCh1Combine.UseVisualStyleBackColor = true; btnAnaCh1Combine.Click += btnAnaCh1Combine_Click; // - // richTextBox1 + // txtInfo // - richTextBox1.Dock = DockStyle.Bottom; - richTextBox1.Location = new Point(0, 221); - richTextBox1.Name = "richTextBox1"; - richTextBox1.Size = new Size(1036, 416); - richTextBox1.TabIndex = 1; - richTextBox1.Text = ""; + txtInfo.Dock = DockStyle.Bottom; + txtInfo.Location = new Point(0, 221); + txtInfo.Name = "txtInfo"; + txtInfo.Size = new Size(1036, 416); + txtInfo.TabIndex = 1; + txtInfo.Text = ""; // // btnAnaChConclusion // - btnAnaChConclusion.Location = new Point(3, 113); + btnAnaChConclusion.Location = new Point(521, 3); btnAnaChConclusion.Name = "btnAnaChConclusion"; btnAnaChConclusion.Size = new Size(512, 104); btnAnaChConclusion.TabIndex = 2; @@ -77,10 +87,10 @@ tableLayoutPanel1.ColumnCount = 2; tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - tableLayoutPanel1.Controls.Add(btnAnaCh1Combine, 0, 0); - tableLayoutPanel1.Controls.Add(btnAnaChConclusion, 0, 1); - tableLayoutPanel1.Controls.Add(btnAnaCh2Combine, 1, 0); tableLayoutPanel1.Controls.Add(tableLayoutPanel2, 1, 1); + tableLayoutPanel1.Controls.Add(splitContainer1, 0, 0); + tableLayoutPanel1.Controls.Add(btnAnaChConclusion, 1, 0); + tableLayoutPanel1.Controls.Add(tableLayoutPanel3, 0, 1); tableLayoutPanel1.Dock = DockStyle.Fill; tableLayoutPanel1.Location = new Point(0, 0); tableLayoutPanel1.Name = "tableLayoutPanel1"; @@ -90,16 +100,6 @@ tableLayoutPanel1.Size = new Size(1036, 221); tableLayoutPanel1.TabIndex = 3; // - // btnAnaCh2Combine - // - btnAnaCh2Combine.Location = new Point(521, 3); - btnAnaCh2Combine.Name = "btnAnaCh2Combine"; - btnAnaCh2Combine.Size = new Size(512, 104); - btnAnaCh2Combine.TabIndex = 3; - btnAnaCh2Combine.Text = "鍒嗘瀽2杈撴按娉电粍鍚�"; - btnAnaCh2Combine.UseVisualStyleBackColor = true; - btnAnaCh2Combine.Click += btnAnaCh2Combine_Click; - // // tableLayoutPanel2 // tableLayoutPanel2.ColumnCount = 2; @@ -107,14 +107,14 @@ tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); tableLayoutPanel2.Controls.Add(txtFlow, 0, 0); tableLayoutPanel2.Controls.Add(txtHead, 1, 0); - tableLayoutPanel2.Controls.Add(btnAna, 1, 1); - tableLayoutPanel2.Controls.Add(txtOpenCombineList, 0, 1); + tableLayoutPanel2.Controls.Add(btnAna, 0, 1); tableLayoutPanel2.Dock = DockStyle.Fill; tableLayoutPanel2.Location = new Point(521, 113); tableLayoutPanel2.Name = "tableLayoutPanel2"; tableLayoutPanel2.RowCount = 2; tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 34.2857132F)); tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 65.71429F)); + tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); tableLayoutPanel2.Size = new Size(512, 105); tableLayoutPanel2.TabIndex = 4; // @@ -138,23 +138,98 @@ // // btnAna // + tableLayoutPanel2.SetColumnSpan(btnAna, 2); btnAna.Dock = DockStyle.Fill; - btnAna.Location = new Point(259, 39); + btnAna.Location = new Point(3, 39); btnAna.Name = "btnAna"; - btnAna.Size = new Size(250, 63); + btnAna.Size = new Size(506, 63); btnAna.TabIndex = 3; btnAna.Text = "鍒嗘瀽"; btnAna.UseVisualStyleBackColor = true; btnAna.Click += btnAna_Click; // - // txtOpenCombineList + // splitContainer1 // - txtOpenCombineList.Dock = DockStyle.Fill; - txtOpenCombineList.Location = new Point(3, 39); - txtOpenCombineList.Name = "txtOpenCombineList"; - txtOpenCombineList.Size = new Size(250, 63); - txtOpenCombineList.TabIndex = 4; - txtOpenCombineList.Text = "11,12,13,17"; + splitContainer1.Dock = DockStyle.Fill; + splitContainer1.Location = new Point(3, 3); + splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + splitContainer1.Panel1.Controls.Add(btnAnaCh1Combine); + // + // splitContainer1.Panel2 + // + splitContainer1.Panel2.Controls.Add(btnAnaCh2Combine); + splitContainer1.Size = new Size(512, 104); + splitContainer1.SplitterDistance = 257; + splitContainer1.TabIndex = 5; + // + // btnAnaCh2Combine + // + btnAnaCh2Combine.Dock = DockStyle.Fill; + btnAnaCh2Combine.Location = new Point(0, 0); + btnAnaCh2Combine.Name = "btnAnaCh2Combine"; + btnAnaCh2Combine.Size = new Size(251, 104); + btnAnaCh2Combine.TabIndex = 3; + btnAnaCh2Combine.Text = "鍒嗘瀽2杈撴按娉电粍鍚�"; + btnAnaCh2Combine.UseVisualStyleBackColor = true; + btnAnaCh2Combine.Click += btnAnaCh2Combine_Click; + // + // tableLayoutPanel3 + // + tableLayoutPanel3.ColumnCount = 2; + tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.Controls.Add(txtMustOpen, 0, 0); + tableLayoutPanel3.Controls.Add(txtMustNotOpen, 1, 0); + tableLayoutPanel3.Controls.Add(txtCurrentOpen, 0, 1); + tableLayoutPanel3.Controls.Add(cmbStation, 1, 1); + tableLayoutPanel3.Dock = DockStyle.Fill; + tableLayoutPanel3.Location = new Point(3, 113); + tableLayoutPanel3.Name = "tableLayoutPanel3"; + tableLayoutPanel3.RowCount = 2; + tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 50F)); + tableLayoutPanel3.Size = new Size(512, 105); + tableLayoutPanel3.TabIndex = 6; + // + // txtMustOpen + // + txtMustOpen.Dock = DockStyle.Fill; + txtMustOpen.Location = new Point(3, 3); + txtMustOpen.Name = "txtMustOpen"; + txtMustOpen.Size = new Size(250, 46); + txtMustOpen.TabIndex = 5; + txtMustOpen.Text = ""; + // + // txtMustNotOpen + // + txtMustNotOpen.Dock = DockStyle.Fill; + txtMustNotOpen.Location = new Point(259, 3); + txtMustNotOpen.Name = "txtMustNotOpen"; + txtMustNotOpen.Size = new Size(250, 46); + txtMustNotOpen.TabIndex = 6; + txtMustNotOpen.Text = ""; + // + // txtCurrentOpen + // + txtCurrentOpen.Location = new Point(3, 55); + txtCurrentOpen.Name = "txtCurrentOpen"; + txtCurrentOpen.Size = new Size(250, 47); + txtCurrentOpen.TabIndex = 4; + txtCurrentOpen.Text = "11,12,13,17"; + // + // cmbStation + // + cmbStation.Dock = DockStyle.Fill; + cmbStation.FormattingEnabled = true; + cmbStation.Items.AddRange(new object[] { "涓�杈撴按", "浜岃緭姘�" }); + cmbStation.Location = new Point(259, 55); + cmbStation.Name = "cmbStation"; + cmbStation.Size = new Size(250, 32); + cmbStation.TabIndex = 7; + cmbStation.SelectedIndexChanged += cmbStation_SelectedIndexChanged; // // Form1 // @@ -162,20 +237,25 @@ AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(1036, 637); Controls.Add(tableLayoutPanel1); - Controls.Add(richTextBox1); + Controls.Add(txtInfo); Name = "Form1"; StartPosition = FormStartPosition.CenterScreen; Text = "Form1"; tableLayoutPanel1.ResumeLayout(false); tableLayoutPanel2.ResumeLayout(false); tableLayoutPanel2.PerformLayout(); + splitContainer1.Panel1.ResumeLayout(false); + splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit(); + splitContainer1.ResumeLayout(false); + tableLayoutPanel3.ResumeLayout(false); ResumeLayout(false); } #endregion private Button btnAnaCh1Combine; - private RichTextBox richTextBox1; + private RichTextBox txtInfo; private Button btnAnaChConclusion; private TableLayoutPanel tableLayoutPanel1; private Button btnAnaCh2Combine; @@ -183,6 +263,11 @@ private TextBox txtFlow; private TextBox txtHead; private Button btnAna; - private RichTextBox txtOpenCombineList; + private RichTextBox txtCurrentOpen; + private SplitContainer splitContainer1; + private TableLayoutPanel tableLayoutPanel3; + private RichTextBox txtMustOpen; + private RichTextBox txtMustNotOpen; + private ComboBox cmbStation; } } \ No newline at end of file -- Gitblit v1.9.3