📄 顾客退货.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 button4_Click(object sender, EventArgs e)
{
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
销售客户查找 chaozhao = new 销售客户查找();
chaozhao.Show();
}
private void button1_Click(object sender, EventArgs e)
{
添加退货商品 tuihoushangp = new 添加退货商品();
tuihoushangp.Show();
this.Hide();
}
private void button3_Click(object sender, EventArgs e)
{
整单退货 zhengdantui = new 整单退货();
zhengdantui.Show();
this.Hide();
}
private void button5_Click(object sender, EventArgs e)
{
if (this.txt1.Text == "")
{
MessageBox.Show("你的单号没有输入请输入单号和退货的金额和经办人还有其他");
}
else
{
wang tianjiatuihou = new wang();
tianjiatuihou.insertmand("insert into Zhengdantuihou values('" + this.txt1.Text + "','" + this.txt2.Text + "','" + this.comboBox1.Text + "','" + this.dateTimePicker1.Text + "'," +this.txt3.Text + "," +this.txt4.Text+ ",'" + this.comboBox2.Text + "')");
MessageBox.Show("添加一行记录成功!");
}
}
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;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -