📄 当前库存查询.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Yewucheng;
namespace Myproject
{
public partial class 当前库存查询 : Form
{
public 当前库存查询()
{
InitializeComponent();
}
private void button9_Click(object sender, EventArgs e)
{
this.Hide();
}
private void 当前库存查询_Load(object sender, EventArgs e)
{
wang selectm = new wang();
DataSet ds = selectm.SelectMand("select *from NewTianjsp");
this.dbgpaner.DataSource = ds.Tables[0].DefaultView;
}
private void button1_Click(object sender, EventArgs e)
{
wang chazhao = new wang();
if (this.txt1.Text == "")
{
MessageBox.Show("你输入的商品编号是空号", "系统消息");
}
else
{
DataSet ds = chazhao.SelectMand("select *from NewTianjsp where 商品编号='" + this.txt1.Text + "'");
this.dbgpaner.DataSource = ds.Tables[0].DefaultView;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -