傻大方


首页 > 学习 >

仓库|仓库管理系统代码( 三 )



按关键词阅读: 系统 管理 代码 仓库


sqlcom.Parameters.Add(PrPeople, SqlDbType.VarChar, 20).Value =https://www.renrendoc.com/paper/P_str_PrPeople;
sqlcom.Parameters.Add(PrPhone, SqlDbType.VarChar, 20).Value =https://www.renrendoc.com/paper/P_str_PrPhone;
sqlcom.Parameters.Add(PrFax, SqlDbType.V 。

25、arChar, 20).Value =https://www.renrendoc.com/paper/P_str_PrFax;
sqlcom.Parameters.Add(PrRemark, SqlDbType.VarChar, 1000).ValueP_int_PrRemark;
SqlParameter returnValue = https://www.renrendoc.com/paper/sqlcom.Parameters.Add(returnValue,SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
sqlcon.Open();
trysqlcom.ExecuteNonQuery();
catch (Exceptio 。

26、n ex)MessageBox.Show(ex.Message);
finallysqlcom.Dispose();
sqlcon.Close();
sqlcon.Dispose();
int P_int_returnValue = https://www.renrendoc.com/paper/(int)returnValue.V alue;
return P_int_returnValue;
#endregion#region 添加仓库信息/ / 添加仓库信息/ / 仓库名称 / 仓库负责 / 仓库电话 / 仓库所属单位 / 备注 / 返回一个 int 类型的值 public int InsertStorage(string P_str_StoreName, st 。

27、ring P_str_StorePeople, string P_str_StorePhone, string P_str_StoreUnit, string P_int_StoreRemark)SqlConnection sqlcon = datacon.getcon();
SqlCommand sqlcom = new SqlCommand(proc_insertStorage, sqlcon);
sqlcom.CommandType = CommandType.StoredProcedure;
sqlcom.Parameters.Add(StoreName, SqlDbType.VarCha 。

28、r, 100).Value = https://www.renrendoc.com/paper/P_str_StoreName;
sqlcom.Parameters.Add(StorePeople, SqlDbType.VarChar, 20).Value =https://www.renrendoc.com/paper/P_str_StorePeople;
sqlcom.Parameters.Add(StorePhone, SqlDbType.VarChar, 20).Value = https://www.renrendoc.com/paper/P_str_StorePhone;
sqlcom.Parameters.Add(StoreUnit, SqlDbType.VarChar, 100).Value = https://www.renrendoc.com/paper/P_str_StoreUnit;
sqlcom.Parameters.Add( 。

29、StoreRemark, SqlDbType.VarChar, 1000).Value = https://www.renrendoc.com/paper/P_int_StoreRemark;
SqlParameter returnValue = https://www.renrendoc.com/paper/sqlcom.Parameters.Add(returnValue,SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
sqlcon.Open();
trysqlcom.ExecuteNonQuery();
catch (Exception ex)MessageBox.Show(ex.Message);
finallysqlco 。

30、m.Dispose();
sqlcon.Close();
sqlcon.Dispose();
int P_int_returnValue = https://www.renrendoc.com/paper/(int)returnValue.V alue;
return P_int_returnValue;
#endregion#region 添加新用户/ / 添加新用户/ / 用户名 / 用户密码 / 用户权限 / 返回一个 int 类型的值 public int InsertUser(string P_str_UserName, string P_str_UserPwd, string P_str_UserRight)SqlConnection sqlcon =。

31、datacon.getcon();
SqlCommand sqlcom = new SqlCommand(proc_insertUser,sqlcon);
sqlcom.CommandType = CommandType.StoredProcedure;
sqlcom.Parameters.Add(UserName, SqlDbType.VarChar, 20).Value = https://www.renrendoc.com/paper/P_str_UserName;
sqlcom.Parameters.Add(UserPwd, SqlDbType.VarChar, 20).Value = https://www.renrendoc.com/paper/P_str_UserPwd;
sqlcom.Parameters.Ad 。

32、d(UserRight, SqlDbType.Char, 10).Value = https://www.renrendoc.com/paper/P_str_UserRight;
SqlParameter returnValue = https://www.renrendoc.com/paper/sqlcom.Parameters.Add(returnValue, SqlDbType.Int, 4);
returnValue.Direction = ParameterDirection.ReturnValue;
sqlcon.Open();
trysqlcom.ExecuteNonQuery();
catch (Exception ex)MessageBox.Show(ex.Message);
finallysqlcom.Dis 。

33、pose();
sqlcon.Close();
sqlcon.Dispose();
int P_int_returnValue = https://www.renrendoc.com/paper/(int)returnValue.V alue;
return P_int_returnValue;
#endregion#region 修改用户信息/ / 修改用户信息/ / 用户编号 / 用户密码 / 用户权限 / 返回一个 int 类型的值 public void updateUser(int P_int_UID,string P_str_UserPwd, string P_str_UserRight)SqlConnection sqlcon = datacon.ge 。

34、tcon();
SqlCommand sqlcom = new SqlCommand(proc_updateUser, sqlcon);
sqlcom.CommandType = CommandType.StoredProcedure;
sqlcom.Parameters.Add(UserID, SqlDbType.BigInt).Value = https://www.renrendoc.com/paper/P_int_UID;
sqlcom.Parameters.Add(UserPwd, SqlDbType.VarChar, 20).Value = https://www.renrendoc.com/paper/P_str_UserPwd;
sqlcom.Parameters.Add(UserRight, SqlDbTyp 。

35、e.Char, 10).Value = https://www.renrendoc.com/paper/P_str_UserRight;
sqlcon.Open();
trysqlcom.ExecuteNonQuery();
catch (Exception ex)MessageBox.Show(ex.Message);
finallysqlcom.Dispose();
sqlcon.Close();
sqlcon.Dispose();
#endregion登陆界面( frmLogin.cs )using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Da 。

36、ta;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace warehousepublic partial class frmLogin : Formpublic static string M_str_name;


稿源:(未知)

【傻大方】网址:/a/2021/0816/0023746446.html

标题:仓库|仓库管理系统代码( 三 )


上一篇:XGS|XGS-2型安瓿灭菌器验证方案新版

下一篇:澳大利亚|澳大利亚阿斯伯格综合症评定量表ASAS