日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > windows >内容正文

windows

数据库仓库管理系统课程设计

發布時間:2023/12/20 windows 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 数据库仓库管理系统课程设计 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

#? 覺得本文對你有用的話點個關注吧

目錄

  • 概述......................................................
  • 需求分析..................................................
  • 念結構設計................................................
  • 邏輯結設計................................................
  • 軟件功設計................................................
  • 代碼設計和心得............................................

  • 概敘

?1.0 項目背景;

倉庫在現實生活中用途十分廣泛,各種商城、超市要利用倉庫存放物資,藥房、醫院等要利用倉庫存放藥品,企業、工廠等要利用倉庫存放原材料、生產成品,因此倉庫的管理成了一項十分重要的工作。

人工管理倉庫既費時又費力,而且容易造成混亂,嚴重時會影響商城、企業的正常運作,造成惡劣的后果。隨著信息技術的發展,辦公自動化的普及,如何快速,高效,便捷的管理倉庫受到了高度的關注;因此為了解決這個問題我們提供這個系統以滿足倉庫管理需求,本系統是基于超市倉庫的管理系統。

1.1 編寫目的:

編寫實用的倉庫管理系統為倉庫管理系統提供一個基礎,方便企業的商品管理。

1.3 軟件定義

企業倉庫管理系統(Equipment Managerment System); 是實現企業對貨物的出、入庫進行高效的管理。通過應用系統應能對商品基本信息進行管理。新的商 品信息的入庫、出庫等操作也是其中的一部分。 同時按照一定的條件查詢、 統計符合條件的商品信息。

第2章 需求分析

2.1 系統流程圖

2.1.1 系統流程圖符號

2.1.2本系統使用的總的系統流程圖;

2.1.3 數據項;

第三章?? 概念結構設計

3.1? E-R圖 ??

  • 邏輯結構設計

邏輯結構設計的任務就是把概念結構設計階段設計好的基本E-R圖轉換為選用DBMS產品所支持的數據模型相符合的邏輯結構。把基本E-R圖轉換成關系模型。

??????????? 第五章? 軟件功能設計

5.1系統功能結構

?? 可得如下系統功能結構圖;

  • ?代碼設計和心得

6.1核心代碼

  • 用戶信息——表??? Users
  • create table Users (

    Userno char( 10) primary key,

    Userame char(20) not mull,

    UserPassword char( 20) not mull,

    Usercon char(2) not null check(Usercon in(C是:否)

    )

  • 商品信息——表 Goods
  • create table Goods(

    (

    Gno char(4) primary key,

    Gname char(20) not null,

    Pno char(4) not null,

    Gdate datetime,

    foreign key (Pno ) references Provider(Pno)

    )

  • 倉庫表——Storages
  • create table Storage

    (

    Sno char (4) primary key,

    Sname char (20) ,

    Sdress char (20)

    )

  • 庫存表-----Storage
  • create table Storage

    (

    Gno char (4) primary key,

    Sno char (4) not null,

    Gnum int not null check(Gnum=0),

    foreign key (Sno ) references Storages(Sno),

    foreign key (Gno) references Goods(Gno)

    )

  • 入庫信息-----表
  • Instoragecreate table Instorage(

    Gno char (4) not null

    Indate datetime primary key

    Userno char (10) not null,

    Addnum int not null,

    Sno char (4) not null,

    foreign key (Gno) references Goods(Gno),

    ?foreign key (Sno ) references Storages(Sno),

    ?foreign key(Userno) references Users(Userno)

    )

  • 出庫信息-----表Outstorage
  • create table Outstorage (

    Gno char (4) not mull ,

    Indate datetime primary key

    Usemo char (10) not null,

    Denum int not null,

    Sno char (4) not null,

    foreign key (Gno) references Goods(Gno),

    foreign key (Sno ) references Storages(Sno)

    foreign key(Userno) references Users(Userno)

    )

  • 供應商Porvider
  • create table Provider(

    Pno char (4) primary key,

    Pname char (20) ,

    Phone char (20)

    數據庫鏈接與處理類;

    public class DBhelper

    {

    public static string connSting ="Data Source= (1ocal) ;Database- WMS_ Project;User ID = 49; Pwd=123"

    SqlConnection connection new SqlConnection (connSting) ;

    public bool Userselectstring usersname, string password, string

    IS)

    {

    string sqlJ String. Format(" select count(*) from Users where Username-' (0) and UserPassword=' (1)' and Usercon =' (2);" usersname,password,IS);

    Try

    ?? {

    connection. 0pen();

    SqlCommand command Hew SqlCommand (sql, connection) ;

    int num in() command. ExecuteScalar0 ;

    if (num ) 0)

    {

    return true;

    }

    Else

    ??? {

    return false ;

    }

    }

    Catch( Exception ex)

    {

    MessageBox. Show (ex. Message,”操作數據庫出錯”,MessageBoxButtons. OK MessageBoxIcon. Exclamation) ;

    return false;

    ???? }

    finally

    ???? {

    connection, Close();

    ???? }

    public bool SelectUserstring usersname, string password, string user)

    {

    string sql 8tring. Format("select Username from Users where Username-' (0)' and UserPassword-' (1)' and Usercon .=" (2);" usersname, password) ;

    try

    {

    connection. 0pen();

    Sq1Command command Hew Sq1Command (sql, connection)

    SqlDataReader reader command. ExecuteReader0;

    while (reader. Read( ));

    {

    user=reader. GetString(0);

    }

    return true ;

    catch (Exception ex)

    ? {

    MessageBox. Show(ex. Message,"操 作數據庫出錯”MessageBoxButtons. oK,MessageBoxIcon. Exclamation) ;

    return false;

    }

    Finally

    {

    connection. Close();

    }

    }

    public bool AddUser(string usno, string user sname, string password, string IS)

    {

    String?? sq1?? = String. Format (" INSERT

    Users (Userno, Username, UserPassword, Usercon)" + "VALUES(' (0)','(1)',' (2)',' (3)')",usno,

    Try

    {

    connection. 0pen0();

    SqlCommand command new SqlCommand (sql,

    int num F int) command. ExecuteNonQuery( ;

    if (num > 0)

    MessageBox. Show('添加用戶成功”,” 添加成功”,MessageBoxButtons. OK,MessageBoxIcon. Information) ;

    return true;

    }

    else

    {

    MessageBox. Show("添加用戶失敗”,”添 加失敗”,MessageBoxButtons. OK, MessageBoxIcon. Information) :

    return false;

    }

    }

    catch (Exception ex)

    {

    MessageBox. Show (ex. Message,

    }

    MessageBoxIcon. Excl amation) ;return false;"操作數據庫出錯",MessageBoxButtons. OK,

    Return false; ???

    }

    Finally

    {

    Connect.Close();

    }

    }

    public bool DeleteUser(string usno)

    {

    String sql 8tring. Format("Delete From users Where Userno=' (0)' ?sno);

    try

    {

    connection. 0pen();

    SqlCommand command new SqlCommand (sql, connection) ;

    ?int num = int) command. ExecuteNonQuery :

    if (num > 0)

    {

    MessageBox. Show("HB HFiDhj", " H P 1l, Jh ", MessageBoxButtons. 0K,MessageBoxIcon. Information) ;

    return true;

    }

    Else

    {

    MessageBox. Show("HlHRHPkWx", "HFRE k ", MessageBoxButtons. 0K,MessageBoxIcon. Information);

    return false;

    }

    }

    catch'( Exception ex)

    MesageBox. Show(ex. Message,” 操作數據庫出錯”,MessageBoxButtons. OK,MessageBoxIcon. Exclamation) :

    return false;

    ??? }

    finally

    {

    connection. Close() ;

    }

    public bool ChangePWD(String Usno, string i Usname, string Uspassword,newpassword)

    {

    string sql - String. Format("UPDATE users set UserPassword- (0 where Userno-' ()'", newpassword, Usno);

    string sqla String.Format("select count(*) from Users where Userno-' (0)' and Username' (1)' and UserPassword-" (2)': Usno, Usname, Uspassword):

    try

    {

    connection.0pen0;

    SqlComand command new SqlCommand (sqla, connection) ;

    int num =in0) command. ExecuteScalar0 ;

    if (num > 0)

    {

    Sq1Command commands new SqlCotmand (sql, connection) ;

    Try

    {

    MessageBox. Show("修改密碼成功 " “修改密碼成功”MessageBoxButtons. оK, MessageBoxIcon. Information);

    return true;

    }

    catch

    ??????? {

    MessageBox. Show("修改密碼失敗“,”修改密碼失敗“MessageBoxButtons. 0K, MessageBoxIcon. Information) ;

    return false ;

    }

    }

    else

    {

    MessageBox. Show(T密碼驗證失敗”,”請確認密碼用戶名編號是否正確”,MessageBoxBut tons.0K, MessageBoxIcon. Information) ;

    return false;

    ?}

    }

    Catch? (Exception? ex)

    {

    MessageBox. Show(ex. Message,"操 作數據庫出錯”,MessageBoxButtons. OK,MessageBoxIcon. Exclamation) ;

    return false;

    }

    Finally

    {

    connection。Close();

    }

    }

    }

    設計心得:

    我從這次實驗實踐中,我學到了從最基本的地方入手,了解行情從實際出發解決實際問題。我也對實驗設計有了更加清楚認識。我下去積極和同學交流,發現了自己很多的問題所在,希望在日后的訓練中不斷加強自己的短板,

    總結

    以上是生活随笔為你收集整理的数据库仓库管理系统课程设计的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。