当前路径:AddGoodsForm.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace CamtasiaStudio { public partial class AddGoodsForm : Form { public AddGoodsForm() { InitializeComponent(); } //定义获取当前登录的用户的姓名 为后面插入数据到入库单号表:(InNumber)表 提供 制单人 姓名 public static string UserName; private void btnCancel_Click(object sender, EventArgs e) { this.Close(); } private void btnAccept_Click(object sender, EventArgs e) { try { //获取界面上输入 string txtNum = this.txtNum.Text.Trim(); string txtName = this.txtName.Text.Trim(); string txtNumber = this.txtNumber.Text.Trim(); string txtPrice = this.txtPrice.Text.Trim(); string txtUnit = this.txtUnit.Text.Trim(); string txtAddress = this.txtAddress.Text.Trim(); DateTime time = this.dtpDateTime.Value; string txtBzq = this.txtTime.Text.Trim(); //根据仓库名称查询出仓库编号 string storagrId = string.Format("select StorageNum from Storage where StorageName='{0}'", cbStorage.Text); DataTable dt1 = DBHelper.GetDataTable(storagrId); int txtStorage = int.Parse(dt1.Rows[0]["StorageNum"].ToString()); //非空验证 ...
完整源码文件,请先购买后再查看
相关源码
- 密码管理器(1PASSWORD)2022-05-06
- 飞行棋小游戏2022-05-06
- 超市积分管理系统2022-04-28
- C#国际象棋源码2022-04-25
- 3D走势图WINFORM2022-04-20
- 更新ORACLE数据库中所有表的某个字段的值2022-04-13
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号