当前位置: 首页 > news >正文

加强网站制度建设电子商务网站规划与建设的论文

加强网站制度建设,电子商务网站规划与建设的论文,网络工程师证书报名,哪个网站专门做快餐车一、数据库的建立 由于查询功能和之前的 入库管理功能 所用的数据库都一样#xff0c;这里仍使用yy_textile表 在fiber_yy数据库下创建yy_textile表 初始数据库信息 二、页面的完善 登录注册页面我就不演示了#xff0c;前几篇博文也都有介绍 query查询页面 main_page…一、数据库的建立 由于查询功能和之前的 入库管理功能 所用的数据库都一样这里仍使用yy_textile表 在fiber_yy数据库下创建yy_textile表 初始数据库信息 二、页面的完善 登录注册页面我就不演示了前几篇博文也都有介绍 query查询页面 main_page页面进行功能完善 三、代码实现 query查询页面 using System; using System.IO; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.OleDb; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient;namespace fiber_yy {public partial class query : Form{private DataSet dsall;public string constr serverCY-20190824RMES;Initial Catalogfiber_yy;User IDsa;pwdbeyond;private SqlDataAdapter mDataAdapter;public query(){InitializeComponent();comboBox1.Items.Add(根据面料名称查询);comboBox1.Items.Add(根据品号查询);}private void button1_Click(object sender, EventArgs e){try{SqlConnection conn new SqlConnection(constr);conn new SqlConnection(constr);mDataAdapter new SqlDataAdapter(SELECT name AS 纺织品名称,number AS 纺织品品号,warp_density AS 经密度 ,weft_density AS 纬密度,warp_linear_density AS 经纱线密度,weft_linear_density AS 纬纱线密度,material AS 原料成分,square_meter_weight AS 平方米重量,width_of_cloth AS 幅宽,horse_length AS 匹长,organization AS 所用组织,stock AS 库存量 FROM yy_textile, conn);dsall new DataSet();mDataAdapter.Fill(dsall, hard);dataGridView1.DataSource dsall.Tables[hard];}catch {MessageBox.Show(读取失败请检查是否存在该织物);}}private void button2_Click(object sender, EventArgs e){this.Hide();new main_page().Show();}private void button3_Click(object sender, EventArgs e){try{string model comboBox1.SelectedItem.ToString();string command textBox1.Text;byte[] MyData new byte[0];SqlConnection conn new SqlConnection(constr);conn.Open();SqlCommand cmd new SqlCommand();cmd.Connection conn;//cmd.CommandText select * from yy_textile where model command ; //sql语句按指定条件进行if (model 根据面料名称查询){cmd.CommandText select * from yy_textile where name command ;model SELECT name AS 纺织品名称,number AS 纺织品品号,warp_density AS 经密度 ,weft_density AS 纬密度,warp_linear_density AS 经纱线密度,weft_linear_density AS 纬纱线密度,material AS 原料成分,square_meter_weight AS 平方米重量,width_of_cloth AS 幅宽,horse_length AS 匹长,organization AS 所用组织,stock AS 库存量 from yy_textile where name command ;}if (model 根据品号查询){cmd.CommandText select * from yy_textile where number command ;model SELECT name AS 纺织品名称,number AS 纺织品品号,warp_density AS 经密度 ,weft_density AS 纬密度,warp_linear_density AS 经纱线密度,weft_linear_density AS 纬纱线密度,material AS 原料成分,square_meter_weight AS 平方米重量,width_of_cloth AS 幅宽,horse_length AS 匹长,organization AS 所用组织,stock AS 库存量 from yy_textile where number command ;}SqlDataReader sdr cmd.ExecuteReader();sdr.Read();object o sdr[picture];MyData (byte[])sdr[picture];//读取第一个图片的位流MemoryStream memoryStream null;memoryStream new MemoryStream(MyData);pictureBox1.Image Image.FromStream(memoryStream);//将图片赋给pictureBox1控件MessageBox.Show(读取成功);conn new SqlConnection(constr);mDataAdapter new SqlDataAdapter(model, conn);dsall new DataSet();mDataAdapter.Fill(dsall, hard);dataGridView1.DataSource dsall.Tables[hard];}catch{MessageBox.Show(读取失败请检查是否存在该织物);}}} } main_page页面 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms;namespace fiber_yy {public partial class main_page : Form{public main_page(){InitializeComponent();}private void button1_Click(object sender, EventArgs e){MessageBox.Show(退出成功);this.Close();new Form1().Show();}private void button2_Click(object sender, EventArgs e){this.Close();new warehousing().Show();}private void button3_Click(object sender, EventArgs e){this.Close();new shipment().Show();}private void button4_Click(object sender, EventArgs e){this.Close();new query().Show();}} } 四、效果演示 程序运行 注册我就不演示了请参考前几篇博文 从yy_user表中找个账号密码直接用户登录 登录成功 进入系统 演示库存查询 查阅所含全部织物信息 精确查找 根据面料名称查询 根据品号查询
http://www.huolong8.cn/news/40340/

相关文章:

  • 可以做砍价链接的网站网站seo内链建设
  • 长沙网站改版自适应网站建设方案
  • 电力建设科学技术进步申报网站网站建设的技能有哪些内容
  • 电商网站的模块百度关键词竞价和收费的方法
  • 有了自己的网站怎样做后台网站后台更换首页图片
  • 南海网站建设价格wordpress搜索结果
  • 榆林网站开发智慧物流企业网站建设方案
  • dw软件做的东西怎么在网站用joomla 网站模版
  • 网站认证费用策划书模板免费
  • 阿雷网站建设海口网球场
  • 专业找工作网站下载搜索引擎优化seo公司
  • 关于建设网站的合作合同免费制作公司网站
  • 没有服务器怎么做网站做视频网站 视频放在哪
  • 深圳网站建设 推荐xtdseo拼多多电商运营模式
  • 小说网站流量怎么做网站规划对网站建设起到什么作用
  • 凌源市建设局网站搞笑证书图片在线制作
  • 做一个能注册用户的网站网站需要服务器吗?
  • 网站源码可以做淘宝客ppt模板免费下载网站 知乎
  • 最便宜的网站空间广州专业网站设计定制
  • 无锡网站建设工作室企业邮箱是怎么样的
  • 合肥网站制作QQ五金网站制作
  • 企业电商网站商城建设萧山网络公司
  • 营销型企业网站建设的功能北京网络营销北京
  • 专业制作网站 上海做阅读理解的网站
  • 电子商务网站建设的目的是开展网络营销起零网站建设
  • 地方门户网站模板pc网站同步手机网站
  • 怎样做科普视频网站江苏省住房和建设厅网站
  • 网站建设的税收分类编码wordpress 多功能插件
  • c#网站开发框架简阳网站建设简阳
  • 一款教育培训咨询有限公司网站源码网站地图怎么添加