You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
132 lines
5.0 KiB
Transact-SQL
132 lines
5.0 KiB
Transact-SQL
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/* 进口信息表*/
|
|
CREATE TABLE [dbo].[op_bs](
|
|
[BSNO] [varchar](100) NOT NULL, /*BSNO */
|
|
[MBLNO] [varchar](30) NULL, /*主提单号 */
|
|
[HBLNO] [varchar](30) NULL, /*分提单号 */
|
|
[BSDATE] [smalldatetime] NULL, /*录入日期 */
|
|
[INPUTBY] [varchar](10) NULL, /*录入人*/
|
|
[OP] [varchar](10) NULL, /*操作员*/
|
|
[VESSEL] [varchar](60) NULL, /*船名*/
|
|
[VOYNO] [varchar](12) NULL, /*航次*/
|
|
[ETD] [datetime] NULL, /*开船日期*/
|
|
[ETA] [datetime] NULL, /*到港日期*/
|
|
[PORTLOAD] [varchar](60) NULL, /*起运港*/
|
|
[COUNTRYLOAD] [varchar](60) NULL, /*起运国*/
|
|
[WAREHOUSE] [varchar](60) NULL, /*所在仓库*/
|
|
[PORTDISCHARGE] [varchar](60) NULL, /*卸货港*/
|
|
[GOODCREPATH] [varchar](500) NULL)
|
|
|
|
GO
|
|
|
|
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/* 进口商品明细*/
|
|
drop table [OP_BS_GOODS]
|
|
CREATE TABLE [dbo].[OP_BS_GOODS](
|
|
[GOODS_GID] [varchar](100) NOT NULL, /*GID */
|
|
[BSNO] [varchar](100) NOT NULL, /*BSNO */
|
|
[PKGS] int Null, /*件数*/
|
|
[CODEGOODSID] [varchar](100) NULL, /*商品ID*/
|
|
[WAREHOUSEDATE] [datetime] NULL, /*入库时间*/
|
|
[DELIVERYDATE] [datetime] NULL, /*提货时间*/
|
|
CONSTRAINT [PK_OP_BS_GOODS] PRIMARY KEY CLUSTERED
|
|
(
|
|
[GOODS_GID] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
|
|
GO
|
|
|
|
|
|
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
drop table [OP_GOOD_ID]
|
|
/* 商品识别码明细*/
|
|
CREATE TABLE [dbo].[OP_GOOD_ID](
|
|
[GID] [varchar](100) NOT NULL, /*GID */
|
|
[GOODS_GID] [varchar](100) NOT NULL, /*商品明细GID */
|
|
[BSNO] [varchar](100) NOT NULL, /*BSNO */
|
|
[GOODS_IDCODE] [varchar](100) NULL, /*商品识别码*/
|
|
[QUERYCOUNT] [int] NULL, /*查询次数*/
|
|
[CREATETIME] datetime default getdate(),
|
|
[DelFlag] int default 0
|
|
CONSTRAINT [PK_OP_GOOD_ID] PRIMARY KEY CLUSTERED
|
|
(
|
|
[GID] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
|
|
GO
|
|
|
|
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
SET ANSI_PADDING ON
|
|
GO
|
|
/* 商品信息表*/
|
|
select *from code_goods
|
|
drop table [code_goods]
|
|
CREATE TABLE [dbo].[code_goods](
|
|
[GID] [varchar](36) NOT NULL,
|
|
[GOODCODE] [varchar](30) NULL, /*商品代码*/
|
|
[DESCRIP] [varchar](200) NULL,/*商品描述*/
|
|
[GOODSNAME] [varchar](60) NULL, /*商品名称*/
|
|
[GOODSFULLNAME] [varchar](60) NULL, /*商品全称*/
|
|
[GOODCOUNTRY] [varchar](60) NULL, /*商品原产国*/
|
|
[GOODSMODEL] [varchar](100) NULL, /*规格型号*/
|
|
[IMGPATH] [varchar](100) NULL, /*商品图片路径*/
|
|
CONSTRAINT [PK_t_code_goods] PRIMARY KEY CLUSTERED
|
|
(
|
|
[GID] ASC
|
|
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
|
|
) ON [PRIMARY]
|
|
|
|
GO
|
|
|
|
select * from sys_module where DESCRIPTION like '%仓储%'
|
|
delete from sys_module where gid = '23231111-C3A8-46D4-9FE4-746A805244B4'
|
|
insert into sys_module values ('23231111-C3A8-46D4-9FE4-746A805244B4','JinKouXinXiGuanLi','进口信息管理','MvcShipping/JinKouSuYuan','Module.gif','0','1','F7412279-275F-452F-9D45-08951F63C314','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-23 09:57:35.997',NULL,NULL,'0','0','')
|
|
delete from action where gid = '1211FB1D-D836-459B-B44B-611D28C28177'
|
|
insert into action values ('1211FB1D-D836-459B-B44B-611D28C28177','JinKouXinXiGuanLi','进口信息管理','23231111-C3A8-46D4-9FE4-746A805244B4','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-18 09:35:56.040',NULL,'2017-12-18 09:35:56.040','0','0')
|
|
|
|
delete from sys_module where gid = 'D3231111-C3A8-46D4-9FE4-746A805244B4'
|
|
insert into sys_module values ('D3231111-C3A8-46D4-9FE4-746A805244B4','ShiBieMaGuanLi','识别码管理','MvcShipping/JinKouSuYuan_ShiBieMa','Module.gif','0','2','F7412279-275F-452F-9D45-08951F63C314','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-23 09:57:35.997',NULL,NULL,'0','0','')
|
|
delete from action where gid = 'D211FB1D-D836-459B-B44B-611D28C28177'
|
|
insert into action values ('D211FB1D-D836-459B-B44B-611D28C28177','ShiBieMaGuanLi','识别码管理','D3231111-C3A8-46D4-9FE4-746A805244B4','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-18 09:35:56.040',NULL,'2017-12-18 09:35:56.040','0','0')
|
|
|
|
delete from sys_module where gid = 'C3231111-C3A8-46D4-9FE4-746A805244B4'
|
|
insert into sys_module values ('C3231111-C3A8-46D4-9FE4-746A805244B4','ShangPinGuanLi','商品管理','MvcShipping/JinKouSuYuan_ShangPin','Module.gif','0','2','F7412279-275F-452F-9D45-08951F63C314','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-23 09:57:35.997',NULL,NULL,'0','0','')
|
|
delete from action where gid = 'C211FB1D-D836-459B-B44B-611D28C28177'
|
|
insert into action values ('C211FB1D-D836-459B-B44B-611D28C28177','ShangPinGuanLi','商品管理','C3231111-C3A8-46D4-9FE4-746A805244B4','1BEC90E1-9780-472F-90C2-0C6390C044A4','2017-12-18 09:35:56.040',NULL,'2017-12-18 09:35:56.040','0','0')
|
|
|
|
select *from sys_module where PARENTID = 'CD9B7410-3891-4672-8FB7-1260750179BD'
|
|
|
|
select *from sys_module where DESCRIPTION like '%系统%'
|
|
|