• 大小: 995KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-07
  • 语言: C#
  • 标签: C#  Microsoft  Visual  Studio  2005  

资源简介

基于.NET平台,C#语言,使用Microsoft Visual Studio 2005软件编写的Book Sell图书销售管理系统

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace Book_Sell
{
    public partial class AddBookForm : Form
    {
        public AddBookForm()
        {
            InitializeComponent();
        }

        private void AddBookForm_Load(object sender EventArgs e)
        {
            // TODO: 这行代码将数据加载到表“dataDataSet.PublishCompany”中。您可以根据需要移动或移除它。
            this.publishCompanyTableAdapter.Fill(this.dataDataSet.PublishCompany);
            // TODO: 这行代码将数据加载到表“dataDataSet.BookType”中。您可以根据需要移动或移除它。
            this.bookTypeTableAdapter.Fill(this.dataDataSet.BookType);

        }
        public void AddBook(string BookName string Author string PublishDate string Price string StockNum string TypeID string PublishCompanyID)
        {
            string StrConn = “provider=Microsoft.Jet.OleDb.4.0;Data Source=Data.mdb“;

            OleDbConnection conn = new OleDbConnection(StrConn);
            OleDbCommand comm = new OleDbCommand(“insert into book (BookName Author PublishDate Price TypeID PublishCompanyID StockNum RestNum) values (‘“ + BookName + “‘‘“ + Author + “‘‘“ + PublishDate + “‘“ + Price + ““ + TypeID + ““ + PublishCompanyID + ““ + StockNum + ““ + StockNum + “)“);



            comm.Connection = conn;
            conn.Open();

            comm.ExecuteNonQuery();

            conn.Close();
        }

        private void button1_Click(object sender EventArgs e)
        {
            AddBook(textBox1.Text textBox2.Text textBox3.Text textBox4.Text textBox5.Text comboBox1.SelectedValue.ToString() comboBox2.SelectedValue.ToString());

            MessageBox.Show(“添加成功,单击确定继续添加!“);

            textBox1.Text = ““;
            textBox2.Text = ““;
            textBox3.Text = ““;
            textBox4.Text = ““;
            textBox5.Text = ““;
        }

        private void button2_Click(object sender EventArgs e)
        {
            this.Close();
        }
        
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2218  2009-11-29 17:15  Book Sell\Book Sell\AddBookForm.cs

     文件      13358  2009-11-29 17:15  Book Sell\Book Sell\AddBookForm.Designer.cs

     文件       6862  2009-11-29 17:15  Book Sell\Book Sell\AddBookForm.resx

     文件        420  2009-11-25 10:08  Book Sell\Book Sell\app.config

     文件     348160  2011-06-11 14:18  Book Sell\Book Sell\bin\Debug\Book Sell.exe

     文件        420  2009-11-25 10:08  Book Sell\Book Sell\bin\Debug\Book Sell.exe.config

     文件     466432  2011-06-11 14:18  Book Sell\Book Sell\bin\Debug\Book Sell.pdb

     文件       5632  2009-11-25 10:06  Book Sell\Book Sell\bin\Debug\Book Sell.vshost.exe

     文件        420  2009-11-25 10:08  Book Sell\Book Sell\bin\Debug\Book Sell.vshost.exe.config

     文件        419  2009-11-25 10:06  Book Sell\Book Sell\bin\Debug\BookSell.exe.config

     文件     282112  2009-11-25 10:06  Book Sell\Book Sell\bin\Debug\BookSell.pdb

     文件        419  2009-11-25 10:06  Book Sell\Book Sell\bin\Debug\BookSell.vshost.exe.config

     文件    1601536  2011-06-11 14:10  Book Sell\Book Sell\bin\Debug\Data.mdb

     文件      14021  2009-12-01 00:31  Book Sell\Book Sell\Book Sell.csproj

     文件       4105  2009-12-01 00:01  Book Sell\Book Sell\BookDetailForm.cs

     文件      14360  2009-12-01 00:01  Book Sell\Book Sell\BookDetailForm.Designer.cs

     文件       7488  2009-12-01 00:01  Book Sell\Book Sell\BookDetailForm.resx

     文件       1175  2009-11-29 13:26  Book Sell\Book Sell\BookTypeManageForm.cs

     文件      16924  2009-11-29 13:26  Book Sell\Book Sell\BookTypeManageForm.Designer.cs

     文件      12886  2009-11-29 13:26  Book Sell\Book Sell\BookTypeManageForm.resx

     文件    1601536  2011-06-11 14:10  Book Sell\Book Sell\Data.mdb

     文件     238848  2009-11-29 13:39  Book Sell\Book Sell\DataDataSet.Designer.cs

     文件        381  2009-11-10 09:47  Book Sell\Book Sell\DataDataSet.xsc

     文件      83074  2009-11-10 09:47  Book Sell\Book Sell\DataDataSet.xsd

     文件       1884  2009-11-10 09:47  Book Sell\Book Sell\DataDataSet.xss

     文件      75779  2009-11-29 13:38  Book Sell\Book Sell\DataDataSet1.Designer.cs

     文件          3  2009-11-25 10:07  Book Sell\Book Sell\DataDataSet1.xsc

     文件      26139  2009-11-25 10:07  Book Sell\Book Sell\DataDataSet1.xsd

     文件          3  2009-11-25 10:07  Book Sell\Book Sell\DataDataSet1.xss

     文件      59930  2009-11-29 13:38  Book Sell\Book Sell\DataDataSet2.Designer.cs

............此处省略132个文件信息

评论

共有 条评论