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; using Lskj.Core; namespace CsHospital.UserControls { public partial class UserXx : UserControl { public delegate void BindTextCode(string data, bool flag); public event BindTextCode _bindTextCode; public UserXx() { InitializeComponent(); DBConfig.Instance.CreateConnection(); DataTable f_Xx = SqlHelper.ExecuteDataTable("SELECT dm_xx.xxdm ,dm_xx.xx FROM dm_xx where 1=1 and (dbo.P_getpy('xxdm') like '%%' or xxdm like '%%')"); this.lookUpEdit1.Properties.DataSource = f_Xx; this.lookUpEdit1.Properties.DisplayMember = "xx"; this.lookUpEdit1.Properties.ValueMember = "xxdm"; } /// /// 回车触发下一个 /// /// /// private void textBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Enter) { SendKeys.Send("{tab}"); } } } }