📄 添加退货商品.cs
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Yewucheng;
namespace Myproject
{
public partial class 添加退货商品 : Form
{
public 添加退货商品()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
退货 tianjie = new 退货(this);
tianjie.Show();
}
private void 添加退货商品_Load(object sender, EventArgs e)
{
wang selectment = new wang();
DataSet ds = selectment.SelectMand("select *from SouXuanshanp ");
this.dataGridView2.DataSource = ds.Tables[0].DefaultView;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
wang selectMand = new wang();
DataSet ds = selectMand.SelectMand("select *from Tuihousp");
this.dbgname2.DataSource = ds.Tables[0].DefaultView;
}
private void button1_Click(object sender, EventArgs e)
{
wang shanchu = new wang();
shanchu.DeleteMand("delete Tuihousp where 商品编号='"+this.txt1.Text+"'");
MessageBox.Show("删除一行记录成功","系统消息");
DataSet ds = shanchu.SelectMand("select *from Tuihousp");
this.dbgname2.DataSource = ds.Tables[0].DefaultView;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -