225 lines
12 KiB
C#
225 lines
12 KiB
C#
namespace 成套报价软件
|
|
{
|
|
public partial class GCS推荐铜排窗口 : System.Windows.Forms.Form
|
|
{
|
|
/// <summary>必需的设计器变量。</summary>
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
/// <summary>清理正在使用的资源。</summary>
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && (components != null))
|
|
{
|
|
components.Dispose();
|
|
}
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
this.lblLengthCaption = new System.Windows.Forms.Label();
|
|
this.txtLength = new System.Windows.Forms.TextBox();
|
|
this.lblLengthUnit = new System.Windows.Forms.Label();
|
|
this.lblInfo = new System.Windows.Forms.Label();
|
|
this.gridResult = new Smart.CustomComponents.EnhancedDataGridView();
|
|
this.colSpec = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.colRate = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.colCount = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.colMeters = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
((System.ComponentModel.ISupportInitialize)(this.gridResult)).BeginInit();
|
|
this.SuspendLayout();
|
|
//
|
|
// lblLengthCaption
|
|
//
|
|
this.lblLengthCaption.BackColor = System.Drawing.Color.White;
|
|
this.lblLengthCaption.Font = new System.Drawing.Font("宋体", 10F);
|
|
this.lblLengthCaption.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.lblLengthCaption.Location = new System.Drawing.Point(124, 34);
|
|
this.lblLengthCaption.Name = "lblLengthCaption";
|
|
this.lblLengthCaption.Size = new System.Drawing.Size(120, 24);
|
|
this.lblLengthCaption.TabIndex = 1;
|
|
this.lblLengthCaption.Text = "每回路铜排长度:";
|
|
this.lblLengthCaption.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
//
|
|
// txtLength
|
|
//
|
|
this.txtLength.BackColor = System.Drawing.SystemColors.Window;
|
|
this.txtLength.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
|
this.txtLength.Font = new System.Drawing.Font("宋体", 10F);
|
|
this.txtLength.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
this.txtLength.Location = new System.Drawing.Point(252, 34);
|
|
this.txtLength.MaxLength = 10;
|
|
this.txtLength.Name = "txtLength";
|
|
this.txtLength.Size = new System.Drawing.Size(80, 23);
|
|
this.txtLength.TabIndex = 2;
|
|
this.txtLength.Text = "1.5";
|
|
this.txtLength.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
|
|
//
|
|
// lblLengthUnit
|
|
//
|
|
this.lblLengthUnit.BackColor = System.Drawing.Color.White;
|
|
this.lblLengthUnit.Font = new System.Drawing.Font("宋体", 10F);
|
|
this.lblLengthUnit.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.lblLengthUnit.Location = new System.Drawing.Point(338, 34);
|
|
this.lblLengthUnit.Name = "lblLengthUnit";
|
|
this.lblLengthUnit.Size = new System.Drawing.Size(80, 24);
|
|
this.lblLengthUnit.TabIndex = 3;
|
|
this.lblLengthUnit.Text = "米/回路";
|
|
this.lblLengthUnit.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
//
|
|
// lblInfo
|
|
//
|
|
this.lblInfo.AutoEllipsis = true;
|
|
this.lblInfo.BackColor = System.Drawing.Color.White;
|
|
this.lblInfo.Font = new System.Drawing.Font("宋体", 9F);
|
|
this.lblInfo.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
|
|
this.lblInfo.Location = new System.Drawing.Point(12, 82);
|
|
this.lblInfo.Name = "lblInfo";
|
|
this.lblInfo.Size = new System.Drawing.Size(560, 30);
|
|
this.lblInfo.TabIndex = 4;
|
|
this.lblInfo.Text = "说明: 按每回路原始电流,选 35°C 水平下载流量 ≥ 该电流的最小铜排规格。相同规格的回路数 × 每回路长度 = 需要总米数。";
|
|
//
|
|
// gridResult
|
|
//
|
|
this.gridResult.AllowUserToAddRows = false;
|
|
this.gridResult.AllowUserToDeleteRows = false;
|
|
this.gridResult.AllowUserToResizeRows = false;
|
|
this.gridResult.BackgroundColor = System.Drawing.SystemColors.Window;
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
|
dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F);
|
|
dataGridViewCellStyle1.ForeColor = System.Drawing.Color.Black;
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
|
dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.Black;
|
|
dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.gridResult.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
|
this.gridResult.ColumnHeadersHeight = 32;
|
|
this.gridResult.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
this.colSpec,
|
|
this.colRate,
|
|
this.colCount,
|
|
this.colMeters});
|
|
dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
dataGridViewCellStyle2.BackColor = System.Drawing.Color.White;
|
|
dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F);
|
|
dataGridViewCellStyle2.ForeColor = System.Drawing.Color.Black;
|
|
dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.White;
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.Black;
|
|
dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
this.gridResult.DefaultCellStyle = dataGridViewCellStyle2;
|
|
this.gridResult.EditMode = System.Windows.Forms.DataGridViewEditMode.EditProgrammatically;
|
|
this.gridResult.EnableHeadersVisualStyles = false;
|
|
this.gridResult.Location = new System.Drawing.Point(12, 120);
|
|
this.gridResult.MultiSelect = false;
|
|
this.gridResult.Name = "gridResult";
|
|
this.gridResult.ReadOnly = true;
|
|
this.gridResult.RightToLeft = System.Windows.Forms.RightToLeft.No;
|
|
dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
|
dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F);
|
|
dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Control;
|
|
dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.WindowText;
|
|
dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
this.gridResult.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
|
this.gridResult.RowHeadersVisible = false;
|
|
this.gridResult.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
|
this.gridResult.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
this.gridResult.Size = new System.Drawing.Size(560, 380);
|
|
this.gridResult.TabIndex = 5;
|
|
//
|
|
// colSpec
|
|
//
|
|
this.colSpec.HeaderText = "铜排规格";
|
|
this.colSpec.Name = "colSpec";
|
|
this.colSpec.ReadOnly = true;
|
|
this.colSpec.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.colSpec.Width = 160;
|
|
//
|
|
// colRate
|
|
//
|
|
this.colRate.HeaderText = "载流量(A) 35°C水平";
|
|
this.colRate.Name = "colRate";
|
|
this.colRate.ReadOnly = true;
|
|
this.colRate.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.colRate.Width = 160;
|
|
//
|
|
// colCount
|
|
//
|
|
this.colCount.HeaderText = "回路数";
|
|
this.colCount.Name = "colCount";
|
|
this.colCount.ReadOnly = true;
|
|
this.colCount.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.colCount.Width = 80;
|
|
//
|
|
// colMeters
|
|
//
|
|
this.colMeters.HeaderText = "需要米数";
|
|
this.colMeters.Name = "colMeters";
|
|
this.colMeters.ReadOnly = true;
|
|
this.colMeters.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
this.colMeters.Width = 120;
|
|
//
|
|
// button1
|
|
//
|
|
this.button1.BackColor = System.Drawing.SystemColors.Control;
|
|
this.button1.Font = new System.Drawing.Font("宋体", 9F);
|
|
this.button1.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.button1.Location = new System.Drawing.Point(43, 32);
|
|
this.button1.Name = "button1";
|
|
this.button1.Size = new System.Drawing.Size(75, 23);
|
|
this.button1.TabIndex = 6;
|
|
this.button1.Text = "插入铜排";
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
//
|
|
// GCS推荐铜排窗口
|
|
//
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
|
|
this.AutoValidate = System.Windows.Forms.AutoValidate.EnablePreventFocusChange;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.ClientSize = new System.Drawing.Size(584, 513);
|
|
this.Controls.Add(this.button1);
|
|
this.Controls.Add(this.lblLengthCaption);
|
|
this.Controls.Add(this.txtLength);
|
|
this.Controls.Add(this.lblLengthUnit);
|
|
this.Controls.Add(this.lblInfo);
|
|
this.Controls.Add(this.gridResult);
|
|
this.Font = new System.Drawing.Font("宋体", 9F);
|
|
this.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
|
|
this.MaximizeBox = false;
|
|
this.MaximumSize = new System.Drawing.Size(600, 552);
|
|
this.MinimizeBox = false;
|
|
this.MinimumSize = new System.Drawing.Size(600, 552);
|
|
this.Name = "GCS推荐铜排窗口";
|
|
this.ShowInTaskbar = false;
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "抽屉铜牌";
|
|
((System.ComponentModel.ISupportInitialize)(this.gridResult)).EndInit();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label lblLengthCaption;
|
|
private System.Windows.Forms.TextBox txtLength;
|
|
private System.Windows.Forms.Label lblLengthUnit;
|
|
private System.Windows.Forms.Label lblInfo;
|
|
private Smart.CustomComponents.EnhancedDataGridView gridResult;
|
|
private System.Windows.Forms.Button button1;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colSpec;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colRate;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colCount;
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn colMeters;
|
|
}
|
|
}
|