public SelectDialog(DataTable table, Dictionary <string, string> fields, bool isMultiSelect) { InitializeComponent(); foreach (string columnName in fields.Keys) { if (table.Columns.Contains(columnName)) { DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn c = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); c.HeaderText = fields[columnName]; c.DataPropertyName = columnName; dgvMain.Columns.Add(c); } } dgvMain.MultiSelect = isMultiSelect; bsMain.DataSource = table; }
public SelectDialog(DataTable table, Dictionary<string, string> fields, bool isMultiSelect) { InitializeComponent(); foreach (string columnName in fields.Keys) { if (table.Columns.Contains(columnName)) { DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn c = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); c.HeaderText = fields[columnName]; c.DataPropertyName = columnName; dgvMain.Columns.Add(c); } } dgvMain.MultiSelect = isMultiSelect; bsMain.DataSource = table; }
private void initializeGridView(CVID nativeIdFormat) { // force handle creation IntPtr dummy = gridView.Handle; spectrumList = new Dictionary <int, MassSpectrum>(); this.nativeIdFormat = nativeIdFormat; if ((nativeIdFormat != CVID.CVID_Unknown) && (nativeIdFormat != CVID.MS_no_nativeID_format)) { string nativeIdDefinition = new CVTermInfo(nativeIdFormat).def.Replace("Native format defined by ", ""); string[] nameValuePairs = nativeIdDefinition.Split(" ".ToCharArray()); for (int i = 0; i < nameValuePairs.Length; ++i) { string[] nameValuePair = nameValuePairs[i].Split("=".ToCharArray()); DataGridViewColumn nameColumn = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); nameColumn.Name = nameValuePair[0] + "NativeIdColumn"; nameColumn.HeaderText = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase(nameValuePair[0]); nameColumn.DataPropertyName = nameValuePair[0]; gridView.Columns.Insert(1 + i, nameColumn); string type = null; if (nameValuePair[0] == "file" || nameValuePair[1] == "xsd:string") { type = "System.String"; } else { type = "System.Int32"; } spectrumDataSet.SpectrumTable.Columns.Add(nameValuePair[0], Type.GetType(type)); } } gridView.Columns["SpectrumType"].ToolTipText = new CVTermInfo(CVID.MS_spectrum_type).def; gridView.Columns["MsLevel"].ToolTipText = new CVTermInfo(CVID.MS_ms_level).def; gridView.Columns["ScanTime"].ToolTipText = new CVTermInfo(CVID.MS_scan_start_time).def; gridView.Columns["BasePeakMz"].ToolTipText = new CVTermInfo(CVID.MS_base_peak_m_z).def; gridView.Columns["BasePeakIntensity"].ToolTipText = new CVTermInfo(CVID.MS_base_peak_intensity).def; gridView.Columns["TotalIonCurrent"].ToolTipText = new CVTermInfo(CVID.MS_total_ion_current).def; gridView.Columns["ScanTime"].HeaderText += Properties.Settings.Default.TimeInMinutes ? " (min)" : " (sec)"; gridView.DataBindingComplete += new DataGridViewBindingCompleteEventHandler(gridView_DataBindingComplete); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CellQueryForm)); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); this.btnRefresh = new System.Windows.Forms.Button(); this.btnChart = new System.Windows.Forms.Button(); this.btnExit = new System.Windows.Forms.Button(); this.pnlChart = new System.Windows.Forms.Panel(); this.sbShelf = new System.Windows.Forms.VScrollBar(); this.pnlData = new System.Windows.Forms.Panel(); this.pnlProgress = new System.Windows.Forms.Panel(); this.lblInfo = new System.Windows.Forms.Label(); this.dgvMain = new System.Windows.Forms.DataGridView(); this.ShelfName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.CellCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.CellName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.ProductCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.ProductName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.QUANTITY = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WareCode = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.WareName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.IsActive = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.button1 = new System.Windows.Forms.Button(); this.button2 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button(); this.button4 = new System.Windows.Forms.Button(); this.button5 = new System.Windows.Forms.Button(); this.pnlTool.SuspendLayout(); this.pnlContent.SuspendLayout(); this.pnlMain.SuspendLayout(); this.pnlChart.SuspendLayout(); this.pnlData.SuspendLayout(); this.pnlProgress.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.SuspendLayout(); // // pnlTool // this.pnlTool.Controls.Add(this.button5); this.pnlTool.Controls.Add(this.button4); this.pnlTool.Controls.Add(this.button3); this.pnlTool.Controls.Add(this.button1); this.pnlTool.Controls.Add(this.button2); this.pnlTool.Controls.Add(this.btnExit); this.pnlTool.Controls.Add(this.btnChart); this.pnlTool.Controls.Add(this.btnRefresh); this.pnlTool.Size = new System.Drawing.Size(1020, 46); // // pnlContent // this.pnlContent.Controls.Add(this.pnlData); this.pnlContent.Controls.Add(this.pnlChart); this.pnlContent.Location = new System.Drawing.Point(0, 46); this.pnlContent.Size = new System.Drawing.Size(1020, 229); // // pnlMain // this.pnlMain.Size = new System.Drawing.Size(1020, 275); // // btnRefresh // this.btnRefresh.Dock = System.Windows.Forms.DockStyle.Left; this.btnRefresh.Image = global::THOK.WES.Properties.Resources.onebit_02; this.btnRefresh.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnRefresh.Location = new System.Drawing.Point(0, 0); this.btnRefresh.Name = "btnRefresh"; this.btnRefresh.Size = new System.Drawing.Size(48, 44); this.btnRefresh.TabIndex = 1; this.btnRefresh.Text = "查询"; this.btnRefresh.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnRefresh.UseVisualStyleBackColor = true; this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click); // // btnChart // this.btnChart.Dock = System.Windows.Forms.DockStyle.Left; this.btnChart.Image = ((System.Drawing.Image)(resources.GetObject("btnChart.Image"))); this.btnChart.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnChart.Location = new System.Drawing.Point(48, 0); this.btnChart.Name = "btnChart"; this.btnChart.Size = new System.Drawing.Size(48, 44); this.btnChart.TabIndex = 2; this.btnChart.Text = "图形"; this.btnChart.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnChart.UseVisualStyleBackColor = true; this.btnChart.Click += new System.EventHandler(this.btnChart_Click); // // btnExit // this.btnExit.Dock = System.Windows.Forms.DockStyle.Left; this.btnExit.Image = global::THOK.WES.Properties.Resources.shut_down; this.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExit.Location = new System.Drawing.Point(96, 0); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(48, 44); this.btnExit.TabIndex = 3; this.btnExit.Text = "退出"; this.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExit.UseVisualStyleBackColor = true; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // pnlChart // this.pnlChart.BackColor = System.Drawing.SystemColors.Info; this.pnlChart.Controls.Add(this.sbShelf); this.pnlChart.Location = new System.Drawing.Point(3, 138); this.pnlChart.Name = "pnlChart"; this.pnlChart.Size = new System.Drawing.Size(1022, 89); this.pnlChart.TabIndex = 2; this.pnlChart.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlChart_Paint); this.pnlChart.MouseClick += new System.Windows.Forms.MouseEventHandler(this.pnlChart_MouseClick); this.pnlChart.Resize += new System.EventHandler(this.pnlChart_Resize); // // sbShelf // this.sbShelf.Dock = System.Windows.Forms.DockStyle.Right; this.sbShelf.LargeChange = 30; this.sbShelf.Location = new System.Drawing.Point(1003, 0); this.sbShelf.Maximum = 60; this.sbShelf.Name = "sbShelf"; this.sbShelf.Size = new System.Drawing.Size(19, 89); this.sbShelf.SmallChange = 30; this.sbShelf.TabIndex = 0; this.sbShelf.Value = 1; this.sbShelf.ValueChanged += new System.EventHandler(this.sbShelf_ValueChanged); // // pnlData // this.pnlData.Controls.Add(this.pnlProgress); this.pnlData.Controls.Add(this.dgvMain); this.pnlData.Dock = System.Windows.Forms.DockStyle.Top; this.pnlData.Location = new System.Drawing.Point(0, 0); this.pnlData.Name = "pnlData"; this.pnlData.Size = new System.Drawing.Size(1020, 132); this.pnlData.TabIndex = 3; // // pnlProgress // this.pnlProgress.Controls.Add(this.lblInfo); this.pnlProgress.Location = new System.Drawing.Point(250, 18); this.pnlProgress.Name = "pnlProgress"; this.pnlProgress.Size = new System.Drawing.Size(238, 79); this.pnlProgress.TabIndex = 10; this.pnlProgress.Visible = false; // // lblInfo // this.lblInfo.AutoSize = true; this.lblInfo.Location = new System.Drawing.Point(32, 34); this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(167, 12); this.lblInfo.TabIndex = 1; this.lblInfo.Text = "正在准备货位数据,请稍候..."; // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; this.dgvMain.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.SystemColors.Info; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.ShelfName, this.CellCode, this.CellName, this.ProductCode, this.ProductName, this.QUANTITY, this.WareCode, this.WareName, this.IsActive}); this.dgvMain.DataSource = this.bsMain; this.dgvMain.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvMain.Location = new System.Drawing.Point(0, 0); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dgvMain.RowHeadersWidth = 30; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(1020, 132); this.dgvMain.TabIndex = 10; // // ShelfName // this.ShelfName.DataPropertyName = "ShelfName"; this.ShelfName.HeaderText = "货架名称"; this.ShelfName.Name = "ShelfName"; this.ShelfName.ReadOnly = true; this.ShelfName.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.ShelfName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.ShelfName.Width = 80; // // CellCode // this.CellCode.DataPropertyName = "CellCode"; this.CellCode.HeaderText = "货位编码"; this.CellCode.Name = "CellCode"; this.CellCode.ReadOnly = true; this.CellCode.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.CellCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.CellCode.Width = 88; // // CellName // this.CellName.DataPropertyName = "CellName"; this.CellName.FilteringEnabled = false; this.CellName.HeaderText = "货位名称"; this.CellName.Name = "CellName"; this.CellName.ReadOnly = true; this.CellName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // ProductCode // this.ProductCode.DataPropertyName = "ProductCode"; this.ProductCode.HeaderText = "卷烟代码"; this.ProductCode.Name = "ProductCode"; this.ProductCode.ReadOnly = true; this.ProductCode.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.ProductCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.ProductCode.Width = 80; // // ProductName // this.ProductName.DataPropertyName = "ProductName"; this.ProductName.FilteringEnabled = false; this.ProductName.HeaderText = "卷烟名称"; this.ProductName.Name = "ProductName"; this.ProductName.ReadOnly = true; this.ProductName.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.ProductName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // QUANTITY // this.QUANTITY.DataPropertyName = "QuantityJian"; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleRight; this.QUANTITY.DefaultCellStyle = dataGridViewCellStyle3; this.QUANTITY.HeaderText = "卷烟数量"; this.QUANTITY.Name = "QUANTITY"; this.QUANTITY.ReadOnly = true; this.QUANTITY.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.QUANTITY.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.QUANTITY.Width = 95; // // WareCode // this.WareCode.DataPropertyName = "WareCode"; this.WareCode.HeaderText = "仓库编码"; this.WareCode.Name = "WareCode"; this.WareCode.ReadOnly = true; this.WareCode.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.WareCode.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.WareCode.Width = 80; // // WareName // this.WareName.DataPropertyName = "WareName"; this.WareName.FilteringEnabled = false; this.WareName.HeaderText = "仓库名称"; this.WareName.Name = "WareName"; this.WareName.ReadOnly = true; this.WareName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // IsActive // this.IsActive.DataPropertyName = "IsActive"; this.IsActive.HeaderText = "是否可用"; this.IsActive.Name = "IsActive"; this.IsActive.ReadOnly = true; this.IsActive.Width = 80; // // button1 // this.button1.BackColor = System.Drawing.Color.Gold; this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button1.Location = new System.Drawing.Point(150, 6); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(51, 23); this.button1.TabIndex = 11; this.button1.Text = "整托盘"; this.button1.UseVisualStyleBackColor = false; this.button1.Visible = false; // // button2 // this.button2.BackColor = System.Drawing.Color.RoyalBlue; this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button2.Location = new System.Drawing.Point(207, 6); this.button2.Name = "button2"; this.button2.Size = new System.Drawing.Size(51, 23); this.button2.TabIndex = 1; this.button2.Text = "半托盘"; this.button2.UseVisualStyleBackColor = false; this.button2.Visible = false; // // button3 // this.button3.BackColor = System.Drawing.Color.SpringGreen; this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button3.Location = new System.Drawing.Point(264, 6); this.button3.Name = "button3"; this.button3.Size = new System.Drawing.Size(51, 23); this.button3.TabIndex = 2; this.button3.Text = "空货位"; this.button3.UseVisualStyleBackColor = false; this.button3.Visible = false; // // button4 // this.button4.BackColor = System.Drawing.Color.Red; this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button4.Location = new System.Drawing.Point(321, 6); this.button4.Name = "button4"; this.button4.Size = new System.Drawing.Size(51, 23); this.button4.TabIndex = 12; this.button4.Text = "预警"; this.button4.UseVisualStyleBackColor = false; this.button4.Visible = false; // // button5 // this.button5.BackColor = System.Drawing.Color.White; this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.button5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button5.Location = new System.Drawing.Point(264, 6); this.button5.Name = "button5"; this.button5.Size = new System.Drawing.Size(51, 23); this.button5.TabIndex = 13; this.button5.Text = "空货位"; this.button5.UseVisualStyleBackColor = false; this.button5.Visible = false; // // CellQueryForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1020, 275); this.Name = "CellQueryForm"; this.Text = "CellQueryForm"; this.pnlTool.ResumeLayout(false); this.pnlContent.ResumeLayout(false); this.pnlMain.ResumeLayout(false); this.pnlChart.ResumeLayout(false); this.pnlData.ResumeLayout(false); this.pnlProgress.ResumeLayout(false); this.pnlProgress.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// �����֧������ķ��� - ��Ҫ /// ʹ�ô���༭���Ĵ˷��������ݡ� /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); 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.dgvMain = new System.Windows.Forms.DataGridView(); this.PRODUCTCODE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.PRODUCTNAME = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.CELLCODE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.SCHEDULENO = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.BILLNO = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.PRODUCTBARCODE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.QUANTITY = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.INDATE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.btnExit = new System.Windows.Forms.Button(); this.btnExcel = new System.Windows.Forms.Button(); this.btnCR = new System.Windows.Forms.Button(); this.button1 = new System.Windows.Forms.Button(); this.pnlTool.SuspendLayout(); this.pnlContent.SuspendLayout(); this.pnlMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.SuspendLayout(); // // pnlTool // this.pnlTool.Controls.Add(this.button1); this.pnlTool.Controls.Add(this.btnExit); this.pnlTool.Controls.Add(this.btnExcel); this.pnlTool.Controls.Add(this.btnCR); this.pnlTool.Size = new System.Drawing.Size(879, 47); // // pnlContent // this.pnlContent.Controls.Add(this.dgvMain); this.pnlContent.Location = new System.Drawing.Point(0, 47); this.pnlContent.Size = new System.Drawing.Size(879, 330); // // pnlMain // this.pnlMain.Size = new System.Drawing.Size(879, 377); // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; this.dgvMain.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.SystemColors.Info; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.PRODUCTCODE, this.PRODUCTNAME, this.CELLCODE, this.SCHEDULENO, this.BILLNO, this.PRODUCTBARCODE, this.QUANTITY, this.INDATE}); this.dgvMain.DataSource = this.bsMain; this.dgvMain.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvMain.Location = new System.Drawing.Point(0, 0); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle3.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dgvMain.RowHeadersWidth = 30; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(879, 330); this.dgvMain.TabIndex = 3; this.dgvMain.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgvMain_RowPostPaint); // // PRODUCTCODE // this.PRODUCTCODE.DataPropertyName = "PRODUCTCODE"; this.PRODUCTCODE.FilteringEnabled = false; this.PRODUCTCODE.HeaderText = "��Ʒ����"; this.PRODUCTCODE.Name = "PRODUCTCODE"; this.PRODUCTCODE.ReadOnly = true; this.PRODUCTCODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // PRODUCTNAME // this.PRODUCTNAME.DataPropertyName = "PRODUCTNAME"; this.PRODUCTNAME.FilteringEnabled = false; this.PRODUCTNAME.HeaderText = "��Ʒ����"; this.PRODUCTNAME.Name = "PRODUCTNAME"; this.PRODUCTNAME.ReadOnly = true; this.PRODUCTNAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.PRODUCTNAME.Width = 150; // // CELLCODE // this.CELLCODE.DataPropertyName = "CELLCODE"; this.CELLCODE.FilteringEnabled = false; this.CELLCODE.HeaderText = "��λ����"; this.CELLCODE.Name = "CELLCODE"; this.CELLCODE.ReadOnly = true; this.CELLCODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // SCHEDULENO // this.SCHEDULENO.DataPropertyName = "SCHEDULENO"; this.SCHEDULENO.FilteringEnabled = false; this.SCHEDULENO.HeaderText = "��������"; this.SCHEDULENO.Name = "SCHEDULENO"; this.SCHEDULENO.ReadOnly = true; this.SCHEDULENO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // BILLNO // this.BILLNO.DataPropertyName = "BILLNO"; this.BILLNO.FilteringEnabled = false; this.BILLNO.HeaderText = "���ݺ�"; this.BILLNO.Name = "BILLNO"; this.BILLNO.ReadOnly = true; this.BILLNO.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // PRODUCTBARCODE // this.PRODUCTBARCODE.DataPropertyName = "PRODUCTBARCODE"; this.PRODUCTBARCODE.FilteringEnabled = false; this.PRODUCTBARCODE.HeaderText = "��Ʒ����"; this.PRODUCTBARCODE.Name = "PRODUCTBARCODE"; this.PRODUCTBARCODE.ReadOnly = true; this.PRODUCTBARCODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // QUANTITY // this.QUANTITY.DataPropertyName = "QUANTITY"; this.QUANTITY.FilteringEnabled = false; this.QUANTITY.HeaderText = "����"; this.QUANTITY.Name = "QUANTITY"; this.QUANTITY.ReadOnly = true; this.QUANTITY.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // INDATE // this.INDATE.DataPropertyName = "INDATE"; this.INDATE.FilteringEnabled = false; this.INDATE.HeaderText = "���ʱ��"; this.INDATE.Name = "INDATE"; this.INDATE.ReadOnly = true; this.INDATE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // btnExit // this.btnExit.Image = global::THOK.PFK.Properties.Resources.Exit; this.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExit.Location = new System.Drawing.Point(140, 0); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(70, 45); this.btnExit.TabIndex = 23; this.btnExit.Text = "�˳�"; this.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExit.UseVisualStyleBackColor = true; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // btnExcel // this.btnExcel.Dock = System.Windows.Forms.DockStyle.Right; this.btnExcel.Image = global::THOK.PFK.Properties.Resources.Excel; this.btnExcel.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExcel.Location = new System.Drawing.Point(807, 0); this.btnExcel.Name = "btnExcel"; this.btnExcel.Size = new System.Drawing.Size(70, 45); this.btnExcel.TabIndex = 18; this.btnExcel.Text = "����EXCEL"; this.btnExcel.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExcel.UseVisualStyleBackColor = true; this.btnExcel.Visible = false; this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click); // // btnCR // this.btnCR.Dock = System.Windows.Forms.DockStyle.Left; this.btnCR.Image = global::THOK.PFK.Properties.Resources.query; this.btnCR.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnCR.Location = new System.Drawing.Point(0, 0); this.btnCR.Name = "btnCR"; this.btnCR.Size = new System.Drawing.Size(70, 45); this.btnCR.TabIndex = 16; this.btnCR.Text = "ʱ��Ԥ��"; this.btnCR.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnCR.UseVisualStyleBackColor = true; this.btnCR.Click += new System.EventHandler(this.btnCR_Click); // // button1 // this.button1.Dock = System.Windows.Forms.DockStyle.Left; this.button1.Image = global::THOK.PFK.Properties.Resources.query; this.button1.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.button1.Location = new System.Drawing.Point(70, 0); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(70, 45); this.button1.TabIndex = 24; this.button1.Text = "����Ԥ��"; this.button1.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.button1.UseVisualStyleBackColor = true; this.button1.Click += new System.EventHandler(this.button1_Click); // // WarningQueryForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.ClientSize = new System.Drawing.Size(879, 377); this.Name = "WarningQueryForm"; this.Text = "WarningQueryForm"; this.pnlTool.ResumeLayout(false); this.pnlContent.ResumeLayout(false); this.pnlMain.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.ResumeLayout(false); }
private void InitView() { dgvBill.AutoGenerateColumns = false; DataGridViewTextBoxColumn ColumnBillID = new DataGridViewTextBoxColumn(); ColumnBillID.DataPropertyName = "BillID"; ColumnBillID.Name = "ColumnBillID"; ColumnBillID.HeaderText = "BillID"; ColumnBillID.Visible = false; ColumnBillID.Width = 30; ColumnBillID.FillWeight = 40F; ColumnBillID.ReadOnly = true; ColumnBillID.DisplayIndex = 0; dgvBill.Columns.Add(ColumnBillID); DataGridViewTextBoxColumn ColumnBillNO = new DataGridViewTextBoxColumn(); ColumnBillNO.DataPropertyName = "BillNO"; ColumnBillNO.Name = "ColumnBillNO"; ColumnBillNO.HeaderText = "单据编号"; ColumnBillNO.Visible = false; ColumnBillNO.Width = 30; ColumnBillNO.FillWeight = 40F; ColumnBillNO.ReadOnly = true; ColumnBillNO.DisplayIndex = 1; dgvBill.Columns.Add(ColumnBillNO); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnTableName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnTableName.DataPropertyName = "TableName"; ColumnTableName.Name = "ColumnTableName"; ColumnTableName.HeaderText = "台名"; ColumnTableName.Width = 70; ColumnTableName.DisplayIndex = 2; dgvBill.Columns.Add(ColumnTableName); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnTableNO = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnTableNO.DataPropertyName = "TableNO"; ColumnTableNO.Name = "ColumnTableNO"; ColumnTableNO.HeaderText = "台号"; ColumnTableNO.Width = 70; ColumnTableNO.DisplayIndex = 3; dgvBill.Columns.Add(ColumnTableNO); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnClientName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnClientName.DataPropertyName = "ClientName"; ColumnClientName.Name = "ColumnClientName"; ColumnClientName.HeaderText = "客户"; ColumnClientName.Width = 70; ColumnClientName.DisplayIndex = 4; dgvBill.Columns.Add(ColumnClientName); DataGridViewTextBoxColumn ColumnClientNumber = new DataGridViewTextBoxColumn(); ColumnClientNumber.DataPropertyName = "ClientNumber"; ColumnClientNumber.Name = "ColumnClientNumber"; ColumnClientNumber.HeaderText = "人数"; ColumnClientNumber.Width = 70; ColumnClientNumber.DisplayIndex = 5; dgvBill.Columns.Add(ColumnClientNumber); DataGridViewTextBoxColumn ColumnBillTime = new DataGridViewTextBoxColumn(); ColumnBillTime.DataPropertyName = "BillTime"; ColumnBillTime.Name = "ColumnBillTime"; ColumnBillTime.HeaderText = "开台时间"; ColumnBillTime.Width = 70; ColumnBillTime.DisplayIndex = 6; dgvBill.Columns.Add(ColumnBillTime); DataGridViewTextBoxColumn ColumnAccount = new DataGridViewTextBoxColumn(); ColumnAccount.DataPropertyName = "Account"; ColumnAccount.Name = "ColumnAccount"; ColumnAccount.HeaderText = "消费金额"; ColumnAccount.DefaultCellStyle.Format = "0.00"; ColumnAccount.Width = 70; ColumnAccount.DisplayIndex = 7; dgvBill.Columns.Add(ColumnAccount); DataGridViewTextBoxColumn ColumnDiscount = new DataGridViewTextBoxColumn(); ColumnDiscount.DataPropertyName = "Discount"; ColumnDiscount.Name = "ColumnDiscount"; ColumnDiscount.HeaderText = "折扣金额"; ColumnDiscount.DefaultCellStyle.Format = "0.00"; ColumnDiscount.Width = 70; ColumnDiscount.DisplayIndex = 8; dgvBill.Columns.Add(ColumnDiscount); DataGridViewTextBoxColumn ColumnReceAccount = new DataGridViewTextBoxColumn(); ColumnReceAccount.DataPropertyName = "ReceAccount"; ColumnReceAccount.Name = "ColumnReceAccount"; ColumnReceAccount.HeaderText = "应收金额"; ColumnReceAccount.DefaultCellStyle.Format = "0.00"; ColumnReceAccount.Width = 70; ColumnReceAccount.DisplayIndex = 9; dgvBill.Columns.Add(ColumnReceAccount); DataGridViewTextBoxColumn ColumnRealAccount = new DataGridViewTextBoxColumn(); ColumnRealAccount.DataPropertyName = "RealAccount"; ColumnRealAccount.Name = "ColumnRealAccount"; ColumnRealAccount.HeaderText = "实收金额"; ColumnRealAccount.DefaultCellStyle.Format = "0.00"; ColumnRealAccount.Width = 70; ColumnRealAccount.DisplayIndex = 10; dgvBill.Columns.Add(ColumnRealAccount); DataGridViewTextBoxColumn ColumnDeduct = new DataGridViewTextBoxColumn(); ColumnDeduct.DataPropertyName = "Deduct"; ColumnDeduct.Name = "ColumnDeduct"; ColumnDeduct.HeaderText = "提成金额"; ColumnDeduct.DefaultCellStyle.Format = "0.00"; ColumnDeduct.Width = 70; ColumnDeduct.DisplayIndex = 11; dgvBill.Columns.Add(ColumnDeduct); DataGridViewTextBoxColumn ColumnPrintTime = new DataGridViewTextBoxColumn(); ColumnPrintTime.DataPropertyName = "PrintTime"; ColumnPrintTime.Name = "ColumnPrintTime"; ColumnPrintTime.HeaderText = "结帐时间"; ColumnPrintTime.Width = 70; ColumnPrintTime.DisplayIndex = 12; dgvBill.Columns.Add(ColumnPrintTime); DataGridViewCheckBoxColumn ColumnCheckout = new DataGridViewCheckBoxColumn(); ColumnCheckout.DataPropertyName = "Checkout"; ColumnCheckout.Name = "ColumnCheckout"; ColumnCheckout.HeaderText = "已结帐"; ColumnCheckout.Width = 70; ColumnCheckout.FalseValue = 0; ColumnCheckout.TrueValue = 1; ColumnCheckout.DisplayIndex = 13; dgvBill.Columns.Add(ColumnCheckout); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnEmployee = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnEmployee.DataPropertyName = "Employee"; ColumnEmployee.Name = "ColumnEmployee"; ColumnEmployee.HeaderText = "员工"; ColumnEmployee.Width = 70; ColumnEmployee.DisplayIndex = 14; dgvBill.Columns.Add(ColumnEmployee); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnDeptName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnDeptName.DataPropertyName = "DeptName"; ColumnDeptName.Name = "ColumnDeptName"; ColumnDeptName.HeaderText = "部门"; ColumnDeptName.Width = 70; ColumnDeptName.DisplayIndex = 15; dgvBill.Columns.Add(ColumnDeptName); DataGridViewTextBoxColumn ColumnRemark = new DataGridViewTextBoxColumn(); ColumnRemark.DataPropertyName = "Remark"; ColumnRemark.Name = "ColumnRemark"; ColumnRemark.HeaderText = "备注"; ColumnRemark.Width = 70; ColumnRemark.DisplayIndex = 16; dgvBill.Columns.Add(ColumnRemark); }
/// <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.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(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.dgvMain = new System.Windows.Forms.DataGridView(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.lblMessage = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); this.dgvCheck = new System.Windows.Forms.DataGridView(); this.bsCheck = new System.Windows.Forms.BindingSource(this.components); this.label15 = new System.Windows.Forms.Label(); this.btnOK = new System.Windows.Forms.Button(); this.txtCode = new System.Windows.Forms.TextBox(); this.label16 = new System.Windows.Forms.Label(); this.txtCellCode = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.colBarCode = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.colWeight = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column9 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column7 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.colProductCode = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.colTaskNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.colChkBarCode = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.dataGridViewAutoFilterTextBoxColumn2 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.dataGridViewAutoFilterTextBoxColumn3 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.dataGridViewAutoFilterTextBoxColumn4 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.dataGridViewAutoFilterTextBoxColumn5 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.colChkTaskNo = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.groupBox2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvCheck)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsCheck)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.dgvMain); this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Location = new System.Drawing.Point(7, 38); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(423, 184); this.groupBox1.TabIndex = 12; this.groupBox1.TabStop = false; this.groupBox1.Text = "盘点信息"; // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colBarCode, this.colWeight, this.Column9, this.Column7, this.colProductCode, this.colTaskNo}); this.dgvMain.DataSource = this.bsMain; this.dgvMain.Location = new System.Drawing.Point(6, 21); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; this.dgvMain.RowHeadersWidth = 15; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(412, 154); this.dgvMain.TabIndex = 100; // // lblMessage // this.lblMessage.AutoSize = true; this.lblMessage.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblMessage.ForeColor = System.Drawing.Color.Red; this.lblMessage.Location = new System.Drawing.Point(209, 13); this.lblMessage.Name = "lblMessage"; this.lblMessage.Size = new System.Drawing.Size(219, 20); this.lblMessage.TabIndex = 11; this.lblMessage.Text = "盘点货物已到达,请人工扫码核对"; // // groupBox2 // this.groupBox2.Controls.Add(this.dgvCheck); this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox2.Location = new System.Drawing.Point(437, 38); this.groupBox2.Name = "groupBox2"; this.groupBox2.Size = new System.Drawing.Size(423, 184); this.groupBox2.TabIndex = 13; this.groupBox2.TabStop = false; this.groupBox2.Text = "扫描信息"; // // dgvCheck // this.dgvCheck.AllowUserToAddRows = false; this.dgvCheck.AllowUserToDeleteRows = false; dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvCheck.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3; this.dgvCheck.AutoGenerateColumns = false; this.dgvCheck.BackgroundColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvCheck.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dgvCheck.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvCheck.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.colChkBarCode, this.dataGridViewAutoFilterTextBoxColumn2, this.dataGridViewAutoFilterTextBoxColumn3, this.dataGridViewAutoFilterTextBoxColumn4, this.dataGridViewAutoFilterTextBoxColumn5, this.colChkTaskNo}); this.dgvCheck.DataSource = this.bsCheck; this.dgvCheck.Location = new System.Drawing.Point(6, 21); this.dgvCheck.MultiSelect = false; this.dgvCheck.Name = "dgvCheck"; this.dgvCheck.ReadOnly = true; this.dgvCheck.RowHeadersWidth = 15; this.dgvCheck.RowTemplate.Height = 23; this.dgvCheck.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvCheck.Size = new System.Drawing.Size(413, 154); this.dgvCheck.TabIndex = 101; // // label15 // this.label15.AutoSize = true; this.label15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label15.ForeColor = System.Drawing.Color.Red; this.label15.Location = new System.Drawing.Point(8, 234); this.label15.Name = "label15"; this.label15.Size = new System.Drawing.Size(373, 20); this.label15.TabIndex = 15; this.label15.Text = "条码扫描完成之后,请点击确定按钮,执行烟包托盘入库!"; // // btnOK // this.btnOK.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOK.Location = new System.Drawing.Point(401, 228); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(75, 33); this.btnOK.TabIndex = 14; this.btnOK.Text = "确定"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // txtCode // this.txtCode.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtCode.Location = new System.Drawing.Point(522, 10); this.txtCode.Name = "txtCode"; this.txtCode.Size = new System.Drawing.Size(334, 26); this.txtCode.TabIndex = 17; this.txtCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtCode_KeyDown); // // label16 // this.label16.AutoSize = true; this.label16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label16.Location = new System.Drawing.Point(444, 13); this.label16.Name = "label16"; this.label16.Size = new System.Drawing.Size(79, 20); this.label16.TabIndex = 16; this.label16.Text = "扫描条码:"; // // txtCellCode // this.txtCellCode.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtCellCode.Location = new System.Drawing.Point(94, 10); this.txtCellCode.Name = "txtCellCode"; this.txtCellCode.ReadOnly = true; this.txtCellCode.Size = new System.Drawing.Size(104, 26); this.txtCellCode.TabIndex = 33; // // label3 // this.label3.AutoSize = true; this.label3.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Location = new System.Drawing.Point(14, 13); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(79, 20); this.label3.TabIndex = 32; this.label3.Text = "盘点货位:"; // // colBarCode // this.colBarCode.DataPropertyName = "BarCode"; this.colBarCode.FilteringEnabled = false; this.colBarCode.HeaderText = "熔次卷号"; this.colBarCode.Name = "colBarCode"; this.colBarCode.ReadOnly = true; this.colBarCode.Width = 150; // // colWeight // this.colWeight.DataPropertyName = "Weight"; this.colWeight.FilteringEnabled = false; this.colWeight.HeaderText = "重量"; this.colWeight.Name = "colWeight"; this.colWeight.ReadOnly = true; this.colWeight.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // Column9 // this.Column9.DataPropertyName = "Spec"; this.Column9.FilteringEnabled = false; this.Column9.HeaderText = "产品规格"; this.Column9.Name = "Column9"; this.Column9.ReadOnly = true; this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.Column9.Width = 280; // // Column7 // this.Column7.DataPropertyName = "ProductName"; this.Column7.FilteringEnabled = false; this.Column7.HeaderText = "产品名称"; this.Column7.Name = "Column7"; this.Column7.ReadOnly = true; this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.Column7.Width = 120; // // colProductCode // this.colProductCode.DataPropertyName = "ProductCode"; this.colProductCode.FilteringEnabled = false; this.colProductCode.HeaderText = "产品编码"; this.colProductCode.Name = "colProductCode"; this.colProductCode.ReadOnly = true; // // colTaskNo // this.colTaskNo.DataPropertyName = "TaskNO"; this.colTaskNo.HeaderText = "任务号"; this.colTaskNo.Name = "colTaskNo"; this.colTaskNo.ReadOnly = true; // // colChkBarCode // this.colChkBarCode.DataPropertyName = "BarCode"; this.colChkBarCode.FilteringEnabled = false; this.colChkBarCode.HeaderText = "熔次卷号"; this.colChkBarCode.Name = "colChkBarCode"; this.colChkBarCode.ReadOnly = true; this.colChkBarCode.Width = 150; // // dataGridViewAutoFilterTextBoxColumn2 // this.dataGridViewAutoFilterTextBoxColumn2.DataPropertyName = "Weight"; this.dataGridViewAutoFilterTextBoxColumn2.FilteringEnabled = false; this.dataGridViewAutoFilterTextBoxColumn2.HeaderText = "重量"; this.dataGridViewAutoFilterTextBoxColumn2.Name = "dataGridViewAutoFilterTextBoxColumn2"; this.dataGridViewAutoFilterTextBoxColumn2.ReadOnly = true; this.dataGridViewAutoFilterTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // dataGridViewAutoFilterTextBoxColumn3 // this.dataGridViewAutoFilterTextBoxColumn3.DataPropertyName = "Spec"; this.dataGridViewAutoFilterTextBoxColumn3.FilteringEnabled = false; this.dataGridViewAutoFilterTextBoxColumn3.HeaderText = "产品规格"; this.dataGridViewAutoFilterTextBoxColumn3.Name = "dataGridViewAutoFilterTextBoxColumn3"; this.dataGridViewAutoFilterTextBoxColumn3.ReadOnly = true; this.dataGridViewAutoFilterTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dataGridViewAutoFilterTextBoxColumn3.Width = 280; // // dataGridViewAutoFilterTextBoxColumn4 // this.dataGridViewAutoFilterTextBoxColumn4.DataPropertyName = "ProductName"; this.dataGridViewAutoFilterTextBoxColumn4.FilteringEnabled = false; this.dataGridViewAutoFilterTextBoxColumn4.HeaderText = "产品名称"; this.dataGridViewAutoFilterTextBoxColumn4.Name = "dataGridViewAutoFilterTextBoxColumn4"; this.dataGridViewAutoFilterTextBoxColumn4.ReadOnly = true; this.dataGridViewAutoFilterTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dataGridViewAutoFilterTextBoxColumn4.Width = 120; // // dataGridViewAutoFilterTextBoxColumn5 // this.dataGridViewAutoFilterTextBoxColumn5.DataPropertyName = "ProductCode"; this.dataGridViewAutoFilterTextBoxColumn5.FilteringEnabled = false; this.dataGridViewAutoFilterTextBoxColumn5.HeaderText = "产品编码"; this.dataGridViewAutoFilterTextBoxColumn5.Name = "dataGridViewAutoFilterTextBoxColumn5"; this.dataGridViewAutoFilterTextBoxColumn5.ReadOnly = true; // // colChkTaskNo // this.colChkTaskNo.DataPropertyName = "TaskNO"; this.colChkTaskNo.HeaderText = "任务号"; this.colChkTaskNo.Name = "colChkTaskNo"; this.colChkTaskNo.ReadOnly = true; // // CheckScan // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(877, 277); this.Controls.Add(this.txtCode); this.Controls.Add(this.label16); this.Controls.Add(this.label15); this.Controls.Add(this.btnOK); this.Controls.Add(this.groupBox2); this.Controls.Add(this.groupBox1); this.Controls.Add(this.txtCellCode); this.Controls.Add(this.label3); this.Controls.Add(this.lblMessage); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "CheckScan"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "盘点处理"; this.Activated += new System.EventHandler(this.CheckScan_Activated); this.Load += new System.EventHandler(this.CheckScan_Load); this.groupBox1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.groupBox2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvCheck)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsCheck)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// �����֧������ķ��� - ��Ҫ /// ʹ�ô���༭���Ĵ˷��������ݡ� /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); this.dgvMain = new System.Windows.Forms.DataGridView(); this.CIGARETTECODE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.CIGARETTENAME = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.BILLNAME = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.QUANTITY = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.btnExit = new System.Windows.Forms.Button(); this.btnExcel = new System.Windows.Forms.Button(); this.btnCR = new System.Windows.Forms.Button(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.lblBeginDate = new System.Windows.Forms.Label(); this.dtpBeginDate = new System.Windows.Forms.DateTimePicker(); this.lblEndDate = new System.Windows.Forms.Label(); this.dtpEndDate = new System.Windows.Forms.DateTimePicker(); this.pnlTool.SuspendLayout(); this.pnlContent.SuspendLayout(); this.pnlMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.SuspendLayout(); // // pnlTool // this.pnlTool.Controls.Add(this.dtpEndDate); this.pnlTool.Controls.Add(this.lblEndDate); this.pnlTool.Controls.Add(this.dtpBeginDate); this.pnlTool.Controls.Add(this.lblBeginDate); this.pnlTool.Controls.Add(this.btnExit); this.pnlTool.Controls.Add(this.btnExcel); this.pnlTool.Controls.Add(this.btnCR); this.pnlTool.Size = new System.Drawing.Size(879, 47); // // pnlContent // this.pnlContent.Controls.Add(this.dgvMain); this.pnlContent.Location = new System.Drawing.Point(0, 47); this.pnlContent.Size = new System.Drawing.Size(879, 330); // // pnlMain // this.pnlMain.Size = new System.Drawing.Size(879, 377); // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; this.dgvMain.AllowUserToResizeRows = false; dataGridViewCellStyle10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.SystemColors.Info; dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle11.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.CIGARETTECODE, this.CIGARETTENAME, this.BILLNAME, this.QUANTITY}); this.dgvMain.DataSource = this.bsMain; this.dgvMain.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvMain.Location = new System.Drawing.Point(0, 0); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle12.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; this.dgvMain.RowHeadersWidth = 30; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(879, 330); this.dgvMain.TabIndex = 3; // // CIGARETTECODE // this.CIGARETTECODE.DataPropertyName = "CIGARETTECODE"; this.CIGARETTECODE.FilteringEnabled = false; this.CIGARETTECODE.HeaderText = "���̴���"; this.CIGARETTECODE.Name = "CIGARETTECODE"; this.CIGARETTECODE.ReadOnly = true; this.CIGARETTECODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // CIGARETTENAME // this.CIGARETTENAME.DataPropertyName = "CIGARETTENAME"; this.CIGARETTENAME.FilteringEnabled = false; this.CIGARETTENAME.HeaderText = "��������"; this.CIGARETTENAME.Name = "CIGARETTENAME"; this.CIGARETTENAME.ReadOnly = true; this.CIGARETTENAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.CIGARETTENAME.Width = 150; // // BILLNAME // this.BILLNAME.DataPropertyName = "BILLNAME"; this.BILLNAME.FilteringEnabled = false; this.BILLNAME.HeaderText = "״̬"; this.BILLNAME.Name = "BILLNAME"; this.BILLNAME.ReadOnly = true; this.BILLNAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // QUANTITY // this.QUANTITY.DataPropertyName = "QUANTITY"; this.QUANTITY.FilteringEnabled = false; this.QUANTITY.HeaderText = "��������"; this.QUANTITY.Name = "QUANTITY"; this.QUANTITY.ReadOnly = true; this.QUANTITY.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // btnExit // this.btnExit.Dock = System.Windows.Forms.DockStyle.Left; this.btnExit.Image = global::THOK.PFK.Properties.Resources.Exit; this.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExit.Location = new System.Drawing.Point(140, 0); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(70, 45); this.btnExit.TabIndex = 23; this.btnExit.Text = "�˳�"; this.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExit.UseVisualStyleBackColor = true; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // btnExcel // this.btnExcel.Dock = System.Windows.Forms.DockStyle.Left; this.btnExcel.Image = global::THOK.PFK.Properties.Resources.Excel; this.btnExcel.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExcel.Location = new System.Drawing.Point(70, 0); this.btnExcel.Name = "btnExcel"; this.btnExcel.Size = new System.Drawing.Size(70, 45); this.btnExcel.TabIndex = 18; this.btnExcel.Text = "����EXCEL"; this.btnExcel.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExcel.UseVisualStyleBackColor = true; this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click); // // btnCR // this.btnCR.Dock = System.Windows.Forms.DockStyle.Left; this.btnCR.Image = global::THOK.PFK.Properties.Resources.query; this.btnCR.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnCR.Location = new System.Drawing.Point(0, 0); this.btnCR.Name = "btnCR"; this.btnCR.Size = new System.Drawing.Size(70, 45); this.btnCR.TabIndex = 16; this.btnCR.Text = "���ڲ�ѯ"; this.btnCR.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnCR.UseVisualStyleBackColor = true; this.btnCR.Click += new System.EventHandler(this.btnCR_Click); // // lblBeginDate // this.lblBeginDate.AutoSize = true; this.lblBeginDate.Location = new System.Drawing.Point(364, 17); this.lblBeginDate.Name = "lblBeginDate"; this.lblBeginDate.Size = new System.Drawing.Size(53, 12); this.lblBeginDate.TabIndex = 24; this.lblBeginDate.Text = "��ʼ����"; // // dtpBeginDate // this.dtpBeginDate.CustomFormat = "yyyy-MM-dd HH:mm:ss"; this.dtpBeginDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.dtpBeginDate.Location = new System.Drawing.Point(433, 12); this.dtpBeginDate.Name = "dtpBeginDate"; this.dtpBeginDate.Size = new System.Drawing.Size(109, 21); this.dtpBeginDate.TabIndex = 25; // // lblEndDate // this.lblEndDate.AutoSize = true; this.lblEndDate.Location = new System.Drawing.Point(567, 17); this.lblEndDate.Name = "lblEndDate"; this.lblEndDate.Size = new System.Drawing.Size(53, 12); this.lblEndDate.TabIndex = 26; this.lblEndDate.Text = "��������"; // // dtpEndDate // this.dtpEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.dtpEndDate.Location = new System.Drawing.Point(638, 11); this.dtpEndDate.Name = "dtpEndDate"; this.dtpEndDate.Size = new System.Drawing.Size(109, 21); this.dtpEndDate.TabIndex = 27; // // UserReportForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.ClientSize = new System.Drawing.Size(879, 377); this.Name = "UserReportForm"; this.Text = "ClassForm"; this.pnlTool.ResumeLayout(false); this.pnlTool.PerformLayout(); this.pnlContent.ResumeLayout(false); this.pnlMain.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.ResumeLayout(false); }
private void InitView() { dgvMain.AutoGenerateColumns = false; DataGridViewTextBoxColumn ColumnRecordID = new DataGridViewTextBoxColumn(); ColumnRecordID.DataPropertyName = "RecordID"; ColumnRecordID.Name = "ColumnRecordID"; ColumnRecordID.HeaderText = "RecordID"; ColumnRecordID.Visible = false; ColumnRecordID.Width = 30; ColumnRecordID.FillWeight = 40F; ColumnRecordID.ReadOnly = true; ColumnRecordID.DisplayIndex = 0; dgvMain.Columns.Add(ColumnRecordID); DataGridViewTextBoxColumn ColumnOnCreditID = new DataGridViewTextBoxColumn(); ColumnOnCreditID.DataPropertyName = "OnCreditID"; ColumnOnCreditID.Name = "ColumnOnCreditID"; ColumnOnCreditID.HeaderText = "GoodsID"; ColumnOnCreditID.Visible = false; ColumnOnCreditID.Width = 30; ColumnOnCreditID.FillWeight = 40F; ColumnOnCreditID.ReadOnly = true; ColumnOnCreditID.DisplayIndex = 1; dgvMain.Columns.Add(ColumnOnCreditID); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnClientName = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnClientName.DataPropertyName = "ClientName"; ColumnClientName.Name = "ColumnClientName"; ColumnClientName.HeaderText = "客户"; ColumnClientName.Width = 70; ColumnClientName.DisplayIndex = 2; dgvMain.Columns.Add(ColumnClientName); DataGridViewTextBoxColumn ColumnRecordTime = new DataGridViewTextBoxColumn(); ColumnRecordTime.DataPropertyName = "RecordTime"; ColumnRecordTime.Name = "ColumnRecordTime"; ColumnRecordTime.HeaderText = "时间"; ColumnRecordTime.Width = 120; ColumnRecordTime.DisplayIndex = 3; dgvMain.Columns.Add(ColumnRecordTime); DataGridViewComboBoxColumn ColumnOpType = new DataGridViewComboBoxColumn(); ColumnOpType.DataPropertyName = "OpType"; ColumnOpType.DisplayMember = "Name"; ColumnOpType.ValueMember = "Value"; ColumnOpType.DataSource = CGlobalInstance.Instance.dtOnCreditType; ColumnOpType.Name = "ColumnOpType"; ColumnOpType.HeaderText = "操作"; ColumnOpType.Width = 70; ColumnOpType.DisplayIndex = 4; dgvMain.Columns.Add(ColumnOpType); DataGridViewTextBoxColumn ColumnLastNumber = new DataGridViewTextBoxColumn(); ColumnLastNumber.DataPropertyName = "LastNumber"; ColumnLastNumber.Name = "ColumnLastNumber"; ColumnLastNumber.HeaderText = "上次余额"; ColumnLastNumber.Width = 120; ColumnLastNumber.DisplayIndex = 5; dgvMain.Columns.Add(ColumnLastNumber); DataGridViewTextBoxColumn ColumnNumber = new DataGridViewTextBoxColumn(); ColumnNumber.DataPropertyName = "Number"; ColumnNumber.Name = "ColumnNumber"; ColumnNumber.HeaderText = "发生金额"; ColumnNumber.Width = 70; ColumnNumber.DisplayIndex = 6; dgvMain.Columns.Add(ColumnNumber); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnEmployee = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnEmployee.DataPropertyName = "Employee"; ColumnEmployee.Name = "ColumnEmployee"; ColumnEmployee.HeaderText = "员工"; ColumnEmployee.Width = 70; ColumnEmployee.DisplayIndex = 7; dgvMain.Columns.Add(ColumnEmployee); DataGridViewTextBoxColumn ColumnRemark = new DataGridViewTextBoxColumn(); ColumnRemark.DataPropertyName = "Remark"; ColumnRemark.Name = "ColumnRemark"; ColumnRemark.HeaderText = "备注"; ColumnRemark.Width = 70; ColumnRemark.DisplayIndex = 8; dgvMain.Columns.Add(ColumnRemark); }
/// <summary> /// �����֧������ķ��� - ��Ҫ /// ʹ�ô���༭���Ĵ˷��������ݡ� /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); 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.dgvMain = new System.Windows.Forms.DataGridView(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.btnAdd = new System.Windows.Forms.Button(); this.btnUpdate = new System.Windows.Forms.Button(); this.btnDelete = new System.Windows.Forms.Button(); this.btnExit = new System.Windows.Forms.Button(); this.CIGARETTECODE = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.CLASS = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.CIGARETTENAME = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.pnlTool.SuspendLayout(); this.pnlContent.SuspendLayout(); this.pnlMain.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.SuspendLayout(); // // pnlTool // this.pnlTool.Controls.Add(this.btnExit); this.pnlTool.Controls.Add(this.btnDelete); this.pnlTool.Controls.Add(this.btnUpdate); this.pnlTool.Controls.Add(this.btnAdd); this.pnlTool.Size = new System.Drawing.Size(755, 47); // // pnlContent // this.pnlContent.Controls.Add(this.dgvMain); this.pnlContent.Location = new System.Drawing.Point(0, 47); this.pnlContent.Size = new System.Drawing.Size(755, 322); // // pnlMain // this.pnlMain.Size = new System.Drawing.Size(755, 369); // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; this.dgvMain.AllowUserToResizeRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.SystemColors.Info; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.CIGARETTECODE, this.CLASS, this.CIGARETTENAME}); this.dgvMain.DataSource = this.bsMain; this.dgvMain.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvMain.Location = new System.Drawing.Point(0, 0); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle3.Font = new System.Drawing.Font("����", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; this.dgvMain.RowHeadersWidth = 30; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(755, 322); this.dgvMain.TabIndex = 3; // // btnAdd // this.btnAdd.Dock = System.Windows.Forms.DockStyle.Left; this.btnAdd.Image = global::THOK.PFK.Properties.Resources.Add; this.btnAdd.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnAdd.Location = new System.Drawing.Point(0, 0); this.btnAdd.Name = "btnAdd"; this.btnAdd.Size = new System.Drawing.Size(48, 45); this.btnAdd.TabIndex = 14; this.btnAdd.Text = "����"; this.btnAdd.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnAdd.UseVisualStyleBackColor = true; this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click); // // btnUpdate // this.btnUpdate.Dock = System.Windows.Forms.DockStyle.Left; this.btnUpdate.Image = global::THOK.PFK.Properties.Resources.Modify; this.btnUpdate.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnUpdate.Location = new System.Drawing.Point(48, 0); this.btnUpdate.Name = "btnUpdate"; this.btnUpdate.Size = new System.Drawing.Size(48, 45); this.btnUpdate.TabIndex = 16; this.btnUpdate.Text = "��"; this.btnUpdate.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnUpdate.UseVisualStyleBackColor = true; this.btnUpdate.Click += new System.EventHandler(this.btnUpdate_Click); // // btnDelete // this.btnDelete.Dock = System.Windows.Forms.DockStyle.Left; this.btnDelete.Image = global::THOK.PFK.Properties.Resources.Delete; this.btnDelete.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnDelete.Location = new System.Drawing.Point(96, 0); this.btnDelete.Name = "btnDelete"; this.btnDelete.Size = new System.Drawing.Size(48, 45); this.btnDelete.TabIndex = 17; this.btnDelete.Text = "ɾ��"; this.btnDelete.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnDelete.UseVisualStyleBackColor = true; this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); // // btnExit // this.btnExit.Dock = System.Windows.Forms.DockStyle.Left; this.btnExit.Image = global::THOK.PFK.Properties.Resources.Exit; this.btnExit.ImageAlign = System.Drawing.ContentAlignment.TopCenter; this.btnExit.Location = new System.Drawing.Point(144, 0); this.btnExit.Name = "btnExit"; this.btnExit.Size = new System.Drawing.Size(48, 45); this.btnExit.TabIndex = 18; this.btnExit.Text = "�˳�"; this.btnExit.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnExit.UseVisualStyleBackColor = true; this.btnExit.Click += new System.EventHandler(this.btnExit_Click); // // CIGARETTECODE // this.CIGARETTECODE.DataPropertyName = "CIGARETTECODE"; this.CIGARETTECODE.FilteringEnabled = false; this.CIGARETTECODE.HeaderText = "���̴���"; this.CIGARETTECODE.Name = "CIGARETTECODE"; this.CIGARETTECODE.ReadOnly = true; this.CIGARETTECODE.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.CIGARETTECODE.Width = 150; // // CLASS // this.CLASS.DataPropertyName = "CLASS"; this.CLASS.FilteringEnabled = false; this.CLASS.HeaderText = "����"; this.CLASS.Name = "CLASS"; this.CLASS.ReadOnly = true; this.CLASS.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; // // CIGARETTENAME // this.CIGARETTENAME.DataPropertyName = "CIGARETTENAME"; this.CIGARETTENAME.FilteringEnabled = false; this.CIGARETTENAME.HeaderText = "��������"; this.CIGARETTENAME.Name = "CIGARETTENAME"; this.CIGARETTENAME.ReadOnly = true; this.CIGARETTENAME.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; this.CIGARETTENAME.Width = 300; // // CigaretteForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.ClientSize = new System.Drawing.Size(755, 369); this.Name = "CigaretteForm"; this.Text = "CigaretteForm"; this.pnlTool.ResumeLayout(false); this.pnlContent.ResumeLayout(false); this.pnlMain.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.ResumeLayout(false); }
private void InitView() { dgvMain.AutoGenerateColumns = false; DataGridViewTextBoxColumn ColumnRecordID = new DataGridViewTextBoxColumn(); ColumnRecordID.DataPropertyName = "RecordID"; ColumnRecordID.Name = "ColumnRecordID"; ColumnRecordID.HeaderText = "RecordID"; ColumnRecordID.Visible = false; ColumnRecordID.Width = 30; ColumnRecordID.FillWeight = 40F; ColumnRecordID.ReadOnly = true; ColumnRecordID.DisplayIndex = 0; dgvMain.Columns.Add(ColumnRecordID); DataGridViewTextBoxColumn ColumnCardID = new DataGridViewTextBoxColumn(); ColumnCardID.DataPropertyName = "CardID"; ColumnCardID.Name = "ColumnCardID"; ColumnCardID.HeaderText = "卡号"; ColumnCardID.Visible = false; ColumnCardID.Width = 30; ColumnCardID.FillWeight = 40F; ColumnCardID.ReadOnly = true; ColumnCardID.DisplayIndex = 1; dgvMain.Columns.Add(ColumnCardID); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnAssociator = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnAssociator.DataPropertyName = "Associator"; ColumnAssociator.Name = "ColumnAssociator"; ColumnAssociator.HeaderText = "客户"; ColumnAssociator.Width = 70; ColumnAssociator.DisplayIndex = 2; dgvMain.Columns.Add(ColumnAssociator); DataGridViewTextBoxColumn ColumnRecordTime = new DataGridViewTextBoxColumn(); ColumnRecordTime.DataPropertyName = "RecordTime"; ColumnRecordTime.Name = "ColumnRecordTime"; ColumnRecordTime.HeaderText = "时间"; ColumnRecordTime.Width = 120; ColumnRecordTime.DisplayIndex = 3; dgvMain.Columns.Add(ColumnRecordTime); DataGridViewComboBoxColumn ColumnOpType = new DataGridViewComboBoxColumn(); ColumnOpType.DataPropertyName = "OpType"; ColumnOpType.DisplayMember = "Name"; ColumnOpType.ValueMember = "Value"; ColumnOpType.DataSource = CGlobalInstance.Instance.dtAssociator; ColumnOpType.Name = "ColumnOpType"; ColumnOpType.HeaderText = "操作"; ColumnOpType.Width = 70; ColumnOpType.DisplayIndex = 4; dgvMain.Columns.Add(ColumnOpType); DataGridViewTextBoxColumn ColumnSurplus = new DataGridViewTextBoxColumn(); ColumnSurplus.DataPropertyName = "Surplus"; ColumnSurplus.Name = "ColumnSurplus"; ColumnSurplus.HeaderText = "上次余额"; ColumnSurplus.Width = 120; ColumnSurplus.DisplayIndex = 5; dgvMain.Columns.Add(ColumnSurplus); DataGridViewTextBoxColumn ColumnMoneySum = new DataGridViewTextBoxColumn(); ColumnMoneySum.DataPropertyName = "MoneySum"; ColumnMoneySum.Name = "ColumnMoneySum"; ColumnMoneySum.HeaderText = "发生金额"; ColumnMoneySum.Width = 70; ColumnMoneySum.DisplayIndex = 6; dgvMain.Columns.Add(ColumnMoneySum); DataGridViewTextBoxColumn ColumnIntegralSum = new DataGridViewTextBoxColumn(); ColumnIntegralSum.DataPropertyName = "IntegralSum"; ColumnIntegralSum.Name = "ColumnIntegralSum"; ColumnIntegralSum.HeaderText = "积分"; ColumnIntegralSum.Width = 120; ColumnIntegralSum.DisplayIndex = 7; dgvMain.Columns.Add(ColumnIntegralSum); DataGridViewTextBoxColumn ColumnResidualIntegral = new DataGridViewTextBoxColumn(); ColumnResidualIntegral.DataPropertyName = "ResidualIntegral"; ColumnResidualIntegral.Name = "ColumnResidualIntegral"; ColumnResidualIntegral.HeaderText = "剩余积分"; ColumnResidualIntegral.Width = 120; ColumnResidualIntegral.DisplayIndex = 8; dgvMain.Columns.Add(ColumnResidualIntegral); DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn ColumnEmployee = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); ColumnEmployee.DataPropertyName = "Employee"; ColumnEmployee.Name = "ColumnEmployee"; ColumnEmployee.HeaderText = "员工"; ColumnEmployee.Width = 70; ColumnEmployee.DisplayIndex = 9; dgvMain.Columns.Add(ColumnEmployee); DataGridViewTextBoxColumn ColumnRemark = new DataGridViewTextBoxColumn(); ColumnRemark.DataPropertyName = "Remark"; ColumnRemark.Name = "ColumnRemark"; ColumnRemark.HeaderText = "备注"; ColumnRemark.Width = 70; ColumnRemark.DisplayIndex = 10; dgvMain.Columns.Add(ColumnRemark); }
/// <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.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(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.txtSpec = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.txtAisleNo = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.txtCellCode = new System.Windows.Forms.TextBox(); this.label3 = new System.Windows.Forms.Label(); this.txtCraneNo = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.txtProductName = new System.Windows.Forms.TextBox(); this.label10 = new System.Windows.Forms.Label(); this.txtProductCode = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.txtTaskNo = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); this.btnOK = new System.Windows.Forms.Button(); this.btnCancel = new System.Windows.Forms.Button(); this.dgvMain = new System.Windows.Forms.DataGridView(); this.Column4 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column6 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column7 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column9 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column10 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column2 = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); this.Column1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.bsMain = new System.Windows.Forms.BindingSource(this.components); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).BeginInit(); this.SuspendLayout(); // // groupBox1 // this.groupBox1.Controls.Add(this.txtSpec); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.txtAisleNo); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.txtCellCode); this.groupBox1.Controls.Add(this.label3); this.groupBox1.Controls.Add(this.txtCraneNo); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.txtProductName); this.groupBox1.Controls.Add(this.label10); this.groupBox1.Controls.Add(this.txtProductCode); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.txtTaskNo); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.groupBox1.Location = new System.Drawing.Point(12, 12); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(749, 94); this.groupBox1.TabIndex = 24; this.groupBox1.TabStop = false; this.groupBox1.Text = "出库信息"; // // txtSpec // this.txtSpec.Location = new System.Drawing.Point(614, 56); this.txtSpec.Name = "txtSpec"; this.txtSpec.ReadOnly = true; this.txtSpec.Size = new System.Drawing.Size(123, 23); this.txtSpec.TabIndex = 27; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(532, 59); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(68, 17); this.label5.TabIndex = 26; this.label5.Text = "产品规格:"; // // txtAisleNo // this.txtAisleNo.Location = new System.Drawing.Point(447, 24); this.txtAisleNo.Name = "txtAisleNo"; this.txtAisleNo.ReadOnly = true; this.txtAisleNo.Size = new System.Drawing.Size(65, 23); this.txtAisleNo.TabIndex = 25; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(373, 27); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(68, 17); this.label4.TabIndex = 24; this.label4.Text = "巷道编号:"; // // txtCellCode // this.txtCellCode.Location = new System.Drawing.Point(614, 24); this.txtCellCode.Name = "txtCellCode"; this.txtCellCode.ReadOnly = true; this.txtCellCode.Size = new System.Drawing.Size(123, 23); this.txtCellCode.TabIndex = 23; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(532, 27); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(68, 17); this.label3.TabIndex = 22; this.label3.Text = "货位编号:"; // // txtCraneNo // this.txtCraneNo.Location = new System.Drawing.Point(289, 24); this.txtCraneNo.Name = "txtCraneNo"; this.txtCraneNo.ReadOnly = true; this.txtCraneNo.Size = new System.Drawing.Size(72, 23); this.txtCraneNo.TabIndex = 21; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(220, 27); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(68, 17); this.label2.TabIndex = 20; this.label2.Text = "堆垛机号:"; // // txtProductName // this.txtProductName.Location = new System.Drawing.Point(288, 57); this.txtProductName.Name = "txtProductName"; this.txtProductName.ReadOnly = true; this.txtProductName.Size = new System.Drawing.Size(225, 23); this.txtProductName.TabIndex = 19; // // label10 // this.label10.AutoSize = true; this.label10.Location = new System.Drawing.Point(221, 60); this.label10.Name = "label10"; this.label10.Size = new System.Drawing.Size(68, 17); this.label10.TabIndex = 18; this.label10.Text = "产品名称:"; // // txtProductCode // this.txtProductCode.Location = new System.Drawing.Point(90, 57); this.txtProductCode.Name = "txtProductCode"; this.txtProductCode.ReadOnly = true; this.txtProductCode.Size = new System.Drawing.Size(123, 23); this.txtProductCode.TabIndex = 15; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(13, 60); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(68, 17); this.label1.TabIndex = 14; this.label1.Text = "产品编号:"; // // txtTaskNo // this.txtTaskNo.Location = new System.Drawing.Point(89, 24); this.txtTaskNo.Name = "txtTaskNo"; this.txtTaskNo.ReadOnly = true; this.txtTaskNo.Size = new System.Drawing.Size(123, 23); this.txtTaskNo.TabIndex = 11; // // label6 // this.label6.AutoSize = true; this.label6.Location = new System.Drawing.Point(13, 27); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(68, 17); this.label6.TabIndex = 4; this.label6.Text = "任务编号:"; // // btnOK // this.btnOK.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOK.Location = new System.Drawing.Point(620, 115); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(59, 29); this.btnOK.TabIndex = 35; this.btnOK.Text = "确定"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // btnCancel // this.btnCancel.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnCancel.Location = new System.Drawing.Point(700, 115); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(61, 29); this.btnCancel.TabIndex = 36; this.btnCancel.Text = "取消"; this.btnCancel.UseVisualStyleBackColor = true; this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click); // // dgvMain // this.dgvMain.AllowUserToAddRows = false; this.dgvMain.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.dgvMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; this.dgvMain.AutoGenerateColumns = false; this.dgvMain.BackgroundColor = System.Drawing.Color.WhiteSmoke; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; this.dgvMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvMain.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.Column4, this.Column6, this.Column7, this.Column9, this.Column10, this.Column2, this.Column1}); this.dgvMain.DataSource = this.bsMain; dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText; dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False; this.dgvMain.DefaultCellStyle = dataGridViewCellStyle3; this.dgvMain.Location = new System.Drawing.Point(12, 154); this.dgvMain.MultiSelect = false; this.dgvMain.Name = "dgvMain"; this.dgvMain.ReadOnly = true; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft YaHei", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dgvMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.dgvMain.RowHeadersWidth = 40; this.dgvMain.RowTemplate.Height = 23; this.dgvMain.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; this.dgvMain.Size = new System.Drawing.Size(749, 264); this.dgvMain.TabIndex = 37; // // Column4 // this.Column4.DataPropertyName = "CellCode"; this.Column4.FilteringEnabled = false; this.Column4.HeaderText = "货位编号"; this.Column4.Name = "Column4"; this.Column4.ReadOnly = true; this.Column4.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // Column6 // this.Column6.DataPropertyName = "ProductCode"; this.Column6.FilteringEnabled = false; this.Column6.HeaderText = "产品编号"; this.Column6.Name = "Column6"; this.Column6.ReadOnly = true; this.Column6.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // Column7 // this.Column7.DataPropertyName = "ProductName"; this.Column7.FilteringEnabled = false; this.Column7.HeaderText = "产品名称"; this.Column7.Name = "Column7"; this.Column7.ReadOnly = true; this.Column7.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.Column7.Width = 120; // // Column9 // this.Column9.DataPropertyName = "BillTypeName"; this.Column9.FilteringEnabled = false; this.Column9.HeaderText = "产品类型"; this.Column9.Name = "Column9"; this.Column9.ReadOnly = true; this.Column9.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.Column9.Width = 120; // // Column10 // this.Column10.DataPropertyName = "PalletCode"; this.Column10.FilteringEnabled = false; this.Column10.HeaderText = "托盘编号"; this.Column10.Name = "Column10"; this.Column10.ReadOnly = true; this.Column10.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // Column2 // this.Column2.DataPropertyName = "BillID"; this.Column2.FilteringEnabled = false; this.Column2.HeaderText = "单据号码"; this.Column2.Name = "Column2"; this.Column2.ReadOnly = true; this.Column2.Resizable = System.Windows.Forms.DataGridViewTriState.True; // // Column1 // this.Column1.DataPropertyName = "InDate"; this.Column1.HeaderText = "入库日期"; this.Column1.Name = "Column1"; this.Column1.ReadOnly = true; // // frmReassign // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(774, 429); this.Controls.Add(this.dgvMain); this.Controls.Add(this.btnCancel); this.Controls.Add(this.btnOK); this.Controls.Add(this.groupBox1); this.Name = "frmReassign"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; this.Text = "货位重新指派"; this.Load += new System.EventHandler(this.frmReassign_Load); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.bsMain)).EndInit(); this.ResumeLayout(false); }
private void initializeGridView( CVID nativeIdFormat ) { // force handle creation IntPtr dummy = gridView.Handle; spectrumList = new Dictionary<int, MassSpectrum>(); this.nativeIdFormat = nativeIdFormat; if ((nativeIdFormat != CVID.CVID_Unknown) && (nativeIdFormat != CVID.MS_no_nativeID_format)) { string nativeIdDefinition = new CVTermInfo( nativeIdFormat ).def.Replace("Native format defined by ", ""); string[] nameValuePairs = nativeIdDefinition.Split( " ".ToCharArray() ); for( int i = 0; i < nameValuePairs.Length; ++i ) { string[] nameValuePair = nameValuePairs[i].Split( "=".ToCharArray() ); DataGridViewColumn nameColumn = new DataGridViewAutoFilter.DataGridViewAutoFilterTextBoxColumn(); nameColumn.Name = nameValuePair[0]; nameColumn.HeaderText = System.Globalization.CultureInfo.CurrentCulture.TextInfo.ToTitleCase( nameValuePair[0] ); nameColumn.DataPropertyName = nameValuePair[0]; gridView.Columns.Insert( 1 + i, nameColumn ); string type = null; if( nameValuePair[0] == "file" ) type = "System.String"; else type = "System.Int32"; spectrumDataSet.SpectrumTable.Columns.Add( nameValuePair[0], Type.GetType( type ) ); } } gridView.Columns["SpectrumType"].ToolTipText = new CVTermInfo(CVID.MS_spectrum_type).def; gridView.Columns["MsLevel"].ToolTipText = new CVTermInfo( CVID.MS_ms_level ).def; gridView.Columns["ScanTime"].ToolTipText = new CVTermInfo( CVID.MS_scan_start_time ).def; gridView.Columns["BasePeakMz"].ToolTipText = new CVTermInfo( CVID.MS_base_peak_m_z ).def; gridView.Columns["BasePeakIntensity"].ToolTipText = new CVTermInfo( CVID.MS_base_peak_intensity ).def; gridView.Columns["TotalIonCurrent"].ToolTipText = new CVTermInfo( CVID.MS_total_ion_current ).def; gridView.DataBindingComplete += new DataGridViewBindingCompleteEventHandler( gridView_DataBindingComplete ); }