基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace CsHospital
|
||||
{
|
||||
public partial class UserCyqk : UserControl
|
||||
{
|
||||
public UserCyqk()
|
||||
{
|
||||
InitializeComponent();
|
||||
DataTable f_cyqk = new DataTable();
|
||||
f_cyqk.Columns.Add("编号");
|
||||
f_cyqk.Columns.Add("情况");
|
||||
f_cyqk.Rows.Add("1", "自愈");
|
||||
f_cyqk.Rows.Add("2", "好转");
|
||||
f_cyqk.Rows.Add("3", "未愈");
|
||||
f_cyqk.Rows.Add("4", "死亡");
|
||||
f_cyqk.Rows.Add("5", "其它");
|
||||
this.lookUpEdit1.Properties.DataSource = f_cyqk;
|
||||
this.lookUpEdit1.Properties.DisplayMember = "情况";
|
||||
this.lookUpEdit1.Properties.ValueMember = "编号";
|
||||
this.lookUpEdit1.Properties.NullText = "";
|
||||
}
|
||||
/// <summary>
|
||||
/// 回车触发下一个
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
private void textBox_KeyPress(object sender, KeyPressEventArgs e)
|
||||
{
|
||||
if (e.KeyChar == (char)Keys.Enter)
|
||||
{
|
||||
SendKeys.Send("{tab}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user