文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > 软件工程实训 期刊管理系统 程序清单
侵权投诉

软件工程实训 期刊管理系统 程序清单

软件工程实训 期刊管理系统

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Data;

public partial class daoqimagtostore : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

}

protected void Button2_Click(object sender, EventArgs e)

{

Response.Redirect("InsertQ.aspx");

}

protected void Button1_Click(object sender, EventArgs e)

{

if (this.TextBox1.Text != "" && this.TextBox2.Text != "" && this.TextBox3.Text != "" && this.TextBox4.Text != "" && this.TextBox5.Text != "")

{

DataOper dp = new DataOper();

string st = "select * from Ptable where cn='" + this.TextBox1.Text + "'";

DataSet ds = new DataSet();

ds = dp.getData(st);

if (ds.Tables[0].Rows.Count != 0)

{

string st1 = "select * from Pr where cn='" + this.TextBox1.Text + "'and year='" + this.TextBox3.Text + "' and qi='" + this.TextBox4.Text + "'";

ds = dp.getData(st1);

if (ds.Tables[0].Rows.Count != 0)

{

int i = int.Parse(ds.Tables[0].Rows[0]["quty"].ToString()) +

int.Parse(this.TextBox5.Text);

string st2 = "update Pr set quty='" + i.ToString() + "' where cn='" +

this.TextBox1.Text + "'and year='" + this.TextBox3.Text + "' and qi='" + this.TextBox4.Text + "'"; int j = dp.UpdateData(st2);

if (j != 0)

{

Response.Redirect("Addnewmagazine3.aspx");

}

}

else

{

string st3 = "select * from Pr";

ds = dp.getData(st3);

上一页第10页

你可能喜欢

  • 软件系统
  • 软件工程实训报告
  • 软件说明
  • 软件管理
  • 管理系统设计
  • 系统软件工程
  • 老外经典高频口语
  • 机电一体化教案

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email