91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 295KB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發(fā)布日期: 2021-07-02
  • 語(yǔ)言: C#
  • 標(biāo)簽: C#??Visual??Studio??

資源簡(jiǎn)介

本項(xiàng)目包含的數(shù)據(jù)庫(kù)表有:讀者信息表、圖書(shū)信息表、借閱信息表、用戶信息表 本程序可以實(shí)現(xiàn)的功能有:管理員管理(包括增刪改查)讀者、圖書(shū)、借閱信息,可以進(jìn)行對(duì)于某個(gè)特定讀者的未還圖書(shū)信息查詢。讀者可以進(jìn)行查看圖書(shū)信息、讀者信息以及自己的借閱信息,還可以特定查看自己未還的書(shū)籍。借書(shū)還書(shū)、逾期未還的罰金會(huì)自動(dòng)計(jì)算,讀者可以繳納罰款,可以修改自己的賬戶信息。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Data.SqlClient;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
namespace?Database_Library
{
????public?partial?class?BooksFrom_admin?:?Form
????{
????????public?string?sql_default?=?“select?*?from?Books?where?ISBNum?=?‘-1‘“;
??
????????public?BooksFrom_admin()
????????{
????????????InitializeComponent();
????????????ISBN_text.Text?=?““;
????????????bookname_text.Text?=?““;
????????????press_text.Text?=?““;
????????????writer_text.Text?=?““;
????????????totalnum_text.Text?=?“0“;
????????????numAvailable_text.Text?=?“0“;
????????????ifAvailable_combo.Text?=?““;
????????????update_btn.Enabled?=?false;
????????????delete_btn.Enabled?=?false;
????????????
????????}

????????private?void?readersbutton6_Click(object?sender?EventArgs?e)
????????{
????????????ReadersForm_admin?childrenForm_Readers?=?new?ReadersForm_admin();
????????????childrenForm_Readers.Show();
????????????this.Dispose();
????????}

????????private?void?deletebutton6_Click(object?sender?EventArgs?e)
????????{
??????????
????????????try
????????????{


????????????????int?index?=?selectresults.CurrentRow.Index;
????????????????string?isbnDstr?=?selectresults.Rows[index].Cells[0].Value.ToString().Trim();
????????????????string?deleteSql?=?String.Format(“delete?from?Books?where?ISBNum?=?‘{0}‘“?isbnDstr);
????????????????string?confirmMess?=?String.Format(“確認(rèn)刪除圖書(shū){0}“?selectresults.Rows[index].Cells[1].Value.ToString().Trim());
????????????????if?(MessageBox.Show(confirmMess?“刪除確認(rèn)“?MessageBoxButtons.YesNo?MessageBoxIcon.Question?MessageBoxDefaultButton.Button1)?==?DialogResult.Yes)
????????????????{
????????????????????if?(DBoperations.ExecuteSql(deleteSql)?>?0)?//rows?>?0
????????????????????{
????????????????????????MessageBox.Show(“刪除成功“);
????????????????????????selectresults.Rows.RemoveAt(index);
????????????????????}
????????????????????else
????????????????????{
????????????????????????MessageBox.Show(“刪除失敗!“);
????????????????????}
????????????????}
????????????}
????????????catch?(NullReferenceException?NotRefE)
????????????{
????????????????MessageBox.Show(“未選擇刪除對(duì)象!“);
????????????????return;
????????????}
??????????
????????}

????????private?void?newaddbutton6_Click(object?sender?EventArgs?e)
????????{
????????????string?isbnStr?=?ISBN_text.Text.Trim();
????????????string?booknameStr?=?bookname_text.Text.Trim();
????????????string?pressStr?=?press_text.Text.Trim();
????????????string?writerStr?=?writer_text.Text.Trim();
????????????string?totalnumStr?=?totalnum_text.Text.Trim();
????????????string?avlblnumStr?=?numAvailable_text.Text.Trim();
????????????string?ifAvlblStr?=?ifAvailable_combo.Text.Trim();
????????????string?bookinsert?=?String.Format(“insert?into?Books?values?(‘{0}‘‘{1}‘‘{2}‘‘{3}‘{4}{5}‘{6}‘)“

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2020-06-22?18:34??源程序\
?????目錄???????????0??2020-06-22?18:05??源程序\Database_Library\
?????目錄???????????0??2020-06-22?18:05??源程序\Database_Library\.vs\
?????目錄???????????0??2020-06-22?18:05??源程序\Database_Library\.vs\Database_Library\
?????目錄???????????0??2020-06-22?18:05??源程序\Database_Library\.vs\Database_Library\v16\
?????文件???????58368??2020-06-15?16:55??源程序\Database_Library\.vs\Database_Library\v16\.suo
?????文件??????????37??2020-06-15?16:55??源程序\Database_Library\.vs\ProjectSettings.json
?????文件?????????123??2020-06-15?16:55??源程序\Database_Library\.vs\VSWorkspaceState.json
?????文件??????315392??2020-06-15?16:55??源程序\Database_Library\.vs\slnx.sqlite
?????文件?????????189??2020-05-18?09:02??源程序\Database_Library\App.config
?????文件???????12978??2020-06-12?15:47??源程序\Database_Library\BRUpdate.Designer.cs
?????文件????????5699??2020-06-12?19:34??源程序\Database_Library\BRUpdate.cs
?????文件????????5817??2020-05-26?15:38??源程序\Database_Library\BRUpdate.resx
?????文件???????21344??2020-06-12?15:47??源程序\Database_Library\BR_admin.Designer.cs
?????文件????????9519??2020-06-12?15:47??源程序\Database_Library\BR_admin.cs
?????文件????????5817??2020-05-26?15:38??源程序\Database_Library\BR_admin.resx
?????文件???????13349??2020-06-12?17:13??源程序\Database_Library\BR_reader.Designer.cs
?????文件????????7873??2020-06-12?17:58??源程序\Database_Library\BR_reader.cs
?????文件????????5817??2020-06-12?17:13??源程序\Database_Library\BR_reader.resx
?????文件???????13252??2020-06-12?15:47??源程序\Database_Library\BookUpdate.Designer.cs
?????文件????????4976??2020-06-12?15:47??源程序\Database_Library\BookUpdate.cs
?????文件????????5817??2020-05-26?10:27??源程序\Database_Library\BookUpdate.resx
?????文件???????20237??2020-06-12?15:47??源程序\Database_Library\BooksFrom_admin.Designer.cs
?????文件????????7180??2020-06-12?15:47??源程序\Database_Library\BooksFrom_admin.cs
?????文件????????5995??2020-05-23?20:20??源程序\Database_Library\BooksFrom_admin.resx
?????文件???????18520??2020-06-12?15:47??源程序\Database_Library\BooksFrom_reader.Designer.cs
?????文件????????7410??2020-06-12?15:47??源程序\Database_Library\BooksFrom_reader.cs
?????文件????????5817??2020-05-26?10:56??源程序\Database_Library\BooksFrom_reader.resx
?????文件????????5672??2020-06-12?15:47??源程序\Database_Library\ClassDiagram1.cd
?????文件????????1336??2020-06-12?15:47??源程序\Database_Library\DBoperations.cs
?????文件????????7583??2020-06-12?15:47??源程序\Database_Library\Database_Library.csproj
............此處省略59個(gè)文件信息

評(píng)論

共有 條評(píng)論

相關(guān)資源