电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

超市管理系统代码VIP免费

超市管理系统代码_第1页
1/10
超市管理系统代码_第2页
2/10
超市管理系统代码_第3页
3/10
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace 超市管理信息系统 { public partial class f_供应商基本信息 : Form { //公有变量记录选定数据 public string strOldNO = ""; public string strOldName = ""; public string strOldAdd = ""; public f_供应商基本信息() { InitializeComponent(); } private void f_供应商基本信息_Load(object sender, EventArgs e) { // TODO: 这行代码将数据加载到表“连锁超市管理信息数据库 DataSet.供应商”中。您可以根据需要移动或移除它。 this.供应商TableAdapter.Fill(this.连锁超市管理信息数据库 DataSet.供应商); } //新增数据单击事件 private void btnInsert_Click(object sender, EventArgs e) { //获取前台数据 string strName = txtName.Text; string strAdd = txtAdd.Text; string strNO = txtNO.Text; int iNO = 0; int iErrCode = 0; //对前台编号数据的格式审核 try { iNO = Convert.ToInt32(txtNO.Text.Trim()); } catch (Exception eINO) { iErrCode = 1; } //对前台名称数据的格式审核 if (strName.Length > 20) { iErrCode = 2; } if (strAdd.Length > 30) { iErrCode = 3; } if (iErrCode != 0) { MessageBox.Show("你所输入的数据有误,请核查!"); } else { try { //新增写入数据库 this.供应商TableAdapter.Insert(iNO, strName, strAdd); } catch (Exception exInsert) { MessageBox.Show("新增数据发生错误,请与管理员联系!"); } } //刷新数据列数 this.供应商TableAdapter.Fill(this.连锁超市管理信息数据库DataSet.供应商); } //单击数据表单元格触发事件 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { //获取对应行的各个单元格数据 string strNO = this.dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString(); string strName = this.dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString(); string strAdd = this.dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString(); //填充回对应的文本框 ...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

超市管理系统代码

您可能关注的文档

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部