代码如下,求帮忙
namespace LDD__Generator
{
public partial class LDD : Form
{
public LDD()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
GetData();
}
private void GetData()
{
try
{
DataTable dtMAT_NR = SQLUtility.Select("Select MAT_NR From ADE_LOS Where LOS_NR = '" + txtLOS_NR.Text.Trim() + "'", null);
DataTable dtPANELID = SQLUtility.Select("Select PANELID From FCBDB.dbo.PANELTAB Where LOSID ='" + txtLOS_NR.Text.Trim() + "'", null);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
return;
}
}
private void txtLOS_NR_KeyPress(object sender, KeyPressEventArgs e)
{
GetData();
}