Files
lserp_cs_6.0/其他程序/CsHospital/UserControls/UserXx.cs
T
cyf ab56a9bcf7 基线 SVN r240
SVN-Revision: r240
2025-02-06 06:46:06 +00:00

41 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;
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";
}
/// <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}");
}
}
}
}