当前位置:文档之家› 小型超市管理系统

小型超市管理系统


销售管理界面:
销售管理代码 //计算剩余商品数量 stockClass ss = new stockClass(); Session["snum"] = ss.stock(Convert.ToInt32(rowview["c_id"])) ss.sell(Convert.ToInt32(rowview["c_id"])); this.Number.Text = Convert.ToString(ss.stock(Convert.ToInt32(rowvie w["c_id"])) ss.sell(Convert.ToInt32(rowview["c_id"]))); this.StockDate.SelectedDate = DateTime.Now;
四,网页部分功能图片如下
登录界面:
ቤተ መጻሕፍቲ ባይዱ
生成随即验证码: 生成随即验证码:
if (!IsPostBack) { //生成验证码 Random validateN = new Random(); bel1.Text = validateN.Next(9).ToString() + validateN.Next(9).ToString() + validateN.Next(9).ToString() + validateN.Next(9).ToString(); } //关闭本页面 this.Button2.Attributes.Add("onclick", "window.close();");
protected void Button1_Click(object sender, EventArgs e) { string Sql = " "; if (CheckBox1.Checked) { Sql = Sql + "and CompanyName like '%" + TN.Text + "%' "; } if (CheckBox2.Checked) { Sql = Sql + "and CommodityName like '%" + PN.Text + "%' "; } if (CheckBox3.Checked) { Sql = Sql + "and ManageMan like '%" + MM.Text + "%' "; } if (CheckBox4.Checked) { Sql = Sql + "and StockDate between '" + SD.Text + "' and '" + ED.Text + "'"; } Session["sql"] = Sql; this.bind(); }
进货管理界面:
进货管理部分代码
//显示员工 SqlDataAdapter sdas = new SqlDataAdapter("select * from tb_staff order by s_id desc", strcon); sdas.Fill(ds, "tb_staff"); DataRowView row = ds.Tables["tb_staff"].DefaultView[0]; this.ManageMan.DataSource = ds.Tables["tb_staff"]; this.ManageMan.DataValueField = "s_name"; this.ManageMan.DataTextField = "s_name"; this.ManageMan.DataBind(); strcon.Close();
Cool 毙了 小型超市管理系统
开发人员: 开发人员: 李 博 王 野 姜 蕊 钮耀峰
——班级:083061 班级:
1.编写目的 编写目的 为了提高物资管理的水平和工作效率, 尽可能杜绝商品流通中各环节中可能出现的 资金流失不明现象,商品进销存领域迫切需 要引入信息系统来加以管理.而商品进销管 理系统是当前应用于超市或者公司管理系统 的典型代表. 主要完成的功能有: 主要完成的功能有:系统设置,商品 供应商信息管理,员工档案管理,商品信息 管理,商品入库管理,销售管理,销售数据 查询,以及这一系列过程中涉及商品的数据 修改与查询统计等多种操作.
//计算输入的金额是否正确 if (Number * Pirce < Payment) { Response.Write("<script>alert('应付金额填写错误 ');history.back()</script>"); Response.End(); } SqlConnection strcon = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["strco n"]); strcon.Open(); SqlCommand scd = new SqlCommand("insert into tb_Stock (CommodityId,CompanyId,Number,Pirce,StockDate,Payment,Username,AddTi me,Type)values('" + CommodityId + "','" + CompanyId + "','" + Number + "','" + Pirce + "','" + StockDate + "','" + Payment + "','" + Username + "','" + AddTime + "','"+Type+"')", strcon); scd.ExecuteNonQuery(); strcon.Close(); Response.Write("<script language=javascript>alert('添加成功 ');location='Sell_add.aspx'</script>");
开发意图: 开发意图: 本产品能具体化,合理化的管理超市中 的商品信息,进出信息,用结构化的思维方 式去了解超市的基本运作原理和超市后台程 序设计. a.大大提高超市的运作效率; b.通过全面的信息采集和处理,辅助提高超 市的决策水平; c.使用本系统,可以迅速提升超市的管理水 平,为降低经营成本,提高效益,增强超市 扩张力,提供有效的技术保障.
//计算输入的金额是否正确 if (Number * Pirce < Payment) { Response.Write("<script>alert('应付 金额填写错误');history.back()</script>"); Response.End(); }
查询统计界面:
查询系统代码
public void bind() { string type = "进货信息"; string strsql; bel1.Text = type; strsql = "select id,CommodityName,CompanyName,Number,Pirce,StockDate,Payment,FactPa yment,NotPayment,ManageMan,Type from tb_Stock,tb_Company,tb_Commodity where tb_Company.cp_id=tb_panyId and tb_Commodity.c_id=tb_modityId and type='" + type + "'" + Session["sql"] + " order by id desc"; SqlConnection strcon = new SqlConnection(System.Configuration.ConfigurationManager.AppSettings["strco n"]); strcon.Open(); SqlDataAdapter sda = new SqlDataAdapter(strsql, strcon); DataSet ds = new DataSet(); sda.Fill(ds, "search"); GridView1.DataSource = ds.Tables["search"]; GridView1.DataKeyNames = new string[] { "id" }; GridView1.DataBind(); strcon.Close(); }
2.1.2 软件支持 本软件将在以下环境下编写完成: 操作系统:Windows XP professional 编程软件:Microsoft Visual Studio 2005 中文 版 SQL服务器:Microsoft SQL Server 2005
相关主题