diff --git "a/\350\203\241\346\260\270\345\230\211/.gitignore" "b/\350\203\241\346\260\270\345\230\211/.gitignore" deleted file mode 100644 index 3e8a1553fcff7845c779d3cb8014e151a9931506..0000000000000000000000000000000000000000 --- "a/\350\203\241\346\260\270\345\230\211/.gitignore" +++ /dev/null @@ -1,341 +0,0 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.rsuser -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -[Aa][Rr][Mm]/ -[Aa][Rr][Mm]64/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ - -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ - -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_h.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*_wpftmp.csproj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding add-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# AxoCover is a Code Coverage Tool -.axoCover/* -!.axoCover/settings.json - -# Visual Studio code coverage results -*.coverage -*.coveragexml - -# NCrunch -_NCrunch_* -.*crunch*.local.xml -nCrunchTemp_* - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ - -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html - -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# Note: Comment the next line if you want to checkin your web deploy settings, -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# Microsoft Azure Web App publish settings. Comment the next line if you want to -# checkin your Azure Web App publish settings, but sensitive information contained -# in these scripts will be unencrypted -PublishScripts/ - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/[Pp]ackages/* -# except build/, which is used as an MSBuild target. -!**/[Pp]ackages/build/ -# Uncomment if necessary however generally it will be regenerated when needed -#!**/[Pp]ackages/repositories.config -# NuGet v3's project.json files produces more ignorable files -*.nuget.props -*.nuget.targets - -# Microsoft Azure Build Output -csx/ -*.build.csdef - -# Microsoft Azure Emulator -ecf/ -rcf/ - -# Windows Store app package directories and files -AppPackages/ -BundleArtifacts/ -Package.StoreAssociation.xml -_pkginfo.txt -*.appx - -# Visual Studio cache files -# files ending in .cache can be ignored -*.[Cc]ache -# but keep track of directories ending in .cache -!?*.[Cc]ache/ - -# Others -ClientBin/ -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.jfm -*.pfx -*.publishsettings -orleans.codegen.cs - -# Including strong name files can present a security risk -# (https://github.com/github/gitignore/pull/2483#issue-259490424) -#*.snk - -# Since there are multiple workflows, uncomment next line to ignore bower_components -# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) -#bower_components/ -# ASP.NET Core default setup: bower directory is configured as wwwroot/lib/ and bower restore is true -**/wwwroot/lib/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm -ServiceFabricBackup/ -*.rptproj.bak - -# SQL Server files -*.mdf -*.ldf -*.ndf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings -*.rptproj.rsuser - -# Microsoft Fakes -FakesAssemblies/ - -# GhostDoc plugin setting file -*.GhostDoc.xml - -# Node.js Tools for Visual Studio -.ntvs_analysis.dat -node_modules/ - -# Visual Studio 6 build log -*.plg - -# Visual Studio 6 workspace options file -*.opt - -# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) -*.vbw - -# Visual Studio LightSwitch build output -**/*.HTMLClient/GeneratedArtifacts -**/*.DesktopClient/GeneratedArtifacts -**/*.DesktopClient/ModelManifest.xml -**/*.Server/GeneratedArtifacts -**/*.Server/ModelManifest.xml -_Pvt_Extensions - -# Paket dependency manager -.paket/paket.exe -paket-files/ - -# FAKE - F# Make -.fake/ - -# JetBrains Rider -.idea/ -*.sln.iml - -# CodeRush personal settings -.cr/personal - -# Python Tools for Visual Studio (PTVS) -__pycache__/ -*.pyc - -# Cake - Uncomment if you are using it -# tools/** -# !tools/packages.config - -# Tabs Studio -*.tss - -# Telerik's JustMock configuration file -*.jmconfig - -# BizTalk build output -*.btp.cs -*.btm.cs -*.odx.cs -*.xsd.cs - -# OpenCover UI analysis results -OpenCover/ - -# Azure Stream Analytics local run output -ASALocalRun/ - -# MSBuild Binary and Structured Log -*.binlog - -# NVidia Nsight GPU debugger configuration file -*.nvuser - -# MFractors (Xamarin productivity tool) working folder -.mfractor/ - -# Local History for Visual Studio -.localhistory/ - -# BeatPulse healthcheck temp database -healthchecksdb diff --git "a/\350\203\241\346\260\270\345\230\211/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" "b/\350\203\241\346\260\270\345\230\211/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" new file mode 100644 index 0000000000000000000000000000000000000000..90304a23260b7ba26bc78e92c840d026c6f8aac3 --- /dev/null +++ "b/\350\203\241\346\260\270\345\230\211/\346\226\260\345\273\272\346\226\207\346\234\254\346\226\207\346\241\243.txt" @@ -0,0 +1,11 @@ +进销存系统 + + +https://gitee.com/myhfw003/jxc_manager_model + + + + +采购管理系统是通过采购申请、采购订货、进料检验、仓库收料、采购退货、 +供应商管理、价格及供货信息管理、订单管理,以及质量检验管理等功能综合运用的管理系统, +对采购物流和资金流的全部过程进行有效的双向控制和跟踪,实现完善的企业物资供应信息管理。 \ No newline at end of file diff --git "a/\350\203\241\346\260\270\345\230\211/\350\277\233\351\224\200\345\255\230\347\263\273\347\273\237.sql" "b/\350\203\241\346\260\270\345\230\211/\350\277\233\351\224\200\345\255\230\347\263\273\347\273\237.sql" index abf949a6b3bfd48605fd7f123cddba50118d06b0..26b00d058fd43add97cf3f1c3676fc8b64eb09b8 100644 --- "a/\350\203\241\346\260\270\345\230\211/\350\277\233\351\224\200\345\255\230\347\263\273\347\273\237.sql" +++ "b/\350\203\241\346\260\270\345\230\211/\350\277\233\351\224\200\345\255\230\347\263\273\347\273\237.sql" @@ -2,13 +2,25 @@ create database InvoicingSystem go use InvoicingSystem -------------------------------------------------------------------------------------------- -create table NameTable---Ա +create table SignIn---ע +( + AccountID int primary key identity(1,1), --˺ID + AccountNumber varchar(30) not null , --˺ + Passwords varchar(30) not null , -- +) + +------------------------------------------------------------------------------------------ +create table NameTable---ԱϢ ( NameID int primary key identity(1,1), --ԱID Name nvarchar(10) not null,--Ա +AccountID int not null , --˺ID PhoneNumber varchar(20) not null --Ա绰 ) +--ԱϢע +alter table NameTable +add constraint FK_NameTableAccountID_SignInAccountID foreign key(AccountID) references SignIn(AccountID) -------------------------------------------------------------------------------------------- create table GoodsMessage ---ƷϢ ( @@ -62,7 +74,7 @@ RepertoryNameID int not null , -- RepertoryNumder int not null , -- RepertoryInTime smalldatetime not null --ʱ ) - +select * from Repertory --ƷϢĻƷID alter table Repertory add constraint FK_RepertoryID_PurRqsGoodsID foreign key(RepertoryNameID) references GoodsMessage(GoodsID) @@ -93,25 +105,149 @@ create table RepertoryOutDeal -- alter table RepertoryOutDeal add constraint FK_OutRepertoryGoodsID_RepertoryNameID foreign key(OutRepertoryGoodsID) references GoodsMessage(GoodsID) -------------------------------------------------------------------------------------------- +-- +create table OrderForm +( + OrderFormID int primary key identity(1,1), --ID + RepertoryID int not null , -- ID + OrderFormNumder int not null , -- + ShippingClerkID int not null,--ԱID +CustomerID int not null ,--ID +) +--ĿID +alter table OrderForm +add constraint FK_OrderFormRepertoryID_RepertoryRepertoryID foreign key(RepertoryID) references Repertory(RepertoryID) +--ԱϢķԱIDԱID +alter table OrderForm +add constraint FK_ShippingClerkID_NameID foreign key(ShippingClerkID) references NameTable(NameID) ---------------------------------------------------------------- +--Ϣ +create table Customer +( +CustomerID int primary key identity(1,1),--ID +CustomerName nvarchar(30) not null -- +) + +--Ϣ붩ID +alter table OrderForm +add constraint FK_CustomerCustomerID_OrderFormCustomerID foreign key(CustomerID) references Customer(CustomerID) ---------------------------------------------------------------- +--ߵ绰 +create table CustomerPhoneNumberTable +( + CustomerPhoneNumberID int primary key identity(1,1) ,--ߵ绰ID + CustomerID int not null , --ID + CustomerPhoneNumber varchar(20) --ߵ绰 +) + +--ߵ绰ϢID +alter table CustomerPhoneNumberTable +add constraint FK_CustomerPhoneNumberTableCustomerID_OrderFormCustomerID foreign key(CustomerID) references Customer(CustomerID) +----------------------------------------------------------------------------------------------- +--ߵַ +create table CustomerSite +( + CustomerSiteID int primary key identity(1,1),--ߵַID + CustomerID int not null , --ID + CustomerSiteProvince int not null, --ߵַʡ + CustomerSiteTown int not null ,--ߵַУ + DetailedAddress nvarchar(50) not null --ϸַ +) + +--ߵַϢID +alter table CustomerSite +add constraint FK_CustomerPhoneNumberTableCustomerID_CustomerSiteCustomerID foreign key(CustomerID) references Customer(CustomerID) +----------------------------------------------------------------------------------------------------- +---ߵַʡ +create table Province +( + ProvinceID int primary key identity(1,1), --ʡID + ProvinceName nvarchar(20) not null --ʡ +) +--ߵַߵַʡ +alter table CustomerSite +add constraint FK_ProvinceID_CustomerSiteProvince foreign key(CustomerSiteProvince) references Province(ProvinceID) +---------------------------------------------------------------------------------- +---ߵַУ +create table Town_FuJian +( +TownID int primary key identity(1,1) , --ID +TownName nvarchar(20) not null -- +) +--ߵַߵַУ +alter table CustomerSite +add constraint FK_Town_FuJianTownID_CustomerSiteProvince foreign key(CustomerSiteProvince) references Town_FuJian(TownID) +------------------------------------------------------------------------------------- + +--Ϣ +select * from Customer +insert into Customer(CustomerName) values('СС') +insert into Customer(CustomerName) values('ׯ') +insert into Customer(CustomerName) values('̫') +insert into Customer(CustomerName) values('ҧ') +insert into Customer(CustomerName) values('ɲ') +----------------------------------------------------------------------------------------------------- +--ַʡ +select * from Province +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('㽭') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('̨') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('ɹ') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +insert into Province(ProvinceName) values('') +----------------------------------------------------------------------------------------------------- +--ַУ +select * from Town_FuJian +insert into Town_FuJian(TownName) values('') +insert into Town_FuJian(TownName) values('Ϻ') +insert into Town_FuJian(TownName) values('') +insert into Town_FuJian(TownName) values('') +insert into Town_FuJian(TownName) values('') +insert into Town_FuJian(TownName) values('') +insert into Town_FuJian(TownName) values('Ȫ') + +----------------------------------------------------------------------------------------------------- +---ע +select * from SignIn +insert into SignIn(AccountNumber,Passwords) values ('С','185555558') +insert into SignIn(AccountNumber,Passwords) values ('','152453575') +insert into SignIn(AccountNumber,Passwords) values ('','456545465') +insert into SignIn(AccountNumber,Passwords) values ('','546546564') +insert into SignIn(AccountNumber,Passwords) values ('','876877877') +insert into SignIn(AccountNumber,Passwords) values ('ŷ','213123211') +insert into SignIn(AccountNumber,Passwords) values ('','456465466') +insert into SignIn(AccountNumber,Passwords) values ('','456445488') +insert into SignIn(AccountNumber,Passwords) values ('ܲ','353535333') +insert into SignIn(AccountNumber,Passwords) values ('','343353777') +insert into SignIn(AccountNumber,Passwords) values ('С','323238833') +insert into SignIn(AccountNumber,Passwords) values ('','546354544') +insert into SignIn(AccountNumber,Passwords) values ('','543453455') + +---------------------------------------------------------------------------------------------------- ---Ա select * from NameTable -insert into NameTable(Name,PhoneNumber) values ('С','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('ŷ','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('ܲ','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('С','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') -insert into NameTable(Name,PhoneNumber) values ('','1596637558') +insert into NameTable(Name,AccountID,PhoneNumber) values ('С',1,'1596637558') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',2,'1596637557') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',3,'1596637522') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',4,'1596636456') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',5,'1596638749') +insert into NameTable(Name,AccountID,PhoneNumber) values ('ŷ',6,'1596637846') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',7,'1596637895') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',8,'1596638858') +insert into NameTable(Name,AccountID,PhoneNumber) values ('ܲ',9,'1596637645') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',10,'159663746') +insert into NameTable(Name,AccountID,PhoneNumber) values ('С',11,'1596637556') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',12,'15966375564') +insert into NameTable(Name,AccountID,PhoneNumber) values ('',13,'1596637565456') ---------------------------------- @@ -243,11 +379,37 @@ insert into RepertoryOutDeal(OutRepertoryGoodsID,Numder,RepertoryDealTime) value insert into RepertoryOutDeal(OutRepertoryGoodsID,Numder,RepertoryDealTime) values (10,399,getdate()) - - - - - +------------------------------------------------------------------------------------------------------------------ +--ߵ绰 +select * from Customer +select * from CustomerPhoneNumberTable +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (1,'18755664656') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (1,'18761665111') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (2,'18721654644') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (3,'18756546111') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (2,'18754654656') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (4,'18565454564') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (5,'18565546444') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (5,'18546543333') +insert into CustomerPhoneNumberTable(CustomerID , CustomerPhoneNumber) values (3,'18546654873') +------------------------------------------------------------------------------------------------------------------ +--ߵַ + select * from CustomerSite +insert into CustomerSite(CustomerID , CustomerSiteProvince,CustomerSiteTown , DetailedAddress) values (1,1,1,'ϪְֵҵѧԺ') + +------------------------------------------------------------------------------------------------------------------- +-- + + -- ID + -- +--ԱID +--ID +select * from OrderForm +insert into OrderForm(RepertoryID,OrderFormNumder,ShippingClerkID,CustomerID) values ( 1 , 30 ,1 , 1) +insert into OrderForm(RepertoryID,OrderFormNumder,ShippingClerkID,CustomerID) values ( 2 , 25 ,3 , 3) +insert into OrderForm(RepertoryID,OrderFormNumder,ShippingClerkID,CustomerID) values ( 3 , 55 ,1 , 5) +insert into OrderForm(RepertoryID,OrderFormNumder,ShippingClerkID,CustomerID) values ( 4 , 36 ,1 , 2) +insert into OrderForm(RepertoryID,OrderFormNumder,ShippingClerkID,CustomerID) values ( 5 , 20 ,2 , 1) select * from GoodsMessage @@ -256,4 +418,11 @@ select * from OrderGoods select * from PurRqs select * from Repertory select * from RepertoryInDeal -select * from RepertoryOutDeal \ No newline at end of file +select * from RepertoryOutDeal +select * from Customer +select * from CustomerPhoneNumberTable +select * from CustomerSite +select * from OrderForm +select * from Province +select * from Town_FuJian +select * from SignIn \ No newline at end of file