WPF实现简单新增
wpf分为服务端,数据端,客户端,3方结合才能运行一个完整的项目;讲一个单表的新增。
数据端:获取相应的表数据
IF (@type=‘GHS_Insert’)
Begin
INSERT GP_supplier(supplierName,contact,contactsPhone,Suppliertype,
affiliatingarea,amountpayable,clearingform,siteD,remark,clearingformID,SuppliertypeID) VALUES(@supplierName,@contact,@contactsPhone,@Suppliertype,@affiliatingarea,@amountpayable,@clearingform,@siteD,@remark,@clearingformID,@SuppliertypeID)
End
客户端:新增保存
private void btnSave_Click(object sender, RoutedEventArgs e)
{
try
{
int SuppliertypeID = Convert.ToInt32(txt_Account.SelectedValue);
int clearingformID = Convert.ToInt32(txt_Bccount.SelectedValue);
String supplierName =txt_supplierName.Text.ToString().Trim();
string contact = txt_contact.Text.ToString().Trim().Trim();
string contactsPhone = txt_
WPF实现简单新增
最新推荐文章于 2022-08-23 10:38:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)