ab56a9bcf7
SVN-Revision: r240
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
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.UserControls
|
|
{
|
|
public partial class UserRyqk : UserControl
|
|
{
|
|
public UserRyqk()
|
|
{
|
|
InitializeComponent();
|
|
DataTable f_rybq = new DataTable();
|
|
f_rybq.Columns.Add("编号");
|
|
f_rybq.Columns.Add("情况");
|
|
f_rybq.Rows.Add("1", "有");
|
|
f_rybq.Rows.Add("2", "不确定");
|
|
f_rybq.Rows.Add("3", "不明");
|
|
f_rybq.Rows.Add("4", "无");
|
|
this.lookUpEdit1.Properties.DataSource = f_rybq;
|
|
}
|
|
/// <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}");
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 下拉框对象
|
|
/// </summary>
|
|
public DevExpress.XtraEditors.LookUpEdit lookUpEditObject { get { return lookUpEdit1; } }
|
|
}
|
|
}
|