傻大方摘要:【杂货铺|杂货铺课设C#语言( 三 )|C|语言】mystr = Provider = Microsoft.Jet.OLEDB.4.0; + Data Source = + Server.Map 。 16、Path(App_Databuystore.mdb); myconn.ConnectionString = mystr; myconn.Open(); mycmd.Parameters.Add(name, OleDbType.VarCh...
按关键词阅读: 语言 C 杂货铺
mystr = Provider = Microsoft.Jet.OLEDB.4.0;
+ Data Source = + Server.Map 。
16、Path(App_Databuystore.mdb);
myconn.ConnectionString = mystr;
myconn.Open();
mycmd.Parameters.Add(name, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox5.Text.ToString();
mysql = DELETE FROM 货源信息 WHERE 编号 =name ;
mycmd.CommandText = mysql;
mycmd.Connection = myconn;
mycmd.ExecuteNonQuery();
Response.Write();
TextBox5.T 。
17、ext = ;
protected void Button4_Click(object sender, EventArgs e)string mystr, mysql;
OleDbCommand mycmd = new OleDbCommand();
OleDbConnection myconn = new OleDbConnection();
mystr = Provider = Microsoft.Jet.OLEDB.4.0;
+ Data Source = + Server.MapPath(App_Databuystore.mdb);
myconn.ConnectionString = mystr 。
18、;
myconn.Open();
mycmd.Parameters.Add(gongying, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox7.Text.ToString();
mycmd.Parameters.Add(suozaidi, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox8.Text.ToString();
mycmd.Parameters.Add(lianxi, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox9.Text.ToString();
mycmd.Parameters.Add(id, O 。
19、leDbType.Variant, 10).Value = https://www.renrendoc.com/paper/TextBox6.Text.ToString();
mysql = UPDATE 货源信息 SET 供应商名称=gongying,所在地=suozaidi,联系电话=lianxi WHERE 编号=id;
mycmd.CommandText = mysql;
mycmd.Connection = myconn;
mycmd.ExecuteNonQuery();
Response.Write();
myconn.Close();
TextBox6.Text = ;
TextBox7.Text = ;
TextBox8.Text = ;
TextBox 。
20、9.Text = ;
protected void TextBox10_TextChanged(object sender, EventArgs e)protected void Button6_Click(object sender, EventArgs e)string condstr = ;
;
if (TextBox10.Text != )condstr = 编号 = + TextBox1.Text;
if (TextBox11.Text != )if (condstr != ) condstr = condstr + AND 供应商名称 LIKE + TextBox2.Text + %;
。
21、else condstr = 供应商名称 LIKE + TextBox2.Text + %;
if (TextBox12.Text != )if (condstr != ) condstr = condstr + AND 所在地 LIKE + TextBox4.Text+%;
else condstr = 所在地 LIKE + TextBox4.Text+%;
if (TextBox13.Text!=)if (condstr != ) condstr = condstr + AND 联系电话= + TextBox13.Text.ToString();
else condstr = 联系电话= + 。
22、 TextBox13.Text.ToString();
Server.Transfer(货源信息查询显示页面.aspx? + condstr= + condstr);
该部分的信息主要功能进行对货源信息的更新 , 插入 , 删除 , 查看 , 熟练运用sql语言 , 对数据库进行各种操作 。
3.3 商品信息运行界面图3.3商品查询运行界面图3.4商品查询结果运行界面本模块的主要功能是商品信息的查询和更新 , 库存信息的查询和更新 。
查询商品信息:主要功能查询商品的明细信息 , 和它的库存信息 。
代码public partial class 商品信息 : System.Web.UI.Pageprotected void Page_ 。
23、Load(object sender, EventArgs e)protected void Button1_Click(object sender, EventArgs e)if (TextBox1.Text = )Response.Write();
if (TextBox2.Text = )Response.Write();
if (TextBox3.Text = )Response.Write();
if (TextBox4.Text = )Response.Write();
if (TextBox5.Text = )Response.Write();
if (TextBox6.Text = )R 。
24、esponse.Write();
elsestring mystr, mysql, mysql1;
OleDbCommand mycmd = new OleDbCommand();
OleDbConnection myconn = new OleDbConnection();
mystr = Provider = Microsoft.Jet.OLEDB.4.0;
+ Data Source = + Server.MapPath(App_Databuystore.mdb);
myconn.ConnectionString = mystr;
mycmd.Connection = myconn;
myconn.O 。
25、pen();
mysql = INSERT INTO 商品信息 VALUES(a,b,c,d,e,f);
mysql1 = SELECT 商品编号 FROM 商品信息 WHERE 商品编号=a;
mycmd.Parameters.Add(a, OleDbType.Variant, 10).Value = https://www.renrendoc.com/paper/TextBox1.Text.ToString();
mycmd.Parameters.Add(b, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox2.Text.ToString();
mycmd.Parameters.Add(c, OleDbType.VarChar, 10 。
26、).Value = https://www.renrendoc.com/paper/TextBox3.Text.ToString();
mycmd.Parameters.Add(d, OleDbType.VarChar, 10).Value = https://www.renrendoc.com/paper/TextBox4.Text.ToString();
mycmd.Parameters.Add(e, OleDbType.Variant, 10).Value = https://www.renrendoc.com/paper/TextBox5.Text.ToString();
mycmd.Parameters.Add(f, OleDbType.Variant, 10).Value = https://www.renrendoc.com/paper/TextBox6.Text.ToString();
mycmd.CommandText = mysql 。
27、1;
OleDbDataReader myreader = mycmd.ExecuteReader();
if (myreader.HasRows)Response.Write();
elsemyreader.Close();
mycmd.CommandText = mysql;
mycmd.ExecuteNonQuery();
Response.Write();
myconn.Close();
TextBox1.Text = ;
TextBox2.Text = ;
TextBox3.Text = ;
稿源:(未知)
【傻大方】网址:/a/2021/0801/0023374946.html
标题:杂货铺|杂货铺课设C#语言( 三 )