From b8087b7fb12cd2467042326ba4f2aef5b74e13fb Mon Sep 17 00:00:00 2001 From: wugang <1029149336@qq.com> Date: Fri, 3 Nov 2017 08:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=87=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E7=A7=B0=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TrunksIousOutInStore.csproj | 4 +++ .../TrunksIousOutInStoreForm.Designer.cs | 5 ++-- .../TrunksIousOutInStoreForm.cs | 29 ++++++++++++++++++- 3 files changed, 35 insertions(+), 3 deletions(-) diff --git a/TrunksIousOutInStore/TrunksIousOutInStore.csproj b/TrunksIousOutInStore/TrunksIousOutInStore.csproj index 13567fa..76dad5f 100644 --- a/TrunksIousOutInStore/TrunksIousOutInStore.csproj +++ b/TrunksIousOutInStore/TrunksIousOutInStore.csproj @@ -71,4 +71,8 @@ + + + + \ No newline at end of file diff --git a/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs b/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs index c9a7478..0a3cbfd 100644 --- a/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs +++ b/TrunksIousOutInStore/TrunksIousOutInStoreForm.Designer.cs @@ -320,7 +320,7 @@ this.groupBox3.Controls.Add(this.uDataGridView2); this.groupBox3.Location = new System.Drawing.Point(3, 3); this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(718, 316); + this.groupBox3.Size = new System.Drawing.Size(718, 319); this.groupBox3.TabIndex = 0; this.groupBox3.TabStop = false; this.groupBox3.Text = "产品明细"; @@ -354,7 +354,7 @@ this.uDataGridView2.RowsDefaultCellStyle = dataGridViewCellStyle6; this.uDataGridView2.RowTemplate.Height = 23; this.uDataGridView2.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.uDataGridView2.Size = new System.Drawing.Size(712, 296); + this.uDataGridView2.Size = new System.Drawing.Size(712, 299); this.uDataGridView2.TabIndex = 0; // // TrunksIousOutInStoreForm @@ -368,6 +368,7 @@ this.Name = "TrunksIousOutInStoreForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "胴体白条出入库"; + this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.TrunksIousOutInStoreForm_KeyUp); this.splitContainer1.Panel1.ResumeLayout(false); this.splitContainer1.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit(); diff --git a/TrunksIousOutInStore/TrunksIousOutInStoreForm.cs b/TrunksIousOutInStore/TrunksIousOutInStoreForm.cs index ab233f8..cf867e1 100644 --- a/TrunksIousOutInStore/TrunksIousOutInStoreForm.cs +++ b/TrunksIousOutInStore/TrunksIousOutInStoreForm.cs @@ -6,14 +6,41 @@ using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; +using BO.Utils; namespace TrunksIousOutInStore { - public partial class TrunksIousOutInStoreForm : Form + public partial class TrunksIousOutInStoreForm : Form,IAfterLogin { public TrunksIousOutInStoreForm() { InitializeComponent(); } + + private void TrunksIousOutInStoreForm_KeyUp(object sender, KeyEventArgs e) + { + + switch (e.KeyData) + { + case Keys.S: + + break; + case Keys.E: + + break; + default: + + richTextBox1.Text += (char)e.KeyValue; + break; + } + } + + public string RoleName { + get { return "胴体白条出入库"; } + } + public Form Generate() + { + return this; + } } }