• 大小: 9.4MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-10
  • 语言: C#
  • 标签: 软件开发  

资源简介

c#的项目,包括登录,修改密码,图书分类,有详细的数据库,和文档

资源截图

代码片段和文件信息

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.SqlClient;

namespace bookshop
{
    public partial class addbook : Form
    {
        public addbook()
        {
            InitializeComponent();
        }

        private void addbook_Load(object sender EventArgs e)
        {
            //DataSet myds = new DataSet();
            //using (SqlConnection con = DBHelper.GetCon())
            //{
            //    using (SqlCommand cmd = new SqlCommand(“select * from t_bookInfo“ con))
            //    {
            //        SqlDataAdapter mysda = new SqlDataAdapter(cmd);
            //        mysda.Fill(myds);
            //    }
            //}
            
        }

        private void button1_Click(object sender EventArgs e)
        {
            //DataSet myds = new DataSet();
            using (SqlConnection con = DBHelper.GetCon())
            {
                using (SqlCommand cmd = new SqlCommand(“insert into t_bookInfo (bookNobookNamebookTypeAuthorPublisherPriceDiscount) values(“+textBox1.Text+“‘“+textBox2.Text+“‘‘“+textBox3.Text+“‘‘“+textBox4.Text+“‘‘“+textBox5.Text+“‘‘“+textBox6.Text+“‘‘“+textBox7.Text+“‘)“ con))
                {
                    
                    if (cmd.ExecuteNonQuery() < 1)
                    {
                        MessageBox.Show(“添加失败!“ “操作提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
                    }
                    else
                    {
                        MessageBox.Show(“添加成功!“ “操作提示“ MessageBoxButtons.OK MessageBoxIcon.Information);
                        
                        
                    }
                }
            }
            
           
            
        }

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

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-03-28 20:54  c#书店管理项目\
     目录           0  2012-03-28 20:54  c#书店管理项目\bookshop\
     目录           0  2012-03-28 20:54  c#书店管理项目\bookshop\Backup\
     目录           0  2012-03-28 20:54  c#书店管理项目\bookshop\Backup\bookshop\
     文件         913  2011-12-19 08:11  c#书店管理项目\bookshop\Backup\bookshop.sln
     文件       86016  2004-01-03 03:48  c#书店管理项目\bookshop\Backup\bookshop.suo
     文件        2064  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addbook.cs
     文件        9941  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addbook.Designer.cs
     文件      120715  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addbook.resx
     文件        1767  2004-01-03 03:19  c#书店管理项目\bookshop\Backup\bookshop\adduser.cs
     文件       10897  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\adduser.Designer.cs
     文件      120715  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\adduser.resx
     文件        2247  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addVIP.cs
     文件        8340  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addVIP.Designer.cs
     文件      120715  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\addVIP.resx
     文件        1903  2004-01-03 02:43  c#书店管理项目\bookshop\Backup\bookshop\booksale.cs
     文件        8222  2004-01-03 02:43  c#书店管理项目\bookshop\Backup\bookshop\booksale.Designer.cs
     文件        7098  2004-01-03 02:43  c#书店管理项目\bookshop\Backup\bookshop\booksale.resx
     文件        1817  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\booksales.cs
     文件        6143  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\booksales.Designer.cs
     文件      120715  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\booksales.resx
     文件        1995  2004-01-03 03:10  c#书店管理项目\bookshop\Backup\bookshop\booksearchauthor.cs
     文件        7003  2004-01-03 03:10  c#书店管理项目\bookshop\Backup\bookshop\booksearchauthor.Designer.cs
     文件      120715  2004-01-03 03:10  c#书店管理项目\bookshop\Backup\bookshop\booksearchauthor.resx
     文件        1908  2004-01-03 03:08  c#书店管理项目\bookshop\Backup\bookshop\booksearchname.cs
     文件        6542  2004-01-03 03:08  c#书店管理项目\bookshop\Backup\bookshop\booksearchname.Designer.cs
     文件      120715  2004-01-03 03:08  c#书店管理项目\bookshop\Backup\bookshop\booksearchname.resx
     文件       14907  2004-01-03 02:48  c#书店管理项目\bookshop\Backup\bookshop\bookshop.csproj
     文件        2370  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\buybooks.cs
     文件        9863  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\buybooks.Designer.cs
     文件      120715  2004-01-03 02:39  c#书店管理项目\bookshop\Backup\bookshop\buybooks.resx
............此处省略500个文件信息

评论

共有 条评论