《图书管理系统C++源代码》由会员分享,可在线阅读,更多相关《图书管理系统C++源代码(50页珍藏版)》请在金锄头文库上搜索。
1、using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1 public partial class Form_BuyAndSale : Form public Form_BuyAndSale() InitializeComponent(); SQL sql; string last
2、SQL = ; public void show() listBox1.Items.Clear(); listBox2.Items.Clear(); listBox3.Items.Clear(); if (sql.rows.GetLength(0) != 0) for (int i = 0; i + min + and saledate + min + and saledate + min + and saledate + min + and saledate int.Parse(Max.Text) MessageBox.Show(最小值应小于或等于最大值!, 提示); Min.Text =
3、; Max.Text = ; return; sql.ExecuteSQL(select * from ts_tushuxiaoshou where salequantity between + Min.Text + and + Max.Text); show(); lastSQL = select * from ts_tushuxiaoshou where salequantity between + Min.Text + and + Max.Text; private void button1_Click(object sender, EventArgs e) this.Close();
4、using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication1 public partial class Form_Customer : Form public Form_Customer() InitializeComponent(); SQL sql; string oldcusto
5、merID = ; public static string CUSTOMERID = ; public static string CUSTOMERNAME = ; public void show() if (sql.rows.GetLength(0) != 0) customerID.Text = sql.rowssql.getPos(), 0.ToString(); customername.Text = sql.rowssql.getPos(), 1.ToString(); customerinfo.Text = sql.rowssql.getPos(), 2.ToString(); customeraddress.Text = sql.rowssql.getPos(), 3.ToString(); customertelephone.Text = sql.rowssql.getPos(), 4.ToString(); custo