if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('Warehouse') and o.name = 'FK_WAREHOUS_RELATIONS_USERS')
alter table Warehouse
drop constraint FK_WAREHOUS_RELATIONS_USERS
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('Warehouse') and o.name = 'FK_WAREHOUS_RELATIONS_GOODS')
alter table Warehouse
drop constraint FK_WAREHOUS_RELATIONS_GOODS
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('WarehouseLoging') and o.name = 'FK_WAREHOUS_RELATIONS_USERS')
alter table WarehouseLoging
drop constraint FK_WAREHOUS_RELATIONS_USERS
go
if exists (select 1
from sys.sysreferences r join sys.sysobjects o on (o.id = r.constid and o.type = 'F')
where r.fkeyid = object_id('WarehouseLoging') and o.name = 'FK_WAREHOUS_RELATIONS_GOODS')
alter table WarehouseLoging
drop constraint FK_WAREHOUS_RELATIONS_GOODS
go
if exists (select 1
from sysobjects
where id = object_id('Goods')
and type = 'U')
drop table Goods
go
if exists (select 1
from sysobjects
where id = object_id('PrintSettings')
and type = 'U')
drop table PrintSettings
go
if exists (select 1
from sysobjects
where id = object_id('Users')
and type = 'U')
drop table Users
go
if exists (select 1
from sysindexes
where id = object_id('Warehouse')
and name = 'Relationship_2_FK'
and indid > 0
and indid < 255)
drop index Warehouse.Relationship_2_FK
go
if exists (select 1
from sysindexes
where id = object_id('Warehouse')
and name = 'Relationship_1_FK'
and indid > 0
and indid < 255)
drop index Warehouse.Relationship_1_FK
go
if exists (select 1
from sysobjects
where id = object_id('Warehouse')
and type = 'U')
drop table Warehouse
go
if exists (select 1
from sysindexes
where id = object_id('WarehouseLoging')
and name = 'Relationship_4_FK'
and indid > 0
and indid < 255)
drop index WarehouseLoging.Relationship_4_FK
go
if exists (select 1
from sysindexes
where id = object_id('WarehouseLoging')
and name = 'Relationship_3_FK'
and indid > 0
and indid < 255)
drop index WarehouseLoging.Relationship_3_FK
go
if exists (select 1
from sysobjects
where id = object_id('WarehouseLoging')
and type = 'U')
drop table WarehouseLoging
go
/*==============================================================*/
/* Table: Goods */
/*==============================================================*/
create table Goods (
gid int identity,
gcode varchar(50) null,
gname varchar(100) null,
"from" varchar(100) null,
specifications varchar(50) null,
batchNumber varchar(50) null,
unit varchar(50) null,
price decimal(2) null,
endTime datetime null,
remark varchar(200) null,
constraint PK_GOODS primary key (gid)
)
go
/*==============================================================*/
/* Table: PrintSettings */
/*==============================================================*/
create table PrintSettings (
pid int identity,
title varchar(50) null,
pleft int null,
ptop int null,
ptype varchar(20) null,
pagewidth int null,
pageheight int null,
constraint PK_PRINTSETTINGS primary key (pid)
)
go
/*==============================================================*/
/* Table: Users */
/*==============================================================*/
create table Users (
uid int identity,
uname varchar(200) null,
upassword varchar(200) null,
constraint PK_USERS primary key (uid)
)
go
/*==============================================================*/
/* Table: Warehouse */
/*==============================================================*/
create table Warehouse (
gcount int null,
inTime datetime null,
id int identity,
uid int null,
gid int null,
pageNum varchar(50) null,
constraint PK_WAREHOUSE primary key nonclustered (id)
)
go
/*==============================================================*/
/* Index: Relationship_1_FK */
/*==============================================================*/
create nonclustered index Relationship_1_FK on Warehouse (uid ASC)
go
/*==============================================================*/
/* Index: Relationship_2_FK */
/*==============================================================*/
create nonclustered index Relationship_2_FK on Warehouse (gid ASC)
go
/*==============================================================*/
/* Table: WarehouseLoging */
/*==============================================================*/
create table WarehouseLoging (
gcount int null,
wtype int null,
createTime datetime null,
currGCount int null,
printNum int null,
remark varchar(200) null,
id int identity,
uid int null,
gid int null,
constraint PK_WAREHOUSELOGING primary key nonclustered (id)
)
go
/*==============================================================*/
/* Index: Relationship_3_FK */
/*==============================================================*/
create nonclustered index Relationship_3_FK on WarehouseLoging (uid ASC)
go
/*==============================================================*/
/* Index: Relationship_4_FK */
/*==============================================================*/
create nonclustered index Relationship_4_FK on WarehouseLoging (gid ASC)
go
alter table Warehouse
add constraint FK_WAREHOUS_RELATIONS_USERS foreign key (uid)
references Users (uid)
go
alter table Warehouse
add constraint FK_WAREHOUS_RELATIONS_GOODS foreign key (gid)
references Goods (gid)
go
alter table WarehouseLoging
add constraint FK_WAREHOUS_RELATIONS_USERS foreign key (uid)
references Users (uid)
go
alter table WarehouseLoging
add constraint FK_WAREHOUS_RELATIONS_GOODS foreign key (gid)
references Goods (gid)
go
没有合适的资源?快使用搜索试试~ 我知道了~
MF00889- ASP.NET简易库存管理源码.zip
共106个文件
cs:36个
resx:14个
resources:14个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 87 浏览量
2023-09-18
16:03:36
上传
评论
收藏 1.11MB ZIP 举报
温馨提示
MF00889- ASP.NET简易库存管理源码
资源推荐
资源详情
资源评论
收起资源包目录
MF00889- ASP.NET简易库存管理源码.zip (106个子文件)
InvoicingDB.BAK 3.4MB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
Invoicing.csprojResolveAssemblyReference.cache 2KB
Invoicing.csproj.GenerateResource.cache 946B
DesignTimeResolveAssemblyReferences.cache 411B
Invoicing.csproj.CoreCompileInputs.cache 42B
Invoicing.csproj.AssemblyReference.cache 11B
Invoicing.cdb 75KB
Invoicing.cdm 75KB
app.config 433B
Invoicing.vshost.exe.config 433B
Invoicing.exe.config 433B
DB.designer.cs 34KB
PrintSetting.Designer.cs 32KB
GoodsOut.Designer.cs 30KB
PrintPages.cs 30KB
QuickGoodsIn.Designer.cs 24KB
PrintSetting.cs 16KB
WarehouseList.Designer.cs 15KB
GoodsOut.cs 14KB
Init.Designer.cs 13KB
Init.Designer.cs 12KB
Add.Designer.cs 11KB
QuickGoodsIn.cs 11KB
GoodsIn.Designer.cs 9KB
Main.Designer.cs 8KB
WarehouseLog.Designer.cs 6KB
Init.cs 6KB
Login.Designer.cs 5KB
WarehouseList.cs 5KB
Add.cs 5KB
Init.Designer.cs 4KB
tablePrint.cs 4KB
Init.cs 4KB
PrintDocuments.Designer.cs 3KB
Resources.Designer.cs 3KB
Main.cs 2KB
Login.cs 2KB
Settings.Designer.cs 2KB
WarehouseLog.cs 2KB
PrintDocuments.cs 1KB
AssemblyInfo.cs 1KB
Global.cs 769B
Program.cs 490B
GoodsIn.cs 376B
Init.cs 370B
PrintCode.cs 302B
.NETFramework,Version=v4.0.AssemblyAttributes.cs 208B
Invoicing.csproj 9KB
DB.dbml 5KB
DB.designer.cs.dll 22KB
Invoicing.exe 448KB
Invoicing.exe 448KB
Invoicing.vshost.exe 22KB
logo.ico 66KB
DB.dbml.layout 4KB
Invoicing.vshost.exe.manifest 490B
Invoicing.pdb 204KB
Invoicing.pdb 204KB
Invoicing.pdb 91KB
Invoicing.pdm 91KB
Invoicing.GoodsMgr.Add.resources 22KB
Invoicing.GoodsMgr.Init.resources 22KB
Invoicing.PrintModel.PrintSetting.resources 22KB
Invoicing.Main.resources 22KB
Invoicing.WarehouseMgr.GoodsOut.resources 22KB
Invoicing.WarehouseMgr.GoodsIn.resources 22KB
Invoicing.PrintModel.PrintDocuments.resources 22KB
Invoicing.WarehouseMgr.QuickGoodsIn.resources 22KB
Invoicing.UserMgr.Init.resources 22KB
Invoicing.WarehouseMgr.WarehouseList.resources 22KB
Invoicing.Login.resources 22KB
Invoicing.WarehouseMgr.WarehouseLog.resources 22KB
Invoicing.Properties.Resources.resources 180B
Invoicing.WarehouseMgr.Init.resources 180B
GoodsOut.resx 40KB
Init.resx 40KB
QuickGoodsIn.resx 39KB
WarehouseList.resx 39KB
WarehouseLog.resx 39KB
Init.resx 38KB
PrintSetting.resx 38KB
Main.resx 38KB
Login.resx 38KB
PrintDocuments.resx 38KB
GoodsIn.resx 38KB
Add.resx 38KB
Init.resx 6KB
Resources.resx 5KB
Settings.settings 1KB
Invoicing.sln 917B
Invoicing.v11.suo 96KB
Workspace.sws 888B
I_sqlserver_code.txt 8KB
Invoicing.csproj.FileListAbsolute.txt 6KB
免责声明.txt 654B
源码说明.txt 609B
列表各项宽度.txt 41B
底部文字.txt 13B
账号密码.txt 13B
共 106 条
- 1
- 2
资源评论
jane9872
- 粉丝: 89
- 资源: 7719
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功