CREATE TABLE [dbo].[xs_pos_zw_link] ([lx] [varchar] (2) NOT NULL ,[lsh] [varchar] (16) NOT NULL ,[zwnm] [varchar] (15) NOT NULL ,[zwbm] [varchar] (10) NULL ,[zwmc] [varchar] (40) NULL ,[lab] [char] (1) NULL,[xfje] [numeric](18, 3) NULL ,[xsdlsh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[bhanddown] ([num] [numeric](18, 0) NOT NULL ,[place] [numeric](18, 0) NOT NULL ,[tmp1] [varchar] (50) NOT NULL ,[tmp2] [varchar] (50) NOT NULL ,[tmp3] [varchar] (50) NOT NULL ,[tmp4] [varchar] (50) NOT NULL ,[tmp5] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[bonline] ([autoid] [numeric](18, 0) IDENTITY (1, 1) NOT NULL ,[state] [int] NOT NULL ,[flag] [int] NOT NULL ,[tmp1] [varchar] (50) NOT NULL ,[tmp2] [varchar] (50) NOT NULL ,[tmp3] [varchar] (50) NOT NULL ,[tmp4] [varchar] (50) NOT NULL ,[tmp5] [varchar] (50) NOT NULL ,[tmp6] [varchar] (50) NOT NULL ,[tmp7] [varchar] (50) NOT NULL ,[tmp8] [varchar] (100) NOT NULL ,[tmp9] [varchar] (50) NOT NULL ,[tmp10] [varchar] (50) NOT NULL ,[tmp11] [varchar] (50) NOT NULL ,[tmp12] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[breceset] ([autoid] [int] IDENTITY (1, 1) NOT NULL ,[receno] [int] NOT NULL ,[handstart] [int] NOT NULL ,[handnums] [int] NOT NULL ,[nonums] [int] NOT NULL ,[nousestr] [varchar] (100) NOT NULL ,[systag] [int] NOT NULL ,[tmp1] [int] NOT NULL ,[tmp2] [int] NOT NULL ,[tmp3] [int] NOT NULL ,[tmp4] [int] NOT NULL ,[tmp5] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[bsysset] ([autoid] [int] IDENTITY (1, 1) NOT NULL ,[sysid] [int] NOT NULL ,[handstartnum] [int] NOT NULL ,[handnums] [int] NOT NULL ,[recestartnum] [int] NOT NULL ,[recenums] [int] NOT NULL ,[tmp1] [int] NOT NULL ,[tmp2] [int] NOT NULL ,[tmp3] [int] NOT NULL ,[tmp4] [int] NOT NULL ,[tmp5] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx] ([lsh] [varchar] (50) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[nm] [varchar] (18) NULL ,[dsl] [numeric](18, 3) NULL ,[sl] [numeric](18, 3) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[zxdj] [numeric](10, 3) NULL ,[ckh] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[jlgl] [numeric](15, 3) NULL ,[shrq] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_jb] ([lsh] [varchar] (15) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[dbr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[jsr] [varchar] (10) NULL ,[zje] [decimal](18, 3) NULL ,[shrq] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_jb_temp] ([lsh] [varchar] (15) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[dbr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[jsr] [varchar] (10) NULL ,[zje] [decimal](18, 3) NULL ,[shrq] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_temp] ([lsh] [varchar] (50) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (50) NULL ,[nm] [varchar] (18) NULL ,[dsl] [numeric](18, 3) NULL ,[sl] [numeric](15, 3) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[zxdj] [numeric](10, 3) NULL ,[ckh] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[jlgl] [numeric](15, 3) NULL ,[shrq] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_csh] ([lsh] [varchar] (50) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[nm] [varchar] (18) NULL ,[dsl] [numeric](18, 3) NULL ,[sl] [numeric](18, 3) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[zxdj] [numeric](10, 3) NULL ,[ckh] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[jlgl] [numeric](15, 3) NULL ,[shrq] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_jb_csh] ([lsh] [varchar] (15) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[dbr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[jsr] [varchar] (10) NULL ,[zje] [decimal](18, 3) NULL ,[shrq] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_jb_csh_temp] ([lsh] [varchar] (15) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[dbr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[jsr] [varchar] (10) NULL ,[zje] [decimal](18, 3) NULL ,[shrq] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmdbxx_csh_temp] ([lsh] [varchar] (50) NOT NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (50) NULL ,[nm] [varchar] (18) NULL ,[dsl] [numeric](18, 3) NULL ,[sl] [numeric](15, 3) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[zxdj] [numeric](10, 3) NULL ,[ckh] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[jlgl] [numeric](15, 3) NULL ,[shrq] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmdbxx_csh] WITH NOCHECK ADD CONSTRAINT [PK_ck_bmdbxx_csh] PRIMARY KEY  NONCLUSTERED ([lsh])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[ck_bmdbxx_jb_csh] WITH NOCHECK ADD CONSTRAINT [DF_ck_bmdbxx_jb_csh_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_bmdbxx_jb_csh] PRIMARY KEY  NONCLUSTERED ([lsh])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[ck_bmdbxx_jb_csh_temp] WITH NOCHECK ADD 	CONSTRAINT [DF_ck_bmdbxx_jb_csh_temp_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_bmdbxx_jb_csh_temp] PRIMARY KEY  NONCLUSTERED ([lsh])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[ck_bmdbxx_csh_temp] WITH NOCHECK ADD CONSTRAINT [PK_ck_bmdbxx_csh_temp] PRIMARY KEY  NONCLUSTERED ([lsh])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[ck_bmkcpd] ([lsh] [varchar] (50) NOT NULL ,[bmnm] [varchar] (10) NOT NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (20) NULL ,[nm] [varchar] (18) NOT NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[qckc] [numeric](15, 3) NULL ,[dbrk] [numeric](15, 3) NULL ,[dbck] [numeric](15, 3) NULL ,[xsck] [numeric](18, 3) NULL ,[qmkc] [numeric](15, 3) NULL ,[sy] [numeric](15, 3) NULL ,[syyy] [varchar] (255) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (50) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shf] [char] (1) NULL ,[zsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[dj] [numeric](18, 3) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmkcpd_jb] ([lsh] [varchar] (50) NOT NULL ,[czy] [varchar] (50) NULL ,[pzr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (50) NULL ,[jzrq] [varchar] (50) NULL ,[shf] [char] (1) NULL,[cbje] [numeric] (18,2) NULL,[xsje] [numeric] (18,2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_bmkcxx] ([bmnm] [varchar] (10) NOT NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (50) NULL ,[nm] [varchar] (18) NOT NULL ,[dsl] [numeric](18, 3) NULL ,[sl] [numeric](15, 3) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NOT NULL ,[zxdj] [numeric](15, 3) NOT NULL ,[ckh] [varchar] (10) NOT NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (10) NULL ,[jlgl] [numeric](15, 3) NULL ,[shrq] [varchar] (50) NULL ,[gg] [varchar] (50) NOT NULL ,[zsf] [char] (1) NOT NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckjz_jb] ([lsh] [varchar] (50) NOT NULL ,[czy] [varchar] (50) NULL ,[pkr] [varchar] (50) NULL ,[ckh] [varchar] (50) NULL ,[jzrq] [varchar] (50) NULL,[cbje] [numeric](18,2) null,[xsje] [numeric](18,2) null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckjz_jb_temp] ([lsh] [varchar] (50) NOT NULL ,[czy] [varchar] (50) NULL ,[pkr] [varchar] (50) NULL ,[ckh] [varchar] (50) NULL ,[jzrq] [varchar] (50) NULL,[cbje] [numeric](18,2) null,[xsje] [numeric](18,2) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckjz_sy] ([lsh] [varchar] (50) NOT NULL ,[jzrq] [varchar] (50) NULL ,[spnm] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[hsgx] [numeric](18, 3) NULL ,[ckh] [varchar] (50) NULL ,[zxdj] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[xdw] [varchar] (50) NULL ,[qckc] [decimal](18, 3) NULL ,[sprk] [decimal](18, 3) NULL ,[spck] [decimal](18, 3) NULL ,[qmkc] [decimal](18, 3) NULL ,[sykc] [decimal](18, 3) NULL ,[syyy] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckjz_xx] ([lsh] [varchar] (50) NOT NULL ,[jzrq] [varchar] (50) NULL ,[spnm] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[hsgx] [numeric](18, 3) NULL ,[ckh] [varchar] (50) NULL ,[zxdj] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[xdw] [varchar] (50) NULL ,[qckc] [decimal](18, 3) NULL ,[sprk] [decimal](18, 3) NULL ,[spck] [decimal](18, 3) NULL ,[qmkc] [decimal](18, 3) NULL ,[sykc] [decimal](18, 3) NULL ,[syyy] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckjz_xx_temp] ([lsh] [varchar] (50) NOT NULL ,[jzrq] [varchar] (50) NULL ,[spnm] [varchar] (50) NULL ,[gg] [varchar] (50) NULL ,[hsgx] [numeric](18, 3) NULL ,[ckh] [varchar] (50) NULL ,[zxdj] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[xdw] [varchar] (50) NULL ,[qckc] [decimal](18, 3) NULL ,[sprk] [decimal](18, 3) NULL ,[spck] [decimal](18, 3) NULL ,[qmkc] [decimal](18, 3) NULL ,[sykc] [decimal](18, 3) NULL ,[syyy] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_ckxx] ([bm] [varchar] (2) NOT NULL ,[mc] [varchar] (50) NULL ,[syf] [char] (1) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_dpda] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[lb] [varchar] (20) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [decimal](18, 0) NULL ,[ckh] [varchar] (2) NULL ,[kcsx] [numeric](10, 2) NULL ,[kcxx] [numeric](10, 2) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](18, 3) NULL ,[gg] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_dplb] ([nm] [varchar] (4) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (20) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_gys] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (50) NULL ,[zjm] [varchar] (50) NULL ,[dz] [varchar] (100) NULL ,[lxr] [varchar] (50) NULL ,[dh] [varchar] (50) NULL ,[cz] [varchar] (50) NULL ,[khh] [varchar] (50) NULL ,[khzh] [varchar] (50) NULL ,[swdjh] [varchar] (50) NULL ,[bz] [varchar] (255) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_gys_lb] ([nm] [varchar] (4) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_gys_qk_list] ([lsh] [varchar] (50) NOT NULL ,[gysnm] [varchar] (50) NULL ,[gysbm] [varchar] (50) NULL ,[gysmc] [varchar] (50) NULL ,[zje] [decimal](18, 3) NULL ,[yfje] [decimal](18, 3) NULL ,[sqk] [decimal](18, 3) NULL ,[jqf] [char] (1) NULL ,[shrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_maxlsh] ([posbm] [varchar] (50) NULL ,[lx] [char] (1) NULL ,[maxlsh] [varchar] (50) NULL ,[rq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spcgd] ([lsh] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NULL ,[ckh] [varchar] (50) NULL ,[dsl] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[sl] [numeric](18, 3) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[dj] [numeric](10, 3) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spcgd_jb] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (50) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[shuilv] [numeric](15, 3) NULL ,[zje] [numeric](15, 3) NULL ,[yfje] [numeric](15, 3) NULL ,[sfje] [numeric](15, 3) NULL ,[jsr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shr1] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[bz] [varchar] (255) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[pzr] [varchar] (50) NULL ,[pzf] [char] (1) NULL ,[zxf] [char] (1) NULL ,[auto] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spdw] ([mc] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spkcpd] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (18) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[lb] [varchar] (20) NULL ,[ckh] [varchar] (2) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [varchar] (20) NULL ,[rksj] [varchar] (8) NULL ,[kcsl] [numeric](15, 3) NULL ,[kcje] [numeric](15, 3) NULL ,[pdsl] [numeric](15, 3) NULL ,[pdje] [numeric](15, 3) NULL ,[sysl] [numeric](15, 3) NULL ,[syje] [numeric](15, 3) NULL ,[syyy] [varchar] (255) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[rl] [numeric](15, 3) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spkcpd_jb] ([lsh] [varchar] (50) NOT NULL ,[zbr] [varchar] (50) NULL ,[pdr] [varchar] (50) NULL ,[shr] [varchar] (50) NULL ,[shf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spkcpd_jb_temp] ([lsh] [varchar] (50) NOT NULL ,[zbr] [varchar] (50) NULL ,[pdr] [varchar] (50) NULL ,[shr] [varchar] (50) NULL ,[shf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spkcpd_temp] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (18) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[lb] [varchar] (20) NULL ,[ckh] [varchar] (2) NULL ,[ddw] [varchar] (10) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [varchar] (20) NULL ,[rksj] [varchar] (8) NULL ,[kcsl] [numeric](15, 3) NULL ,[kcje] [numeric](15, 3) NULL ,[pdsl] [numeric](15, 3) NULL ,[pdje] [numeric](15, 3) NULL ,[sysl] [numeric](15, 3) NULL ,[syje] [numeric](15, 3) NULL ,[syyy] [varchar] (255) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (8) NULL ,[rl] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spkcxx] ([nm] [varchar] (18) NOT NULL ,[shrq] [varchar] (50) NULL ,[dsl] [numeric](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[sl] [decimal](18, 3) NULL ,[xdw] [varchar] (50) NULL ,[hsgx] [numeric](18, 3) NOT NULL ,[kcje] [numeric](18, 3) NULL ,[zxdj] [numeric](10, 3) NOT NULL ,[ckh] [varchar] (2) NOT NULL ,[zjm] [varchar] (20) NULL ,[yhf] [char] (1) NULL ,[yxq] [varchar] (10) NULL ,[jlgl] [numeric](15, 4) NULL ,[gg] [varchar] (50) NOT NULL ,[zsf] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_splxb] ([lsh] [varchar] (8) NOT NULL ,[nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (50) NULL ,[lbnm] [varchar] (10) NULL ,[lbbm] [varchar] (10) NULL ,[lbmc] [varchar] (50) NULL ,[rksl] [numeric](15, 2) NULL ,[rkje] [numeric](15, 2) NULL ,[cksl] [numeric](15, 2) NULL ,[ckje] [numeric](15, 2) NULL ,[dbsl] [numeric](15, 2) NULL ,[dbje] [numeric](15, 2) NULL ,[tdsl] [numeric](15, 2) NULL ,[tdje] [numeric](15, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd] ([lsh] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NULL ,[ckh] [varchar] (50) NULL ,[dsl] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[sl] [numeric](18, 3) NULL ,[xdw] [varchar] (10) NULL ,[hsgx] [numeric](18, 0) NULL ,[dj] [numeric](10, 3) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[yxq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_csh] ([lsh] [varchar] (50) NOT NULL ,[nm] [varchar] (10) NULL ,[ckh] [varchar] (50) NULL ,[dsl] [decimal](18, 3) NULL ,[ddw] [varchar] (10) NULL ,[sl] [numeric](18, 3) NULL ,[xdw] [varchar] (50) NULL ,[hsgx] [numeric](18, 0) NULL ,[dj] [numeric](18, 3) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[yxq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_csh_temp] ([lsh] [varchar] (50) NOT NULL ,[nm] [varchar] (10) NULL ,[ckh] [varchar] (2) NULL ,[dsl] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[sl] [numeric](18, 3) NULL ,[xdw] [varchar] (50) NULL ,[hsgx] [numeric](18, 0) NULL ,[dj] [numeric](18, 3) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[yxq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_jb] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (50) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[shuilv] [numeric](15, 3) NULL ,[zje] [numeric](15, 3) NULL ,[yfje] [numeric](15, 3) NULL ,[sfje] [numeric](15, 3) NULL ,[jsr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shr1] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[bz] [varchar] (255) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[sgdh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_jb_csh] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (50) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[shuilv] [numeric](15, 3) NULL ,[zje] [numeric](15, 3) NULL ,[yfje] [numeric](15, 3) NULL ,[sfje] [numeric](15, 3) NULL ,[jsr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shr1] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[bz] [varchar] (255) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_jb_csh_temp] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (50) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[shuilv] [numeric](15, 3) NULL ,[zje] [numeric](15, 3) NULL ,[yfje] [numeric](15, 3) NULL ,[sfje] [numeric](15, 3) NULL ,[jsr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shr1] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[bz] [varchar] (255) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_jb_temp] ([lsh] [varchar] (15) NOT NULL ,[nm] [varchar] (50) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[shuilv] [numeric](15, 3) NULL ,[zje] [numeric](15, 3) NULL ,[yfje] [numeric](15, 3) NULL ,[sfje] [numeric](15, 3) NULL ,[jsr] [varchar] (10) NULL ,[shr] [varchar] (10) NULL ,[shr1] [varchar] (10) NULL ,[shf] [char] (1) NULL ,[bz] [varchar] (255) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[sgdh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_sprkd_temp] ([lsh] [varchar] (50) NOT NULL ,[nm] [varchar] (10) NULL ,[ckh] [varchar] (2) NULL ,[dsl] [decimal](18, 3) NULL ,[ddw] [varchar] (50) NULL ,[sl] [numeric](18, 3) NULL ,[xdw] [varchar] (50) NULL ,[hsgx] [numeric](18, 0) NULL ,[dj] [numeric](18, 3) NULL ,[yhf] [char] (1) NULL ,[jlgl] [numeric](15, 3) NULL ,[gg] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL ,[zsf] [char] (1) NULL ,[yxq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spxs] ([xsrq] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (50) NULL ,[nm] [varchar] (50) NULL ,[xdw] [varchar] (50) NULL ,[hsgx] [numeric](18, 0) NULL ,[yhf] [char] (10) NULL ,[yxq] [varchar] (50) NULL ,[jlgl] [numeric](18, 3) NULL ,[gg] [varchar] (50) NULL ,[zsf] [char] (10) NULL ,[posbm] [varchar] (50) NULL ,[dj] [numeric](18, 3) NULL ,[xssl] [numeric](18, 3) NULL ,[xsje] [numeric](18, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_spzbdjl] ([id] [int] IDENTITY (1, 1) NOT NULL ,[rkdlsh] [varchar] (50) NULL ,[dbdlsh] [varchar] (50) NULL ,[gysnm] [varchar] (50) NULL ,[gysbm] [varchar] (50) NULL ,[gysmc] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (50) NULL ,[zje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ck_gys_zxdj] ([id] [int] IDENTITY (1, 1) NOT NULL ,[gysnm] [char] (10) NULL ,[spnm] [char] (10) NULL ,[zxdj] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_gys_zxdj] WITH NOCHECK ADD CONSTRAINT [PK_ck_gys_zxdj] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[cw_kjpkjrydm] ([kjrydm] [char] (6) NOT NULL ,[kjryxm] [char] (1) NOT NULL ,[xb] [char] (1) NOT NULL ,[csrq] [datetime] NOT NULL ,[mzdm] [char] (2) NOT NULL ,[zzmmdm] [char] (2) NOT NULL ,[rbrq] [datetime] NOT NULL ,[bmdm] [char] (6) NOT NULL ,[ksdm] [char] (2) NOT NULL ,[xldm] [char] (2) NOT NULL ,[xwdm] [char] (2) NOT NULL ,[byrq] [datetime] NOT NULL ,[zcdm] [char] (2) NOT NULL ,[zcrzrq] [datetime] NOT NULL ,[zwdm] [char] (2) NOT NULL ,[zwrzrq] [datetime] NOT NULL ,[cjgzrq] [datetime] NOT NULL ,[cskjrq] [datetime] NOT NULL ,[is_px] [char] (1) NOT NULL ,[kjzbh] [char] (20) NOT NULL ,[kjzlqrq] [datetime] NOT NULL ,[is_ygdg] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpksdm] ([bmdm] [char] (6) NOT NULL ,[ksdm] [char] (2) NOT NULL ,[ksmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpmzdm] ([mzdm] [char] (2) NOT NULL ,[mzmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpxldm] ([xldm] [char] (2) NOT NULL ,[xlmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpxwdm] ([xwdm] [char] (2) NOT NULL ,[xwmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpzcdm] ([zcdm] [char] (2) NOT NULL ,[zcmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpzwdm] ([zwdm] [char] (2) NOT NULL ,[zwmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_kjpzzmmdm] ([zzmmdm] [char] (2) NOT NULL ,[zzmmmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_pquery] ([db_name] [char] (30) NOT NULL ,[fld_id] [char] (100) NOT NULL ,[fld_name] [char] (40) NOT NULL ,[fld_type] [char] (1) NOT NULL ,[fld_prompt] [char] (250) NOT NULL ,[condition_example] [char] (250) NOT NULL ,[xh] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_pquery_field] ([db_name] [char] (30) NOT NULL ,[xh] [int] NOT NULL ,[fld_id] [char] (100) NOT NULL ,[fld_alias] [char] (10) NOT NULL ,[fld_name] [char] (30) NOT NULL ,[xz] [char] (1) NOT NULL ,[px] [char] (1) NOT NULL ,[fld_width] [numeric](6, 0) NOT NULL ,[is_sum] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_pquery_sjz] ([db_name] [char] (30) NOT NULL ,[tjmc] [char] (60) NOT NULL ,[tjxh] [int] NOT NULL ,[fld_id] [char] (30) NOT NULL ,[opr_id] [char] (6) NOT NULL ,[fld_val] [char] (100) NOT NULL ,[log_id] [char] (6) NOT NULL ,[fld_type] [char] (1) NOT NULL ,[fld_name] [char] (30) NOT NULL ,[opr_name] [char] (20) NOT NULL ,[log_name] [char] (20) NOT NULL ,[fld_valmc] [char] (100) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhdfdwzd] ([dfdwdm] [char] (20) NOT NULL ,[dfdwmc] [varchar] (255) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhdyjg] ([dybh] [char] (3) NOT NULL ,[zdbh] [varchar] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhkhhzd] ([yhzh] [varchar] (40) NOT NULL ,[yhmc] [varchar] (255) NOT NULL ,[dwmc] [varchar] (255) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhpjgsdy] ([dybh] [char] (3) NOT NULL ,[dymc] [varchar] (60) NOT NULL ,[pjlxbh] [char] (2) NOT NULL ,[dyyg] [int] NOT NULL ,[dyyk] [int] NOT NULL ,[dybs] [int] NOT NULL ,[dywj] [varchar] (255) NOT NULL ,[dywt] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhpjgszd] ([pjlxbh] [char] (2) NOT NULL ,[zdbh] [varchar] (20) NOT NULL ,[zdmc] [varchar] (60) NOT NULL ,[sjlx] [char] (1) NOT NULL ,[xsws] [int] NOT NULL ,[zdlx] [char] (1) NOT NULL ,[dyws] [int] NOT NULL ,[dyjsgs] [varchar] (60) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhpjk] ([pjnm] [char] (20) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pjlxbh] [char] (2) NOT NULL ,[pjh] [varchar] (20) NOT NULL ,[ywrq] [char] (8) NOT NULL ,[yt] [varchar] (255) NOT NULL ,[je] [money] NOT NULL ,[skr_mc] [varchar] (255) NULL ,[skr_yhzh] [varchar] (255) NULL ,[skr_yhmc] [varchar] (255) NULL ,[skr_addr] [varchar] (255) NULL ,[cpr_mc] [varchar] (255) NULL ,[cpr_yhzh] [varchar] (255) NULL ,[cpr_yhmc] [varchar] (255) NULL ,[cpr_addr] [varchar] (255) NULL ,[fhr] [varchar] (20) NULL ,[cn] [varchar] (20) NULL ,[zpmm] [varchar] (20) NULL ,[kmbh] [varchar] (20) NULL ,[pzlx] [char] (2) NULL ,[pzbh] [varchar] (6) NULL ,[jbr] [varchar] (20) NULL ,[bh] [int] NOT NULL ,[zff] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhpjkzd] ([zdbh] [varchar] (20) NOT NULL ,[zdmc] [varchar] (60) NOT NULL ,[sjlx] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_yhpjlxzd] ([pjlxbh] [char] (2) NOT NULL ,[pjmc] [varchar] (60) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwbmgz] ([bmbm] [varchar] (20) NOT NULL ,[bmms] [varchar] (100) NOT NULL ,[zdjs] [int] NOT NULL ,[zdcd] [int] NOT NULL ,[mjzc] [int] NOT NULL ,[bmgz] [char] (6) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwbmtjb] ([tjbbh] [char] (6) NOT NULL ,[tjbmc] [varchar] (40) NOT NULL ,[isqy] [char] (1) NOT NULL ,[issm] [char] (1) NOT NULL ,[title_font] [int] NOT NULL ,[title_width] [int] NOT NULL ,[title_height] [int] NOT NULL ,[header_height] [int] NOT NULL ,[detail_font] [int] NOT NULL ,[detail_height] [int] NOT NULL ,[sml_width] [int] NOT NULL ,[yelmc] [varchar] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwbmtjblm] ([tjbbh] [char] (6) NOT NULL ,[lmxh] [char] (2) NOT NULL ,[lmmc] [varchar] (40) NOT NULL ,[lm_width] [int] NOT NULL ,[lmlx] [char] (1) NOT NULL ,[qslx] [char] (1) NOT NULL ,[gstj] [varchar] (250) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwbmxz] ([bmxzbh] [char] (2) NOT NULL ,[bmxzmc] [varchar] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwbmzd] ([bmbh] [varchar] (12) NOT NULL ,[bmmc] [varchar] (40) NOT NULL ,[bmxz] [char] (2) NULL ,[jc] [char] (1) NOT NULL ,[mx] [char] (1) NOT NULL ,[zgrs] [int] NULL ,[madd] [varchar] (50) NULL ,[tcode] [char] (15) NULL ,[qyf] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwdlcs] ([dlbh] [char] (3) NOT NULL ,[dlmc] [varchar] (40) NOT NULL ,[lmkd] [int] NOT NULL ,[lxbh] [char] (1) NOT NULL ,[kmbh] [varchar] (20) NULL ,[kmmc] [varchar] (40) NULL ,[fxjc] [char] (1) NOT NULL ,[bhbz] [char] (1) NOT NULL ,[bmbh] [varchar] (12) NULL ,[bmmc] [varchar] (40) NULL ,[xmlb] [char] (2) NULL ,[lbmc] [varchar] (40) NULL ,[xmbh] [varchar] (12) NULL ,[xmmc] [varchar] (40) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwdllm] ([lxbh] [char] (1) NOT NULL ,[dlbh] [char] (3) NOT NULL ,[lmbh] [varchar] (20) NOT NULL ,[lmmc] [varchar] (60) NOT NULL ,[lmjs] [char] (1) NOT NULL ,[lmfx] [char] (1) NOT NULL ,[zhlm] [varchar] (20) NOT NULL ,[xh] [char] (3) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwdzqc] ([kmbh] [char] (20) NOT NULL ,[ywrq] [char] (8) NOT NULL ,[jsfs] [char] (2) NOT NULL ,[jsdh] [char] (20) NULL ,[jje] [money] NOT NULL ,[dje] [money] NOT NULL ,[ye] [money] NOT NULL ,[xh] [int] NOT NULL ,[qcrq] [char] (8) NOT NULL ,[qcxh] [char] (8) NOT NULL ,[wbbh] [char] (10) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwdzzh] ([kmbh] [char] (20) NOT NULL ,[yhzh] [char] (20) NOT NULL ,[yhmc] [char] (60) NOT NULL ,[qyrq] [char] (8) NOT NULL ,[yhye] [money] NOT NULL ,[dwye] [money] NOT NULL ,[jgbh] [char] (20) NULL ,[wjgs] [char] (1) NULL ,[ywrql] [char] (20) NULL ,[jsfsl] [char] (20) NULL ,[jsdhl] [char] (20) NULL ,[jjel] [char] (20) NULL ,[djel] [char] (20) NULL ,[yel] [char] (20) NULL ,[dztj] [char] (9) NULL ,[qyf] [char] (1) NOT NULL ,[wbf] [char] (1) NULL ,[wbbh] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwfzje] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[ncye] [money] NOT NULL ,[jffs] [money] NOT NULL ,[dffs] [money] NOT NULL ,[jflj] [money] NOT NULL ,[dflj] [money] NOT NULL ,[dqye] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwfzwb] ([kmbh] [varchar] (20) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[wbbh] [varchar] (10) NOT NULL ,[wbncye] [money] NOT NULL ,[wbjffs] [money] NOT NULL ,[wbdffs] [money] NOT NULL ,[wbjflj] [money] NOT NULL ,[wbdflj] [money] NOT NULL ,[wbdqye] [money] NOT NULL ,[ncye] [money] NOT NULL ,[jffs] [money] NOT NULL ,[dffs] [money] NOT NULL ,[jflj] [money] NOT NULL ,[dflj] [money] NOT NULL ,[dqye] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwgnqx] ([yhbh] [varchar] (12) NOT NULL ,[gnbh] [varchar] (6) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwgnzd] ([gnbh] [varchar] (50) NOT NULL ,[gnmc] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwjsfs] ([jsbh] [char] (2) NOT NULL ,[mc] [varchar] (40) NOT NULL ,[qyf] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwkjqj] ([qjbh] [char] (2) NOT NULL ,[qsrq] [char] (4) NOT NULL ,[jsrq] [char] (4) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwkmje] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[ncye] [money] NOT NULL ,[jffs] [money] NOT NULL ,[dffs] [money] NOT NULL ,[jflj] [money] NOT NULL ,[dflj] [money] NOT NULL ,[dqye] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwkmwb] ([kmbh] [varchar] (20) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[wbbh] [varchar] (10) NOT NULL ,[wbncye] [money] NOT NULL ,[wbjffs] [money] NOT NULL ,[wbdffs] [money] NOT NULL ,[wbjflj] [money] NOT NULL ,[wbdflj] [money] NOT NULL ,[wbdqye] [money] NOT NULL ,[ncye] [money] NOT NULL ,[jffs] [money] NOT NULL ,[dffs] [money] NOT NULL ,[jflj] [money] NOT NULL ,[dflj] [money] NOT NULL ,[dqye] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwkmzd] ([kmbh] [varchar] (20) NOT NULL ,[kmmc] [varchar] (40) NOT NULL ,[kmsx] [char] (1) NOT NULL ,[yefx] [char] (1) NOT NULL ,[zjm] [varchar] (20) NULL ,[kmlb] [char] (1) NOT NULL ,[jc] [char] (1) NOT NULL ,[mx] [char] (1) NOT NULL ,[wbhs] [char] (1) NOT NULL ,[wbbh] [varchar] (10) NULL ,[bmhs] [char] (1) NOT NULL ,[xmhs] [char] (1) NOT NULL ,[qyf] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwmbmx] ([mbbh] [char] (4) NOT NULL ,[flbh] [char] (3) NOT NULL ,[zy] [varchar] (60) NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[jzfx] [char] (1) NOT NULL ,[fpbl] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwmkb] ([mkbh] [char] (2) NOT NULL ,[mkmc] [varchar] (20) NOT NULL ,[jzyq] [char] (1) NOT NULL ,[kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwnbbm] ([nmbh] [varchar] (20) NOT NULL ,[nmmc] [varchar] (20) NOT NULL ,[dqnm] [varchar] (20) NOT NULL ,[nmcd] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpass] ([yhbh] [varchar] (12) NOT NULL ,[yhmc] [varchar] (20) NOT NULL ,[bz] [char] (1) NOT NULL ,[yhmm] [varchar] (20) NULL ,[isweb] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzb] ([pznm] [varchar] (12) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[fjzs] [int] NULL ,[zdr] [varchar] (12) NOT NULL ,[shr] [varchar] (12) NULL ,[fhr] [varchar] (12) NULL ,[jzr] [varchar] (12) NULL ,[cn] [varchar] (12) NULL ,[kjzg] [varchar] (12) NULL ,[fhf] [char] (1) NOT NULL ,[jzf] [char] (1) NOT NULL ,[zff] [char] (1) NOT NULL ,[wzf] [char] (1) NOT NULL ,[lybh] [char] (2) NULL ,[status] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzbh] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[lxbh] [char] (4) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzbhbak] ([pzbh] [varchar] (6) NOT NULL ,[lxbh] [varchar] (4) NOT NULL ,[kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzdyjg] ([dybh] [char] (2) NOT NULL ,[zdbh] [varchar] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzdylx] ([pzdylxbh] [char] (2) NOT NULL ,[pzdylxmc] [char] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzfl] ([pznm] [varchar] (12) NOT NULL ,[flbh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zy] [varchar] (60) NOT NULL ,[jje] [money] NOT NULL ,[dje] [money] NOT NULL ,[wbbh] [varchar] (10) NULL ,[hl] [numeric](20, 6) NOT NULL ,[jsbh] [char] (2) NULL ,[jsdh] [varchar] (20) NULL ,[ywrq] [char] (8) NULL ,[dfdw] [varchar] (40) NULL ,[yhdz] [char] (1) NULL ,[jwb] [money] NOT NULL ,[dwb] [money] NOT NULL ,[dch] [varchar] (20) NULL ,[zrr] [varchar] (12) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzgsdy] ([dybh] [char] (2) NOT NULL ,[dymc] [varchar] (50) NOT NULL ,[pzdylxbh] [varchar] (50) NOT NULL ,[dyyg] [int] NOT NULL ,[dyyk] [int] NOT NULL ,[mybs] [int] NOT NULL ,[dywj] [varchar] (100) NOT NULL ,[dywt] [varchar] (100) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzlx] ([lxbh] [char] (2) NOT NULL ,[lxmc] [varchar] (20) NOT NULL ,[pzz] [char] (4) NOT NULL ,[dybh] [char] (2) NOT NULL ,[xzkm] [varchar] (255) NULL ,[xzxz] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwpzmb] ([mbbh] [char] (4) NOT NULL ,[mbmc] [varchar] (100) NOT NULL ,[lxbh] [char] (2) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwreco] ([yhbh] [varchar] (12) NOT NULL ,[yhmc] [varchar] (20) NOT NULL ,[dateb] [char] (8) NOT NULL ,[timeb] [char] (8) NOT NULL ,[uses] [varchar] (255) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwrjqc] ([kmbh] [char] (20) NOT NULL ,[ywrq] [char] (8) NOT NULL ,[jsfs] [char] (2) NOT NULL ,[jsdh] [char] (20) NULL ,[pzbh] [varchar] (8) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[zy] [char] (60) NOT NULL ,[jje] [money] NOT NULL ,[dje] [money] NOT NULL ,[xh] [int] NOT NULL ,[qcrq] [char] (8) NOT NULL ,[qcxh] [char] (8) NOT NULL ,[wbbh] [char] (10) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwrjzd] ([nm] [char] (6) NOT NULL ,[kmbh] [char] (20) NOT NULL ,[ywrq] [char] (8) NOT NULL ,[jsfs] [char] (2) NOT NULL ,[jsdh] [char] (20) NULL ,[pzbh] [varchar] (8) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[zy] [char] (60) NOT NULL ,[jje] [money] NOT NULL ,[dje] [money] NOT NULL ,[xh] [int] NOT NULL ,[wbbh] [char] (10) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwscwjdy] ([xh] [int] NOT NULL ,[bdm] [char] (20) NOT NULL ,[bmc] [char] (40) NOT NULL ,[wjmc] [char] (20) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[xz] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwsjqx] ([yhbh] [varchar] (12) NOT NULL ,[qxbh] [varchar] (20) NOT NULL ,[sjbh] [varchar] (100) NOT NULL ,[grans] [varchar] (15) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwslfl] ([pznm] [varchar] (9) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[pzbh] [varchar] (6) NOT NULL ,[bh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[djh] [varchar] (12) NOT NULL ,[wpbh] [varchar] (12) NOT NULL ,[wpmc] [varchar] (60) NOT NULL ,[sccj] [varchar] (255) NOT NULL ,[bmbh] [varchar] (12) NOT NULL ,[jldw] [varchar] (12) NOT NULL ,[sl] [decimal](18, 2) NOT NULL ,[dj] [money] NOT NULL ,[je] [money] NOT NULL ,[isbf] [char] (1) NOT NULL ,[jsr] [varchar] (20) NOT NULL ,[srxm] [varchar] (20) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwthfz] ([bh] [char] (2) NOT NULL ,[thkm] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[wb] [money] NULL ,[je] [money] NULL ,[hl] [decimal](18, 4) NULL ,[ce] [money] NULL ,[tzrq] [char] (8) NULL ,[wbbh] [varchar] (10) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwthmx] ([bh] [char] (2) NOT NULL ,[thkm] [varchar] (20) NOT NULL ,[wb] [money] NULL ,[je] [money] NULL ,[hl] [decimal](18, 4) NULL ,[ce] [money] NULL ,[tzrq] [char] (8) NULL ,[wbbh] [varchar] (10) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwthpz] ([bh] [char] (2) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[thzq] [char] (1) NOT NULL ,[sykm] [varchar] (20) NOT NULL ,[sskm] [varchar] (20) NOT NULL ,[zy] [varchar] (60) NOT NULL ,[wball] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwwbhl] ([wbbh] [varchar] (10) NOT NULL ,[kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[jzhl] [decimal](10, 4) NULL ,[tzhl] [decimal](10, 4) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwwbzd] ([wbbh] [varchar] (10) NOT NULL ,[wbmc] [varchar] (30) NOT NULL ,[hbbf] [varchar] (4) NOT NULL ,[jd] [int] NOT NULL ,[zswc] [decimal](6, 4) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxmje] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[bmbh] [varchar] (12) NOT NULL ,[xmbh] [varchar] (12) NOT NULL ,[ncye] [money] NOT NULL ,[jffs] [money] NOT NULL ,[dffs] [money] NOT NULL ,[jflj] [money] NOT NULL ,[dflj] [money] NOT NULL ,[dqye] [money] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxmlb] ([lbbh] [char] (2) NOT NULL ,[lbmc] [varchar] (30) NOT NULL ,[srkm] [varchar] (255) NULL ,[zckm] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxmtjb] ([tjbbh] [char] (6) NOT NULL ,[tjbmc] [varchar] (40) NOT NULL ,[isqy] [char] (1) NOT NULL ,[title_font] [int] NOT NULL ,[title_width] [int] NOT NULL ,[title_height] [int] NOT NULL ,[detail_font] [int] NOT NULL ,[detail_height] [int] NOT NULL ,[header_height] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxmtjblm] ([tjbbh] [char] (6) NOT NULL ,[lmxh] [char] (2) NOT NULL ,[lmmc] [varchar] (40) NOT NULL ,[lmss] [char] (1) NOT NULL ,[isdy] [char] (1) NOT NULL ,[lm_width] [int] NOT NULL ,[lmlx] [char] (1) NOT NULL ,[qslx] [char] (1) NOT NULL ,[gstj] [varchar] (250) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxmzd] ([xmnm] [char] (6) NOT NULL ,[bmbh] [varchar] (12) NOT NULL ,[xmbh] [varchar] (12) NOT NULL ,[xmmc] [varchar] (40) NOT NULL ,[lbbh] [char] (2) NULL ,[jc] [char] (1) NOT NULL ,[mx] [char] (1) NOT NULL ,[kgrq] [char] (8) NULL ,[wgrq] [char] (8) NULL ,[wgf] [char] (1) NULL ,[fzr] [char] (12) NOT NULL ,[czf] [char] (1) NOT NULL ,[czje] [money] NOT NULL ,[madd] [char] (50) NULL ,[tcode] [char] (15) NULL ,[qyf] [char] (1) NOT NULL ,[fkf] [char] (1) NOT NULL ,[ic_id] [varchar] (40) NULL ,[fkr] [varchar] (12) NULL ,[xmmm] [varchar] (12) NULL ,[srkm] [varchar] (255) NULL ,[zckm] [varchar] (255) NULL ,[bz] [varchar] (255) NULL ,[zzlx] [char] (2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwxtcs] ([csmc] [varchar] (20) NOT NULL ,[val] [varchar] (40) NOT NULL ,[ms] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwyhjg] ([jgbh] [char] (4) NOT NULL ,[zdmc] [varchar] (20) NOT NULL ,[sjlx] [char] (1) NOT NULL ,[lsx] [char] (2) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwyhzd] ([nm] [char] (6) NOT NULL ,[kmbh] [char] (20) NOT NULL ,[ywrq] [char] (8) NOT NULL ,[jsfs] [char] (2) NOT NULL ,[jsdh] [char] (20) NULL ,[jje] [money] NOT NULL ,[dje] [money] NOT NULL ,[ye] [money] NOT NULL ,[xh] [int] NOT NULL ,[wbbh] [char] (10) NULL ,[bz] [char] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzblm] ([zbbh] [char] (4) NOT NULL ,[lmbh] [char] (4) NOT NULL ,[lmmc] [varchar] (40) NOT NULL ,[lmbt] [varchar] (40) NOT NULL ,[lmkd] [int] NOT NULL ,[sjlx] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzbzd] ([zbbh] [char] (4) NOT NULL ,[zbmc] [varchar] (40) NOT NULL ,[zb_title] [varchar] (60) NOT NULL ,[title_font_name] [varchar] (20) NULL ,[title_font_size] [int] NULL ,[title_font_weight] [int] NULL ,[title_font_isitalic] [char] (1) NULL ,[title_font_isunderline] [char] (1) NULL ,[header_font_name] [varchar] (20) NULL ,[header_font_size] [int] NULL ,[header_font_weight] [int] NULL ,[header_font_isitalic] [char] (1) NULL ,[header_font_isunderline] [char] (1) NULL ,[detail_font_name] [varchar] (20) NULL ,[detail_font_size] [int] NULL ,[detail_font_wight] [int] NULL ,[detail_font_isitalic] [char] (1) NULL ,[detail_font_isunderline] [char] (1) NULL ,[margin_left] [int] NOT NULL ,[margin_right] [int] NOT NULL ,[margin_top] [int] NOT NULL ,[margin_bottom] [int] NOT NULL ,[gdl] [int] NULL ,[bdl] [int] NULL ,[myhs] [int] NULL ,[dysx] [char] (1) NULL ,[dygs] [char] (4) NULL ,[papersize] [int] NULL ,[ymfx] [char] (1) NULL ,[title_height] [int] NOT NULL ,[header_height] [int] NOT NULL ,[detail_height] [int] NOT NULL ,[colspace] [int] NOT NULL ,[border_line_w] [int] NOT NULL ,[mid_line_w] [int] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzcdz] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[dch] [varchar] (20) NOT NULL ,[bh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zy] [varchar] (60) NOT NULL ,[jje] [money] NULL ,[dje] [money] NULL ,[ckye] [money] NULL ,[zrr] [varchar] (12) NULL ,[dzf] [char] (1) NOT NULL ,[pznm] [varchar] (12) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzcdzjg] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[dch] [varchar] (20) NOT NULL ,[bh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zy] [varchar] (60) NOT NULL ,[jje] [money] NULL ,[dje] [money] NULL ,[ckye] [money] NULL ,[zrr] [varchar] (12) NULL ,[dzf] [char] (1) NOT NULL ,[pznm] [varchar] (12) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzdzd] ([zdbh] [char] (10) NOT NULL ,[zdmc] [char] (30) NOT NULL ,[zdlx] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzfdz] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[dch] [varchar] (20) NOT NULL ,[bh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zy] [varchar] (60) NOT NULL ,[jje] [money] NULL ,[dje] [money] NULL ,[jkye] [money] NULL ,[zrr] [varchar] (12) NULL ,[dzf] [char] (1) NOT NULL ,[pznm] [varchar] (12) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzfdzjg] ([kjnd] [char] (4) NOT NULL ,[kjqj] [char] (2) NOT NULL ,[pzrq] [char] (8) NOT NULL ,[pzbh] [char] (6) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[dch] [varchar] (20) NOT NULL ,[bh] [int] NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zy] [varchar] (60) NOT NULL ,[jje] [money] NULL ,[dje] [money] NULL ,[jkye] [money] NULL ,[zrr] [varchar] (12) NULL ,[dzf] [char] (1) NOT NULL ,[pznm] [varchar] (12) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzgzd] ([ygbh] [char] (6) NOT NULL ,[ygmc] [varchar] (10) NOT NULL ,[bmbh] [varchar] (12) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzpjj] ([ywrq] [char] (8) NOT NULL ,[bh] [char] (6) NOT NULL ,[jsfs] [char] (2) NULL ,[jjh] [varchar] (20) NULL ,[je] [money] NOT NULL ,[zy] [varchar] (60) NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[jsr] [varchar] (12) NULL ,[lrr] [varchar] (12) NULL ,[fhr] [varchar] (12) NULL ,[hxr] [varchar] (12) NULL ,[hxrq] [varchar] (12) NULL ,[iscjxm] [char] (1) NULL ,[hxf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzyzd] ([zybh] [varchar] (10) NOT NULL ,[zy] [varchar] (60) NOT NULL ,[lxbh] [char] (2) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzzfl] ([zzbh] [char] (6) NOT NULL ,[flbh] [char] (4) NOT NULL ,[kmbh] [varchar] (20) NOT NULL ,[bmbh] [varchar] (12) NULL ,[xmbh] [varchar] (12) NULL ,[zzfx] [char] (1) NOT NULL ,[jzfx] [char] (1) NOT NULL ,[qsdx] [char] (2) NOT NULL ,[zcbl] [decimal](8, 4) NOT NULL ,[zrbl] [decimal](8, 4) NOT NULL ,[zcxmlxbh] [char] (2) NULL ,[zzflbh] [char] (2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzzflzd] ([zzflbh] [char] (2) NOT NULL ,[zzflmc] [char] (80) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[cw_zwzzpz] ([zzbh] [char] (6) NOT NULL ,[zzmc] [varchar] (40) NOT NULL ,[lxbh] [char] (2) NOT NULL ,[zzlx] [char] (1) NOT NULL ,[kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL ,[sczq] [char] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[employee] ([empno] [varchar] (10) NULL ,[empname] [varchar] (10) NULL ,[emppwd] [varchar] (10) NULL ,[dcjh] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[h_guest_message] ([id] [int] IDENTITY (1, 1) NOT NULL ,[dt] [datetime] NULL ,[memo] [text] NULL ,[class] [char] (8) NULL ,[class1] [char] (8) NULL ,[oper] [char] (8) NULL ,[kindid] [int] NULL ,[fromclient] [varchar] (20) NULL ,[fromoper] [varchar] (8) NULL ,[topic] [varchar] (255) NULL ,[aim] [varchar] (500) NULL ,[ifsend] [tinyint] NOT NULL ,[iffile] [bit] NOT NULL) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[h_guest_messageto] ([id] [int] IDENTITY (1, 1) NOT NULL ,[msg_id] [int] NOT NULL ,[name] [varchar] (20) NULL ,[namepy] [varchar] (20) NULL ,[code] [varchar] (8) NULL ,[dt] [datetime] NULL ,[oper] [varchar] (8) NULL ,[flag] [char] (1) NULL ,[status] [char] (6) NULL ,[ifread] [bit] NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[hbdj_cbhzb] ([rq] [varchar] (50) NULL ,[srlx] [varchar] (50) NULL ,[srmx] [varchar] (50) NULL ,[ctsr] [numeric](18, 2) NULL ,[zdssr] [numeric](18, 2) NULL ,[fzr] [varchar] (50) NULL ,[kj] [varchar] (50) NULL ,[zb] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[hbdj_zzyeb] ([rq] [varchar] (50) NOT NULL ,[d_year] [varchar] (50) NOT NULL ,[d_mouth] [varchar] (50) NOT NULL ,[kmmc] [varchar] (50) NOT NULL ,[qmyejf] [numeric](18, 0) NULL ,[qmyedf] [numeric](18, 0) NULL ,[qcyejf] [numeric](18, 0) NULL ,[qcyedf] [numeric](18, 0) NULL ,[bqfsjf] [numeric](18, 0) NULL ,[bqfsdf] [numeric](18, 0) NULL ,[ljfsjf] [numeric](18, 0) NULL ,[ljfsdf] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[jxhg_kfhsb] ([rq] [varchar] (50) NULL ,[srff] [numeric](18, 2) NULL ,[sxff] [numeric](18, 2) NULL ,[ysff] [numeric](18, 2) NULL ,[jqff] [numeric](18, 2) NULL ,[ljff] [numeric](18, 2) NULL ,[bz] [varchar] (800) NULL ,[zg] [varchar] (50) NULL ,[zdr] [varchar] (50) NULL ,[sshys] [numeric](18, 2) NULL ,[sxhys] [numeric](18, 2) NULL ,[yshys] [numeric](18, 2) NULL ,[jqhys] [numeric](18, 2) NULL ,[ljhys] [numeric](18, 2) NULL ,[ssspb] [numeric](18, 2) NULL ,[sxspb] [numeric](18, 2) NULL ,[ysspb] [numeric](18, 2) NULL ,[jqspb] [numeric](18, 2) NULL ,[ljspb] [numeric](18, 2) NULL ,[srhf] [numeric](18, 2) NULL ,[sxhf] [numeric](18, 2) NULL ,[yshf] [numeric](18, 2) NULL ,[jqhf] [numeric](18, 2) NULL ,[ljhf] [numeric](18, 2) NULL ,[srqt] [numeric](18, 2) NULL ,[sxqt] [numeric](18, 2) NULL ,[ysqt] [numeric](18, 2) NULL ,[jqqt] [numeric](18, 2) NULL ,[ljqt] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[jxhg_yyrbb] ([rq] [varchar] (50) NULL ,[eff] [numeric](18, 2) NULL ,[emf] [numeric](18, 2) NULL ,[ekz] [numeric](18, 2) NULL ,[egz] [numeric](18, 2) NULL ,[etj] [numeric](18, 2) NULL ,[esr] [numeric](18, 2) NULL ,[effrs] [numeric](18, 2) NULL ,[emfrs] [numeric](18, 2) NULL ,[sff] [numeric](18, 2) NULL ,[smf] [numeric](18, 2) NULL ,[skz] [numeric](18, 2) NULL ,[sgz] [numeric](18, 2) NULL ,[stj] [numeric](18, 2) NULL ,[ssr] [numeric](18, 2) NULL ,[sffrs] [numeric](18, 2) NULL ,[smfrs] [numeric](18, 2) NULL ,[fff] [numeric](18, 2) NULL ,[fmf] [numeric](18, 2) NULL ,[fkz] [numeric](18, 2) NULL ,[fgz] [numeric](18, 2) NULL ,[ftj] [numeric](18, 2) NULL ,[fsr] [numeric](18, 2) NULL ,[fffrs] [numeric](18, 2) NULL ,[fmfrs] [numeric](18, 2) NULL ,[wff] [numeric](18, 2) NULL ,[wmf] [numeric](18, 2) NULL ,[wkz] [numeric](18, 2) NULL ,[wgz] [numeric](18, 2) NULL ,[wtj] [numeric](18, 2) NULL ,[wsr] [numeric](18, 2) NULL ,[wffrs] [numeric](18, 2) NULL ,[wmfrs] [numeric](18, 2) NULL ,[fflj] [numeric](18, 2) NULL ,[mflj] [numeric](18, 2) NULL ,[kzlj] [numeric](18, 2) NULL ,[gzlj] [numeric](18, 2) NULL ,[srlj] [numeric](18, 2) NULL ,[ffrslj] [numeric](18, 2) NULL ,[mfrslj] [numeric](18, 2) NULL ,[zjlj] [numeric](18, 2) NULL ,[zrzdfj] [numeric](18, 2) NULL ,[zrzdks] [numeric](18, 2) NULL ,[jtddfj] [numeric](18, 2) NULL ,[jtddks] [numeric](18, 2) NULL ,[jtldfj] [numeric](18, 2) NULL ,[jtldks] [numeric](18, 2) NULL ,[jtzdfj] [numeric](18, 2) NULL ,[jtzdks] [numeric](18, 2) NULL ,[mffj] [numeric](18, 2) NULL ,[mfks] [numeric](18, 2) NULL ,[zjfj] [numeric](18, 2) NULL ,[zjks] [numeric](18, 2) NULL ,[rzldr] [numeric](18, 2) NULL ,[rzllj] [numeric](18, 2) NULL ,[fjpjfzdr] [numeric](18, 2) NULL ,[fjpjfzlj] [numeric](18, 2) NULL ,[zg] [varchar] (50) NULL ,[zbr] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[jxhg_yysrrbb] ([rq] [varchar] (50) NULL ,[ff] [numeric](18, 2) NULL ,[swzx] [numeric](18, 2) NULL ,[dhf] [numeric](18, 2) NULL ,[pcf] [numeric](18, 2) NULL ,[hyf] [numeric](18, 2) NULL ,[sj] [numeric](18, 2) NULL ,[bz] [varchar] (500) NULL ,[zg] [varchar] (50) NULL ,[zdr] [varchar] (50) NULL ,[kfsr] [numeric](18, 2) NULL ,[kfljsr] [numeric](18, 2) NULL ,[cysr] [numeric](18, 2) NULL ,[cyljsr] [numeric](18, 2) NULL ,[ctsr] [numeric](18, 2) NULL ,[ctljsr] [numeric](18, 2) NULL ,[zsr] [numeric](18, 2) NULL ,[ljzsr] [numeric](18, 2) NULL ,[fflj] [numeric](18, 2) NULL ,[dfhlj] [numeric](18, 2) NULL ,[pcflj] [numeric](18, 2) NULL ,[hyflj] [numeric](18, 2) NULL ,[sjlj] [numeric](18, 2) NULL ,[qt] [numeric](18, 2) NULL ,[qtlj] [numeric](18, 2) NULL ,[swzxlj] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[pbcatcol] ([pbc_tnam] [char] (30) NULL ,[pbc_tid] [int] NULL ,[pbc_ownr] [char] (30) NULL ,[pbc_cnam] [char] (30) NULL ,[pbc_cid] [smallint] NULL ,[pbc_labl] [varchar] (254) NULL ,[pbc_lpos] [smallint] NULL ,[pbc_hdr] [varchar] (254) NULL ,[pbc_hpos] [smallint] NULL ,[pbc_jtfy] [smallint] NULL ,[pbc_mask] [varchar] (31) NULL ,[pbc_case] [smallint] NULL ,[pbc_hght] [smallint] NULL ,[pbc_wdth] [smallint] NULL ,[pbc_ptrn] [varchar] (31) NULL ,[pbc_bmap] [char] (1) NULL ,[pbc_init] [varchar] (254) NULL ,[pbc_cmnt] [varchar] (254) NULL ,[pbc_edit] [varchar] (31) NULL ,[pbc_tag] [varchar] (254) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[pbcatedt] ([pbe_name] [varchar] (30) NOT NULL ,[pbe_edit] [varchar] (254) NULL ,[pbe_type] [smallint] NOT NULL ,[pbe_cntr] [int] NULL ,[pbe_seqn] [smallint] NOT NULL ,[pbe_flag] [int] NULL ,[pbe_work] [char] (32) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[pbcatfmt] ([pbf_name] [varchar] (30) NOT NULL ,[pbf_frmt] [varchar] (254) NOT NULL ,[pbf_type] [smallint] NOT NULL ,[pbf_cntr] [int] NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[pbcattbl] ([pbt_tnam] [char] (30) NULL ,[pbt_tid] [int] NULL ,[pbt_ownr] [char] (30) NULL ,[pbd_fhgt] [smallint] NULL ,[pbd_fwgt] [smallint] NULL ,[pbd_fitl] [char] (1) NULL ,[pbd_funl] [char] (1) NULL ,[pbd_fchr] [smallint] NULL ,[pbd_fptc] [smallint] NULL ,[pbd_ffce] [char] (32) NULL ,[pbh_fhgt] [smallint] NULL ,[pbh_fwgt] [smallint] NULL ,[pbh_fitl] [char] (1) NULL ,[pbh_funl] [char] (1) NULL ,[pbh_fchr] [smallint] NULL ,[pbh_fptc] [smallint] NULL ,[pbh_ffce] [char] (32) NULL ,[pbl_fhgt] [smallint] NULL ,[pbl_fwgt] [smallint] NULL ,[pbl_fitl] [char] (1) NULL ,[pbl_funl] [char] (1) NULL ,[pbl_fchr] [smallint] NULL ,[pbl_fptc] [smallint] NULL ,[pbl_ffce] [char] (32) NULL ,[pbt_cmnt] [varchar] (254) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[pbcatvld] ([pbv_name] [varchar] (30) NOT NULL ,[pbv_vald] [varchar] (254) NOT NULL ,[pbv_type] [smallint] NOT NULL ,[pbv_cntr] [int] NULL ,[pbv_msg] [varchar] (254) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[sn_bf] ([nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[ydf] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[sn_bf_lx] ([nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (50) NULL ,[bzfj] [numeric](18, 2) NULL ,[zdfqbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[bc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[sn_xs_bf] ([lsh] [varchar] (50) NOT NULL ,[ds] [int] NOT NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL ,[fhnm] [varchar] (50) NULL ,[fh] [varchar] (50) NULL ,[zdf] [varchar] (50) NULL ,[jzf] [varchar] (50) NULL ,[kssj] [varchar] (50) NULL ,[jssj] [varchar] (50) NULL ,[dj] [numeric](18, 2) NULL ,[ssdj] [numeric](18, 0) NULL ,[qbsc] [numeric](18, 0) NULL ,[qbdj] [numeric](18, 0) NULL ,[bc] [numeric](18, 0) NULL ,[bcdj] [numeric](18, 0) NULL ,[cssz] [numeric](18, 0) NULL ,[csdj] [numeric](18, 0) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_client] ([code] [char] (2) NOT NULL ,[name] [varchar] (20) NOT NULL ,[ifuse] [char] (1) NULL ,[FrontItem] [char] (2) NULL ,[sortID] [int] NULL ,[ifcash] [char] (1) NULL ,[ifkl] [char] (1) NULL ,[ifkc] [char] (1) NULL ,[client_kc] [char] (2) NULL ,[klface] [char] (1) NULL ,[ifsec] [char] (1) NULL ,[ifmanage] [char] (1) NULL ,[ifgxdw] [char] (1) NULL ,[client_gxdw] [char] (2) NULL ,[repgroup] [char] (2) NULL ,[iftrunk] [char] (1) NULL ,[trunktype] [char] (2) NULL ,[jztype] [char] (1) NULL ,[refreshtime] [smallint] NULL ,[setstatus] [int] NULL ,[print_up] [smallint] NULL ,[print_down] [smallint] NULL ,[print_lines] [smallint] NULL ,[print_size] [smallint] NULL ,[printcode] [int] NULL ,[print_type] [char] (1) NULL ,[bkimage] [varchar] (50) NULL ,[ifcard] [char] (1) NULL ,[namepy] [varchar] (20) NULL ,[default_svr] [numeric](4, 2) NULL ,[default_rate] [numeric](4, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_group_operator] ([groupname] [char] (40) NOT NULL ,[operator] [char] (8) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_memu] ([id] [int] NOT NULL ,[alevel] [tinyint] NOT NULL ,[keyid] [tinyint] NULL ,[name] [char] (40) NOT NULL ,[code] [char] (5) NULL ,[winname] [char] (40) NULL ,[sortid] [tinyint] NULL ,[parm] [char] (40) NULL ,[parentid] [int] NULL ,[namepy] [char] (20) NULL ,[client] [varchar] (50) NULL ,[replimit] [char] (1) NULL ,[windowtype] [tinyint] NOT NULL ,[keyflags] [tinyint] NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_operator] ([code] [varchar] (50) NOT NULL ,[name] [varchar] (50) NOT NULL ,[pass] [varchar] (50) NULL ,[ifuse] [char] (1) NULL ,[memo] [varchar] (50) NULL ,[iffirst] [char] (1) NULL ,[gradeid] [int] NULL ,[namepy] [varchar] (10) NULL ,[cardright] [int] NULL ,[stockright] [int] NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_operator_group] ([groupname] [char] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_right_group] ([id] [int] NOT NULL ,[groupname] [char] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_right_operator] ([id] [int] NOT NULL ,[operator] [char] (8) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[t_zd_window] ([title] [varchar] (50) NULL ,[window] [varchar] (50) NULL ,[version] [varchar] (50) NULL ,[dt] [datetime] NULL ,[description] [text] NULL ,[technique] [text] NULL ,[ifuse] [char] (1) NULL ,[helpid] [smallint] NULL ,[parm] [varchar] (100) NULL ,[id] [int] NOT NULL ,[depcode] [varchar] (50) NULL) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_dlz_001] ([xh] [char] (22) NULL ,[kjqj] [char] (2) NULL ,[lxbh] [char] (2) NULL ,[pzz] [varchar] (20) NULL ,[pzbh] [varchar] (6) NULL ,[pzrq] [char] (8) NULL ,[yefx] [char] (1) NULL ,[ye] [decimal](18, 2) NULL ,[zy] [varchar] (255) NULL ,[km101] [decimal](18, 2) NULL ,[jje] [decimal](18, 2) NULL ,[dje] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_dlz_002] ([xh] [char] (22) NULL ,[kjqj] [char] (2) NULL ,[lxbh] [char] (2) NULL ,[pzz] [varchar] (20) NULL ,[pzbh] [varchar] (6) NULL ,[pzrq] [char] (8) NULL ,[yefx] [char] (1) NULL ,[ye] [decimal](18, 2) NULL ,[zy] [varchar] (255) NULL ,[km001] [decimal](18, 2) NULL ,[jje] [decimal](18, 2) NULL ,[dje] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_lx_hztj] ([lsh] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[lxje] [numeric](18, 2) NULL ,[lxhzje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_ssphb_001] ([kmbh] [char] (20) NOT NULL ,[kmmc] [char] (40) NOT NULL ,[jc] [char] (1) NOT NULL ,[yefx] [char] (1) NOT NULL ,[qcye] [decimal](18, 2) NULL ,[jffs] [decimal](18, 2) NULL ,[dffs] [decimal](18, 2) NULL ,[qmye] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_ssphb_002] ([kmbh] [char] (20) NOT NULL ,[kmmc] [char] (40) NOT NULL ,[jc] [char] (1) NOT NULL ,[yefx] [char] (1) NOT NULL ,[qcye] [decimal](18, 2) NULL ,[jffs] [decimal](18, 2) NULL ,[dffs] [decimal](18, 2) NULL ,[qmye] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_zwkmje_001] ([kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL ,[kmbh] [varchar] (20) NULL ,[ncye] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_zwkmje_002] ([kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL ,[kmbh] [varchar] (20) NULL ,[ncye] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_zwpzfl_view_001] ([kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL ,[pzrq] [char] (8) NULL ,[pzbh] [varchar] (6) NULL ,[lxbh] [char] (2) NULL ,[pzz] [char] (4) NULL ,[kmbh] [varchar] (20) NULL ,[zy] [varchar] (60) NULL ,[jje] [decimal](18, 2) NULL ,[dje] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[temp_zwpzfl_view_002] ([kjnd] [char] (4) NULL ,[kjqj] [char] (2) NULL ,[pzrq] [char] (8) NULL ,[pzbh] [varchar] (6) NULL ,[lxbh] [char] (2) NULL ,[pzz] [char] (4) NULL ,[kmbh] [varchar] (20) NULL ,[zy] [varchar] (60) NULL ,[jje] [decimal](18, 2) NULL ,[dje] [decimal](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_bm] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[cyf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_bzdw] ([mc] [varchar] (10) NOT NULL ,[lb] [varchar] (1) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cbsz] ([bm] [varchar] (5) NOT NULL ,[mc] [varchar] (50) NULL ,[kssj] [varchar] (8) NULL ,[jssj] [varchar] (8) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd] ([nm] [varchar] (15) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[dw] [varchar] (10) NULL ,[dj] [numeric](10, 2) NULL ,[cb] [numeric](10, 2) NULL ,[slf] [char] (1) NOT NULL ,[syf] [char] (1) NULL ,[dzf] [char] (1) NULL ,[jsf] [char] (1) NULL ,[zgnm] [varchar] (50) NULL ,[bzf] [char] (1) NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL ,[hs] [int] NULL ,[hyj] [numeric](10, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_cb1] ([cpnm] [varchar] (15) NULL ,[spnm] [varchar] (10) NULL ,[sl] [numeric](15, 4) NULL ,[bmnm] [varchar] (10) NULL ,[lyl] [numeric](18, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_cb2] ([cpnm] [varchar] (15) NOT NULL ,[lx] [varchar] (4) NOT NULL ,[cbje] [numeric](15, 4) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_cd_link] ([cpnm] [varchar] (15) NOT NULL ,[bdcpnm] [varchar] (15) NOT NULL ,[sl] [numeric](10, 3) NULL ,[syf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_cx] ([yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[cpnm] [varchar] (50) NULL ,[cxdj] [numeric](18, 2) NULL ,[dzf] [varchar] (50) NULL ,[zsf] [char] (1) NULL,[xssl] [numeric](18, 2) NULL,[zssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_dw] ([mc] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_gq] ([yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[cpnm] [varchar] (50) NULL ,[gqyy] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_lb] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[bmnm] [varchar] (10) NULL ,[bmbm] [varchar] (10) NULL ,[bmmc] [varchar] (40) NULL ,[hs] [int] NULL,[dzqf] [char] (1) NULL,[dzqs] [char] (1) null,[cwlb] [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_lb_xs] ([yyr] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (255) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[cbje] [numeric](18, 2) NULL ,[xsml] [numeric](18, 2) NULL ,[xssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_lb_xs_sw] ([yyr] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (255) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[cbje] [numeric](18, 2) NULL ,[xsml] [numeric](18, 2) NULL ,[xssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_ycl] ([lsh] [varchar] (50) NULL ,[csnm] [varchar] (50) NULL ,[cpnm] [varchar] (50) NULL ,[spnm] [varchar] (50) NULL ,[dw] [varchar] (50) NULL ,[dj] [decimal](18, 4) NULL ,[cksl] [decimal](18, 4) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cdlb_auto] ([lbnm] [varchar] (50) NOT NULL ,[cdnm] [varchar] (50) NOT NULL ,[sl] [numeric](18, 2) NULL ,[zsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cp] ([yyr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[zcnm] [varchar] (50) NULL ,[zcsl] [numeric](18, 0) NULL ,[zcdj] [numeric](18, 2) NULL ,[wcnm] [varchar] (50) NULL ,[wcsl] [numeric](18, 0) NULL ,[wcdj] [numeric](18, 2) NULL ,[hcnm] [varchar] (50) NULL ,[hcsl] [numeric](18, 0) NULL ,[hcdj] [numeric](18, 2) NULL ,[ysnm] [varchar] (50) NULL ,[yssl] [numeric](18, 0) NULL ,[ysdj] [numeric](18, 2) NULL ,[lx] [char] (1) NULL ,[dcr] [varchar] (50) NULL ,[dcrdh] [varchar] (50) NULL ,[xff] [char] (1) NULL ,[lsh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cszd] ([csnm] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_czyqx] ([czynm] [varchar] (10) NOT NULL ,[cdnm] [varchar] (6) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_dyj] ([posbm] [varchar] (50) NOT NULL ,[dyjmc] [varchar] (200) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_gj] ([bm] [varchar] (5) NOT NULL ,[mc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_hb] ([mc] [varchar] (40) NOT NULL ,[hl] [numeric](10, 4) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick] ([bm] [varchar] (50) NOT NULL ,[kb] [varchar] (50) NULL ,[zzrq] [varchar] (50) NULL ,[fkrq] [varchar] (50) NULL ,[yxrq] [varchar] (50) NULL ,[zt] [char] (1) NULL ,[qnxfje] [numeric](18, 3) NULL ,[zje] [numeric](18, 3) NULL ,[khnm] [varchar] (50) NULL ,[tbkh] [varchar] (50) NULL ,[zfrq] [varchar] (50) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL ,[dzlx] [varchar] (50) NULL ,[zk] [numeric](18, 0) NULL ,[pass] [varchar](50) NULL,[kjf] [varchar] (50) null,[qnczkye] [numeric] (18,2) null, [czkzje] [numeric] (18,2) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_ck] ([bm] [varchar] (50) NULL ,[ckcs] [numeric](18, 0) NULL ,[ckrq] [varchar] (50) NULL ,[ckje] [numeric](18, 0) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_fk] ([bm] [varchar] (50) NULL ,[fkcs] [numeric](18, 0) NULL ,[fkrq] [varchar] (50) NULL ,[fkje] [numeric](18, 3) NULL ,[fklx] [varchar] (50) NULL ,[fkjf] [numeric](18, 3) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_fksz] ([jf] [numeric](18, 0) NOT NULL ,[fk] [numeric](18, 0) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_gs] ([bm] [varchar] (50) NULL ,[gsrq] [varchar] (50) NULL ,[tbkh] [varchar] (50) NULL ,[zje] [numeric](18, 3) NULL ,[qnxfje] [numeric](18, 3) NULL ,[ckrxm] [varchar] (50) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL,[qnczkye] [numeric] (18,2) null,[czkzje] [numeric] (18,2) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_mx] ([bm] [varchar] (50) NOT NULL ,[yyr] [varchar] (50) NULL ,[xsdlsh] [varchar] (50) NOT NULL ,[ysje] [numeric](18, 3) NULL ,[yhje] [numeric](18, 3) NULL ,[mlje] [numeric](18, 3) NULL ,[ssje] [numeric](18, 3) NULL ,[jfe] [numeric](18, 3) NULL,[fddm] [varchar] (50) null,[czkje] [numeric] (18,2) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_ick_sz] ([nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (50) NULL ,[jfe] [numeric](18, 2) NULL ,[fke] [numeric](18, 2) NULL ,[sfpass] [char] (1) NULL ,[syf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_jsfs] ([mc] [varchar] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_kh] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[dz] [varchar] (100) NULL ,[lxr] [varchar] (10) NULL ,[lxdh] [varchar] (20) NULL ,[cz] [varchar] (20) NULL ,[khh] [varchar] (100) NULL ,[khzh] [varchar] (30) NULL ,[swdjh] [varchar] (30) NULL ,[xxf] [char] (1) NULL ,[sfzh] [varchar] (50) NULL ,[syf] [char] (1) NULL ,[xsybm] [varchar] (50) NULL ,[xfxe] [decimal](18, 2) NULL,[zw] [varchar] (50) null,[xfje] [decimal](18, 2) NULL,[khxg] [varchar](200) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_kh_lb] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_kh_xy] ([bm] [varchar] (10) NOT NULL ,[khbm] [varchar] (10) NULL ,[mc] [varchar] (255) NULL ,[zk] [numeric](10, 4) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_mk_qysz] ([nm] [varchar] (50) NOT NULL ,[mc] [varchar] (50) NULL ,[syf] [varchar] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_mkqx] ([cdnm] [varchar] (6) NOT NULL ,[cdmc] [varchar] (50) NULL ,[cyf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pda_list] ([lsh] [decimal](18, 0) IDENTITY (1, 1) NOT NULL ,[dc_time] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[dcqh] [varchar] (50) NULL ,[jzh] [varchar] (50) NULL ,[fth] [varchar] (50) NULL ,[fwy] [varchar] (50) NULL ,[czzt] [varchar] (50) NULL ,[yy] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pos_bc_sz] ([bc] [char] (1) NOT NULL ,[sm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pos_jzsz] ([bm] [varchar] (50) NOT NULL ,[szz] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pos_lb] ([bm] [char] (4) NOT NULL ,[lx] [char] (50) NOT NULL ,[bmnm] [varchar] (50) NULL ,[sm] [varchar] (50) NULL ,[bc] [varchar] (50) NULL,[zwshow] [varchar](50) NULL,[cpshow] [varchar] (50) NULL,[yyr] [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pos_rz] ([rq] [varchar] (14) NOT NULL ,[bc] [varchar] (1) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[posbm] [varchar] (4) NOT NULL ,[yyr] [varchar] (8) NULL ,[czrn] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_pos_twlb] ([lbnm] [varchar] (50) NOT NULL ,[posbm] [varchar] (50) NOT NULL ,[show] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [wh_czyjz_zksz] ([czybm] [varchar] (10) NOT NULL ,[jzfd] [numeric](18, 2) NULL ,[zklx] [varchar] (50)  NULL ,[zkl] [numeric](18, 0) NULL ,[cksh] [char] (1) null PRIMARY KEY  CLUSTERED ([czybm])  ON [PRIMARY] ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_qdqx] ([bm] [varchar] (4) NOT NULL ,[mc] [varchar] (10) NULL ,[zk] [numeric](10, 3) NULL,[pass] [varchar] (50) NULL,[sjyz] [varchar] (50) null,[sjhm] [varchar] (50) null,[tcqx] [varchar] (50) null,[zcqx] [varchar] (50) null,[nzqx] [varchar] (50) null,[fjzqx] [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_sjscsz] ([fwqip] [varchar] (50) NULL ,[sjkmc] [varchar] (50) NULL ,[yhmc] [varchar] (50) NULL ,[yhkl] [varchar] (50) NULL ,[ckscsj] [varchar] (50) NULL ,[xsscsj] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_stdc_maxlsh] ([yyr] [varchar] (50) NOT NULL ,[maxlsh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_syysz] ([xtbm] [char] (2) NOT NULL ,[czynm] [varchar] (10) NOT NULL ,[cyf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_user] ([gsmc] [varchar] (50) NOT NULL ,[cpxlh] [varchar] (150) NULL ,[azrq] [varchar] (8) NULL ,[xzrq] [varchar] (8) NULL ,[xzlab] [char] (1) NULL ,[sylab] [char] (1) NULL ,[gsjc] [varchar] (50) NULL ,[jddm] [varchar] (50) NULL ,[jzsl] [int] NULL ,[dcqsl] [int] NULL ,[zds] [int] NULL ,[cs] [int] NULL ,[sw] [int] NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_wpjc] ([lsh] [varchar] (50) NOT NULL ,[xm] [varchar] (50) NULL ,[zjm] [varchar] (50) NULL ,[dh] [varchar] (50) NULL ,[mm] [varchar] (50) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czyxm] [varchar] (50) NULL ,[jcsj] [varchar] (50) NULL ,[cfwz] [varchar] (50) NULL ,[wpms] [varchar] (5000) NULL ,[jcbh] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtcs_sz] ([nm] [varchar] (10) NOT NULL ,[mc] [varchar] (50) NULL ,[szz] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtcssz] ([posbm] [varchar] (50) NOT NULL ,[nm] [varchar] (3) NOT NULL ,[mc] [varchar] (20) NULL ,[fs] [char] (1) NULL ,[fwf] [numeric](10, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_fs] ([jzrq] [varchar] (8) NOT NULL ,[jzfs] [varchar] (20) NOT NULL ,[fsje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_hb] ([jzrq] [varchar] (8) NOT NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_hb_sw] ([jzrq] [varchar] (8) NOT NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_jb] ([jzrq] [varchar] (8) NOT NULL ,[ysje] [numeric](15, 2) NULL ,[yfje] [numeric](15, 2) NULL ,[ssje] [numeric](15, 2) NULL ,[yhje] [numeric](15, 2) NULL ,[mlje] [numeric](15, 2) NULL ,[ydje] [numeric](15, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[xscb] [numeric](15, 2) NULL ,[khqk] [numeric](15, 2) NULL ,[yye] [numeric](15, 2) NULL ,[xfrs] [numeric](15, 0) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[xsts] [numeric](18, 0) NULL ,[fjzcs] [numeric](18, 0) NULL ,[fjzce] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_jb_sw] ([jzrq] [varchar] (8) NOT NULL ,[ysje] [numeric](15, 2) NULL ,[yfje] [numeric](15, 2) NULL ,[ssje] [numeric](15, 2) NULL ,[yhje] [numeric](15, 2) NULL ,[mlje] [numeric](15, 2) NULL ,[ydje] [numeric](15, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[xscb] [numeric](15, 2) NULL ,[khqk] [numeric](15, 2) NULL ,[yye] [numeric](15, 2) NULL ,[xfrs] [numeric](15, 0) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[xsts] [numeric](18, 0) NULL ,[fjzcs] [numeric](18, 0) NULL ,[fjzce] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_pos] ([cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[dj] [numeric](18, 3) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[yyr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_pos_sw] ([cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[dj] [numeric](18, 3) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[yyr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_zh] ([yyr] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[lb] [varchar] (50) NULL ,[sje] [numeric](18, 2) NULL ,[fje] [numeric](18, 2) NULL ,[jb] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_zh_sw] ([yyr] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[lb] [varchar] (50) NULL ,[sje] [numeric](18, 2) NULL ,[fje] [numeric](18, 2) NULL ,[jb] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtrq] ([xtrq] [varchar] (10) NULL ,[dqbc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[xm] [varchar] (10) NULL ,[xb] [varchar] (2) NULL ,[xl] [varchar] (20) NULL ,[csrq] [varchar] (8) NULL ,[hf] [varchar] (4) NULL ,[jg] [varchar] (200) NULL ,[mz] [varchar] (20) NULL ,[sfzh] [varchar] (18) NULL ,[jtzz] [varchar] (200) NULL ,[lxdh] [varchar] (20) NULL ,[syf] [char] (1) NULL ,[kl] [varchar] (10) NULL ,[mkqx] [char] (1) NULL ,[lx] [varchar] (50) NULL ,[cyf] [char] (1) NULL ,[jsf] [char] (1) NULL ,[ywjl] [char] (1) NULL ,[dcy] [char] (1) NULL,dcjh [varchar] (50) NULL,lsh [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_lx] ([nm] [varchar] (4) NOT NULL ,[mc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_mz] ([mc] [varchar] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_tc] ([ygnm] [varchar] (50) NOT NULL ,[cpnm] [varchar] (50) NOT NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_xl] ([mc] [varchar] (40) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zj] ([bm] [varchar] (5) NOT NULL ,[mc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zw] ([nm] [varchar] (15) NOT NULL ,[bm] [varchar] (10) NOT NULL ,[mc] [varchar] (40) NULL ,[zjm] [varchar] (20) NULL ,[zt] [char] (1) NULL ,[syf] [char] (1) NULL ,[yd] [char] (1) NULL ,[czzt] [char] (1) NULL ,[posbm] [varchar] (10) NULL ,[fwflx] [char] (1) NULL ,[fwf] [decimal](18, 3) NULL ,[zdxflx] [char] (1) NULL ,[zdxfje] [decimal](18, 3) NULL ,[bzzdxfsflx] [char] (1) NULL ,[bzzdxfjsfy] [decimal](18, 3) NULL ,[zws] [int] NULL ,[yjf] [char] (1) NULL ,[jssf] [char] (1) NULL ,[qbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[bc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL ,[zws1] [int] NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zw_lb] ([nm] [varchar] (10) NOT NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (40) NULL ,[cyf] [char] (1) NULL ,[yjzdyj] [varchar] (255) NULL ,[jsgsbt] [varchar] (50) NULL ,[jsdyj] [varchar] (255) NULL ,[dydcd] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zw_lbjs_sz] ([nm] [varchar] (10) NOT NULL ,[mc] [varchar] (50) NULL ,[cd] [int] NULL ,[syf] [char] (10) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zw_sb_link] ([zwnm] [varchar] (15) NOT NULL ,[sbnm] [varchar] (5) NOT NULL ,[sl] [int] NULL ,[dw] [varchar] (10) NULL ,[syf] [char] (1) NULL ,[bz] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_cd_cwlb] ([nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cwlb] ([lsh] [varchar] (50) NULL ,[cwlb] [varchar] (50) NULL ,[lbje] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_cwlb] WITH NOCHECK ADD CONSTRAINT [PK_wh_cd_cwlb] PRIMARY KEY  CLUSTERED ([nm])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[wh_dxnr_set] ([id] [int] IDENTITY (1, 1) NOT NULL ,[lx] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL ,[zwmc] [varchar] (50) NULL ,[ysje] [varchar] (50) NULL ,[ssje] [varchar] (50) NULL ,[yhje] [varchar] (50) NULL ,[mlje] [varchar] (50) NULL ,[xfrs] [varchar] (50) NULL ,[ssxj] [varchar] (50) NULL ,[yye] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_sjdx_jl] ([id] [int] IDENTITY (1, 1) NOT NULL ,[pc] [int] NULL ,[sendid] [varchar] (50) NULL ,[xm] [varchar] (50) NULL ,[sjhm] [varchar] (50) NULL ,[sendxx] [varchar] (5000) NULL ,[sendsj] [varchar] (50) NULL ,[sendtrue] [varchar] (50) NULL ,[sendrece] [varchar] (50) NULL ,[sfdq] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_txl] ([id] [int] IDENTITY (1, 1) NOT NULL ,[zw] [varchar] (50) NULL ,[xm] [varchar] (50) NULL ,[sjhm] [varchar] (50) NULL ,[syf] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_dxnr_set] WITH NOCHECK ADD CONSTRAINT [PK_wh_dxnr_set] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_sjdx_jl] WITH NOCHECK ADD CONSTRAINT [PK_wh_sjdx_jl] PRIMARY KEY  CLUSTERED ([id]	)  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_zg_txl] WITH NOCHECK ADD CONSTRAINT [PK_wh_yg_txl] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[xs_pos_bm] ([id] [int] IDENTITY (1, 1) NOT NULL ,[yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_bm_sw] ([id] [int] IDENTITY (1, 1) NOT NULL ,[yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[bmbm] [varchar] (50) NULL ,[bmmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cd_lb_xs] ([yyr] [varchar] (50) NOT NULL ,[posbm] [varchar] (50) NOT NULL ,[bc] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (255) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[cbje] [numeric](18, 2) NULL ,[xsml] [numeric](18, 2) NULL ,[xssl] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cd_lb_xs_sw] ([yyr] [varchar] (50) NOT NULL ,[posbm] [varchar] (50) NOT NULL ,[bc] [varchar] (50) NOT NULL ,[nm] [varchar] (50) NOT NULL ,[bm] [varchar] (50) NULL ,[mc] [varchar] (255) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[cbje] [numeric](18, 2) NULL ,[xsml] [numeric](18, 2) NULL ,[xssl] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cp] ([lsh] [varchar] (20) NOT NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[tcbj] [char] (1) NULL ,[csqc] [varchar] (10) NULL ,[bbdcp] [varchar] (15) NULL ,[zklab] [varchar] (1) NULL ,[khyq] [varchar] (255) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[ds] [int] NOT NULL ,[fwynm] [varchar] (50) NULL ,[fwybm] [varchar] (50) NULL ,[fwymc] [varchar] (50) NULL ,[kdpos] [varchar] (50) NULL ,[scf] [char] (1) NULL ,[tm] [varchar] (50) NULL ,[dctime] [varchar] (50) NULL ,[yssl] [numeric](10, 3) NULL ,[dcjh] [varchar] (10) NULL ,[bmnm] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[jsnm] [varchar] (50) NULL ,[jsbm] [varchar] (50) NULL ,[jsmc] [varchar] (50) NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL ,[xslx] [varchar] (50) NULL ,[hyj] [numeric](18, 2) NULL ,[bzcp] [varchar] (50) NULL,pzr [varchar](50) null,tcyy [varchar](200)null,zsyy [varchar](200) null,zscpnm [varchar] (50) null,bc [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cp_sw] ([lsh] [varchar] (20) NOT NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[tcbj] [char] (1) NULL ,[csqc] [varchar] (10) NULL ,[bbdcp] [varchar] (15) NULL ,[zklab] [varchar] (1) NULL ,[khyq] [varchar] (255) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[ds] [int] NOT NULL ,[fwynm] [varchar] (50) NULL ,[fwybm] [varchar] (50) NULL ,[fwymc] [varchar] (50) NULL ,[kdpos] [varchar] (50) NULL ,[scf] [char] (1) NULL ,[tm] [varchar] (50) NULL ,[dctime] [varchar] (50) NULL ,[yssl] [numeric](10, 3) NULL ,[dcjh] [varchar] (10) NULL ,[bmnm] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[jsnm] [varchar] (50) NULL ,[jsbm] [varchar] (50) NULL ,[jsmc] [varchar] (50) NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL ,[xslx] [varchar] (50) NULL ,[hyj] [numeric](18, 2) NULL ,[bzcp] [varchar] (50) NULL,pzr [varchar](50) null,tcyy [varchar](200)null,zsyy [varchar](200) null,zscpnm [varchar] (50) null,bc [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cp_temp] ([lsh] [varchar] (20) NOT NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[tcbj] [char] (1) NULL ,[csqc] [varchar] (10) NULL ,[bbdcp] [varchar] (15) NULL ,[zklab] [varchar] (1) NULL ,[khyq] [varchar] (255) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (10) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[ds] [int] NOT NULL ,[fwynm] [varchar] (50) NULL ,[fwybm] [varchar] (50) NULL ,[fwymc] [varchar] (50) NULL ,[kdpos] [varchar] (50) NULL ,[scf] [char] (1) NULL ,[tm] [varchar] (50) NULL ,[dctime] [varchar] (50) NULL ,[yssl] [numeric](10, 3) NULL ,[dcjh] [varchar] (10) NULL ,[bmnm] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[jsnm] [varchar] (50) NULL ,[jsbm] [varchar] (50) NULL ,[jsmc] [varchar] (50) NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL ,[xslx] [varchar] (50) NULL ,[hyj] [numeric](18, 2) NULL ,[bzcp] [varchar] (50) NULL,pzr [varchar](50) null,tcyy [varchar](200)null,zsyy [varchar](200) null,zscpnm [varchar] (50) null,bc [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_cp_xs] ([lsh] [varchar] (20) NOT NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[tcbj] [char] (1) NULL ,[csqc] [varchar] (10) NULL ,[bbdcp] [varchar] (15) NULL ,[zklab] [varchar] (1) NULL ,[khyq] [varchar] (255) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[ds] [int] NOT NULL ,[fwynm] [varchar] (50) NULL ,[fwybm] [varchar] (50) NULL ,[fwymc] [varchar] (50) NULL ,[kdpos] [varchar] (50) NULL ,[scf] [char] (1) NULL ,[tm] [varchar] (50) NULL ,[dctime] [varchar] (50) NULL ,[yssl] [numeric](10, 3) NULL ,[dcjh] [varchar] (10) NULL ,[bmnm] [varchar] (50) NULL ,[zt] [varchar] (50) NULL ,[jsnm] [varchar] (50) NULL ,[jsbm] [varchar] (50) NULL ,[jsmc] [varchar] (50) NULL ,[tclx] [varchar] (50) NULL ,[tc] [numeric](18, 3) NULL ,[xslx] [varchar] (50) NULL ,[hyj] [numeric](18, 2) NULL ,[bzcp] [varchar] (50) NULL,pzr [varchar](50) null,tcyy [varchar](200)null,zsyy [varchar](200) null,zscpnm [varchar] (50) null,bc [varchar] (50) null) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_dyj] ([lbnm] [varchar] (4) NOT NULL ,[posbh] [varchar] (4) NOT NULL ,[dyj] [varchar] (100) NULL ,[dylx] [char] (1) NULL ,[tkdyj] [varchar] (100) NULL ,[dysl] [int] NULL ,[tkdysl] [int] NULL ,[bmmc] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_fjz] ([yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[posbm] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL ,[cs] [numeric](18, 0) NULL ,[yssje] [numeric](18, 2) NULL ,[xssje] [numeric](18, 2) NULL ,[ssce] [numeric](18, 2) NULL ,[czynm] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czymc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_fs] ([lsh] [varchar] (16) NOT NULL ,[jzbc] [char] (1) NULL ,[jzfs] [varchar] (20) NOT NULL ,[fsje] [numeric](10, 3) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[syynm] [varchar] (50) NULL ,[syybm] [varchar] (50) NULL ,[syyxm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_hb] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](10, 3) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[syynm] [varchar] (50) NULL ,[syybm] [varchar] (50) NULL ,[syyxm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_hb_sw] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](10, 3) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[syynm] [varchar] (50) NULL ,[syybm] [varchar] (50) NULL ,[syyxm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_hb_xs] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](10, 3) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[syynm] [varchar] (50) NULL ,[syybm] [varchar] (50) NULL ,[syyxm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jb] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[kdsj] [varchar] (6) NULL ,[jzsj] [varchar] (6) NULL ,[zwnm] [varchar] (15) NULL ,[zwbm] [varchar] (10) NULL ,[zwmc] [varchar] (40) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[fwynm] [varchar] (10) NULL ,[fwybm] [varchar] (10) NULL ,[fwyxm] [varchar] (10) NULL ,[xfrs] [int] NULL ,[ysje] [numeric](10, 3) NULL ,[ssje] [numeric](10, 3) NULL ,[mlje] [numeric](10, 3) NULL ,[yhje] [numeric](10, 3) NULL ,[yjje] [numeric](10, 3) NULL ,[cbje] [numeric](10, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[qdrbm] [varchar] (10) NULL ,[qdrmc] [varchar] (10) NULL ,[khnm] [varchar] (10) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khqk] [numeric](15, 3) NULL ,[fwje] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[lx] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[yhyy] [varchar] (500) NULL ,[ds] [int] NULL ,[czzt] [char] (1) NULL ,[czpos] [varchar] (50) NULL ,[bdlsh] [varchar] (50) NULL ,[zdyq] [varchar] (255) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[jssf] [char] (1) NULL ,[qbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[jfbc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL ,[kdtime] [varchar] (50) NULL ,[zrlsh] [varchar] (50) NULL ,[xslx] [varchar] (50) NULL ,[hyjm] [numeric](18, 2) NULL ,[jfkh] [varchar] (50) NULL ,[czkh] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[ydr] [varchar] (50) NULL ,[ydrdh] [varchar] (50) NULL ,[khjlnm] [varchar] (50) NULL ,[khjlxm] [varchar] (50) NULL,[qzr] [varchar] (50) NULL,[fjz] [varchar] (50) null,[fjqysje] [numeric] (18,2) null,[dycs] [int] null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jb_sw] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[kdsj] [varchar] (6) NULL ,[jzsj] [varchar] (6) NULL ,[zwnm] [varchar] (15) NULL ,[zwbm] [varchar] (10) NULL ,[zwmc] [varchar] (40) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[fwynm] [varchar] (10) NULL ,[fwybm] [varchar] (10) NULL ,[fwyxm] [varchar] (10) NULL ,[xfrs] [int] NULL ,[ysje] [numeric](10, 3) NULL ,[ssje] [numeric](10, 3) NULL ,[mlje] [numeric](10, 3) NULL ,[yhje] [numeric](10, 3) NULL ,[yjje] [numeric](10, 3) NULL ,[cbje] [numeric](10, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[qdrbm] [varchar] (10) NULL ,[qdrmc] [varchar] (10) NULL ,[khnm] [varchar] (10) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khqk] [numeric](15, 3) NULL ,[fwje] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[lx] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[yhyy] [varchar] (500) NULL ,[ds] [int] NULL ,[czzt] [char] (1) NULL ,[czpos] [varchar] (50) NULL ,[bdlsh] [varchar] (50) NULL ,[zdyq] [varchar] (255) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[jssf] [char] (1) NULL ,[qbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[jfbc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL ,[kdtime] [varchar] (50) NULL ,[zrlsh] [varchar] (50) NULL ,[xslx] [varchar] (50) NULL ,[hyjm] [numeric](18, 2) NULL ,[jfkh] [varchar] (50) NULL ,[czkh] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[ydr] [varchar] (50) NULL ,[ydrdh] [varchar] (50) NULL ,[khjlnm] [varchar] (50) NULL ,[khjlxm] [varchar] (50) NULL,[qzr] [varchar] (50) NULL,[fjz] [varchar] (50) null,[fjqysje] [numeric] (18,2) null,[dycs] [int] null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jb_temp] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[kdsj] [varchar] (6) NULL ,[jzsj] [varchar] (6) NULL ,[zwnm] [varchar] (15) NULL ,[zwbm] [varchar] (10) NULL ,[zwmc] [varchar] (40) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[fwynm] [varchar] (10) NULL ,[fwybm] [varchar] (10) NULL ,[fwyxm] [varchar] (10) NULL ,[xfrs] [int] NULL ,[ysje] [numeric](10, 3) NULL ,[ssje] [numeric](10, 3) NULL ,[mlje] [numeric](10, 3) NULL ,[yhje] [numeric](10, 3) NULL ,[yjje] [numeric](10, 3) NULL ,[cbje] [numeric](10, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[qdrbm] [varchar] (10) NULL ,[qdrmc] [varchar] (10) NULL ,[khnm] [varchar] (10) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khqk] [numeric](15, 3) NULL ,[fwje] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[lx] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[yhyy] [varchar] (500) NULL ,[ds] [int] NULL ,[czzt] [char] (1) NULL ,[czpos] [varchar] (50) NULL ,[bdlsh] [varchar] (50) NULL ,[zdyq] [varchar] (255) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[jssf] [char] (1) NULL ,[qbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[jfbc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL ,[kdtime] [varchar] (50) NULL ,[zrlsh] [varchar] (50) NULL ,[xslx] [varchar] (50) NULL ,[hyjm] [numeric](18, 2) NULL ,[jfkh] [varchar] (50) NULL ,[czkh] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[ydr] [varchar] (50) NULL ,[ydrdh] [varchar] (50) NULL ,[khjlnm] [varchar] (50) NULL ,[khjlxm] [varchar] (50) NULL,[qzr] [varchar] (50) NULL,[fjz] [varchar] (50) null,[fjqysje] [numeric] (18,2) null,[dycs] [int] null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jb_xs] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[kdsj] [varchar] (6) NULL ,[jzsj] [varchar] (6) NULL ,[zwnm] [varchar] (15) NULL ,[zwbm] [varchar] (10) NULL ,[zwmc] [varchar] (40) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[fwynm] [varchar] (10) NULL ,[fwybm] [varchar] (10) NULL ,[fwyxm] [varchar] (10) NULL ,[xfrs] [int] NULL ,[ysje] [numeric](10, 3) NULL ,[ssje] [numeric](10, 3) NULL ,[mlje] [numeric](10, 3) NULL ,[yhje] [numeric](10, 3) NULL ,[yjje] [numeric](10, 3) NULL ,[cbje] [numeric](10, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[qdrbm] [varchar] (10) NULL ,[qdrmc] [varchar] (10) NULL ,[khnm] [varchar] (10) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khqk] [numeric](15, 3) NULL ,[fwje] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[lx] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[yhyy] [varchar] (500) NULL ,[ds] [int] NULL ,[czzt] [char] (1) NULL ,[czpos] [varchar] (50) NULL ,[bdlsh] [varchar] (50) NULL ,[zdyq] [varchar] (255) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[jssf] [char] (1) NULL ,[qbsc] [numeric](18, 2) NULL ,[qbdj] [numeric](18, 2) NULL ,[jfbc] [numeric](18, 2) NULL ,[bcdj] [numeric](18, 2) NULL ,[cssz] [numeric](18, 2) NULL ,[csdj] [numeric](18, 2) NULL ,[kdtime] [varchar] (50) NULL ,[zrlsh] [varchar] (50) NULL ,[xslx] [varchar] (50) NULL ,[hyjm] [numeric](18, 2) NULL ,[jfkh] [varchar] (50) NULL ,[czkh] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[ydr] [varchar] (50) NULL ,[ydrdh] [varchar] (50) NULL ,[khjlnm] [varchar] (50) NULL ,[khjlxm] [varchar] (50) NULL,[qzr] [varchar] (50) NULL,[fjz] [varchar] (50) null,[fjqysje] [numeric] (18,2) null,[dycs] [int] null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jsjc] ([id] [decimal](18, 0) IDENTITY (1, 1) NOT NULL ,[yyr] [char] (10) NULL ,[bc] [char] (10) NULL ,[posbm] [char] (10) NULL ,[czynm] [char] (10) NULL ,[czybm] [char] (10) NULL ,[czyxm] [char] (10) NULL ,[cpnm] [char] (10) NULL ,[sbjc] [numeric](18, 2) NULL ,[bblr] [numeric](18, 2) NULL ,[bbxs] [numeric](18, 2) NULL ,[bbjc] [numeric](18, 2) NULL ,[jbf] [char] (1) NULL ,[yxs] [numeric](18, 2) NULL ,[wxs] [numeric](18, 2) NULL ,[zdjs] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jz] ([bc] [varchar] (50) NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[dj] [numeric](18, 3) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_jz_sw] ([bc] [varchar] (50) NULL ,[cpnm] [varchar] (15) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (40) NULL ,[cpsl] [numeric](10, 3) NULL ,[cpdw] [varchar] (10) NULL ,[dj] [numeric](18, 3) NULL ,[cpdj] [numeric](10, 3) NULL ,[ssdj] [numeric](10, 3) NULL ,[dzbl] [numeric](10, 3) NULL ,[cpcb] [numeric](10, 3) NULL ,[fjf] [numeric](10, 3) NULL ,[jsf] [char] (1) NULL ,[posbm] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[bmnm] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zssl] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_khqk] ([lsh] [varchar] (16) NOT NULL ,[ysje] [numeric](10, 3) NULL ,[ssje] [numeric](10, 3) NULL ,[mlje] [numeric](10, 3) NULL ,[yhje] [numeric](10, 3) NULL ,[qdje] [numeric](15, 2) NULL ,[qdrbm] [varchar] (10) NULL ,[qdrmc] [varchar] (10) NULL ,[khnm] [varchar] (10) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khhk] [numeric](18, 3) NULL ,[khqk] [numeric](15, 3) NULL ,[lx] [char] (1) NULL ,[jqf] [char] (1) NULL ,[qkyy] [varchar] (255) NULL ,[xsd] [varchar] (50) NOT NULL ,[rq] [varchar] (50) NOT NULL ,[yyr] [varchar] (50) NULL ,[bc] [varchar] (50) NULL ,[czybm] [varchar] (50) NULL ,[czynm] [varchar] (50) NULL ,[czyxm] [varchar] (50) NULL ,[shf] [char] (1) NULL,[qzr] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_khyq] ([bm] [varchar] (10) NOT NULL ,[mc] [varchar] (255) NULL ,[zjm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_lb] ([lbnm] [varchar] (10) NOT NULL ,[posbm] [varchar] (4) NOT NULL ,[show] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_maxlsh] ([posbm] [varchar] (50) NOT NULL ,[lx] [varchar] (2) NOT NULL ,[lsh] [varchar] (50) NULL ,[rq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_maxlsh_sw] ([posbm] [varchar] (50) NOT NULL ,[lx] [varchar] (2) NOT NULL ,[lsh] [varchar] (50) NULL ,[rq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_zz] ([lsh] [varchar] (50) NOT NULL ,[zrlsh] [varchar] (50) NOT NULL ,[fth] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zrje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_zz_sw] ([lsh] [varchar] (50) NOT NULL ,[zrlsh] [varchar] (50) NOT NULL ,[fth] [varchar] (50) NULL ,[lx] [varchar] (50) NULL ,[zrje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_posjz_fs] ([jzrq] [varchar] (12) NOT NULL ,[jzbc] [char] (10) NOT NULL ,[jzfs] [varchar] (20) NOT NULL ,[fsje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_posjz_hb] ([jzrq] [varchar] (12) NOT NULL ,[jzbc] [char] (1) NOT NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_posjz_hb_sw] ([jzrq] [varchar] (12) NOT NULL ,[jzbc] [char] (1) NOT NULL ,[hb] [varchar] (20) NOT NULL ,[hbje] [numeric](15, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_posjz_jb] ([jzrq] [varchar] (12) NOT NULL ,[jzbc] [char] (1) NOT NULL ,[byj] [numeric](10, 3) NULL ,[ysje] [numeric](15, 3) NULL ,[yhje] [numeric](15, 3) NULL ,[ssje] [numeric](15, 3) NULL ,[mlje] [numeric](15, 3) NULL ,[wjje] [numeric](15, 3) NULL ,[ydje] [numeric](15, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[yyje] [numeric](15, 2) NULL ,[xscb] [numeric](15, 3) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[khqk] [numeric](15, 3) NULL ,[zxydje] [numeric](15, 3) NULL ,[xfrs] [numeric](15, 0) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[xsts] [numeric](18, 0) NULL ,[fjzcs] [numeric](18, 0) NULL ,[fjzce] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_posjz_jb_sw] ([jzrq] [varchar] (12) NOT NULL ,[jzbc] [char] (1) NOT NULL ,[byj] [numeric](10, 3) NULL ,[ysje] [numeric](15, 3) NULL ,[yhje] [numeric](15, 3) NULL ,[ssje] [numeric](15, 3) NULL ,[mlje] [numeric](15, 3) NULL ,[wjje] [numeric](15, 3) NULL ,[ydje] [numeric](15, 3) NULL ,[jsje] [numeric](15, 2) NULL ,[qdje] [numeric](15, 2) NULL ,[kfje] [numeric](15, 2) NULL ,[cyje] [numeric](18, 2) NULL ,[xyje] [numeric](18, 2) NULL ,[yyje] [numeric](15, 2) NULL ,[xscb] [numeric](15, 3) NULL ,[syynm] [varchar] (10) NULL ,[syybm] [varchar] (10) NULL ,[syyxm] [varchar] (10) NULL ,[khqk] [numeric](15, 3) NULL ,[zxydje] [numeric](15, 3) NULL ,[xfrs] [numeric](15, 0) NULL ,[fpje] [numeric](18, 2) NULL ,[jfk] [numeric](18, 2) NULL ,[czk] [numeric](18, 2) NULL ,[tcje] [numeric](18, 2) NULL ,[xsts] [numeric](18, 0) NULL ,[fjzcs] [numeric](18, 0) NULL ,[fjzce] [numeric](18, 2) NULL ,[lx] [varchar] (50) NULL ,[zsje] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_tcyy] ([bm] [varchar] (12) NULL ,[cpmc] [varchar] (40) NULL ,[cpbm] [varchar] (10) NULL ,[tcyy] [varchar] (255) NULL ,[tcsl] [numeric](18, 3) NULL ,[pzr] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL ,[dj] [numeric](18, 2) NULL ,[zwmc] [varchar] (50) NULL ,[bc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_tcyy_xs] ([bm] [varchar] (12) NULL ,[cpmc] [varchar] (40) NULL ,[cpbm] [varchar] (10) NULL ,[tcyy] [varchar] (255) NULL ,[tcsl] [numeric](18, 3) NULL ,[pzr] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL ,[dj] [numeric](18, 2) NULL ,[zwmc] [varchar] (50) NULL ,[bc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_tcyy_jb] ([bm] [varchar] (50) NOT NULL ,[cpmc] [varchar] (50) NULL ,[cpbm] [varchar] (50) NULL ,[tcyy] [varchar] (50) NULL ,[zjm] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_ydd_cp] ([lsh] [varchar] (18) NOT NULL ,[nm] [varchar] (15) NULL ,[bm] [varchar] (10) NULL ,[mc] [varchar] (30) NULL ,[sl] [numeric](10, 3) NULL ,[dw] [varchar] (10) NULL ,[dj] [numeric](10, 3) NULL ,[ssdj] [numeric](15, 3) NULL ,[dzbl] [numeric](15, 3) NULL ,[cpcb] [numeric](15, 3) NULL ,[tcbj] [char] (1) NULL ,[csqc] [varchar] (10) NULL ,[dbdcp] [varchar] (15) NULL ,[zklab] [char] (1) NULL ,[khyq] [varchar] (255) NULL ,[jsf] [char] (1) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_ydd_jb] ([lsh] [varchar] (16) NOT NULL ,[bc] [char] (1) NULL ,[ydrq] [varchar] (8) NULL ,[jsrnm] [varchar] (10) NULL ,[jsrbm] [varchar] (10) NULL ,[jsr] [varchar] (10) NULL ,[kssj] [varchar] (6) NULL ,[jssj] [varchar] (6) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (40) NULL ,[khdz] [varchar] (40) NULL ,[ydr] [varchar] (50) NULL ,[ydrdh] [varchar] (20) NULL ,[gjrs] [int] NULL ,[bzrs] [int] NULL ,[yfdj] [numeric](10, 3) NULL ,[ydzw] [varchar] (255) NULL ,[khyq] [varchar] (255) NULL ,[lab] [char] (1) NULL ,[zxxslsh] [varchar] (16) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_ydd_khyq] ([bm] [varchar] (5) NOT NULL ,[jtnr] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_ydd_td] ([lsh] [varchar] (15) NOT NULL ,[bc] [char] (1) NOT NULL ,[jsr] [varchar] (10) NULL ,[ydlsh] [varchar] (15) NULL ,[tdj] [numeric](10, 3) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_zsyy] ([bm] [varchar] (12) NULL ,[zsr] [varchar] (50) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (50) NULL ,[tcyy] [varchar] (255) NULL ,[tcsl] [numeric](18, 3) NULL ,[lsh] [varchar] (50) NULL ,[dj] [numeric](18, 2) NULL ,[zwmc] [varchar] (50) NULL ,[bc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_zsyy_xs] ([bm] [varchar] (12) NULL ,[zsr] [varchar] (50) NULL ,[cpbm] [varchar] (10) NULL ,[cpmc] [varchar] (50) NULL ,[tcyy] [varchar] (255) NULL ,[tcsl] [numeric](18, 3) NULL ,[lsh] [varchar] (50) NULL ,[dj] [numeric](18, 2) NULL ,[zwmc] [varchar] (50) NULL ,[bc] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_zsyy_jb] ([bm] [varchar] (50) NOT NULL ,[cpbm] [varchar] (50) NULL ,[cpmc] [varchar] (50) NULL ,[tcyy] [varchar] (255) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[yf_gys] ([lsh] [varchar] (25) NOT NULL ,[rklsh] [varchar] (50) NOT NULL ,[jqf] [char] (1) NULL ,[yfje] [numeric](18, 2) NULL ,[yf] [numeric](18, 2) NULL ,[qk] [numeric](18, 2) NULL ,[hk] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[yf_gys_jb] ([lsh] [varchar] (20) NOT NULL ,[jsr] [varchar] (10) NULL ,[skr] [varchar] (10) NULL ,[khnm] [varchar] (50) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (50) NULL ,[fkje] [numeric](15, 2) NULL ,[shr] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[yf_gys_jb_temp] ([lsh] [varchar] (20) NOT NULL ,[jsr] [varchar] (10) NULL ,[skr] [varchar] (10) NULL ,[khnm] [varchar] (50) NULL ,[khbm] [varchar] (10) NULL ,[khmc] [varchar] (50) NULL ,[fkje] [numeric](15, 2) NULL ,[shr] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[yf_gys_temp] ([lsh] [varchar] (25) NOT NULL ,[rklsh] [varchar] (50) NULL ,[jqf] [char] (1) NULL ,[yfje] [numeric](18, 2) NULL ,[yf] [numeric](18, 2) NULL ,[qk] [numeric](18, 2) NULL ,[hk] [numeric](18, 2) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ys_khhk] ([lsh] [varchar] (25) NOT NULL ,[xslsh] [varchar] (16) NULL ,[jqf] [char] (1) NULL ,[ysje] [numeric](18, 2) NULL ,[ys] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[khhk] [numeric](18, 2) NULL ,[xsd] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ys_khhk_jb] ([lsh] [varchar] (20) NOT NULL ,[jsr] [varchar] (10) NULL ,[hkr] [varchar] (10) NULL ,[hkje] [numeric](15, 2) NULL ,[khmc] [varchar] (50) NULL ,[khnm] [varchar] (50) NULL ,[khbm] [varchar] (50) NULL ,[shr] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ys_khhk_jb_temp] ([lsh] [varchar] (20) NOT NULL ,[jsr] [varchar] (10) NULL ,[hkr] [varchar] (10) NULL ,[hkje] [numeric](15, 2) NULL ,[khmc] [varchar] (50) NULL ,[khnm] [varchar] (50) NULL ,[khbm] [varchar] (50) NULL ,[shr] [varchar] (50) NULL ,[shrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ys_khhk_temp] ([lsh] [varchar] (25) NOT NULL ,[xslsh] [varchar] (16) NULL ,[jqf] [char] (1) NULL ,[ysje] [numeric](18, 2) NULL ,[ys] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[khhk] [numeric](18, 2) NULL ,[xsd] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ysyf_maxlsh] ([posbm] [varchar] (50) NOT NULL ,[lx] [varchar] (50) NOT NULL ,[maxlsh] [varchar] (50) NULL ,[rq] [varchar] (50) NOT NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_zwlb] ([yyr] [varchar] (50) NOT NULL ,[zwlbnm] [varchar] (50) NOT NULL ,[zwlbbm] [varchar] (50) NULL ,[zwlbmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[xfrs] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_xtjz_zwlb_sw] ([yyr] [varchar] (50) NOT NULL ,[zwlbnm] [varchar] (50) NOT NULL ,[zwlbbm] [varchar] (50) NULL ,[zwlbmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[xfrs] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_zwlb_xs] ([yyr] [varchar] (50) NOT NULL ,[bc] [varchar] (50) NOT NULL ,[posbm] [varchar] (50) NOT NULL ,[zwlbnm] [varchar] (50) NOT NULL ,[zwlbbm] [varchar] (50) NULL ,[zwlbmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[xfrs] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[xs_pos_zwlb_xs_sw] ([yyr] [varchar] (50) NOT NULL ,[bc] [varchar] (50) NOT NULL ,[posbm] [varchar] (50) NOT NULL ,[zwlbnm] [varchar] (50) NOT NULL ,[zwlbbm] [varchar] (50) NULL ,[zwlbmc] [varchar] (50) NULL ,[ysje] [numeric](18, 2) NULL ,[ssje] [numeric](18, 2) NULL ,[khqk] [numeric](18, 2) NULL ,[xfrs] [numeric](18, 2) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_zwlb] WITH NOCHECK ADD CONSTRAINT [PK_wh_xtjz_zwlb] PRIMARY KEY  CLUSTERED ([yyr],[zwlbnm])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_xtjz_zwlb_sw] WITH NOCHECK ADD CONSTRAINT [PK_wh_xtjz_zwlb_sw] PRIMARY KEY  CLUSTERED ([yyr],[zwlbnm])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[xs_pos_zwlb_xs] WITH NOCHECK ADD CONSTRAINT [PK_xs_pos_zwlb_xs] PRIMARY KEY  CLUSTERED ([yyr],[bc],[posbm],[zwlbnm])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[xs_pos_zwlb_xs_sw] WITH NOCHECK ADD CONSTRAINT [PK_xs_pos_zwlb_xs_sw] PRIMARY KEY  CLUSTERED ([yyr],[bc],[posbm],[zwlbnm])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[bonline] WITH NOCHECK ADDCONSTRAINT [PK_bonline] PRIMARY KEY  CLUSTERED([autoid])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[breceset] WITH NOCHECK ADDCONSTRAINT [PK_breceset] PRIMARY KEY  CLUSTERED([autoid])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[bsysset] WITH NOCHECK ADDCONSTRAINT [PK_bsysset] PRIMARY KEY  CLUSTERED([autoid])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmkcpd_jb] WITH NOCHECK ADDCONSTRAINT [PK_ck_bmkcpd_jb] PRIMARY KEY  CLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spzbdjl] WITH NOCHECK ADDCONSTRAINT [PK_ck_spzbdjl] PRIMARY KEY  CLUSTERED([id])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwkmzd] WITH NOCHECK ADD PRIMARY KEY  CLUSTERED([kmbh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[hbdj_zzyeb] WITH NOCHECK ADDCONSTRAINT [PK_hbdj_zzyeb] PRIMARY KEY  CLUSTERED([rq],[d_year],[d_mouth],[kmmc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[sn_bf] WITH NOCHECK ADDCONSTRAINT [PK_sn_bf] PRIMARY KEY  CLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[sn_bf_lx] WITH NOCHECK ADDCONSTRAINT [PK_sn_bf_lx] PRIMARY KEY  CLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[sn_xs_bf] WITH NOCHECK ADDCONSTRAINT [PK_sn_xs_bf] PRIMARY KEY  CLUSTERED([lsh],[ds])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[t_zd_memu] WITH NOCHECK ADDCONSTRAINT [PK_t_zd_memu] PRIMARY KEY  CLUSTERED([id])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cdlb_auto] WITH NOCHECK ADDCONSTRAINT [PK_wh_cdlb_auto] PRIMARY KEY  CLUSTERED([lbnm],[cdnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_pos_twlb] WITH NOCHECK ADDCONSTRAINT [PK_wh_pos_twlb] PRIMARY KEY  CLUSTERED([lbnm],[posbm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_wpjc] WITH NOCHECK ADDCONSTRAINT [PK_wh_wpjc] PRIMARY KEY  CLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg_tc] WITH NOCHECK ADDCONSTRAINT [PK_wh_zg_tc] PRIMARY KEY  CLUSTERED([ygnm],[cpnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zj] WITH NOCHECK ADDCONSTRAINT [PK_wh_zj] PRIMARY KEY  CLUSTERED([bm])  ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zg_zwdj] ([id] [int] IDENTITY (1, 1) NOT NULL ,[lx] [varchar] (50) NULL ,[bm] [varchar] (50) NULL ,[sz1] [text] NULL ,[sz2] [text] NULL ,[sz3] [text] NULL ,[sz4] [text] NULL ,[sz5] [text] NULL ,[sz6] [text] NULL ,[sz7] [text] NULL ,[sz8] [text] NULL ,[sz9] [text] NULL ,[sz10] [text] NULL ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_zwgl_set] ([id] [int] IDENTITY (1, 1) NOT NULL ,[qyzwgl] [varchar] (50) NULL ,[xtdl] [varchar] (50) NULL ,[jjb] [varchar] (50) NULL ,[fjz] [varchar] (50) NULL ,[qdyh] [varchar] (50) NULL ,[tcgl] [varchar] (50) NULL ,[zsgl] [varchar] (50) NULL ,[a1] [varchar] (50) NULL ,[a2] [varchar] (50) NULL ,[a3] [varchar] (50) NULL ,[a4] [varchar] (50) NULL ,[a5] [varchar] (50) NULL ,[a6] [varchar] (50) NULL ,[a7] [varchar] (50) NULL ,[a8] [varchar] (50) NULL ,[a9] [varchar] (50) NULL ,[a0] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg_zwdj] WITH NOCHECK ADD CONSTRAINT [PK_wh_zg_zwdj] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_zwgl_set] WITH NOCHECK ADD CONSTRAINT [PK_w_zwgl_set] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[xs_pos_cd_lb_xs] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_cd_lb_xs] PRIMARY KEY  CLUSTERED([yyr],[posbm],[bc],[nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_cd_lb_xs_sw] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_cd_lb_xs_sw] PRIMARY KEY  CLUSTERED([yyr],[posbm],[bc],[nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_jsjc] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_jsjc] PRIMARY KEY  CLUSTERED([id])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_khqk] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_khqk] PRIMARY KEY  CLUSTERED([lsh],[xsd],[rq])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_zz] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_zz] PRIMARY KEY  CLUSTERED([lsh],[zrlsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_zz_sw] WITH NOCHECK ADDCONSTRAINT [PK_xs_pos_zz_sw] PRIMARY KEY  CLUSTERED([lsh],[zrlsh])  ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_fplqjl] ([id] [int] IDENTITY (1, 1) NOT NULL ,[fplxid] [int] NULL ,[fpmc] [varchar] (50) NULL ,[fphm] [varchar] (50) NULL ,[fpmz] [decimal](18, 0) NULL ,[lqr] [varchar] (50) NULL ,[lqrq] [varchar] (50) NULL ,[kyf] [varchar] (50) NULL ,[fsrq] [varchar] (50) NULL ,[fsr] [varchar] (50) NULL ,[yyr] [varchar] (50) NULL ,[fpr] [varchar] (50) NULL ,[lsh] [varchar] (50) NULL ,[posbh] [varchar] (50) NULL ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_fplx] ([id] [int] IDENTITY (1, 1) NOT NULL ,[fpmc] [varchar] (50) NULL ,[fpmz] [decimal](18, 0) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_fplqjl] WITH NOCHECK ADD 	CONSTRAINT [PK_wf_fplqjl] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_fplx] WITH NOCHECK ADD CONSTRAINT [PK_wf_fplx] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[wh_kh_phone] ([nm] [varchar] (50) NULL ,[phone] [varchar] (50) NULL ,[mc] [varchar] (50) NULL ,[sfzh] [varchar] (50) NULL,[csrq] [varchar] (50) NULL) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_dzq_sf_list] ([id] [int] IDENTITY (1, 1) NOT NULL ,[xsdlsh] [varchar] (50) NULL ,[xsdxfe] [numeric](18, 2) NULL ,[xsdsyy] [varchar] (50) NULL ,[xsddzq] [numeric](18, 2) NULL ,[yxqlx] [varchar] (50) NULL ,[yxq] [varchar] (50) NULL ,[xsdyyr] [varchar] (50) NULL ,[xsdbc] [varchar] (50) NULL ,[shdlsh] [varchar] (50) NULL ,[shdyyr] [varchar] (50) NULL ,[shdsyy] [varchar] (50) NULL ,[shdxfe] [numeric](18, 2) NULL ,[shdbc] [varchar] (50) NULL ,[syf] [char] (1) NULL,[shddzq] [numeric] (18,2) null ) ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_dzq_sm] ([id] [int] IDENTITY (1, 1) NOT NULL ,[xh] [int] NULL ,[sm] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_dzq_sm] WITH NOCHECK ADD 	CONSTRAINT [PK_wh_dzq_sm] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE TABLE [dbo].[wh_dzq_sz] ([id] [int] IDENTITY (1, 1) NOT NULL ,[qsrq] [varchar] (50) NULL ,[zzrq] [varchar] (50) NULL ,[qsxfe] [numeric](18, 2) NULL ,[zzxfe] [numeric](18, 2) NULL ,[yxq] [varchar] (50) NULL ,[dzq] [numeric](18, 2) NULL ,[czymc] [varchar] (50) NULL ,[yxqlx] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_dzq_sf_list] WITH NOCHECK ADD CONSTRAINT [PK_wh_dzq_sf_list] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_dzq_sz] WITH NOCHECK ADD CONSTRAINT [PK_wh_dzq_sz] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
create table t_Wireless_Message(PkId numeric(10) identity, send_from varchar(4) not null,send_to varchar(4)not null,Message varchar(80) null,send_time varchar(12)  null,send_flag char(1) default 'N', constraint PK_T_Wireless_Message primary key(PkId))
GO
CREATE TABLE [dbo].[wh_dzq_sm] ([id] [int] IDENTITY (1, 1) NOT NULL ,[xh] [int] NULL ,[sm] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_dzq_sm] WITH NOCHECK ADD 	CONSTRAINT [PK_wh_dzq_sm] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE  UNIQUE  CLUSTERED  INDEX [idx_qjbh] ON [dbo].[cw_zwkjqj]([qjbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  CLUSTERED  INDEX [idx_zwpzbh] ON [dbo].[cw_zwpzbh]([kjnd], [kjqj], [lxbh], [pzbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  CLUSTERED  INDEX [idx_zwpzbhbak] ON [dbo].[cw_zwpzbhbak]([kjnd], [kjqj], [lxbh], [pzbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_zw_link] ADDCONSTRAINT [PK_xs_pos_zw_link] PRIMARY KEY  NONCLUSTERED([lx],[lsh],[zwnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[bonline] ADDCONSTRAINT [DF_bonline_tmp1] DEFAULT ('') FOR [tmp1],CONSTRAINT [DF_bonline_tmp2] DEFAULT ('') FOR [tmp2],CONSTRAINT [DF_bonline_tmp3] DEFAULT ('') FOR [tmp3],CONSTRAINT [DF_bonline_tmp4] DEFAULT ('') FOR [tmp4],CONSTRAINT [DF_bonline_tmp5] DEFAULT ('') FOR [tmp5],CONSTRAINT [DF_bonline_tmp6] DEFAULT ('') FOR [tmp6],CONSTRAINT [DF_bonline_tmp7] DEFAULT ('') FOR [tmp7],CONSTRAINT [DF_bonline_tmp8] DEFAULT ('') FOR [tmp8],CONSTRAINT [DF_bonline_tmp9] DEFAULT ('') FOR [tmp9],CONSTRAINT [DF_bonline_tmp10] DEFAULT ('') FOR [tmp10],CONSTRAINT [DF_bonline_tmp11] DEFAULT ('') FOR [tmp11],CONSTRAINT [DF_bonline_tmp12] DEFAULT ('') FOR [tmp12]
GO
ALTER TABLE [dbo].[ck_bmdbxx] ADDCONSTRAINT [PK_ck_bmdbxx] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_dcq_sb_list] ([id] [int] IDENTITY (1, 1) NOT NULL ,[sbh] [varchar] (50) NULL ,[bh] [varchar] (50) NULL ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_dcq_sb_list] WITH NOCHECK ADD CONSTRAINT [PK_wh_dcq_sb_list] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
CREATE  INDEX [pk_ck_bmdbxx_bmnm] ON [dbo].[ck_bmdbxx]([bmnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmdbxx_nm] ON [dbo].[ck_bmdbxx]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmdbxx_shrq] ON [dbo].[ck_bmdbxx]([shrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmdbxx_jb] ADDCONSTRAINT [DF_ck_bmdbxx_jb_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_bmdbxx_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmdbxx_jb_bmnm] ON [dbo].[ck_bmdbxx_jb]([bmnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmdbxx_jb_shrq] ON [dbo].[ck_bmdbxx_jb]([shrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmdbxx_jb_temp] ADDCONSTRAINT [DF_ck_bmdbxx_jb_temp_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_bmdbxx_jb_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmdbxx_temp] ADDCONSTRAINT [PK_ck_bmdbxx_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmkcpd] ADDCONSTRAINT [DF_ck_bmkcpd_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_bmkcpd] PRIMARY KEY  NONCLUSTERED([lsh],[bmnm],[nm],[dj])  ON [PRIMARY]
GO
CREATE  INDEX [ck_bmkcpd_lsh] ON [dbo].[ck_bmkcpd]([lsh]) ON [PRIMARY]
GO
CREATE  INDEX [ck_bmkcpd_bmnm] ON [dbo].[ck_bmkcpd]([bmnm]) ON [PRIMARY]
GO
CREATE  INDEX [ck_bmkcpd_nm] ON [dbo].[ck_bmkcpd]([nm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_bmkcxx] ADDCONSTRAINT [DF_ck_bmkcxx_yhf] DEFAULT (0) FOR [yhf],CONSTRAINT [PK_ck_bmkcxx] PRIMARY KEY  NONCLUSTERED([bmnm],[nm],[hsgx],[zxdj],[gg],[zsf],[ckh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmkcxx_bmnm] ON [dbo].[ck_bmkcxx]([bmnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_bmkcxx_nm] ON [dbo].[ck_bmkcxx]([nm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckjz_jb] ADDCONSTRAINT [PK_ck_ckjz_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_ckjz_jb_jzrq] ON [dbo].[ck_ckjz_jb]([jzrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckjz_jb_temp] ADDCONSTRAINT [PK_ck_ckjz_jb_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckjz_sy] ADDCONSTRAINT [PK_ck_ckjz_sy] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckjz_xx] ADDCONSTRAINT [PK_ck_ckjz_xx] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckjz_xx_temp] ADDCONSTRAINT [PK_ck_ckjz_xx_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_ckxx] ADDCONSTRAINT [PK_ck_ckxx] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_dpda] ADDCONSTRAINT [PK_ck_dpda] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_dplb] ADDCONSTRAINT [PK_ck_dplb] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_gys] ADDCONSTRAINT [PK_ck_gys] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_gys_lb] ADDCONSTRAINT [PK_ck_gys_lb] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_gys_qk_list] ADDCONSTRAINT [PK_ck_gys_qk_list] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spcgd] ADDCONSTRAINT [PK_ck_spcgd] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spcgd_jb] ADDCONSTRAINT [DF_ck_spcgd_jb_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_spcgd_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spdw] ADDCONSTRAINT [PK_ck_spdw] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spkcpd] ADDCONSTRAINT [PK_ck_spkcpd] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spkcpd_jb] ADDCONSTRAINT [DF_ck_spkcpd_jb_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_spkcpd_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spkcpd_jb_temp] ADDCONSTRAINT [DF_ck_spkcpd_jb_temp_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_spkcpd_jb_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spkcpd_temp] ADDCONSTRAINT [PK_ck_spkcpd_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_spkcxx] ADDCONSTRAINT [PK_ck_spkcxx] PRIMARY KEY  NONCLUSTERED([nm],[hsgx],[zxdj],[ckh],[gg],[zsf])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spkcxx_nm] ON [dbo].[ck_spkcxx]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spkcxx_ckh] ON [dbo].[ck_spkcxx]([ckh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_splxb] ADDCONSTRAINT [PK_ck_splxb] PRIMARY KEY  NONCLUSTERED([lsh],[nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd] ADDCONSTRAINT [PK_ck_sprkd] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_sprkd_nm] ON [dbo].[ck_sprkd]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_sprkd_ckh] ON [dbo].[ck_sprkd]([ckh]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_sprkd_shrq] ON [dbo].[ck_sprkd]([shrq]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spcgd_nm] ON [dbo].[ck_sprkd]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spcgd_ckh] ON [dbo].[ck_sprkd]([ckh]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spcgd_shrq] ON [dbo].[ck_sprkd]([shrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_csh] ADDCONSTRAINT [PK_ck_sprkd_csh] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_csh_temp] ADDCONSTRAINT [PK_ck_sprkd_csh_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_jb] ADDCONSTRAINT [DF_ck_sprkd_jb_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_sprkd_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_sprkd_jb_shrq] ON [dbo].[ck_sprkd_jb]([shrq]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_sprkd_jb_nm] ON [dbo].[ck_sprkd_jb]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spcgd_jb_shrq] ON [dbo].[ck_sprkd_jb]([shrq]) ON [PRIMARY]
GO
CREATE  INDEX [pk_ck_spcgd_jb_nm] ON [dbo].[ck_sprkd_jb]([nm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_jb_csh] ADDCONSTRAINT [DF_ck_sprkd_jb_csh_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_sprkd_jb_csh] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_jb_csh_temp] ADDCONSTRAINT [DF_ck_sprkd_jb_csh_temp_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_sprkd_jb_csh_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_jb_temp] ADDCONSTRAINT [DF_ck_sprkd_jb_temp_shf] DEFAULT (0) FOR [shf],CONSTRAINT [PK_ck_sprkd_jb_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ck_sprkd_temp] ADDCONSTRAINT [PK_ck_sprkd_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpkjrydm] ADDCONSTRAINT [DF__kj_pkjryd__kjryd__7C1A6C5A] DEFAULT ('') FOR [kjrydm],CONSTRAINT [DF__kj_pkjryd__kjryx__7D0E9093] DEFAULT ('') FOR [kjryxm],CONSTRAINT [DF__kj_pkjrydm__xb__7E02B4CC] DEFAULT ('') FOR [xb],CONSTRAINT [DF__kj_pkjrydm__mzdm__7EF6D905] DEFAULT ('') FOR [mzdm],CONSTRAINT [DF__kj_pkjryd__zzmmd__7FEAFD3E] DEFAULT ('') FOR [zzmmdm],CONSTRAINT [DF__kj_pkjrydm__bmdm__00DF2177] DEFAULT ('') FOR [bmdm],CONSTRAINT [DF__kj_pkjrydm__ksdm__01D345B0] DEFAULT ('') FOR [ksdm],CONSTRAINT [DF__kj_pkjrydm__xldm__02C769E9] DEFAULT ('') FOR [xldm],CONSTRAINT [DF__kj_pkjrydm__xwdm__03BB8E22] DEFAULT ('') FOR [xwdm],CONSTRAINT [DF__kj_pkjrydm__zcdm__04AFB25B] DEFAULT ('') FOR [zcdm],CONSTRAINT [DF__kj_pkjrydm__zwdm__05A3D694] DEFAULT ('') FOR [zwdm],CONSTRAINT [DF__kj_pkjryd__is_px__0697FACD] DEFAULT ('N') FOR [is_px],CONSTRAINT [DF__kj_pkjryd__kjzbh__078C1F06] DEFAULT ('') FOR [kjzbh],CONSTRAINT [DF__kj_pkjryd__is_yg__0880433F] DEFAULT ('N') FOR [is_ygdg]
GO
CREATE  UNIQUE  INDEX [kjrydm] ON [dbo].[cw_kjpkjrydm]([kjrydm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpksdm] ADDCONSTRAINT [DF__kj_pksdm__bmdm__0A688BB1] DEFAULT ('') FOR [bmdm],CONSTRAINT [DF__kj_pksdm__ksdm__0B5CAFEA] DEFAULT ('') FOR [ksdm],CONSTRAINT [DF__kj_pksdm__ksmc__0C50D423] DEFAULT ('') FOR [ksmc]
GO
CREATE  UNIQUE  INDEX [ksdm] ON [dbo].[cw_kjpksdm]([bmdm], [ksdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpmzdm] ADDCONSTRAINT [DF__kj_pmzdm__mzdm__0E391C95] DEFAULT ('') FOR [mzdm],CONSTRAINT [DF__kj_pmzdm__mzmc__0F2D40CE] DEFAULT ('') FOR [mzmc]
GO
CREATE  UNIQUE  INDEX [mzdm] ON [dbo].[cw_kjpmzdm]([mzdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpxldm] ADDCONSTRAINT [DF__kj_pxldm__xldm__11158940] DEFAULT ('') FOR [xldm],CONSTRAINT [DF__kj_pxldm__xlmc__1209AD79] DEFAULT ('') FOR [xlmc]
GO
CREATE  UNIQUE  INDEX [xldm] ON [dbo].[cw_kjpxldm]([xldm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpxwdm] ADDCONSTRAINT [DF__kj_pxwdm__xwdm__13F1F5EB] DEFAULT ('') FOR [xwdm],CONSTRAINT [DF__kj_pxwdm__xwmc__14E61A24] DEFAULT ('') FOR [xwmc]
GO
CREATE  UNIQUE  INDEX [xwdm] ON [dbo].[cw_kjpxwdm]([xwdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpzcdm] ADDCONSTRAINT [DF__kj_pzcdm__zcdm__16CE6296] DEFAULT ('') FOR [zcdm],CONSTRAINT [DF__kj_pzcdm__zcmc__17C286CF] DEFAULT ('') FOR [zcmc]
GO
CREATE  UNIQUE  INDEX [zcdm] ON [dbo].[cw_kjpzcdm]([zcdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpzwdm] ADDCONSTRAINT [DF__kj_pzwdm__zwdm__19AACF41] DEFAULT ('') FOR [zwdm],CONSTRAINT [DF__kj_pzwdm__zwmc__1A9EF37A] DEFAULT ('') FOR [zwmc]
GO
CREATE  UNIQUE  INDEX [zwdm] ON [dbo].[cw_kjpzwdm]([zwdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_kjpzzmmdm] ADDCONSTRAINT [DF__kj_pzzmmd__zzmmd__1C873BEC] DEFAULT ('') FOR [zzmmdm],CONSTRAINT [DF__kj_pzzmmd__zzmmm__1D7B6025] DEFAULT ('') FOR [zzmmmc]
GO
CREATE  UNIQUE  INDEX [zzmmdm] ON [dbo].[cw_kjpzzmmdm]([zzmmdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_pquery] ADDCONSTRAINT [DF__pquery__fld_prom__5E8A0973] DEFAULT ('') FOR [fld_prompt],CONSTRAINT [DF__pquery__conditio__5F7E2DAC] DEFAULT ('') FOR [condition_example]
GO
CREATE  UNIQUE  INDEX [pquery] ON [dbo].[cw_pquery]([db_name], [xh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [pquery_field] ON [dbo].[cw_pquery_field]([db_name], [xh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [pquery_tj] ON [dbo].[cw_pquery_sjz]([db_name], [tjmc], [tjxh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhdfdwzd] ADDCONSTRAINT [DF__yh_dfdwzd__dfdwd__25869641] DEFAULT ('') FOR [dfdwdm],CONSTRAINT [DF__yh_dfdwzd__dfdwm__267ABA7A] DEFAULT ('') FOR [dfdwmc]
GO
CREATE  UNIQUE  INDEX [dfdwbh] ON [dbo].[cw_yhdfdwzd]([dfdwdm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhdyjg] ADDCONSTRAINT [DF__yh_dyjg__dybh__22AA2996] DEFAULT ('') FOR [dybh],CONSTRAINT [DF__yh_dyjg__zdbh__239E4DCF] DEFAULT ('') FOR [zdbh]
GO
CREATE  UNIQUE  INDEX [dybh] ON [dbo].[cw_yhdyjg]([dybh], [zdbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhkhhzd] ADDCONSTRAINT [DF__yh_khhzd__yhzh__173876EA] DEFAULT ('') FOR [yhzh],CONSTRAINT [DF__yh_khhzd__yhmc__182C9B23] DEFAULT ('') FOR [yhmc],CONSTRAINT [DF__yh_khhzd__dwmc__1920BF5C] DEFAULT ('') FOR [dwmc]
GO
CREATE  UNIQUE  INDEX [yhzh] ON [dbo].[cw_yhkhhzd]([yhzh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhpjgsdy] ADDCONSTRAINT [DF__yh_pjgsdy__dybh__1B0907CE] DEFAULT ('') FOR [dybh],CONSTRAINT [DF__yh_pjgsdy__dymc__1BFD2C07] DEFAULT ('') FOR [dymc],CONSTRAINT [DF__yh_pjgsdy__pjlxb__1CF15040] DEFAULT ('') FOR [pjlxbh],CONSTRAINT [DF__yh_pjgsdy__dyyg__1DE57479] DEFAULT ('') FOR [dyyg],CONSTRAINT [DF__yh_pjgsdy__dyyk__1ED998B2] DEFAULT ('') FOR [dyyk],CONSTRAINT [DF__yh_pjgsdy__dybs__1FCDBCEB] DEFAULT (1) FOR [dybs],CONSTRAINT [DF__yh_pjgsdy__dywj__20C1E124] DEFAULT ('') FOR [dywj]
GO
CREATE  UNIQUE  INDEX [dybh] ON [dbo].[cw_yhpjgsdy]([dybh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhpjgszd] ADDCONSTRAINT [DF__yh_pjgszd__pjlxb__0EA330E9] DEFAULT ('') FOR [pjlxbh],CONSTRAINT [DF__yh_pjgszd__zdbh__0F975522] DEFAULT ('') FOR [zdbh],CONSTRAINT [DF__yh_pjgszd__zdmc__108B795B] DEFAULT ('') FOR [zdmc],CONSTRAINT [DF__yh_pjgszd__sjlx__117F9D94] DEFAULT ('') FOR [sjlx],CONSTRAINT [DF__yh_pjgszd__xsws__1273C1CD] DEFAULT (0) FOR [xsws],CONSTRAINT [DF__yh_pjgszd__zdlx__1367E606] DEFAULT ('') FOR [zdlx],CONSTRAINT [DF__yh_pjgszd__dyws__145C0A3F] DEFAULT (0) FOR [dyws],CONSTRAINT [DF__yh_pjgszd__dyjsg__15502E78] DEFAULT ('') FOR [dyjsgs]
GO
CREATE  UNIQUE  INDEX [pjlxbh] ON [dbo].[cw_yhpjgszd]([pjlxbh], [zdbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhpjk] ADDCONSTRAINT [DF__yh_pjk__pjnm__286302EC] DEFAULT ('') FOR [pjnm],CONSTRAINT [DF__yh_pjk__kjnd__29572725] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__yh_pjk__kjqj__2A4B4B5E] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__yh_pjk__pjlxbh__2B3F6F97] DEFAULT ('') FOR [pjlxbh],CONSTRAINT [DF__yh_pjk__pjh__2C3393D0] DEFAULT ('') FOR [pjh],CONSTRAINT [DF__yh_pjk__ywrq__2D27B809] DEFAULT ('') FOR [ywrq],CONSTRAINT [DF__yh_pjk__yt__2E1BDC42] DEFAULT ('') FOR [yt],CONSTRAINT [DF__yh_pjk__je__2F10007B] DEFAULT (0) FOR [je],CONSTRAINT [DF__yh_pjk__zff__300424B4] DEFAULT ('0') FOR [zff]
GO
CREATE  UNIQUE  INDEX [pjnm] ON [dbo].[cw_yhpjk]([pjnm]) ON [PRIMARY]
GO
CREATE  INDEX [pjlxbh] ON [dbo].[cw_yhpjk]([pjlxbh], [ywrq]) ON [PRIMARY]
GO
CREATE  INDEX [kjnd] ON [dbo].[cw_yhpjk]([kjnd], [kjqj], [pjlxbh], [pjh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhpjkzd] ADDCONSTRAINT [DF__yh_pjkzd__zdbh__0AD2A005] DEFAULT ('') FOR [zdbh],CONSTRAINT [DF__yh_pjkzd__zdmc__0BC6C43E] DEFAULT ('') FOR [zdmc],CONSTRAINT [DF__yh_pjkzd__sjlx__0CBAE877] DEFAULT ('') FOR [sjlx]
GO
CREATE  UNIQUE  INDEX [zdbh] ON [dbo].[cw_yhpjkzd]([zdbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_yhpjlxzd] ADDCONSTRAINT [DF__yh_pjlxzd__pjlxb__07F6335A] DEFAULT ('') FOR [pjlxbh],CONSTRAINT [DF__yh_pjlxzd__pjmc__08EA5793] DEFAULT ('') FOR [pjmc]
GO
CREATE  UNIQUE  INDEX [pjlxbh] ON [dbo].[cw_yhpjlxzd]([pjlxbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwbmgz] ADDCONSTRAINT [DF__zwbmgz__bmms__31EC6D26] DEFAULT ('') FOR [bmms]
GO
CREATE  UNIQUE  INDEX [idx_zwbmgz] ON [dbo].[cw_zwbmgz]([bmbm]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwbmtjb_x] ON [dbo].[cw_zwbmtjb]([tjbbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwbmtjb_lm_x] ON [dbo].[cw_zwbmtjblm]([tjbbh], [lmxh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwbmxz] ADDCONSTRAINT [DF__zwbmxz__bmxzmc__412EB0B6] DEFAULT ('') FOR [bmxzmc]
GO
CREATE  UNIQUE  INDEX [zwbmxz_pk] ON [dbo].[cw_zwbmxz]([bmxzbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwbmzd] ADDCONSTRAINT [DF__zwbmzd__bmmc__3C69FB99] DEFAULT ('') FOR [bmmc],CONSTRAINT [DF__zwbmzd__jc__3D5E1FD2] DEFAULT ('1') FOR [jc],CONSTRAINT [DF__zwbmzd__mx__3E52440B] DEFAULT ('1') FOR [mx],CONSTRAINT [DF__zwbmzd__qyf__3F466844] DEFAULT ('1') FOR [qyf]
GO
CREATE  UNIQUE  INDEX [zwbmzd_pk] ON [dbo].[cw_zwbmzd]([bmbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwdlcs] ADDCONSTRAINT [DF__zwdlcs__lmkd__72C60C4A] DEFAULT (0) FOR [lmkd]
GO
CREATE  UNIQUE  INDEX [idx_zwdlcs] ON [dbo].[cw_zwdlcs]([dlbh], [lxbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwdllm] ON [dbo].[cw_zwdllm]([lmbh], [dlbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwdzqc] ADDCONSTRAINT [DF__zwdzqc__jje__1EA48E88] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwdzqc__dje__1F98B2C1] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwdzqc__ye__208CD6FA] DEFAULT (0) FOR [ye]
GO
CREATE  INDEX [idx_zwdzqc] ON [dbo].[cw_zwdzqc]([kmbh], [qcrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwdzzh] ADDCONSTRAINT [DF__zwdzzh__yhye__22751F6C] DEFAULT (0) FOR [yhye],CONSTRAINT [DF__zwdzzh__dwye__236943A5] DEFAULT (0) FOR [dwye],CONSTRAINT [DF__zwdzzh__qyf__245D67DE] DEFAULT ('1') FOR [qyf]
GO
CREATE  UNIQUE  INDEX [zwdzzh_pk1] ON [dbo].[cw_zwdzzh]([kmbh]) ON [PRIMARY]
GO
CREATE  INDEX [zwdzzh_pk2] ON [dbo].[cw_zwdzzh]([kmbh], [wbbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwfzje] ADDCONSTRAINT [DF__zwfzje__ncye__03F0984C] DEFAULT (0) FOR [ncye],CONSTRAINT [DF__zwfzje__jffs__04E4BC85] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__zwfzje__dffs__05D8E0BE] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__zwfzje__jflj__06CD04F7] DEFAULT (0) FOR [jflj],CONSTRAINT [DF__zwfzje__dflj__07C12930] DEFAULT (0) FOR [dflj],CONSTRAINT [DF__zwfzje__dqye__08B54D69] DEFAULT (0) FOR [dqye]
GO
CREATE  INDEX [dx_zwfzje1] ON [dbo].[cw_zwfzje]([kjnd], [kjqj], [kmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwfzje2] ON [dbo].[cw_zwfzje]([kmbh], [bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwfzje] ON [dbo].[cw_zwfzje]([bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwfzje0] ON [dbo].[cw_zwfzje]([kmbh], [kjnd], [kjqj], [bmbh], [xmbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwfzwb] ADDCONSTRAINT [DF__zwfzwb__wbncye__0A9D95DB] DEFAULT (0) FOR [wbncye],CONSTRAINT [DF__zwfzwb__wbjffs__0B91BA14] DEFAULT (0) FOR [wbjffs],CONSTRAINT [DF__zwfzwb__wbdffs__0C85DE4D] DEFAULT (0) FOR [wbdffs],CONSTRAINT [DF__zwfzwb__wbjflj__0D7A0286] DEFAULT (0) FOR [wbjflj],CONSTRAINT [DF__zwfzwb__wbdflj__0E6E26BF] DEFAULT (0) FOR [wbdflj],CONSTRAINT [DF__zwfzwb__wbdqye__0F624AF8] DEFAULT (0) FOR [wbdqye],CONSTRAINT [DF__zwfzwb__ncye__10566F31] DEFAULT (0) FOR [ncye],CONSTRAINT [DF__zwfzwb__jffs__114A936A] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__zwfzwb__dffs__123EB7A3] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__zwfzwb__jflj__1332DBDC] DEFAULT (0) FOR [jflj],CONSTRAINT [DF__zwfzwb__dflj__14270015] DEFAULT (0) FOR [dflj],CONSTRAINT [DF__zwfzwb__dqye__151B244E] DEFAULT (0) FOR [dqye]
GO
CREATE  INDEX [idx_zwkmwb1] ON [dbo].[cw_zwfzwb]([kjnd], [kjqj], [kmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwkmwb] ON [dbo].[cw_zwfzwb]([kmbh], [bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwkmwb3] ON [dbo].[cw_zwfzwb]([bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwgnqx_pk] ON [dbo].[cw_zwgnqx]([yhbh], [gnbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwgnzd_pk] ON [dbo].[cw_zwgnzd]([gnbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwjsfs] ADDCONSTRAINT [DF__zwjsfs__qyf__4D94879B] DEFAULT ('1') FOR [qyf]
GO
CREATE  UNIQUE  INDEX [idx_jsfs] ON [dbo].[cw_zwjsfs]([jsbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwkmje] ADDCONSTRAINT [DF__zwkmje__ncye__5FB337D6] DEFAULT (0) FOR [ncye],CONSTRAINT [DF__zwkmje__jffs__60A75C0F] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__zwkmje__dffs__619B8048] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__zwkmje__jflj__628FA481] DEFAULT (0) FOR [jflj],CONSTRAINT [DF__zwkmje__dflj__6383C8BA] DEFAULT (0) FOR [dflj],CONSTRAINT [DF__zwkmje__dqye__6477ECF3] DEFAULT (0) FOR [dqye]
GO
CREATE  UNIQUE  INDEX [idx_zwkmje1] ON [dbo].[cw_zwkmje]([kmbh], [kjnd], [kjqj]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwkmje2] ON [dbo].[cw_zwkmje]([kjnd], [kjqj], [kmbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwkmwb] ADDCONSTRAINT [DF__zwkmwb__wbncye__66603565] DEFAULT (0) FOR [wbncye],CONSTRAINT [DF__zwkmwb__wbjffs__6754599E] DEFAULT (0) FOR [wbjffs],CONSTRAINT [DF__zwkmwb__wbdffs__68487DD7] DEFAULT (0) FOR [wbdffs],CONSTRAINT [DF__zwkmwb__wbjflj__693CA210] DEFAULT (0) FOR [wbjflj],CONSTRAINT [DF__zwkmwb__wbdflj__6A30C649] DEFAULT (0) FOR [wbdflj],CONSTRAINT [DF__zwkmwb__wbdqye__6B24EA82] DEFAULT (0) FOR [wbdqye],CONSTRAINT [DF__zwkmwb__ncye__6C190EBB] DEFAULT (0) FOR [ncye],CONSTRAINT [DF__zwkmwb__jffs__6D0D32F4] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__zwkmwb__dffs__6E01572D] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__zwkmwb__jflj__6EF57B66] DEFAULT (0) FOR [jflj],CONSTRAINT [DF__zwkmwb__dflj__6FE99F9F] DEFAULT (0) FOR [dflj],CONSTRAINT [DF__zwkmwb__dqye__70DDC3D8] DEFAULT (0) FOR [dqye]
GO
CREATE  UNIQUE  INDEX [idx_zwwbje] ON [dbo].[cw_zwkmwb]([kmbh], [kjnd], [kjqj], [wbbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwkmzd] ADDCONSTRAINT [DF__zwkmzd__kmmc__35BCFE0A] DEFAULT ('') FOR [kmmc],CONSTRAINT [DF__zwkmzd__yefx__36B12243] DEFAULT ('1') FOR [yefx],CONSTRAINT [DF__zwkmzd__wbhs__37A5467C] DEFAULT ('0') FOR [wbhs],CONSTRAINT [DF__zwkmzd__bmhs__38996AB5] DEFAULT ('0') FOR [bmhs],CONSTRAINT [DF__zwkmzd__xmhs__398D8EEE] DEFAULT ('0') FOR [xmhs],CONSTRAINT [DF__zwkmzd__qyf__3A81B327] DEFAULT ('1') FOR [qyf]
GO
ALTER TABLE [dbo].[cw_zwmbmx] ADDCONSTRAINT [DF__zwmbmx__fpbl__571DF1D5] DEFAULT (1) FOR [fpbl]
GO
CREATE  UNIQUE  INDEX [zwmbmx_pk] ON [dbo].[cw_zwmbmx]([mbbh], [flbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwmkb_pk] ON [dbo].[cw_zwmkb]([mkbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwnbbm] ON [dbo].[cw_zwnbbm]([nmbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwpass] ADDCONSTRAINT [DF__zwpass__isweb__55009F39] DEFAULT ('0') FOR [isweb]
GO
CREATE  UNIQUE  INDEX [zwpass_pk] ON [dbo].[cw_zwpass]([yhbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwpzb] ADDCONSTRAINT [DF__zwpzb__fhf__75A278F5] DEFAULT ('0') FOR [fhf],CONSTRAINT [DF__zwpzb__jzf__76969D2E] DEFAULT ('0') FOR [jzf],CONSTRAINT [DF__zwpzb__zff__778AC167] DEFAULT ('0') FOR [zff],CONSTRAINT [DF__zwpzb__wzf__787EE5A0] DEFAULT ('1') FOR [wzf]
GO
CREATE  UNIQUE  INDEX [idx_zwpzb] ON [dbo].[cw_zwpzb]([pznm]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwpzb1] ON [dbo].[cw_zwpzb]([kjnd], [kjqj], [pzbh], [lxbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwpzb2] ON [dbo].[cw_zwpzb]([pzrq], [pzbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwpzdyjg_pk] ON [dbo].[cw_zwpzdyjg]([dybh], [zdbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwpzdylx_pk] ON [dbo].[cw_zwpzdylx]([pzdylxbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwpzfl] ADDCONSTRAINT [DF__zwpzfl__pznm__7A672E12] DEFAULT ('') FOR [pznm],CONSTRAINT [DF__zwpzfl__jje__7B5B524B] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwpzfl__dje__7C4F7684] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwpzfl__hl__7D439ABD] DEFAULT (0) FOR [hl],CONSTRAINT [DF__zwpzfl__jwb__7E37BEF6] DEFAULT (0) FOR [jwb],CONSTRAINT [DF__zwpzfl__dwb__7F2BE32F] DEFAULT (0) FOR [dwb]
GO
CREATE  UNIQUE  INDEX [idx_pznm] ON [dbo].[cw_zwpzfl]([pznm], [flbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_kmbh] ON [dbo].[cw_zwpzfl]([kmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwpzgsdy_pk] ON [dbo].[cw_zwpzgsdy]([dybh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwpzlx_pk] ON [dbo].[cw_zwpzlx]([lxbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwpzmb] ON [dbo].[cw_zwpzmb]([mbbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwreco] ADDCONSTRAINT [DF__zwreco__dateb__56E8E7AB] DEFAULT ('') FOR [dateb],CONSTRAINT [DF__zwreco__timeb__57DD0BE4] DEFAULT ('') FOR [timeb],CONSTRAINT [DF__zwreco__uses__58D1301D] DEFAULT ('') FOR [uses]
GO
CREATE  UNIQUE  INDEX [zwreco_pk] ON [dbo].[cw_zwreco]([yhbh], [dateb], [timeb]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwrjqc] ADDCONSTRAINT [DF__zwrjqc__jje__2645B050] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwrjqc__dje__2739D489] DEFAULT (0) FOR [dje]
GO
CREATE  INDEX [idx_zwriqc] ON [dbo].[cw_zwrjqc]([kmbh], [qcrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwrjzd] ADDCONSTRAINT [DF__zwrjzd__jje__29221CFB] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwrjzd__dje__2A164134] DEFAULT (0) FOR [dje]
GO
CREATE  UNIQUE  INDEX [idx_nm] ON [dbo].[cw_zwrjzd]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwrjzd] ON [dbo].[cw_zwrjzd]([kmbh], [ywrq]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwscwjdy] ADDCONSTRAINT [DF__zwscwjdy__kjnd__5BAD9CC8] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__zwscwjdy__kjqj__5CA1C101] DEFAULT ('') FOR [kjqj]
GO
CREATE  UNIQUE  INDEX [scwjdy_xh] ON [dbo].[cw_zwscwjdy]([xh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwsjqx_pk] ON [dbo].[cw_zwsjqx]([yhbh], [qxbh], [sjbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwslfl] ADDCONSTRAINT [DF__zwslfl__pznm__6166761E] DEFAULT ('') FOR [pznm],CONSTRAINT [DF__zwslfl__kjnd__625A9A57] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__zwslfl__kjqj__634EBE90] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__zwslfl__pzrq__6442E2C9] DEFAULT ('') FOR [pzrq],CONSTRAINT [DF__zwslfl__lxbh__65370702] DEFAULT ('') FOR [lxbh],CONSTRAINT [DF__zwslfl__pzbh__662B2B3B] DEFAULT ('') FOR [pzbh],CONSTRAINT [DF__zwslfl__bh__671F4F74] DEFAULT (0) FOR [bh],CONSTRAINT [DF__zwslfl__kmbh__681373AD] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__zwslfl__djh__690797E6] DEFAULT ('') FOR [djh],CONSTRAINT [DF__zwslfl__wpbh__69FBBC1F] DEFAULT ('') FOR [wpbh],CONSTRAINT [DF__zwslfl__wpmc__6AEFE058] DEFAULT ('') FOR [wpmc],CONSTRAINT [DF__zwslfl__sccj__6BE40491] DEFAULT ('') FOR [sccj],CONSTRAINT [DF__zwslfl__bmbh__6CD828CA] DEFAULT ('') FOR [bmbh],CONSTRAINT [DF__zwslfl__jldw__6DCC4D03] DEFAULT ('') FOR [jldw],CONSTRAINT [DF__zwslfl__sl__6EC0713C] DEFAULT (0) FOR [sl],CONSTRAINT [DF__zwslfl__dj__6FB49575] DEFAULT (0) FOR [dj],CONSTRAINT [DF__zwslfl__je__70A8B9AE] DEFAULT (0) FOR [je],CONSTRAINT [DF__zwslfl__isbf__719CDDE7] DEFAULT ('') FOR [isbf],CONSTRAINT [DF__zwslfl__jsr__72910220] DEFAULT ('') FOR [jsr],CONSTRAINT [DF__zwslfl__srxm__73852659] DEFAULT ('') FOR [srxm]
GO
CREATE  INDEX [zwslfl] ON [dbo].[cw_zwslfl]([kjnd], [kjqj], [lxbh], [pzbh], [bh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwthfz] ON [dbo].[cw_zwthfz]([bh], [thkm], [bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwthmx] ON [dbo].[cw_zwthmx]([bh], [thkm], [wbbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwthpz] ON [dbo].[cw_zwthpz]([bh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwwbhl_index] ON [dbo].[cw_zwwbhl]([wbbh], [kjnd], [kjqj]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwwbzd] ON [dbo].[cw_zwwbzd]([wbbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwxmje] ADDCONSTRAINT [DF__zwxmje__ncye__17F790F9] DEFAULT (0) FOR [ncye],CONSTRAINT [DF__zwxmje__jffs__18EBB532] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__zwxmje__dffs__19DFD96B] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__zwxmje__jflj__1AD3FDA4] DEFAULT (0) FOR [jflj],CONSTRAINT [DF__zwxmje__dflj__1BC821DD] DEFAULT (0) FOR [dflj],CONSTRAINT [DF__zwxmje__dqye__1CBC4616] DEFAULT (0) FOR [dqye]
GO
CREATE  UNIQUE  INDEX [idx_zwxmje1] ON [dbo].[cw_zwxmje]([kjnd], [kjqj], [bmbh], [xmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwxmje2] ON [dbo].[cw_zwxmje]([bmbh], [xmbh], [kjnd], [kjqj]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwxmje3] ON [dbo].[cw_zwxmje]([bmbh], [xmbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwxmlb] ADDCONSTRAINT [DF__zwxmlb__lbmc__4316F928] DEFAULT ('') FOR [lbmc]
GO
CREATE  UNIQUE  INDEX [zwxmlb] ON [dbo].[cw_zwxmlb]([lbbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwxmtjb_x] ON [dbo].[cw_zwxmtjb]([tjbbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwxmtjb_lm_x] ON [dbo].[cw_zwxmtjblm]([tjbbh], [lmxh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwxmzd] ADDCONSTRAINT [DF__zwxmzd__xmnm__44FF419A] DEFAULT ('') FOR [xmnm],CONSTRAINT [DF__zwxmzd__xmmc__45F365D3] DEFAULT ('') FOR [xmmc],CONSTRAINT [DF__zwxmzd__jc__46E78A0C] DEFAULT ('1') FOR [jc],CONSTRAINT [DF__zwxmzd__mx__47DBAE45] DEFAULT ('1') FOR [mx],CONSTRAINT [DF__zwxmzd__fzr__48CFD27E] DEFAULT ('') FOR [fzr],CONSTRAINT [DF__zwxmzd__czje__49C3F6B7] DEFAULT (0) FOR [czje],CONSTRAINT [DF__zwxmzd__qyf__4AB81AF0] DEFAULT ('1') FOR [qyf],CONSTRAINT [DF__zwxmzd__fkf__4BAC3F29] DEFAULT ('0') FOR [fkf]
GO
CREATE  UNIQUE  INDEX [zwxmzd_pk2] ON [dbo].[cw_zwxmzd]([xmbh], [bmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwxtcs] ON [dbo].[cw_zwxtcs]([csmc]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwyhjg] ON [dbo].[cw_zwyhjg]([jgbh], [zdmc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwyhzd] ADDCONSTRAINT [DF__zwyhzd__jje__2CF2ADDF] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwyhzd__dje__2DE6D218] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwyhzd__ye__2EDAF651] DEFAULT (0) FOR [ye]
GO
CREATE  UNIQUE  INDEX [idx_nm1] ON [dbo].[cw_zwyhzd]([nm]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwyhzd] ON [dbo].[cw_zwyhzd]([kmbh], [ywrq]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzblm] ON [dbo].[cw_zwzblm]([zbbh], [lmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwzbzd] ON [dbo].[cw_zwzbzd]([zbbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwzcdz] ADDCONSTRAINT [DF__zwzcdz__bh__31B762FC] DEFAULT (1) FOR [bh],CONSTRAINT [DF__zwzcdz__zy__32AB8735] DEFAULT ('') FOR [zy],CONSTRAINT [DF__zwzcdz__jje__339FAB6E] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwzcdz__dje__3493CFA7] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwzcdz__ckye__3587F3E0] DEFAULT (0) FOR [ckye],CONSTRAINT [DF__zwzcdz__dzf__367C1819] DEFAULT ('0') FOR [dzf],CONSTRAINT [DF__zwzcdz__pznm__37703C52] DEFAULT ('0') FOR [pznm]
GO
CREATE  INDEX [idx_zwzcdz1] ON [dbo].[cw_zwzcdz]([kjnd], [kjqj], [pzbh], [lxbh], [kmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_dch] ON [dbo].[cw_zwzcdz]([dch]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwzcdz2] ON [dbo].[cw_zwzcdz]([bmbh], [xmbh], [kmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwzcdz] ON [dbo].[cw_zwzcdz]([pzrq], [lxbh], [pzbh], [dch], [bh], [zrr]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwzcdzjg] ADDCONSTRAINT [DF__zwzcdzjg__bh__40F9A68C] DEFAULT (1) FOR [bh],CONSTRAINT [DF__zwzcdzjg__zy__41EDCAC5] DEFAULT ('') FOR [zy],CONSTRAINT [DF__zwzcdzjg__jje__42E1EEFE] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwzcdzjg__dje__43D61337] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwzcdzjg__ckye__44CA3770] DEFAULT (0) FOR [ckye],CONSTRAINT [DF__zwzcdzjg__dzf__45BE5BA9] DEFAULT ('1') FOR [dzf],CONSTRAINT [DF__zwzcdzjg__pznm__46B27FE2] DEFAULT ('0') FOR [pznm]
GO
CREATE  UNIQUE  INDEX [idx_zwzcdzjg] ON [dbo].[cw_zwzcdzjg]([pzrq], [lxbh], [pzbh], [dch], [bh], [zrr]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzdzd_pk] ON [dbo].[cw_zwzdzd]([zdbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwzfdz] ADDCONSTRAINT [DF__zwzfdz__bh__395884C4] DEFAULT (1) FOR [bh],CONSTRAINT [DF__zwzfdz__zy__3A4CA8FD] DEFAULT ('') FOR [zy],CONSTRAINT [DF__zwzfdz__jje__3B40CD36] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwzfdz__dje__3C34F16F] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwzfdz__jkye__3D2915A8] DEFAULT (0) FOR [jkye],CONSTRAINT [DF__zwzfdz__dzf__3E1D39E1] DEFAULT ('0') FOR [dzf],CONSTRAINT [DF__zwzfdz__pznm__3F115E1A] DEFAULT ('0') FOR [pznm]
GO
CREATE  INDEX [idx_dch1] ON [dbo].[cw_zwzfdz]([dch]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwzfdz1] ON [dbo].[cw_zwzfdz]([kjnd], [kjqj], [pzbh], [lxbh], [kmbh]) ON [PRIMARY]
GO
CREATE  INDEX [idx_zwzfdz2] ON [dbo].[cw_zwzfdz]([bmbh], [xmbh], [kmbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwzfdz] ON [dbo].[cw_zwzfdz]([pzrq], [lxbh], [pzbh], [dch], [bh], [zrr]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwzfdzjg] ADDCONSTRAINT [DF__zwzfdzjg__bh__489AC854] DEFAULT (1) FOR [bh],CONSTRAINT [DF__zwzfdzjg__jje__498EEC8D] DEFAULT (0) FOR [jje],CONSTRAINT [DF__zwzfdzjg__dje__4A8310C6] DEFAULT (0) FOR [dje],CONSTRAINT [DF__zwzfdzjg__jkye__4B7734FF] DEFAULT (0) FOR [jkye],CONSTRAINT [DF__zwzfdzjg__dzf__4C6B5938] DEFAULT ('1') FOR [dzf],CONSTRAINT [DF__zwzfdzjg__pznm__4D5F7D71] DEFAULT ('0') FOR [pznm]
GO
CREATE  UNIQUE  INDEX [idx_zwzfdzjg] ON [dbo].[cw_zwzfdzjg]([pzrq], [lxbh], [pzbh], [dch], [bh], [zrr]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzgzd_pk] ON [dbo].[cw_zwzgzd]([ygbh]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[cw_zwzpjj] ADDCONSTRAINT [DF__zwzpjj__hxf__4F47C5E3] DEFAULT ('0') FOR [hxf]
GO
CREATE  UNIQUE  INDEX [idx_zwzpjj] ON [dbo].[cw_zwzpjj]([ywrq], [bh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [idx_zwzyzd] ON [dbo].[cw_zwzyzd]([zybh], [lxbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzzfl_copy_x] ON [dbo].[cw_zwzzfl]([zzbh], [flbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzzflzd_pk] ON [dbo].[cw_zwzzflzd]([zzflbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [zwzzpz_pk] ON [dbo].[cw_zwzzpz]([zzbh]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [pbcatcol_idx] ON [dbo].[pbcatcol]([pbc_tnam], [pbc_ownr], [pbc_cnam]) ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [pbcattbl_idx] ON [dbo].[pbcattbl]([pbt_tnam], [pbt_ownr]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[temp_dlz_001] ADDCONSTRAINT [DF__temp_dlz_001__xh__255C790F] DEFAULT ('') FOR [xh],CONSTRAINT [DF__temp_dlz_0__kjqj__26509D48] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_dlz_0__lxbh__2744C181] DEFAULT ('') FOR [lxbh],CONSTRAINT [DF__temp_dlz_00__pzz__2838E5BA] DEFAULT ('') FOR [pzz],CONSTRAINT [DF__temp_dlz_0__pzbh__292D09F3] DEFAULT ('') FOR [pzbh],CONSTRAINT [DF__temp_dlz_0__pzrq__2A212E2C] DEFAULT ('') FOR [pzrq],CONSTRAINT [DF__temp_dlz_0__yefx__2B155265] DEFAULT ('1') FOR [yefx],CONSTRAINT [DF__temp_dlz_001__ye__2C09769E] DEFAULT (0) FOR [ye],CONSTRAINT [DF__temp_dlz_001__zy__2CFD9AD7] DEFAULT ('') FOR [zy],CONSTRAINT [DF__temp_dlz___km101__2DF1BF10] DEFAULT (0) FOR [km101],CONSTRAINT [DF__temp_dlz_00__jje__2EE5E349] DEFAULT (0) FOR [jje],CONSTRAINT [DF__temp_dlz_00__dje__2FDA0782] DEFAULT (0) FOR [dje]
GO
ALTER TABLE [dbo].[temp_dlz_002] ADDCONSTRAINT [DF__temp_dlz_002__xh__64B7E415] DEFAULT ('') FOR [xh],CONSTRAINT [DF__temp_dlz_0__kjqj__65AC084E] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_dlz_0__lxbh__66A02C87] DEFAULT ('') FOR [lxbh],CONSTRAINT [DF__temp_dlz_00__pzz__679450C0] DEFAULT ('') FOR [pzz],CONSTRAINT [DF__temp_dlz_0__pzbh__688874F9] DEFAULT ('') FOR [pzbh],CONSTRAINT [DF__temp_dlz_0__pzrq__697C9932] DEFAULT ('') FOR [pzrq],CONSTRAINT [DF__temp_dlz_0__yefx__6A70BD6B] DEFAULT ('1') FOR [yefx],CONSTRAINT [DF__temp_dlz_002__ye__6B64E1A4] DEFAULT (0) FOR [ye],CONSTRAINT [DF__temp_dlz_002__zy__6C5905DD] DEFAULT ('') FOR [zy],CONSTRAINT [DF__temp_dlz___km001__6D4D2A16] DEFAULT (0) FOR [km001],CONSTRAINT [DF__temp_dlz_00__jje__6E414E4F] DEFAULT (0) FOR [jje],CONSTRAINT [DF__temp_dlz_00__dje__6F357288] DEFAULT (0) FOR [dje]
GO
ALTER TABLE [dbo].[temp_ssphb_001] ADDCONSTRAINT [DF__temp_ssphb__kmbh__2FA4FD58] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_ssphb__kmmc__30992191] DEFAULT ('') FOR [kmmc],CONSTRAINT [DF__temp_ssphb_0__jc__318D45CA] DEFAULT ('1') FOR [jc],CONSTRAINT [DF__temp_ssphb__yefx__32816A03] DEFAULT ('1') FOR [yefx],CONSTRAINT [DF__temp_ssphb__qcye__33758E3C] DEFAULT (0) FOR [qcye],CONSTRAINT [DF__temp_ssphb__jffs__3469B275] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__temp_ssphb__dffs__355DD6AE] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__temp_ssphb__qmye__3651FAE7] DEFAULT (0) FOR [qmye]
GO
ALTER TABLE [dbo].[temp_ssphb_002] ADDCONSTRAINT [DF__temp_ssphb__kmbh__68D28DBC] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_ssphb__kmmc__69C6B1F5] DEFAULT ('') FOR [kmmc],CONSTRAINT [DF__temp_ssphb_0__jc__6ABAD62E] DEFAULT ('1') FOR [jc],CONSTRAINT [DF__temp_ssphb__yefx__6BAEFA67] DEFAULT ('1') FOR [yefx],CONSTRAINT [DF__temp_ssphb__qcye__6CA31EA0] DEFAULT (0) FOR [qcye],CONSTRAINT [DF__temp_ssphb__jffs__6D9742D9] DEFAULT (0) FOR [jffs],CONSTRAINT [DF__temp_ssphb__dffs__6E8B6712] DEFAULT (0) FOR [dffs],CONSTRAINT [DF__temp_ssphb__qmye__6F7F8B4B] DEFAULT (0) FOR [qmye]
GO
ALTER TABLE [dbo].[temp_zwkmje_001] ADDCONSTRAINT [DF__temp_zwkmj__kjnd__1431ED0D] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__temp_zwkmj__kjqj__15261146] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_zwkmj__kmbh__161A357F] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_zwkmj__ncye__170E59B8] DEFAULT (0) FOR [ncye]
GO
ALTER TABLE [dbo].[temp_zwkmje_002] ADDCONSTRAINT [DF__temp_zwkmj__kjnd__473C8FC7] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__temp_zwkmj__kjqj__4830B400] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_zwkmj__kmbh__4924D839] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_zwkmj__ncye__4A18FC72] DEFAULT (0) FOR [ncye]
GO
ALTER TABLE [dbo].[temp_zwpzfl_view_001] ADDCONSTRAINT [DF__temp_zwpzf__kjnd__09B45E9A] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__temp_zwpzf__kjqj__0AA882D3] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_zwpzf__pzrq__0B9CA70C] DEFAULT ('') FOR [pzrq],CONSTRAINT [DF__temp_zwpzf__pzbh__0C90CB45] DEFAULT ('') FOR [pzbh],CONSTRAINT [DF__temp_zwpzf__lxbh__0D84EF7E] DEFAULT ('') FOR [lxbh],CONSTRAINT [DF__temp_zwpzfl__pzz__0E7913B7] DEFAULT ('') FOR [pzz],CONSTRAINT [DF__temp_zwpzf__kmbh__0F6D37F0] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_zwpzfl___zy__10615C29] DEFAULT ('') FOR [zy],CONSTRAINT [DF__temp_zwpzfl__jje__11558062] DEFAULT (0) FOR [jje],CONSTRAINT [DF__temp_zwpzfl__dje__1249A49B] DEFAULT (0) FOR [dje]
GO
ALTER TABLE [dbo].[temp_zwpzfl_view_002] ADDCONSTRAINT [DF__temp_zwpzf__kjnd__3CBF0154] DEFAULT ('') FOR [kjnd],CONSTRAINT [DF__temp_zwpzf__kjqj__3DB3258D] DEFAULT ('') FOR [kjqj],CONSTRAINT [DF__temp_zwpzf__pzrq__3EA749C6] DEFAULT ('') FOR [pzrq],CONSTRAINT [DF__temp_zwpzf__pzbh__3F9B6DFF] DEFAULT ('') FOR [pzbh],CONSTRAINT [DF__temp_zwpzf__lxbh__408F9238] DEFAULT ('') FOR [lxbh],CONSTRAINT [DF__temp_zwpzfl__pzz__4183B671] DEFAULT ('') FOR [pzz],CONSTRAINT [DF__temp_zwpzf__kmbh__4277DAAA] DEFAULT ('') FOR [kmbh],CONSTRAINT [DF__temp_zwpzfl___zy__436BFEE3] DEFAULT ('') FOR [zy],CONSTRAINT [DF__temp_zwpzfl__jje__4460231C] DEFAULT (0) FOR [jje],CONSTRAINT [DF__temp_zwpzfl__dje__45544755] DEFAULT (0) FOR [dje]
GO
ALTER TABLE [dbo].[wh_bm] ADDCONSTRAINT [DF_wh_bm_cyf] DEFAULT (1) FOR [cyf],CONSTRAINT [PK_wh_bm] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_bzdw] ADDCONSTRAINT [DF_wh_bzdw_lb] DEFAULT (1) FOR [lb],CONSTRAINT [PK_wh_bzdw] PRIMARY KEY  NONCLUSTERED([mc],[lb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cbsz] ADDCONSTRAINT [PK_wh_cbsz] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd] ADDCONSTRAINT [DF_wh_cd_slf] DEFAULT (0) FOR [slf],CONSTRAINT [DF_wh_cd_syf] DEFAULT (1) FOR [syf],CONSTRAINT [DF_wh_cd_dzf] DEFAULT (0) FOR [dzf],CONSTRAINT [PK_wh_cd] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_cb2] ADDCONSTRAINT [PK_wh_cd_cb2] PRIMARY KEY  NONCLUSTERED([cpnm],[lx])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_cd_link] ADDCONSTRAINT [DF_wh_cd_cd_link_sl] DEFAULT (1) FOR [sl],CONSTRAINT [DF_wh_cd_cd_link_syf] DEFAULT (1) FOR [syf],CONSTRAINT [PK_wh_cd_cd_link] PRIMARY KEY  NONCLUSTERED([cpnm],[bdcpnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_dw] ADDCONSTRAINT [PK_wh_cd_dw] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_lb] ADDCONSTRAINT [PK_wh_cd_lb] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_lb_xs] ADDCONSTRAINT [PK_wh_cd_lb_xs] PRIMARY KEY  NONCLUSTERED([yyr],[nm])  ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_cd_lb_xs_yyr] ON [dbo].[wh_cd_lb_xs]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_cd_lb_xs_nm] ON [dbo].[wh_cd_lb_xs]([nm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cd_lb_xs_sw] ADDCONSTRAINT [PK_wh_cd_lb_xs_sw] PRIMARY KEY  NONCLUSTERED([yyr],[nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_cszd] ADDCONSTRAINT [PK_wh_cszd] PRIMARY KEY  NONCLUSTERED([csnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_czyqx] ADDCONSTRAINT [PK_wh_fwqx] PRIMARY KEY  NONCLUSTERED([czynm],[cdnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_gj] ADDCONSTRAINT [PK_wh_gj] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_hb] ADDCONSTRAINT [PK_wh_hb] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_ick] ADDCONSTRAINT [PK_wh_ick] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_ick_fksz] ADDCONSTRAINT [PK_wh_ick_fksz] PRIMARY KEY  NONCLUSTERED([jf])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_ick_mx] ADDCONSTRAINT [PK_wh_ick_mx] PRIMARY KEY  NONCLUSTERED([bm],[xsdlsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_ick_sz] ADDCONSTRAINT [DF_wh_ick_sz_sfpass] DEFAULT (0) FOR [sfpass],CONSTRAINT [DF_wh_ick_sz_syf] DEFAULT (1) FOR [syf],CONSTRAINT [PK_wh_ick_sz] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_jsfs] ADDCONSTRAINT [PK_wh_jsfs] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_kh] ADDCONSTRAINT [DF_wh_kh_xxf] DEFAULT (0) FOR [xxf],CONSTRAINT [PK_wh_kh] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_kh_lb] ADDCONSTRAINT [PK_wh_kh_lb] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
CREATE TABLE [dbo].[wh_kh_phone_ldjl] ([id] [int] IDENTITY (1, 1) NOT NULL ,[mc] [varchar] (200) NULL ,[phone] [varchar] (50) NULL ,[khxg] [varchar] (500) NULL ,[scxftw] [varchar] (50) NULL ,[scxfje] [numeric](18, 2) NULL ,[xsy] [varchar] (50) NULL ,[xfxe] [numeric](18, 2) NULL ,[khlx] [varchar] (50) NULL ,[ldtime] [varchar] (50) NULL ,[sfjt] [varchar] (50) NULL,[khly] [varchar] (400) null ) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_kh_phone_ldjl] WITH NOCHECK ADD CONSTRAINT [PK_wh_kh_phone_ld] PRIMARY KEY  CLUSTERED ([id])  ON [PRIMARY] 
GO
ALTER TABLE [dbo].[wh_kh_xy] ADDCONSTRAINT [PK_wh_kh_xy] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_mk_qysz] ADDCONSTRAINT [PK_wh_mk_qysz] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_mkqx] ADDCONSTRAINT [PK_wh_mkqx] PRIMARY KEY  NONCLUSTERED([cdnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_pos_bc_sz] ADDCONSTRAINT [PK_wh_pos_bc_sz] PRIMARY KEY  NONCLUSTERED([bc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_pos_jzsz] ADDCONSTRAINT [PK_wh_pos_jzsz] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_pos_lb] ADDCONSTRAINT [PK_wh_pos_lb] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_pos_rz] ADDCONSTRAINT [PK_wh_pos_rz] PRIMARY KEY  NONCLUSTERED([rq],[posbm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_qdqx] ADDCONSTRAINT [PK_wh_qdqx] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_syysz] ADDCONSTRAINT [DF_wh_syysz_cyf] DEFAULT (1) FOR [cyf],CONSTRAINT [PK_wh_syysz] PRIMARY KEY  NONCLUSTERED([xtbm],[czynm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_user] ADDCONSTRAINT [DF_wh_user_jzsl] DEFAULT (0) FOR [jzsl],CONSTRAINT [DF_wh_user_dcqsl] DEFAULT (0) FOR [dcqsl],CONSTRAINT [PK_wh_user] PRIMARY KEY  NONCLUSTERED([gsmc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtcs_sz] ADDCONSTRAINT [PK_wh_xtcs_sz] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtcssz] ADDCONSTRAINT [PK_wh_xtcssz] PRIMARY KEY  NONCLUSTERED([posbm],[nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_fs] ADDCONSTRAINT [PK_wh_xtjz_fs] PRIMARY KEY  NONCLUSTERED([jzrq],[jzfs])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_hb] ADDCONSTRAINT [PK_wh_xtjz_hb] PRIMARY KEY  NONCLUSTERED([jzrq],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_hb_sw] ADDCONSTRAINT [PK_wh_xtjz_hb_sw] PRIMARY KEY  NONCLUSTERED([jzrq],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_jb] ADDCONSTRAINT [PK_wh_xtjz_jb] PRIMARY KEY  NONCLUSTERED([jzrq])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_xtjz_jb_sw] ADDCONSTRAINT [PK_wh_xtjz_jb_sw] PRIMARY KEY  NONCLUSTERED([jzrq])  ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_xtjz_pos_cpnm] ON [dbo].[wh_xtjz_pos]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_xtjz_pos_yyr] ON [dbo].[wh_xtjz_pos]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_xtjz_pos_sw_cpnm] ON [dbo].[wh_xtjz_pos_sw]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_wh_xtjz_pos_sw_yyr] ON [dbo].[wh_xtjz_pos_sw]([yyr]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg] ADDCONSTRAINT [DF_wh_zg_syf] DEFAULT (1) FOR [syf],CONSTRAINT [DF_wh_zg_mkqx] DEFAULT (0) FOR [mkqx],CONSTRAINT [DF_wh_zg_cyf] DEFAULT (1) FOR [cyf],CONSTRAINT [PK_wh_zg] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg_lx] ADDCONSTRAINT [PK_wh_zg_lx] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg_mz] ADDCONSTRAINT [PK_wh_mz] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zg_xl] ADDCONSTRAINT [PK_wh_xl] PRIMARY KEY  NONCLUSTERED([mc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zw] ADDCONSTRAINT [DF_wh_zw_zt] DEFAULT (0) FOR [zt],CONSTRAINT [DF_wh_zw_syf] DEFAULT (1) FOR [syf],CONSTRAINT [DF_wh_zw_fwflx] DEFAULT (1) FOR [fwflx],CONSTRAINT [DF_wh_zw_zws] DEFAULT (0) FOR [zws],CONSTRAINT [PK_wh_zw] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
CREATE  UNIQUE  INDEX [index_bm] ON [dbo].[wh_zw]([bm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zw_lb] ADDCONSTRAINT [PK_wh_zw_lb] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zw_lbjs_sz] ADDCONSTRAINT [PK_wh_zw_lbjs_sz] PRIMARY KEY  NONCLUSTERED([nm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[wh_zw_sb_link] ADDCONSTRAINT [DF_wh_zw_sb_link_sl] DEFAULT (1) FOR [sl],CONSTRAINT [DF_wh_zw_sb_link_syf] DEFAULT (1) FOR [syf],CONSTRAINT [PK_wh_zw_sb_link] PRIMARY KEY  NONCLUSTERED([zwnm],[sbnm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_cp] ADDCONSTRAINT [DF_xs_pos_cp_tcbj] DEFAULT (0) FOR [tcbj],CONSTRAINT [DF_xs_pos_cp_scf] DEFAULT (0) FOR [scf],CONSTRAINT [PK_xs_pos_cp] PRIMARY KEY  NONCLUSTERED([lsh],[ds])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp.cpnm] ON [dbo].[xs_pos_cp]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_yyr] ON [dbo].[xs_pos_cp]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_posbm] ON [dbo].[xs_pos_cp]([posbm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_cp_sw] ADDCONSTRAINT [DF_xs_pos_cp_sw_tcbj] DEFAULT (0) FOR [tcbj],CONSTRAINT [DF_xs_pos_cp_sw_scf] DEFAULT (0) FOR [scf],CONSTRAINT [PK_xs_pos_cp_sw] PRIMARY KEY  NONCLUSTERED([lsh],[ds])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_sw.cpnm] ON [dbo].[xs_pos_cp_sw]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_sw_yyr] ON [dbo].[xs_pos_cp_sw]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_sw_posbm] ON [dbo].[xs_pos_cp_sw]([posbm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_cp_temp] ADDCONSTRAINT [DF_xs_pos_cp_temp_tcbj] DEFAULT (0) FOR [tcbj],CONSTRAINT [DF_xs_pos_cp_temp_scf] DEFAULT (0) FOR [scf],CONSTRAINT [PK_xs_pos_cp_temp] PRIMARY KEY  NONCLUSTERED([lsh],[ds])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_cp_xs] ADDCONSTRAINT [DF_xs_pos_cp_xs_tcbj] DEFAULT (0) FOR [tcbj],CONSTRAINT [DF_xs_pos_cp_xs_scf] DEFAULT (0) FOR [scf],CONSTRAINT [PK_xs_pos_cp_xs] PRIMARY KEY  NONCLUSTERED([lsh],[ds])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_xs.cpnm] ON [dbo].[xs_pos_cp_xs]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_xs_yyr] ON [dbo].[xs_pos_cp_xs]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_cp_xs_posbm] ON [dbo].[xs_pos_cp_xs]([posbm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_dyj] ADDCONSTRAINT [PK_xs_pos_dyj] PRIMARY KEY  NONCLUSTERED([lbnm],[posbh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_fs] ADDCONSTRAINT [PK_xs_pos_fs] PRIMARY KEY  NONCLUSTERED([lsh],[jzfs])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_hb] ADDCONSTRAINT [PK_xs_pos_hb] PRIMARY KEY  NONCLUSTERED([lsh],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_hb_sw] ADDCONSTRAINT [PK_xs_pos_hb_sw] PRIMARY KEY  NONCLUSTERED([lsh],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_hb_xs] ADDCONSTRAINT [PK_xs_pos_hb_xs] PRIMARY KEY  NONCLUSTERED([lsh],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_jb] ADDCONSTRAINT [DF_xs_pos_jb_lx] DEFAULT (0) FOR [lx],CONSTRAINT [PK_xs_pos_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_yyr] ON [dbo].[xs_pos_jb]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_posbm] ON [dbo].[xs_pos_jb]([posbm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_bc] ON [dbo].[xs_pos_jb]([bc]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_zwnm] ON [dbo].[xs_pos_jb]([zwnm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_jb_sw] ADDCONSTRAINT [DF_xs_pos_jb_sw_lx] DEFAULT (0) FOR [lx],CONSTRAINT [PK_xs_pos_jb_sw] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_sw_yyr] ON [dbo].[xs_pos_jb_sw]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_sw_posbm] ON [dbo].[xs_pos_jb_sw]([posbm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_sw_bc] ON [dbo].[xs_pos_jb_sw]([bc]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_sw_zwnm] ON [dbo].[xs_pos_jb_sw]([zwnm]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_jb_temp] ADDCONSTRAINT [DF_xs_pos_jb_temp_xfrs] DEFAULT (0) FOR [xfrs],CONSTRAINT [DF_xs_pos_jb_temp_ysje] DEFAULT (0) FOR [ysje],CONSTRAINT [DF_xs_pos_jb_temp_ssje] DEFAULT (0) FOR [ssje],CONSTRAINT [DF_xs_pos_jb_temp_mlje] DEFAULT (0) FOR [mlje],CONSTRAINT [DF_xs_pos_jb_temp_yhje] DEFAULT (0) FOR [yhje],CONSTRAINT [DF_xs_pos_jb_temp_yjje] DEFAULT (0) FOR [yjje],CONSTRAINT [DF_xs_pos_jb_temp_cbje] DEFAULT (0) FOR [cbje],CONSTRAINT [DF_xs_pos_jb_temp_jsje] DEFAULT (0) FOR [jsje],CONSTRAINT [DF_xs_pos_jb_temp_qdje] DEFAULT (0) FOR [qdje],CONSTRAINT [DF_xs_pos_jb_temp_kfje] DEFAULT (0) FOR [kfje],CONSTRAINT [DF_xs_pos_jb_temp_fwje] DEFAULT (0) FOR [fwje],CONSTRAINT [DF_xs_pos_jb_temp_fjf] DEFAULT (0) FOR [fjf],CONSTRAINT [PK_xs_pos_jb_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_jb_xs] ADDCONSTRAINT [DF_xs_pos_jb_xs_lx] DEFAULT (0) FOR [lx],CONSTRAINT [PK_xs_pos_jb_xs] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_xs_yyr] ON [dbo].[xs_pos_jb_xs]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_xs_posbm] ON [dbo].[xs_pos_jb_xs]([posbm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_xs_bc] ON [dbo].[xs_pos_jb_xs]([bc]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jb_xs_zwnm] ON [dbo].[xs_pos_jb_xs]([zwnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_bc] ON [dbo].[xs_pos_jz]([bc]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_cpnm] ON [dbo].[xs_pos_jz]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_posbm] ON [dbo].[xs_pos_jz]([posbm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_yyr] ON [dbo].[xs_pos_jz]([yyr]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_sw_bc] ON [dbo].[xs_pos_jz_sw]([bc]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_sw_cpnm] ON [dbo].[xs_pos_jz_sw]([cpnm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_sw_posbm] ON [dbo].[xs_pos_jz_sw]([posbm]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_pos_jz_sw_yyr] ON [dbo].[xs_pos_jz_sw]([yyr]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_khqk] ADDCONSTRAINT [DF_xs_pos_khqk_xsd] DEFAULT ('餐厅') FOR [xsd]
GO
ALTER TABLE [dbo].[xs_pos_khyq] ADDCONSTRAINT [PK_xs_pos_khyq] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_pos_lb] ADDCONSTRAINT [PK_xs_pos_lb] PRIMARY KEY  NONCLUSTERED([lbnm],[posbm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_posjz_fs] ADDCONSTRAINT [PK_xs_posjz_fs] PRIMARY KEY  NONCLUSTERED([jzrq],[jzbc],[jzfs])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_posjz_hb] ADDCONSTRAINT [PK_xs_posjz_hb] PRIMARY KEY  NONCLUSTERED([jzrq],[jzbc],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_posjz_hb_sw] ADDCONSTRAINT [PK_xs_posjz_hb_sw] PRIMARY KEY  NONCLUSTERED([jzrq],[jzbc],[hb])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_posjz_jb] ADDCONSTRAINT [PK_xs_posjz_jb] PRIMARY KEY  NONCLUSTERED([jzrq],[jzbc])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_posjz_jb_jzrq] ON [dbo].[xs_posjz_jb]([jzrq]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_posjz_jb_jzbc] ON [dbo].[xs_posjz_jb]([jzbc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_posjz_jb_sw] ADDCONSTRAINT [PK_xs_posjz_jb_sw] PRIMARY KEY  NONCLUSTERED([jzrq],[jzbc])  ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_posjz_jb_sw_jzrq] ON [dbo].[xs_posjz_jb_sw]([jzrq]) ON [PRIMARY]
GO
CREATE  INDEX [pk_xs_posjz_jb_sw_jzbc] ON [dbo].[xs_posjz_jb_sw]([jzbc]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_tcyy_jb] ADDCONSTRAINT [PK_xs_tcyy_jb] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_ydd_cp] ADDCONSTRAINT [DF_xs_ydd_cp_tcbj] DEFAULT (0) FOR [tcbj],CONSTRAINT [PK_xs_ydd_cp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_ydd_jb] ADDCONSTRAINT [DF_xs_ydd_jb_lab] DEFAULT (1) FOR [lab],CONSTRAINT [PK_xs_ydd_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_ydd_khyq] ADDCONSTRAINT [PK_xs_ydd_khyq] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_ydd_td] ADDCONSTRAINT [PK_xs_ydd_td] PRIMARY KEY  NONCLUSTERED([lsh],[bc])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[xs_zsyy_jb] ADDCONSTRAINT [PK_xs_zsyy_jb] PRIMARY KEY  NONCLUSTERED([bm])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[yf_gys] ADDCONSTRAINT [PK_yf_gys] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[yf_gys_jb] ADDCONSTRAINT [PK_yf_gys_jb_1] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[yf_gys_jb_temp] ADDCONSTRAINT [PK_yf_gys_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[yf_gys_temp] ADDCONSTRAINT [PK_yf_gys_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ys_khhk] ADDCONSTRAINT [PK_ys_khhk] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ys_khhk_jb] ADDCONSTRAINT [PK_ys_khhk_jb_1] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ys_khhk_jb_temp] ADDCONSTRAINT [PK_ys_khhk_jb] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ys_khhk_temp] ADDCONSTRAINT [PK_ys_khhk_temp] PRIMARY KEY  NONCLUSTERED([lsh])  ON [PRIMARY]
GO
ALTER TABLE [dbo].[ysyf_maxlsh] ADDCONSTRAINT [PK_ysyf_maxlsh] PRIMARY KEY  NONCLUSTERED([posbm],[lx],[rq])  ON [PRIMARY]
GO
CREATE VIEW cw_pbmdm_view ( bmdm,bmmc,zgrs ) AS SELECT cw_zwbmzd.bmbh,cw_zwbmzd.bmmc,cw_zwbmzd.zgrs FROM cw_zwbmzd
GO
CREATE VIEW cw_zwpzcx_view  AS SELECT cw_zwpzb.pznm, cw_zwpzb.kjnd,cw_zwpzb.kjqj, cw_zwpzb.pzrq, cw_zwpzb.lxbh,cw_zwpzlx.pzz,cw_zwpzb.pzbh,cw_zwpzb.fjzs,   cw_zwpzfl.zy, cw_zwpzfl.flbh, cw_zwpzfl.kmbh, cw_zwkmzd.kmmc,  cw_zwpzfl.bmbh, cw_zwbmzd.bmmc,cw_zwbmzd.bmxz, cw_zwpzfl.xmbh, cw_zwxmzd.xmmc ,cw_zwxmzd.lbbh, cw_zwpzfl.jje,cw_zwpzfl.dje ,cw_zwpzfl.wbbh,cw_zwpzfl.hl, cw_zwpzfl.jwb,cw_zwpzfl.dwb,cw_zwpzfl.jsbh, cw_zwpzfl.jsdh,cw_zwpzfl.ywrq, cw_zwpzfl.dfdw, cw_zwpzfl.dch, cw_zwpzfl.zrr,  cw_zwkmzd.yefx,  cw_zwpzb.zdr, cw_zwpzb.fhr, cw_zwpzb.jzr, cw_zwpzb.cn, cw_zwpzb.fhf,cw_zwpzb.jzf  FROM cw_zwpzb,cw_zwpzfl,cw_zwkmzd,cw_zwbmzd,cw_zwxmzd,cw_zwpzlx  WHERE (cw_zwpzfl.pznm = cw_zwpzb.pznm) and (cw_zwkmzd.kmbh = cw_zwpzfl.kmbh) and (cw_zwbmzd.bmbh=*cw_zwpzfl.bmbh) and (cw_zwxmzd.bmbh=*cw_zwpzfl.bmbh and cw_zwxmzd.xmbh =* cw_zwpzfl.xmbh) and (cw_zwpzlx.lxbh = cw_zwpzb.lxbh) and (cw_zwpzb.zff='0')
GO
CREATE VIEW cw_zwpzfl_view ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,pzz,fjzs,zdr,shr,fhr,  jzr,cn,kjzg,fhf,jzf,zff,wzf,flbh,kmbh,zy,jje,dje,wbbh,hl,jsbh,jsdh,ywrq,  dfdw,yhdz,jwb,dwb,kmmc,kmsx,yefx,kmlb,wbhs) AS  SELECT cw_zwpzb.pznm,cw_zwpzb.kjnd,cw_zwpzb.kjqj,cw_zwpzb.pzrq,cw_zwpzb.pzbh,cw_zwpzb.lxbh,cw_zwpzlx.pzz,cw_zwpzb.fjzs,cw_zwpzb.zdr,cw_zwpzb.shr,cw_zwpzb.fhr,cw_zwpzb.jzr,cw_zwpzb.cn,        cw_zwpzb.kjzg,cw_zwpzb.fhf,cw_zwpzb.jzf,cw_zwpzb.zff,cw_zwpzb.wzf,cw_zwpzfl.flbh,    cw_zwpzfl.kmbh,cw_zwpzfl.zy,cw_zwpzfl.jje,cw_zwpzfl.dje,cw_zwpzfl.wbbh,cw_zwpzfl.hl,             cw_zwpzfl.jsbh,cw_zwpzfl.jsdh,cw_zwpzfl.ywrq,cw_zwpzfl.dfdw,cw_zwpzfl.yhdz,cw_zwpzfl.jwb,        cw_zwpzfl.dwb,cw_zwkmzd.kmmc,cw_zwkmzd.kmsx,cw_zwkmzd.yefx,cw_zwkmzd.kmlb,cw_zwkmzd.wbhs        FROM cw_zwkmzd,cw_zwpzlx, cw_zwpzb,cw_zwpzfl   WHERE ( cw_zwpzb.pznm = cw_zwpzfl.pznm ) and  ( cw_zwpzb.lxbh = cw_zwpzlx.lxbh ) and       ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and  ( cw_zwpzb.zff = '0')
GO
CREATE VIEW cw_zwpzfzfl_view  ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,pzz,fjzs,zdr,shr,   fhr,jzr,cn,kjzg,fhf,jzf,zff,wzf,ysbh,zy,kmbh,bmbh,xmbh,wbbh,jwb,dwb,hl,jje,  dje,dch,zrr,kmmc,kmsx,yefx,kmlb,wbhs,bmhs,xmhs ) AS  SELECT cw_zwpzb.pznm,cw_zwpzb.kjnd,cw_zwpzb.kjqj,cw_zwpzb.pzrq,cw_zwpzb.pzbh,cw_zwpzb.lxbh,      cw_zwpzlx.pzz,cw_zwpzb.fjzs,cw_zwpzb.zdr,cw_zwpzb.shr,cw_zwpzb.fhr,cw_zwpzb.jzr,cw_zwpzb.cn,        cw_zwpzb.kjzg,cw_zwpzb.fhf,cw_zwpzb.jzf,cw_zwpzb.zff,cw_zwpzb.wzf,cw_zwpzfl.flbh,    cw_zwpzfl.zy,cw_zwpzfl.kmbh,cw_zwpzfl.bmbh,cw_zwpzfl.xmbh,cw_zwpzfl.wbbh,cw_zwpzfl.jwb,cw_zwpzfl.dwb,cw_zwpzfl.hl,cw_zwpzfl.jje,cw_zwpzfl.dje,cw_zwpzfl.dch,cw_zwpzfl.zrr,cw_zwkmzd.kmmc,             cw_zwkmzd.kmsx,cw_zwkmzd.yefx,cw_zwkmzd.kmlb,cw_zwkmzd.wbhs,cw_zwkmzd.bmhs,cw_zwkmzd.xmhs        FROM cw_zwpzfl,cw_zwkmzd,cw_zwpzb,cw_zwpzlx WHERE ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and  ( cw_zwpzfl.pznm = cw_zwpzb.pznm )  and     ( cw_zwpzb.lxbh = cw_zwpzlx.lxbh ) and  ( cw_zwpzb.zff = '0') and cw_zwpzfl.bmbh <>''
GO
CREATE VIEW cw_zwpzxjrj_view ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,fjzs,zdr,shr,fhr,jzr,cn,kjzg,fhf,jzf,zff,wzf,flbh,kmbh,zy,jje,dje,wbbh,hl,jsbh,jsdh,ywrq,dfdw,yhdz,jwb,dwb,kmsx,yefx,jc,mx,wbhs) AS    SELECT cw_zwpzb.pznm,cw_zwpzb.kjnd,cw_zwpzb.kjqj,cw_zwpzb.pzrq,cw_zwpzb.pzbh,cw_zwpzb.lxbh,        cw_zwpzb.fjzs,cw_zwpzb.zdr,cw_zwpzb.shr,cw_zwpzb.fhr,cw_zwpzb.jzr,cw_zwpzb.cn,cw_zwpzb.kjzg,          cw_zwpzb.fhf,cw_zwpzb.jzf,cw_zwpzb.zff,cw_zwpzb.wzf,cw_zwpzfl.flbh,cw_zwpzfl.kmbh,     cw_zwpzfl.zy,cw_zwpzfl.jje,cw_zwpzfl.dje,cw_zwpzfl.wbbh,cw_zwpzfl.hl,cw_zwpzfl.jsbh,               cw_zwpzfl.jsdh,cw_zwpzfl.ywrq,cw_zwpzfl.dfdw,cw_zwpzfl.yhdz,cw_zwpzfl.jwb,cw_zwpzfl.dwb,           cw_zwkmzd.kmsx,cw_zwkmzd.yefx,cw_zwkmzd.jc,cw_zwkmzd.mx,cw_zwkmzd.wbhs  FROM cw_zwkmzd,cw_zwpzb,cw_zwpzfl    WHERE ( cw_zwpzb.pznm = cw_zwpzfl.pznm ) and  ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and        ( cw_zwkmzd.kmlb = '1'  ) and ( cw_zwpzb.zff = '0')
GO
CREATE VIEW cw_zwpzyhrj_view ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,fjzs,zdr,shr,fhr,jzr,  cn,kjzg,fhf,jzf,zff,wzf,flbh,kmbh,zy,jje,dje,wbbh,hl,jsbh,jsdh,ywrq,dfdw,   yhdz,jwb,dwb,kmsx,yefx,jc,mx,wbhs) AS    SELECT cw_zwpzb.pznm,cw_zwpzb.kjnd,cw_zwpzb.kjqj,cw_zwpzb.pzrq,cw_zwpzb.pzbh,cw_zwpzb.lxbh,        cw_zwpzb.fjzs,cw_zwpzb.zdr,cw_zwpzb.shr,cw_zwpzb.fhr,cw_zwpzb.jzr,cw_zwpzb.cn,cw_zwpzb.kjzg,          cw_zwpzb.fhf,cw_zwpzb.jzf,cw_zwpzb.zff,cw_zwpzb.wzf,cw_zwpzfl.flbh,cw_zwpzfl.kmbh,     cw_zwpzfl.zy,cw_zwpzfl.jje,cw_zwpzfl.dje,cw_zwpzfl.wbbh,cw_zwpzfl.hl,cw_zwpzfl.jsbh,cw_zwpzfl.jsdh,   cw_zwpzfl.ywrq,cw_zwpzfl.dfdw,cw_zwpzfl.yhdz,cw_zwpzfl.jwb,cw_zwpzfl.dwb,cw_zwkmzd.kmsx,           cw_zwkmzd.yefx,cw_zwkmzd.jc,cw_zwkmzd.mx,cw_zwkmzd.wbhs             FROM cw_zwpzfl,cw_zwkmzd,cw_zwpzb   WHERE ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and   ( cw_zwpzfl.pznm = cw_zwpzb.pznm ) and       ( cw_zwkmzd.kmlb = '2' ) and  ( cw_zwpzb.zff = '0')
GO
CREATE VIEW cw_zwpzzc_view  ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,fjzs,zdr,shr,fhr,    jzr,cn,kjzg,fhf,jzf,zff,wzf,ysbh,zy,kmbh,bmbh,xmbh,wbbh,jwb,dwb,hl,jje,dje,    dch,zrr,kmsx,yefx,jc,mx,wbhs,bmhs,xmhs ) AS SELECT cw_zwpzb.pznm,cw_zwpzb.kjnd,cw_zwpzb.kjqj,cw_zwpzb.pzrq,cw_zwpzb.pzbh,cw_zwpzb.lxbh,        cw_zwpzb.fjzs,cw_zwpzb.zdr,cw_zwpzb.shr,cw_zwpzb.fhr,cw_zwpzb.jzr,cw_zwpzb.cn,           cw_zwpzb.kjzg,cw_zwpzb.fhf,cw_zwpzb.jzf,cw_zwpzb.zff,cw_zwpzb.wzf,cw_zwpzfl.flbh,cw_zwpzfl.zy,      cw_zwpzfl.kmbh,cw_zwpzfl.bmbh,cw_zwpzfl.xmbh,cw_zwpzfl.wbbh,cw_zwpzfl.jwb,cw_zwpzfl.dwb,           cw_zwpzfl.hl,cw_zwpzfl.jje,cw_zwpzfl.dje,cw_zwpzfl.dch,cw_zwpzfl.zrr,cw_zwkmzd.kmsx,cw_zwkmzd.yefx,   cw_zwkmzd.jc,cw_zwkmzd.mx,cw_zwkmzd.wbhs,cw_zwkmzd.bmhs,cw_zwkmzd.xmhs                          FROM cw_zwpzfl,cw_zwkmzd,cw_zwpzb                                                   WHERE ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and  ( cw_zwpzfl.pznm = cw_zwpzb.pznm ) and        (cw_zwkmzd.kmlb = '4') and ( cw_zwpzb.zff = '0')
GO
CREATE VIEW cw_zwpzzf_view ( pznm,kjnd,kjqj,pzrq,pzbh,lxbh,fjzs,zdr,shr,fhr,    jzr,cn,kjzg,fhf,jzf,zff,wzf,ysbh,zy,kmbh,bmbh,xmbh,wbbh,jwb,dwb,hl,jje,dje,    dch,zrr,kmsx,yefx,jc,mx,wbhs,bmhs,xmhs ) AS SELECT cw_zwpzb.pznm, cw_zwpzb.kjnd, cw_zwpzb.kjqj, cw_zwpzb.pzrq, cw_zwpzb.pzbh, cw_zwpzb.lxbh,          cw_zwpzb.fjzs, cw_zwpzb.zdr, cw_zwpzb.shr, cw_zwpzb.fhr, cw_zwpzb.jzr, cw_zwpzb.cn,            cw_zwpzb.kjzg, cw_zwpzb.fhf, cw_zwpzb.jzf, cw_zwpzb.zff, cw_zwpzb.wzf,  cw_zwpzfl.flbh,cw_zwpzfl.zy,        cw_zwpzfl.kmbh, cw_zwpzfl.bmbh, cw_zwpzfl.xmbh, cw_zwpzfl.wbbh, cw_zwpzfl.jwb, cw_zwpzfl.dwb, cw_zwpzfl.hl,  cw_zwpzfl.jje, cw_zwpzfl.dje, cw_zwpzfl.dch, cw_zwpzfl.zrr, cw_zwkmzd.kmsx, cw_zwkmzd.yefx, cw_zwkmzd.jc,    cw_zwkmzd.mx, cw_zwkmzd.wbhs, cw_zwkmzd.bmhs, cw_zwkmzd.xmhs                                        FROM cw_zwpzfl,cw_zwkmzd,cw_zwpzb                                                   WHERE ( cw_zwpzfl.kmbh = cw_zwkmzd.kmbh ) and  ( cw_zwpzfl.pznm = cw_zwpzb.pznm ) and        (cw_zwkmzd.kmlb = '3') and ( cw_zwpzb.zff = '0')
GO
CREATE VIEW dbo.v_message_inboxASSELECT h_guest_message.Fromclient, h_guest_message.Fromoper,h_guest_message.topic, h_guest_message.aim, h_guest_message.memo,h_guest_message.class, h_guest_message.class1, h_guest_message.oper,h_guest_message.dt, h_guest_messageto.name, h_guest_messageto.namepy,h_guest_messageto.code, h_guest_messageto.flag,h_guest_messageto.dt AS readdt, h_guest_messageto.status,h_guest_messageto.ifread, h_guest_message.id,h_guest_messageto.oper AS readoper, h_guest_message.kindid,h_guest_messageto.id AS toid, h_guest_message.ifsend,h_guest_message.iffileFROM h_guest_message LEFT OUTER JOINh_guest_messageto ON h_guest_message.id = h_guest_messageto.msg_id
GO
CREATE VIEW dbo.v_message_sendsASSELECT Fromclient, Fromoper, topic, aim, memo, class, class1, oper, dt, id, kindid, ifsend,iffileFROM h_guest_message
GO
CREATE PROC backup_database     @file varchar(255) ,@db_name_source varchar(255) ,@db_name_source_log varchar(255) ,@db_name_dest varchar(255) ,@db_year_dat varchar(255), @db_year_log varchar(255)  AS   EXEC sp_addumpdevice 'disk', 'jdgl30',  @file;  BACKUP DATABASE @db_name_source TO jdgl30 WITH INIT  RESTORE DATABASE @db_name_dest  FROM DISK = @file   WITH MOVE @db_name_source TO @db_year_dat,  MOVE @db_name_source_log TO @db_year_log  EXEC sp_dropdevice  'jdgl30'  return (0)
GO
CREATE PROCEDURE [ck_ckjz_kc_sc]  @lsh varchar(50) AS declare @ck_spsy cursor declare @nm varchar(50) declare @gg varchar(50)  declare @ckh varchar(50) declare @xdw varchar(50) declare @ddw varchar(50) declare @yhf varchar(50) declare @zsf char(1) declare @jlgl numeric(18,3) declare @hsgx numeric(18,3) declare @qmkc numeric(18,3)  declare @zxdj numeric(18,3) declare @sykc numeric(18,3) set @ck_spsy = cursor for  select spnm,gg,ckh,hsgx,zxdj,sykc,xdw,qmkc,zsf from ck_ckjz_xx_temp where lsh like @lsh+'%' open @ck_spsy fetch next from @ck_spsy into @nm,@gg,@ckh,@hsgx,@zxdj,@sykc,@xdw,@qmkc,@zsf while @@fetch_status = 0  begin  if exists (select * from ck_spkcxx where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw ) update ck_spkcxx set sl=@qmkc-@sykc,dsl=(@qmkc-@sykc)*1.0/hsgx,kcje=(sl-@sykc)*zxdj where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw else  begin insert into ck_spkcxx (nm,gg,ckh,hsgx,zxdj,sl,dsl,kcje,xdw,zsf) values ( @nm,@gg,@ckh,@hsgx,@zxdj,@qmkc-@sykc,(@qmkc-@sykc)*1.0/@hsgx,(@qmkc-@sykc)*@zxdj,@xdw,@zsf) select @ddw=ddw,@yhf=yhf,@jlgl=jlgl from ck_dpda where nm=@nm update ck_spkcxx set ddw=@ddw,yhf=@yhf,jlgl=@jlgl where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw end fetch next from @ck_spsy into  @nm,@gg,@ckh,@hsgx,@zxdj,@sykc,@xdw,@qmkc,@zsf end close @ck_spsy delete ck_ckjz_xx_temp where lsh like @lsh+'%' and qckc=0 and sprk=0 and spck=0 and qmkc=0 and sykc=0  insert into ck_ckjz_jb select * from ck_ckjz_jb_temp where lsh=@lsh insert into ck_ckjz_xx select * from ck_ckjz_xx_temp where lsh like @lsh+'%' insert into ck_ckjz_sy select * from ck_ckjz_xx_temp where lsh like @lsh+'%' and sykc<>0 delete ck_ckjz_jb_temp where lsh=@lsh delete ck_ckjz_xx_temp where lsh like @lsh+'%' delete ck_spkcxx where sl=0
GO
CREATE PROCEDURE [ck_ckjz_sy_sc]  @lsh varchar(50) AS declare @ck_spsy cursor declare @nm varchar(50) declare @gg varchar(50) declare @ckh varchar(50) declare @xdw varchar(50) declare @ddw varchar(50) declare @yhf varchar(50) declare @zsf char(1) declare @jlgl numeric(18,3) declare @hsgx numeric(18,3)  declare @zxdj numeric(18,3) declare @sykc numeric(18,3) delete ck_ckjz_sy where lsh like @lsh+'%'  insert into ck_ckjz_sy select * from ck_ckjz_xx_temp where lsh like @lsh+'%' and sykc<>0 set @ck_spsy = cursor for  select spnm,gg,ckh,hsgx,zxdj,sykc,xdw,zsf from ck_ckjz_sy where lsh like @lsh+'%' open @ck_spsy fetch next from @ck_spsy into @nm,@gg,@ckh,@hsgx,@zxdj,@sykc,@xdw ,@zsf while @@fetch_status = 0  begin  if exists (select * from ck_spkcxx where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw ) update ck_spkcxx set sl=sl-@sykc,dsl=(sl-@sykc)*1.0/hsgx,kcje=(sl-@sykc)*zxdj where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw else  begin insert into ck_spkcxx (nm,gg,ckh,hsgx,zxdj,sl,dsl,kcje,xdw,zsf) values ( @nm,@gg,@ckh,@hsgx,@zxdj,0-@sykc,(0-@sykc)*1.0/@hsgx,(0-@sykc)*@zxdj,@xdw,@zsf) select @ddw=ddw,@yhf=yhf,@jlgl=jlgl from ck_dpda where nm=@nm update ck_spkcxx set ddw=@ddw,yhf=@yhf,jlgl=@jlgl where nm=@nm and gg=@gg and ckh=@ckh and hsgx=@hsgx and zxdj=@zxdj and zsf=@zsf and xdw=@xdw   end fetch next from @ck_spsy into @nm,@gg,@ckh,@hsgx,@zxdj,@sykc,@xdw ,@zsf end close @ck_spsy delete ck_ckjz_xx_temp where lsh like @lsh+'%' and qckc=0 and sprk=0 and spck=0 and qmkc=0 and sykc=0  insert into ck_ckjz_jb select * from ck_ckjz_jb_temp where lsh=@lsh insert into ck_ckjz_xx select * from ck_ckjz_xx_temp where lsh like @lsh+'%'  delete ck_ckjz_jb_temp where lsh=@lsh delete ck_ckjz_xx_temp where lsh like @lsh+'%' delete ck_spkcxx where sl=0
GO
CREATE PROCEDURE [ck_spbmdb_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @nm varchar(50) declare @gg varchar(50) declare @ddw varchar(50) declare @xdw varchar(50) declare @ckh varchar(50),@yhf varchar(10),@shrq varchar(50) ,@zsf char(1) declare @dsl numeric(18,6),@sl numeric(18,6),@dj numeric(18,6),@jlgl numeric(18,6),@hsgx numeric(18,6) declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50) declare @kcdsl numeric(18,6),@kcsl numeric(18,6),@kcje numeric(18,6) update ck_bmdbxx_jb_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh update ck_bmdbxx_temp set shrq=convert(varchar,getdate(),112) where lsh like @lsh+'%'  set @rkd_jb = cursor for  select bmnm,bmbm,bmmc,nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,jlgl,yhf,ckh,shrq,zsf from ck_bmdbxx_temp where lsh like @lsh+'%'  open @rkd_jb fetch next from @rkd_jb into @bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf  while @@fetch_status = 0  begin  if not exists (select * from ck_bmkcxx where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh)  begin insert into ck_bmkcxx (bmnm,bmbm,bmmc,nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,ckh,yhf,jlgl,shrq,zsf) values (@bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@ckh,@yhf,@jlgl,@shrq,@zsf) end else  begin      select @kcdsl=isnull(dsl,0),@kcsl=isnull(sl,0) from ck_bmkcxx where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh update ck_bmkcxx set dsl=(@sl+@kcsl)*1.0/hsgx,sl=@sl+@kcsl,shrq=@shrq where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh end if not exists (select * from ck_spkcxx where nm= @nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf and ckh=@ckh) begin insert into ck_spkcxx (nm,shrq,dsl,ddw,sl,xdw,hsgx,kcje,zxdj,ckh,jlgl,gg,zsf) values (@nm,@shrq,(0-@sl)*1.0/@hsgx,@ddw,0-@sl,@xdw,@hsgx,0-@dj*@sl,@dj,@ckh,@jlgl,@gg,@zsf) end else begin select @kcdsl=isnull(dsl,0),@kcsl=isnull(sl,0),@kcje=isnull(kcje,0) from ck_spkcxx where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf update ck_spkcxx set dsl=(@kcsl-@sl)*1.0/hsgx,sl=@kcsl-@sl,kcje=@kcje-@sl*@dj,shrq=@shrq where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf end fetch next from @rkd_jb into @bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf  end  close @rkd_jb   insert into ck_bmdbxx select * from ck_bmdbxx_temp where lsh like @lsh+'%'  insert into ck_bmdbxx_jb select * from ck_bmdbxx_jb_temp where lsh = @lsh  delete ck_bmdbxx_jb_temp where lsh=@lsh delete ck_bmdbxx_temp where lsh like @lsh+'%'  delete ck_bmkcxx where sl=0 delete ck_spkcxx where sl=0
GO
CREATE PROCEDURE [ck_spbmcsh_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @nm varchar(50) declare @gg varchar(50) declare @ddw varchar(50) declare @xdw varchar(50) declare @ckh varchar(50),@yhf varchar(10),@shrq varchar(50) ,@zsf char(1) declare @dsl numeric(18,6),@sl numeric(18,6),@dj numeric(18,6),@jlgl numeric(18,6),@hsgx numeric(18,6) declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50) declare @kcdsl numeric(18,6),@kcsl numeric(18,6),@kcje numeric(18,6) update ck_bmdbxx_jb_csh_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh update ck_bmdbxx_csh_temp set shrq=convert(varchar,getdate(),112) where lsh like @lsh+'%'  set @rkd_jb = cursor for  select bmnm,bmbm,bmmc,nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,jlgl,yhf,ckh,shrq,zsf from ck_bmdbxx_csh_temp where lsh like @lsh+'%'  open @rkd_jb fetch next from @rkd_jb into @bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf  while @@fetch_status = 0  begin  if not exists (select * from ck_bmkcxx where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh)  begin insert into ck_bmkcxx (bmnm,bmbm,bmmc,nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,ckh,yhf,jlgl,shrq,zsf) values (@bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@ckh,@yhf,@jlgl,@shrq,@zsf) end else  begin      select @kcdsl=isnull(dsl,0),@kcsl=isnull(sl,0) from ck_bmkcxx where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh update ck_bmkcxx set dsl=(@sl+@kcsl)*1.0/hsgx,sl=@sl+@kcsl,shrq=@shrq where bmnm=@bmnm and nm=@nm and  hsgx=@hsgx and zxdj=@dj and gg=@gg and zsf=@zsf and ckh=@ckh end fetch next from @rkd_jb into @bmnm,@bmbm,@bmmc,@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf  end  close @rkd_jb   insert into ck_bmdbxx_csh select * from ck_bmdbxx_csh_temp where lsh like @lsh+'%'  insert into ck_bmdbxx_jb_csh select * from ck_bmdbxx_jb_csh_temp where lsh = @lsh  delete ck_bmdbxx_jb_csh_temp where lsh=@lsh delete ck_bmdbxx_csh_temp where lsh like @lsh+'%'  delete ck_bmkcxx where sl=0
GO
CREATE PROCEDURE [ck_spbmpd_kc_sc] @lsh varchar(50) AS declare @bmnm varchar(50) declare @nm varchar(50) declare @mindj numeric(18,4) declare @ckh_l varchar(50) declare @sy numeric(18,4)declare @hsgx varchar(50) declare @kcsl numeric(18,4) declare @gg varchar(50) declare @xdw varchar(50)  declare @bmbm varchar(50)  declare @bmmc varchar(50) declare @ckh varchar(50) declare @shrq varchar(50) ,@zsf char(1) declare @spbmpd cursor ,@zxdj numeric(18,3)  set @spbmpd = cursor for  select bmnm,nm,isnull(qmkc,0)-isnull(sy,0),hsgx,gg,zsf,dj,xdw,bmbm,bmmc,posbm  from ck_bmkcpd where lsh like @lsh+'%'  open @spbmpd fetch next from @spbmpd into @bmnm,@nm,@sy,@hsgx,@gg,@zsf,@zxdj,@xdw,@bmbm,@bmmc,@ckh_l  while @@fetch_status = 0 begin   begin if exists (select * from ck_bmkcxx where bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and   zxdj=@zxdj  and zsf=@zsf and xdw=@xdw and ckh=@ckh_l)  update ck_bmkcxx set sl=@sy,dsl=(@sy)*1.0/@hsgx where  bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and   zxdj=@zxdj  and zsf=@zsf and xdw=@xdw and ckh=@ckh_l else insert into ck_bmkcxx (bmnm,bmbm,bmmc,nm,dsl,sl,ddw,xdw,hsgx,zxdj,ckh,yhf,yxq,jlgl,shrq,gg,zsf,posbm) values (@bmnm,@bmbm,@bmmc,@nm,(@sy)*1.0/@hsgx,@sy,'',@xdw,@hsgx,@zxdj,@ckh,'','',1,substring(@lsh,4,8),@gg,@zsf,'') end fetch next from @spbmpd into @bmnm,@nm,@sy,@hsgx,@gg ,@zsf,@zxdj,@xdw,@bmbm,@bmmc ,@ckh_l  end delete ck_bmkcpd where lsh like @lsh+'%' and qckc=0 and dbrk=0 and dbck=0 and xsck=0 and qmkc=0 and sy=0  delete ck_bmkcxx where sl=0 update ck_bmkcpd set shf='1' where lsh like @lsh+'%'   update ck_bmkcpd_jb set shf='1' where lsh = @lsh close @spbmpd
GO
CREATE PROCEDURE [ck_spbmpd_sy_sc] @lsh varchar(50) AS declare @bmnm varchar(50) declare @nm varchar(50) declare @mindj numeric(18,4) declare @sy numeric(18,4)declare @hsgx varchar(50) declare @kcsl numeric(18,4) declare @gg varchar(50)  declare @ckh varchar(50) declare @xdw varchar(50)  declare @bmbm varchar(50)  declare @bmmc varchar(50)declare @shrq varchar(50) ,@zsf char(1) declare @spbmpd cursor ,@zxdj numeric(18,3)set @spbmpd = cursor for  select bmnm,nm,isnull(sy,0),hsgx,gg,zsf,dj,posbm,xdw,bmbm,bmmc from ck_bmkcpd where lsh like @lsh+'%'open @spbmpd fetch next from @spbmpd into @bmnm,@nm,@sy,@hsgx,@gg,@zsf,@zxdj,@ckh,@xdw,@bmbm,@bmmc while @sy<>0  /*@@fetch_status = 0 */begin  if not exists (select * from ck_bmkcxx where bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and xdw=@xdw and zxdj=@zxdj  and zsf=@zsf and xdw=@xdw and ckh=@ckh) insert into ck_bmkcxx (bmnm,bmbm,bmmc,nm,dsl,sl,ddw,xdw,hsgx,zxdj,ckh,yhf,yxq,jlgl,shrq,gg,zsf,posbm) values (@bmnm,@bmbm,@bmmc,@nm,(@sy)*1.0/@hsgx,@sy,'',@xdw,@hsgx,@zxdj,@ckh,'','',1,substring(@lsh,4,8),@gg,@zsf,'') select @kcsl=sl from ck_bmkcxx where bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf and zxdj=@zxdj and ckh=@ckh and xdw=@xdw if @kcsl=0  begin  update ck_bmkcxx set sl=sl-@sy,dsl=(sl-@sy)*1.0/@hsgx where bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and  zxdj=@zxdj and zsf=@zsf and ckh=@ckh set @sy=0 end  else  begin  if @kcsl>=@sy  begin  update ck_bmkcxx set sl=sl-@sy,dsl=(sl-@sy)*1.0/@hsgx where bmnm=@bmnm and xdw=@xdw and nm=@nm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@zxdj and zsf=@zsf set @sy=0  end else begin update ck_bmkcxx set sl=0,dsl=0 where bmnm=@bmnm and nm=@nm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@zxdj and zsf=@zsf and ckh=@ckh set @sy=@sy-@kcsl end end fetch next from @spbmpd into @bmnm,@nm,@sy,@hsgx,@gg ,@zsf,@zxdj,@ckh,@xdw,@bmbm,@bmmc end  delete ck_bmkcpd where lsh like @lsh+'%' and qckc=0 and dbrk=0 and dbck=0 and xsck=0 and qmkc=0 and sy=0  update ck_bmkcpd set shf='1' where lsh=@lsh+'%' update ck_bmkcpd_jb set shf='1' where lsh = @lsh close @spbmpd delete ck_bmkcxx where sl=0
GO
CREATE PROCEDURE [ck_spcshrk_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @nm varchar(50) declare @gg varchar(50)declare @ddw varchar(50) declare @xdw varchar(50) declare @ckh varchar(50),@yhf varchar(10),@shrq varchar(50) ,@zsf char(1)declare @dsl numeric(18,6),@sl numeric(18,6),@dj numeric(18,6),@jlgl numeric(18,6),@hsgx numeric(18,6)declare @kcdsl numeric(18,6),@kcsl numeric(18,6),@kcje numeric(18,6) update ck_sprkd_jb_csh_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh update ck_sprkd_csh_temp set shrq=convert(varchar,getdate(),112)where lsh like @lsh+'%' set @rkd_jb = cursor for select nm,gg,dsl,ddw,sl,xdw,hsgx,dj,jlgl,yhf,ckh,shrq,zsf from ck_sprkd_csh_temp where lsh like @lsh+'%' open @rkd_jb fetch next from @rkd_jb into @nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf while @@fetch_status = 0  begin  if not exists (select * from ck_spkcxx where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf) begin insert into ck_spkcxx (nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,kcje,ckh,yhf,jlgl,shrq,zsf)values (@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@dj*@sl,@ckh,@yhf,@jlgl,@shrq,@zsf) end else begin select @kcdsl=dsl,@kcsl=sl,@kcje=kcje from ck_spkcxx where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf update ck_spkcxx set dsl=(@sl+@kcsl)*1.0/hsgx,sl=@sl+@kcsl,kcje=@kcje+@sl*@dj,shrq=@shrq where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf end fetch next from @rkd_jb into @nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq,@zsf end close @rkd_jb insert into ck_sprkd_csh select * from ck_sprkd_csh_temp where lsh like @lsh+'%'insert into ck_sprkd_jb_csh select * from ck_sprkd_jb_csh_temp where lsh = @lsh delete ck_sprkd_jb_csh_temp where lsh=@lsh delete ck_sprkd_csh_temp where lsh like @lsh+'%'
GO
CREATE PROCEDURE [ck_sprk_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @nm varchar(50) declare @gg varchar(50) declare @ddw varchar(50) declare @xdw varchar(50) declare @ckh varchar(50),@yhf varchar(10),@shrq varchar(50),@zsf char(1) declare @dsl numeric(18,6),@sl numeric(18,6),@dj numeric(18,6),@jlgl numeric(18,6),@hsgx numeric(18,6) declare @kcdsl numeric(18,6),@kcsl numeric(18,6),@kcje numeric(18,6) declare @gysnm varchar(50),@gysbm varchar(50),@gysmc varchar(255) declare @zje numeric(18,3) update ck_sprkd_jb_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh update ck_sprkd_temp set shrq=convert(varchar,getdate(),112) where lsh like @lsh+'%'  select @gysnm=nm,@gysbm=bm,@gysmc=mc,@zje=zje from ck_sprkd_jb_temp where lsh =@lsh set @rkd_jb = cursor for  select nm,gg,dsl,ddw,sl,xdw,hsgx,dj,jlgl,yhf,ckh,shrq,zsf from ck_sprkd_temp where lsh like @lsh+'%'  open @rkd_jb fetch next from @rkd_jb into @nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq ,@zsf while @@fetch_status = 0  begin  if not exists (select * from ck_spkcxx where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf) begin insert into ck_spkcxx (nm,gg,dsl,ddw,sl,xdw,hsgx,zxdj,kcje,ckh,yhf,jlgl,shrq,zsf) values (@nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@dj*@sl,@ckh,@yhf,@jlgl,@shrq,@zsf) end else begin select @kcdsl=dsl,@kcsl=sl,@kcje=kcje from ck_spkcxx where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf update ck_spkcxx set dsl=(@sl+@kcsl)*1.0/hsgx,sl=@sl+@kcsl,kcje=@kcje+@sl*@dj,shrq=@shrq where nm=@nm and hsgx=@hsgx and zxdj=@dj and ckh=@ckh and gg=@gg and zsf=@zsf end if not exists(select * from ck_gys_zxdj where gysnm=@gysnm and spnm=@nm) insert into ck_gys_zxdj (gysnm,spnm,zxdj) values(@gysnm,@nm,@dj) else update ck_gys_zxdj set zxdj=@dj where gysnm=@gysnm and spnm=@nm  fetch next from @rkd_jb into @nm,@gg,@dsl,@ddw,@sl,@xdw,@hsgx,@dj,@jlgl,@yhf,@ckh,@shrq ,@zsf end close @rkd_jb  select @zsf =zsf from ck_sprkd_jb_temp where lsh=@lsh if @zsf<>'1' insert into ck_gys_qk_list (lsh,gysnm,gysbm,gysmc,zje,yfje,sqk,jqf,shrq) values(@lsh,@gysnm,@gysbm,@gysmc,@zje,0,@zje,'0',convert(varchar,getdate(),112)) insert into ck_sprkd select * from ck_sprkd_temp where lsh like @lsh+'%' insert into ck_sprkd_jb select * from ck_sprkd_jb_temp where lsh = @lsh delete ck_sprkd_jb_temp where lsh=@lsh delete ck_sprkd_temp where lsh like @lsh+'%' delete ck_spkcxx where sl=0 
GO
CREATE PROCEDURE [cy_cp_cb_csh] AS declare @rkd_jb cursor declare @cpcbk_cb cursor declare @sl numeric(18,3) declare @cpnm varchar(40) declare @spnm varchar(40) declare @bmnm varchar(40) declare @cbje numeric(18,5) declare @lyl numeric(18,5) declare @cbxj numeric(18,5) declare @cb numeric(18,3) set @rkd_jb = cursor for  select nm from wh_cd open @rkd_jb fetch next from @rkd_jb into @cpnm while @@fetch_status =0 begin  set @cbje=0 set @cpcbk_cb=cursor for select bmnm,spnm,sl,lyl from wh_cd_cb1 where cpnm=@cpnm open @cpcbk_cb fetch next from @cpcbk_cb into @bmnm,@spnm,@sl,@lyl while   @@fetch_status=0 begin if @lyl=0  set @lyl=1 select @cb=isnull(zxdj,0)*1.0/isnull(jlgl,1)*@sl/@lyl from ck_bmkcxx where nm=@spnm and zxdj=(select max(zxdj) from ck_bmkcxx where nm=@spnm and  shrq=(select max(shrq) from ck_bmkcxx where nm=@spnm)) set @cbje=isnull(@cbje,0)+isnull(@cb,0) fetch next from @cpcbk_cb into @bmnm,@spnm,@sl,@lyl end  select @cb=sum(cbje) from wh_cd_cb2 where cpnm=@cpnm set @cbje=isnull(@cbje,0)+isnull(@cb,0)update wh_cd set cb=@cbje where nm=@cpnm fetch next from @rkd_jb into @cpnm end close @rkd_jb close @cpcbk_cb
GO
CREATE PROCEDURE [cy_xtjz_dbck]  @jz_yyr varchar(50) AS declare @xs_cp cursor declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50),@nm varchar(50),@zsf varchar(50) declare @hsgx numeric(18,2),@zxdj numeric(18,2) set @xs_cp=cursor for select bmnm,nm,sum(sl),zsf,zxdj from ck_bmdbxx where shrq=@jz_yyr and sl<0 group by bmnm,nm,zsf,zxdj open @xs_cp fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj while @@fetch_status = 0 begin update ck_bmkcpd set dbck=@hsgx where bmnm=@bmnm and nm=@nm and lsh=@jz_yyr and zsf=@zsf and dj=@zxdj set @hsgx=0 fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj end close @xs_cp
GO
CREATE PROCEDURE [cy_xtjz_dbrk]  @jz_yyr varchar(50) AS declare @xs_cp cursor declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50),@nm varchar(50),@zsf varchar(50) declare @hsgx numeric(18,2),@zxdj numeric(18,3) set @xs_cp=cursor for select bmnm,nm,sum(sl),zsf,zxdj from ck_bmdbxx where shrq=@jz_yyr and sl>0 group by bmnm,nm,zsf,zxdj open @xs_cp fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj while @@fetch_status = 0 begin update ck_bmkcpd set dbrk=@hsgx where bmnm=@bmnm and nm=@nm and lsh=@jz_yyr and zsf=@zsf and dj=@zxdj set @hsgx=0 fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj end close @xs_cp
GO
CREATE PROCEDURE [cy_xtjz_lbhz]  @jz_yyr varchar(50) AS insert into wh_cd_lb_xs (yyr,nm,bm,mc,xssl,ysje,cbje,ssje,xsml)  SELECT @jz_yyr, wh_cd_lb.nm, wh_cd_lb.bm, wh_cd_lb.mc,xssl=(select isnull(sum(isnull(wh_xtjz_pos.cpsl,0)),0) from wh_xtjz_pos where substring(wh_xtjz_pos.cpnm,1,4)=wh_cd_lb.nm and wh_xtjz_pos.yyr=@jz_yyr ),ysje=(select isnull(sum(isnull(wh_xtjz_pos.cpdj,0)),0) from wh_xtjz_pos where substring(wh_xtjz_pos.cpnm,1,4)=wh_cd_lb.nm and wh_xtjz_pos.yyr=@jz_yyr ),cbje=(select isnull(sum(isnull(wh_xtjz_pos.cpcb,0)),0) from wh_xtjz_pos where substring(wh_xtjz_pos.cpnm,1,4)=wh_cd_lb.nm and wh_xtjz_pos.yyr=@jz_yyr ),ssje=(select isnull(sum(isnull(wh_xtjz_pos.ssdj,0)),0) from wh_xtjz_pos where substring(wh_xtjz_pos.cpnm,1,4)=wh_cd_lb.nm and wh_xtjz_pos.yyr=@jz_yyr ) ,Xsml=(select isnull(sum(isnull(wh_xtjz_pos.ssdj,0)),0)-isnull(sum(isnull(wh_xtjz_pos.cpcb,0)),0) from wh_xtjz_pos where substring(wh_xtjz_pos.cpnm,1,4)=wh_cd_lb.nm and wh_xtjz_pos.yyr=@jz_yyr )   FROM wh_cd_lb
GO
CREATE PROCEDURE [cy_xtjz_qckc] @jz_yyr varchar(50) as declare @jz_yyr_qt varchar(50) declare @xs_cp cursor declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50),@nm varchar(50),@xdw varchar(50),@gg varchar(50),@zsf varchar(50) declare @hsgx numeric(18,2) declare @jlgl numeric(18,4),@zxdj numeric(18,3) set @jz_yyr_qt= convert(varchar(50),dateadd(day,-1,convert(datetime,substring(@jz_yyr,1,4)+'/'+substring(@jz_yyr,5,2)+'/'+substring(@jz_yyr,7,2))),120) set @jz_yyr_qt=substring(@jz_yyr_qt,1,4)+substring(@jz_yyr_qt,6,2)+substring(@jz_yyr_qt,9,2) set @xs_cp=cursor for select bmnm,nm,qmkc-sy,zsf,dj from ck_bmkcpd where lsh=@jz_yyr_qt open @xs_cp fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj  while @@fetch_status = 0 begin update ck_bmkcpd set qckc=@hsgx where lsh=@jz_yyr and bmnm=@bmnm and nm=@nm and zsf=@zsf and dj=@zxdj set @hsgx=0 fetch next from @xs_cp into @bmnm,@nm,@hsgx,@zsf,@zxdj end  close @xs_cp
GO
CREATE PROCEDURE [cy_xtjz_sjhz] @jz_yyr varchar(50) AS insert into wh_xtjz_pos (cpnm,cpbm,cpmc,cpdw,cpsl,cpdj,ssdj,cpcb,fjf,jsf,yyr,dj,bmnm,zssl) select cpnm,cpbm,cpmc,cpdw,sum(cpsl),sum(cpdj),sum(ssdj),sum(cpcb),sum(fjf),jsf,yyr,dj,bmnm,sum(zssl) from xs_pos_jz where yyr=@jz_yyr group by yyr,jsf,cpnm,cpbm,cpmc,cpdw,dj,bmnm insert into wh_cd_lb_xs (yyr,nm,bm,mc,ysje,ssje,cbje,xsml,xssl)  (select yyr,nm,bm,mc,sum(ysje),sum(ssje),sum(cbje),sum(xsml),sum(xssl) from xs_pos_cd_lb_xs where yyr=@jz_yyr group by yyr,nm,bm,mc)
GO
CREATE PROCEDURE [cy_xtjz_sjhz_sw] @jz_yyr varchar(50) AS insert into wh_xtjz_pos_sw (cpnm,cpbm,cpmc,cpdw,cpsl,cpdj,ssdj,cpcb,fjf,jsf,yyr,dj,bmnm,zssl) select cpnm,cpbm,cpmc,cpdw,sum(cpsl),sum(cpdj),sum(ssdj),sum(cpcb),sum(fjf),jsf,yyr,dj,bmnm,sum(zssl) from xs_pos_jz_sw where yyr=@jz_yyr group by yyr,jsf,cpnm,cpbm,cpmc,cpdw,dj,bmnm insert into wh_cd_lb_xs_sw (yyr,nm,bm,mc,ysje,ssje,cbje,xsml,xssl)  (select yyr,nm,bm,mc,sum(ysje),sum(ssje),sum(cbje),sum(xsml),sum(xssl) from xs_pos_cd_lb_xs_sw where yyr=@jz_yyr group by yyr,nm,bm,mc)
GO
CREATE PROCEDURE [cy_xtjz_spxx]  @jz_yyr varchar(50) AS declare @xs_cp cursor declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50),@nm varchar(50),@xdw varchar(50),@gg varchar(50),@zsf varchar(50) declare @hsgx numeric(18,2) declare @jlgl numeric(18,4) ,@zxdj numeric(18,3) set @xs_cp=cursor for  select distinct bmnm,bmbm,bmmc,nm,xdw,hsgx,jlgl,gg,zsf,zxdj from ck_bmkcxx union select distinct bmnm,bmbm,bmmc,nm,xdw,hsgx,jlgl,gg,zsf,zxdj from ck_bmdbxx where bmnm not in (select bmnm from ck_bmkcxx) and ck_bmdbxx.shrq=@jz_yyr open @xs_cp fetch next from @xs_cp into @bmnm,@bmbm,@bmmc,@nm,@xdw,@hsgx,@jlgl,@gg,@zsf,@zxdj while @@fetch_status = 0 begin insert into ck_bmkcpd (lsh,bmnm,bmbm,bmmc,nm,xdw,hsgx,jlgl,gg,qckc,dbrk,dbck,xsck,qmkc,sy,zsf,dj) values(@jz_yyr,@bmnm,@bmbm,@bmmc,@nm,@xdw,@hsgx,@jlgl,@gg,0,0,0,0,0,0,@zsf,@zxdj) fetch next from @xs_cp into @bmnm,@bmbm,@bmmc,@nm,@xdw,@hsgx,@jlgl,@gg,@zsf,@zxdj end close @xs_cp
GO
CREATE PROCEDURE [cy_xtjz_xsck]  @jz_yyr varchar(50) AS declare @xs_cp cursor declare @cp_cb cursor declare @cpnm varchar(50) declare @spnm varchar(50) declare @bmnm varchar(50),@bmbm varchar(50),@bmmc varchar(50) declare @cpsl numeric(18,3) declare @jlgl numeric(18,4) declare @sl numeric(18,4) declare @lyl numeric(18,4) declare @sy numeric(18,4) declare @kcsl numeric(18,4) declare @sl_ls numeric(18,4) declare @cssl numeric(18,4) declare @gg varchar(50) declare @hsgx varchar(50) declare @shrq varchar(50) declare @mindj numeric(18,4) declare @csnm varchar(50) declare @dw varchar(50) declare @jsf varchar(10) declare @kdpos varchar(10) declare @ls_bmnm varchar(50) ,@zsf char(1) ,@zxdj numeric(18,3) set @xs_cp=cursor for select cpnm,isnull(sum(isnull(cpsl,0)),0),jsf,posbm from xs_pos_cp where yyr=@jz_yyr group by cpnm,jsf,posbm open @xs_cp fetch next from @xs_cp into @cpnm,@cpsl,@jsf,@kdpos while @@fetch_status = 0  begin set @cp_cb=cursor for select bmnm,spnm,isnull(sl,0),isnull(lyl,1) from wh_cd_cb1 where cpnm=@cpnm select @csnm=isnull(zgnm,'') from wh_cd where nm=@cpnm open @cp_cb fetch next from @cp_cb into @bmnm,@spnm,@sl,@lyl  if @jsf='1' begin set @ls_bmnm=@bmnm select @bmnm=isnull(bmnm,'') from wh_pos_lb where bm=@kdpos if @bmnm='' set @bmnm=@ls_bmnm end  while @@fetch_status=0  begin select @jlgl=isnull(jlgl,1),@dw=xdw,@hsgx=hsgx,@gg=gg from ck_dpda where nm=@spnm set @sy=@cpsl*@sl*1.0/@jlgl/@lyl while @sy<>0   begin if  exists (select * from ck_bmkcxx where sl>0 and bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and xdw=@dw ) begin select @shrq =min(shrq) from ck_bmkcxx where sl>0 and bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx  and xdw=@dw select @mindj=min(zxdj) from ck_bmkcxx where sl>0 and bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq  and xdw=@dw select @kcsl=sl ,@zsf=zsf from ck_bmkcxx where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj  and xdw=@dw if @kcsl>=@sy begin if not exists (select * from ck_spxs where @bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and dj=@mindj  and xdw=@dw  and xsrq=@jz_yyr) insert into ck_spxs (xsrq,bmnm,bmbm,bmmc,nm,gg,hsgx,dj,xssl,xdw)  values (@jz_yyr,@bmnm,'','',@spnm,@gg,@hsgx,@mindj,0,@dw) update ck_spxs set xssl=xssl+@sy where bmnm=@bmnm and nm=@spnm and dj=@mindj  and xsrq=@jz_yyr and gg=@gg and hsgx=@hsgx  and xdw=@dw update ck_bmkcxx set sl=sl-@sy,dsl=(sl-@sy*1.0)*1.0/hsgx where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf  and xdw=@dw if len(@csnm)<>0  insert into wh_cd_ycl (lsh,csnm,cpnm,spnm,dw,dj,cksl) values (@jz_yyr,@csnm,@cpnm,@spnm,@dw,@mindj,@sy) set @sy=0  end  else begin  if len(@csnm)<>0 begin select @cssl=sl from ck_bmkcxx where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf insert into wh_cd_ycl (lsh,csnm,cpnm,spnm,dw,dj,cksl) values (@jz_yyr,@csnm,@cpnm,@spnm,@dw,@mindj,@cssl) end select @sl_ls=sl from ck_bmkcxx where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf if @sl_ls<=0  begin update ck_bmkcxx set sl=sl-@sy,dsl=(sl-@sy*1.0)*1.0/hsgx where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf if not exists(select * from ck_spxs where @bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx  and dj=@mindj  and xsrq=@jz_yyr) insert into ck_spxs (xsrq,bmnm,bmbm,bmmc,nm,gg,hsgx,dj,xssl) values (@jz_yyr,@bmnm,'','',@spnm,@gg,@hsgx,@mindj,0) update ck_spxs set xssl=xssl+@sy where  bmnm=@bmnm and nm=@spnm and dj=@mindj  and xsrq=@jz_yyr and gg=@gg and hsgx=@hsgx set @sy=0 end else begin update ck_bmkcxx set sl=0,dsl=0 where bmnm=@bmnm and nm=@spnm and gg=@gg and hsgx=@hsgx and shrq=@shrq and zxdj=@mindj and zsf=@zsf  set @sy=@sy-@kcsl  end end end else set @sy=0 end fetch next from  @cp_cb into @bmnm,@spnm,@sl,@lyl end  fetch next from @xs_cp into @cpnm,@cpsl,@jsf,@kdpos end  close @xs_cp close @cp_cb 
GO
CREATE PROCEDURE kf_room_ls_insert  @yyr varchar(50) AS insert into kf_room_ls  select yyr=@yyr,fhnm=kf_room.fhnm,fh=kf_room.fh,fj=(select isnull(sum(zhff),0) from kf_jb_link where kfnm=kf_room.fhnm and lkzt='1') ,lb=kf_room.lb,lh=substring(kf_room.fhnm,1,4),lhmc=(select isnull(mc,'') from kf_lhxxsz where nm=substring(kf_room.fhnm,1,4)),lc=substring(kf_room.fhnm,1,8),lcmc=(select isnull(mc,'') from kf_lhxxsz where nm=substring(kf_room.fhnm,1,8)),bz=kf_room.bz,rs=kf_room.rs from kf_room
GO
CREATE PROCEDURE [xs_pos_jb_fjz] @lsh varchar(50) AS declare @ysje numeric(15,3) declare @ssje numeric(15,3) declare @mlje numeric(15,3) declare @yhje numeric(15,3) declare @qdje numeric(15,3) declare @khhk numeric(15,3) declare @khqk numeric(15,3) declare @qdrbm varchar(50) declare @qdrmc varchar(50)  declare @yyr varchar(50)  declare @khnm varchar(50) declare @khbm varchar(50) declare @khmc varchar(50) declare @lx varchar(50) declare @qkyy varchar(50),@qzr varchar(50),@bc varchar(50) delete xs_pos_khqk where lsh=@lsh select  @ysje=ysje,@ssje=ssje,@mlje=mlje,@yhje=yhje, @qdje=isnull(qdje,0),@khqk=isnull(khqk,0),@qdrbm=qdrbm,@qdrmc=qdrmc,@khnm=khnm,@khbm=khbm,@khmc=khmc,@lx=lx,@qkyy=yhyy,@yyr=yyr,@qzr=qzr,@bc=bc from xs_pos_jb_xs where lsh=@lsh if @qdje<>0 or  @khqk<>0 insert into xs_pos_khqk (lsh,ysje,ssje,mlje,yhje,qdje,khqk,qdrbm,qdrmc,khnm,khbm,khmc,lx,khhk,jqf,qkyy,xsd,rq,yyr,qzr,bc) values (@lsh,@ysje,@ssje,@mlje,@yhje,@qdje,@khqk,@qdrbm,@qdrmc,@khnm,@khbm,@khmc,@lx,@ssje-@khqk,'0',@qkyy,'餐厅',substring(convert(varchar(50),getdate(),120),1,4)+substring(convert(varchar(50),getdate(),120),6,2)+substring(convert(varchar(50),getdate(),120),9,2)+substring(convert(varchar(50),getdate(),120),12,2)+substring(convert(varchar(50),getdate(),120),15,2),@yyr,@qzr,@bc)
GO
CREATE PROCEDURE [xs_pos_jb_jz] @lsh varchar(50),@posbm varchar(50), @yyr varchar(50) AS declare @ysje numeric(15,3) declare @ssje numeric(15,3) declare @mlje numeric(15,3)  declare @yhje numeric(15,3) declare @zsje numeric(15,3)  declare @qdje numeric(15,3) declare @khhk numeric(15,3) declare @khqk numeric(15,3) declare @qdrbm varchar(50)  declare @qdrmc varchar(50) declare @khnm varchar(50) declare @khbm varchar(50) declare @khmc varchar(50) declare @lx varchar(50) declare @qkyy varchar(50) ,@qzr varchar(50),@bc varchar(50) select @bc=bc from xs_pos_jb_temp where lsh=@lsh update xs_pos_jb_temp set  ysje=0,ssje=0,jsje=0,cbje=0,mlje=0,yhje=0,qdje=0,khqk=0,fwje=0,fjf=0,zsje=0,tcje=0,yjje=0,lx='9',posbm=@posbm,yyr=@yyr,bc=@bc where bdlsh=@lsh insert into xs_pos_cp_xs select * from xs_pos_cp_temp where lsh like  @lsh +'%' insert into xs_pos_jb_xs select * from xs_pos_jb_temp where lsh =@lsh  or substring(lsh,1,16) in (select lsh from xs_pos_jb_temp where bdlsh=@lsh) update wh_zw set zt='0',yjf='0' where nm in (select zwnm from xs_pos_jb_temp where lsh =@lsh  or substring(lsh,1,16) in  (select lsh from xs_pos_jb_temp where bdlsh=@lsh) group by zwnm having count(*)=1) delete xs_pos_cp_temp where lsh like @lsh + '%'  or substring(lsh,1,16) in (select lsh from xs_pos_jb_temp where bdlsh=@lsh) delete xs_pos_jb_temp where lsh =@lsh  or substring(lsh,1,16) in (select lsh from xs_pos_jb_temp where bdlsh=@lsh) select @bc=bc, @ysje=ysje,@ssje=ssje,@mlje=mlje,@yhje=yhje, @qdje=isnull(qdje,0),@khqk=isnull(khqk,0),@qdrbm=qdrbm,@qdrmc=qdrmc,@khnm=khnm,@khbm=khbm, @khmc=khmc,@lx=lx,@qkyy=yhyy,@qzr=qzr from xs_pos_jb_xs where lsh=@lsh if @qdje<>0 or  @khqk<>0 insert into xs_pos_khqk (lsh,ysje,ssje,mlje,yhje,qdje,khqk,qdrbm,qdrmc,khnm,khbm,khmc,lx,khhk,jqf,qkyy,xsd,rq,yyr,qzr,bc) values (@lsh,@ysje,@ssje,@mlje,@yhje,@qdje,@khqk,@qdrbm,@qdrmc,@khnm,@khbm,@khmc,@lx,@ssje-@khqk,'0',@qkyy,'餐厅',substring(convert(varchar(50),getdate(),120),1,4)+substring(convert(varchar(50),getdate(),120),6,2)+substring(convert(varchar(50),getdate(),120),9,2)+substring(convert(varchar(50),getdate(),120),12,2)+substring(convert(varchar(50),getdate(),120),15,2),@yyr,@qzr,@bc)
GO
CREATE PROCEDURE [yfk_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @xslsh varchar(50) declare @jqf varchar(50) declare @ys numeric(18,6),@khqk numeric(18,6),@khhk numeric(18,6)  update yf_gys_jb_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh set @rkd_jb = cursor for  select rklsh,isnull(jqf,0),isnull(yf,0),isnull(qk,0),isnull(hk,0) from yf_gys_temp where lsh like @lsh+'%' open @rkd_jb fetch next from @rkd_jb into @xslsh,@jqf,@ys,@khqk,@khhk while @@fetch_status = 0  begin if @khqk=0 SET @jqf='1' if @jqf='1' update ck_gys_qk_list set yfje=@khhk+@ys,jqf=@jqf,sqk=0 where lsh=@xslsh else  update ck_gys_qk_list set yfje=@khhk+@ys,jqf=@jqf,sqk=@khqk where lsh=@xslsh fetch next from @rkd_jb into @xslsh,@jqf,@ys,@khqk,@khhk end close @rkd_jb insert into yf_gys select * from yf_gys_temp where lsh like @lsh+'%' insert into yf_gys_jb select * from yf_gys_jb_temp where lsh = @lsh delete yf_gys_temp where lsh like @lsh+'%' delete yf_gys_jb_temp where lsh =@lsh
GO
CREATE PROCEDURE [ysk_sh]  @lsh varchar(50) AS declare @rkd_jb cursor declare @xslsh varchar(50) declare @jqf varchar(50) declare @ys numeric(18,6),@khqk numeric(18,6),@khhk numeric(18,6) update ys_khhk_jb_temp set shrq=convert(varchar,getdate(),112) where lsh=@lsh set @rkd_jb = cursor for  select xslsh,isnull(jqf,0),isnull(ys,0),isnull(khqk,0),isnull(khhk,0) from ys_khhk_temp where lsh like @lsh+'%'  open @rkd_jb fetch next from @rkd_jb into @xslsh,@jqf,@ys,@khqk,@khhk while @@fetch_status = 0  begin if @khqk=0 SET @jqf='1' if @jqf='1'   update xs_pos_khqk set khhk=@khhk+@ys,jqf=@jqf,khqk=0 where lsh=@xslsh else update xs_pos_khqk set khhk=@khhk+@ys,jqf=@jqf,khqk=@khqk where lsh=@xslsh fetch next from @rkd_jb into @xslsh,@jqf,@ys,@khqk,@khhk end close @rkd_jb insert into ys_khhk select * from ys_khhk_temp  where lsh like @lsh+'%' insert into ys_khhk_jb select * from ys_khhk_jb_temp where lsh = @lsh  delete ys_khhk_temp where lsh like @lsh+'%' delete ys_khhk_jb_temp where lsh =@lsh
GO
INSERT INTO t_zd_client VALUES ('01','系统设置','Y',NULL,NULL,'N','N','N',NULL,NULL,NULL,'1','N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,14,NULL,'c:\p8_hms2000\bmp\0633-800.jpg','N',NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('02','后台管理','Y',NULL,NULL,'N','N','N',NULL,NULL,NULL,'1','N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,'c:\p8_hms2000\bmp\0633-800.jpg','N',NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('03','仓库管理','Y',NULL,NULL,'N','N','Y','36',NULL,'N','0','N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'N',NULL,0,0)
GO
INSERT INTO t_zd_client VALUES ('05','统计报表','Y',NULL,NULL,'Y','Y','N',NULL,'1','N','1','N','09','03','Y','入','1',10,NULL,1,1,1,NULL,589,'0','D:\CurrentV8.02\source\image\backgnd1.bmp','N',NULL,NULL,1.00)
GO
INSERT INTO t_zd_client VALUES ('04','应收应付','Y',NULL,NULL,'N','N','N',NULL,'1','N','0','N','06','03','N','进','1',NULL,NULL,NULL,NULL,NULL,NULL,0,'0',NULL,'N',NULL,NULL,1.00)
GO
INSERT INTO t_zd_client VALUES ('06','预定管理','Y',NULL,NULL,'N','N','N',NULL,'1','N','1','N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('07','划菜管理','Y',NULL,NULL,'N','N','N',NULL,'1','N','1','N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('08','会员管理','Y',NULL,NULL,'N','N','N',NULL,'1','N','0','N',NULL,NULL,'N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('09','财务管理','N',NULL,NULL,'N','N','N',NULL,'1','N','0','N',NULL,NULL,'N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
GO
INSERT INTO t_zd_client VALUES ('10','前台收银','Y',NULL,NULL,'N','N','N',NULL,'1','N','1','N',NULL,NULL,'N',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
GO
INSERT INTO t_zd_window VALUES ('操作员代码设置','t_w_wh_operator','1','2009-1-19 0:0:0.000',NULL,NULL,'Y',NULL,NULL,1,'01')
GO
INSERT INTO t_zd_window VALUES ('操作员分组','t_w_wh_operator_group','1','2009-1-19 0:0:0.000',NULL,NULL,'Y',NULL,NULL,2,'01')
GO
INSERT INTO t_zd_window VALUES ('操作员权限设置','t_w_wh_menu_right','1','2009-1-19 0:0:0.000',NULL,NULL,'Y',NULL,NULL,3,'01')
GO
INSERT INTO t_zd_window VALUES ('模块管理器','t_w_wh_menu_abc','1','2009-1-19 0:0:0.000',NULL,NULL,'Y',NULL,NULL,4,'01')
GO
INSERT INTO t_zd_window VALUES ('数据初始化','w_jcxx_csh','1','2009-1-19 0:0:0.000',NULL,NULL,'Y',NULL,NULL,5,'01')
GO
INSERT INTO t_zd_window VALUES ('仓库管理系统','w_ckgl20','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,6,'03')
GO
INSERT INTO t_zd_window VALUES ('仓库基本信息','w_sys_ckxx_sz','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,7,'03')
GO
INSERT INTO t_zd_window VALUES ('商品基本档案','w_sys_spxx_wh','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,8,'03')
GO
INSERT INTO t_zd_window VALUES ('供应商字典','w_gyszd','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,9,'03')
GO
INSERT INTO t_zd_window VALUES ('商品初始化新单','w_spcsh_use_lr','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,'0',10,'03')
GO
INSERT INTO t_zd_window VALUES ('商品初始化修改','w_spcsh_use_02','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,'2',11,'03')
GO
INSERT INTO t_zd_window VALUES ('商品初始化审核','w_spcsh_use_sh','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,'3',12,'03')
GO
INSERT INTO t_zd_window VALUES ('商品初始化打印','w_spcsh_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,13,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存初始化','w_bmkccsh_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,14,'03')
GO
INSERT INTO t_zd_window VALUES ('填写总库入库单','w_sprk_use_gys_xz','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,15,'03')
GO
INSERT INTO t_zd_window VALUES ('总库入库单修改','w_sprk_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,16,'03')
GO
INSERT INTO t_zd_window VALUES ('总库入库单审核','w_sprk_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,17,'03')
GO
INSERT INTO t_zd_window VALUES ('总库入库单打印','w_sprk_use_02','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,18,'03')
GO
INSERT INTO t_zd_window VALUES ('直拨入库单','w_spzjrk_use_gys_xz','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,19,'03')
GO
INSERT INTO t_zd_window VALUES ('填写退货单','w_spth_use_gys_xz','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,20,'03')
GO
INSERT INTO t_zd_window VALUES ('退货单修改','w_spth_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,21,'03')
GO
INSERT INTO t_zd_window VALUES ('退货单审核','w_spth_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,22,'03')
GO
INSERT INTO t_zd_window VALUES ('退货单打印','w_spth_use_02','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,23,'03')
GO
INSERT INTO t_zd_window VALUES ('填写部门调拨单','w_spbmdb_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,24,'03')
GO
INSERT INTO t_zd_window VALUES ('修改部门调拨单','w_spbmdb_use_02','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,25,'03')
GO
INSERT INTO t_zd_window VALUES ('审核部门调拨单','w_spbmdb_use_04','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,26,'03')
GO
INSERT INTO t_zd_window VALUES ('部门调拨单打印','w_spbmdb_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,27,'03')
GO
INSERT INTO t_zd_window VALUES ('填写部门退货单','w_spbmth_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,28,'03')
GO
INSERT INTO t_zd_window VALUES ('修改部门退货单','w_spbmth_use_02','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,29,'03')
GO
INSERT INTO t_zd_window VALUES ('审核部门退货单','w_spbmth_use_04','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,30,'03')
GO
INSERT INTO t_zd_window VALUES ('打印部门退货单','w_spbmth_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,31,'03')
GO
INSERT INTO t_zd_window VALUES ('库存信息查询','w_kctj_zkc','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,32,'03')
GO
INSERT INTO t_zd_window VALUES ('库存上限统计','w_kctj_kcsx','1','2009-1-21 9:29:0.000',NULL,NULL,'Y',NULL,NULL,33,'03')
GO
INSERT INTO t_zd_window VALUES ('库存下限统计','w_kctj_kcxx','1','2009-1-21 9:29:0.000',NULL,NULL,'Y',NULL,NULL,34,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存查询','w_kctj_bmkc','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,35,'03')
GO
INSERT INTO t_zd_window VALUES ('供应商供货汇总表1','w_gys_ghhzb_ck','1','2009-1-21 9:29:0.000',NULL,NULL,'Y',NULL,NULL,36,'03')
GO
INSERT INTO t_zd_window VALUES ('供应商供货汇总表','w_gys_ghhzb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,37,'03')
GO
INSERT INTO t_zd_window VALUES ('供应商供货明细表','w_gys_ghmxb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,38,'03')
GO
INSERT INTO t_zd_window VALUES ('供应商供货明细表1','w_gys_ghmxb_ck','1','2009-1-21 9:29:0.000',NULL,NULL,'Y',NULL,NULL,38,'03')
GO
INSERT INTO t_zd_window VALUES ('商品采购汇总表','w_splb_hzb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,39,'03')
GO
INSERT INTO t_zd_window VALUES ('商品采购明细表','w_splb_mxb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,40,'03')
GO
INSERT INTO t_zd_window VALUES ('商品调拨汇总表','w_spdb_hzb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,41,'03')
GO
INSERT INTO t_zd_window VALUES ('商品调拨明细表','w_spdb_mxb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,42,'03')
GO
INSERT INTO t_zd_window VALUES ('仓库入库汇总表','w_ckrk_hzb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,43,'03')
GO
INSERT INTO t_zd_window VALUES ('仓库入库明细表','w_ckrk_mxb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,44,'03')
GO
INSERT INTO t_zd_window VALUES ('部门调拨汇总表','w_spbmdb_hzb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,45,'03')
GO
INSERT INTO t_zd_window VALUES ('部门调拨明细表','w_spbmdb_mxb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,46,'03')
GO
INSERT INTO t_zd_window VALUES ('商品结转生成','w_ckjz_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,47,'03')
GO
INSERT INTO t_zd_window VALUES ('商品结转作废','w_ckjz_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,48,'03')
GO
INSERT INTO t_zd_window VALUES ('商品结转录入','w_ckjz_use_04','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,49,'03')
GO
INSERT INTO t_zd_window VALUES ('商品结转审核','w_ckjz_use_05','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,50,'03')
GO
INSERT INTO t_zd_window VALUES ('商品结转打印','w_ckjz_use_06','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,51,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存盘点生成','w_bmkcpd_use_01','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,52,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存盘点作废','w_bmkcpd_use_03','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,53,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存盘点录入','w_bmkcpd_use_04','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,54,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存盘点审核','w_bmkcpd_use_05','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,55,'03')
GO
INSERT INTO t_zd_window VALUES ('部门库存盘点打印','w_bmkcpd_use_06','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,56,'03')
GO
INSERT INTO t_zd_window VALUES ('应收应付管理系统','w_ysyf20','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,57,'04')
GO
INSERT INTO t_zd_window VALUES ('新收款单','w_ysk_use_01','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,58,'04')
GO
INSERT INTO t_zd_window VALUES ('收款单修改','w_ysk_use_edit','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,59,'04')
GO
INSERT INTO t_zd_window VALUES ('收款单审核','w_ysk_use_sh_xz','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,60,'04')
GO
INSERT INTO t_zd_window VALUES ('收款单打印','w_ysk_dy_xz','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,61,'04')
GO
INSERT INTO t_zd_window VALUES ('新付款单','w_yfk_use_01','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,63,'04')
GO
INSERT INTO t_zd_window VALUES ('付款单修改','w_yfk_use_edit','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,64,'04')
GO
INSERT INTO t_zd_window VALUES ('付款单审核','w_yfk_use_sh_xz','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,65,'04')
GO
INSERT INTO t_zd_window VALUES ('付款单打印','w_yfk_dy_xz','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,66,'04')
GO
INSERT INTO t_zd_window VALUES ('期间应付款统计','w_yfk_qjtj_xz','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,67,'04')
GO
INSERT INTO t_zd_window VALUES ('销售单查询','w_tjdj_xs_md','1','2009-1-21 10:50:44.610',NULL,NULL,'N',NULL,NULL,68,'05')
GO
INSERT INTO t_zd_window VALUES ('客户收款统计','w_ysk_tj_xz_01','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,71,'04')
GO
INSERT INTO t_zd_window VALUES ('供应商付款统计','w_yfk_tj_xz_01','1','2009-1-21 10:50:44.610',NULL,NULL,'Y',NULL,NULL,72,'04')
GO
INSERT INTO t_zd_window VALUES ('填写部门申购单','w_spbmcg_use_01','1','2009-1-21 17:13:0.000',NULL,NULL,'Y',NULL,NULL,73,'03')
GO
INSERT INTO t_zd_window VALUES ('修改部门申购单','ck_spcgd_edit','1','2009-1-21 17:13:0.000',NULL,NULL,'Y',NULL,NULL,74,'03')
GO
INSERT INTO t_zd_window VALUES ('申购单审批','ck_spcgd_sh_xz','1','2009-1-21 17:13:0.000',NULL,NULL,'Y',NULL,NULL,75,'03')
GO
INSERT INTO t_zd_window VALUES ('申购单打印','ck_spcgd_dy_xz','1','2009-1-21 17:13:0.000',NULL,NULL,'Y',NULL,NULL,76,'03')
GO
INSERT INTO t_zd_window VALUES ('菜品字典','w_cpzd','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,77,'02')
GO
INSERT INTO t_zd_window VALUES ('客户字典','w_khzd_add','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,78,'02')
GO
INSERT INTO t_zd_window VALUES ('客户字典（带发卡）','w_khzd','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,79,'02')
GO
INSERT INTO t_zd_window VALUES ('菜品成本卡（食堂专用）','w_cpcbk_stzy','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,80,'02')
GO
INSERT INTO t_zd_window VALUES ('菜品成本卡','w_cpcbk','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,81,'02')
GO
INSERT INTO t_zd_window VALUES ('部门设置','w_bmzd','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,82,'02')
GO
INSERT INTO t_zd_window VALUES ('菜谱制作','w_cp_sz','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,83,'02')
GO
INSERT INTO t_zd_window VALUES ('订餐管理','w_dcgl','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,84,'02')
GO
INSERT INTO t_zd_window VALUES ('菜谱打印','w_cp_dy','1','2009-1-22 2:46:0.000',NULL,NULL,'Y',NULL,NULL,85,'02')
GO
INSERT INTO t_zd_window VALUES ('注册信息','w_sys_zcxx','1',NULL,NULL,NULL,'Y',NULL,NULL,86,'01')
GO
INSERT INTO t_zd_window VALUES ('厅位信息设置','w_twzd','1',NULL,NULL,NULL,'Y',NULL,NULL,87,'02')
GO
INSERT INTO t_zd_window VALUES ('品项做法设置','w_zf_set','1',NULL,NULL,NULL,'Y',NULL,NULL,88,'02')
GO
INSERT INTO t_zd_window VALUES ('品项成本初始化(自动)','w_yyqzb_cpcb_csh','1',NULL,NULL,NULL,'Y',NULL,NULL,89,'02')
GO
INSERT INTO t_zd_window VALUES ('品项成本初始化(手工)','w_yyqzb_cbcsh_ls','1',NULL,NULL,NULL,'Y',NULL,NULL,90,'02')
GO
INSERT INTO t_zd_window VALUES ('技师提成设置','w_tc_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,91,'02')
GO
INSERT INTO t_zd_window VALUES ('促销设置','w_cxsz','1',NULL,NULL,NULL,'Y',NULL,NULL,92,'02')
GO
INSERT INTO t_zd_window VALUES ('品项出品部门设置','w_cplbgszd','1',NULL,NULL,NULL,'Y',NULL,NULL,93,'02')
GO
INSERT INTO t_zd_window VALUES ('日结账','w_rjz_jz','1',NULL,NULL,NULL,'Y',NULL,NULL,94,'02')
GO
INSERT INTO t_zd_window VALUES ('经理签单权限设置','w_qdqxzd','1',NULL,NULL,NULL,'Y',NULL,NULL,95,'02')
GO
INSERT INTO t_zd_window VALUES ('结账方式设置','w_hbzd','1',NULL,NULL,NULL,'Y',NULL,NULL,96,'02')
GO
INSERT INTO t_zd_window VALUES ('POS编码设置','w_sys_posbm_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,97,'02')
GO
INSERT INTO t_zd_window VALUES ('班次设置','w_sys_bc_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,99,'02')
GO
INSERT INTO t_zd_window VALUES ('POS结账设置','w_sys_posjz_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,100,'02')
GO
INSERT INTO t_zd_window VALUES ('员工字典','w_zgzd','1',NULL,NULL,NULL,'Y',NULL,NULL,101,'02')
GO
INSERT INTO t_zd_window VALUES ('提成设置','w_tc_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,102,'02')
GO
INSERT INTO t_zd_window VALUES ('退菜原因设置','w_tcyy_set','1',NULL,NULL,NULL,'Y',NULL,NULL,103,'02')
GO
INSERT INTO t_zd_window VALUES ('赠送原因设置','w_zsyy_set','1',NULL,NULL,NULL,'Y',NULL,NULL,104,'02')
GO
INSERT INTO t_zd_window VALUES ('菜品做法设置','w_zf_set','1',NULL,NULL,NULL,'Y',NULL,NULL,105,'02')
GO
INSERT INTO t_zd_window VALUES ('员工权限设置','w_sys_zgqx_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,106,'01')
GO
INSERT INTO t_zd_window VALUES ('POS可销售厅位设置','w_sys_posxstwlb_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,107,'02')
GO
INSERT INTO t_zd_window VALUES ('POS可销售菜品类别设置','w_sys_posxscplb_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,108,'02')
GO
INSERT INTO t_zd_window VALUES ('点菜员权限设置','w_dcyqx_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,109,'02')
GO
INSERT INTO t_zd_window VALUES ('点菜员设置','w_pos_dcy_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,110,'02')
GO
INSERT INTO t_zd_window VALUES ('估清设置','w_gqsz','1',NULL,NULL,NULL,'Y',NULL,NULL,111,'02')
GO
INSERT INTO t_zd_window VALUES ('促销设置','w_cxsz','1',NULL,NULL,NULL,'Y',NULL,NULL,112,'02')
GO
INSERT INTO t_zd_window VALUES ('套餐包桌设置','w_bzsz','1',NULL,NULL,NULL,'Y',NULL,NULL,113,'02')
GO
INSERT INTO t_zd_window VALUES ('娱乐包房字典','w_bfzd','1',NULL,NULL,NULL,'Y',NULL,NULL,114,'02')
GO
INSERT INTO t_zd_window VALUES ('菜品类别归属字典','w_cplbgszd','1',NULL,NULL,NULL,'Y',NULL,NULL,115,'02')
GO
INSERT INTO t_zd_window VALUES ('付款方式设置','w_hbzd','1',NULL,NULL,NULL,'Y',NULL,NULL,116,'02')
GO
INSERT INTO t_zd_window VALUES ('开单时自动销售品项','w_kd_zuto_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,117,'02')
GO
INSERT INTO t_zd_window VALUES ('厨师设置','w_wh_cs_sz','1',NULL,NULL,NULL,'Y',NULL,NULL,118,'02')
GO
INSERT INTO t_zd_window VALUES ('预定管理','w_yd_main','1',NULL,NULL,NULL,'Y',NULL,NULL,119,'06')
GO
INSERT INTO t_zd_window VALUES ('划菜管理','w_hcgl40','1',NULL,NULL,NULL,'Y',NULL,NULL,120,'07')
GO
INSERT INTO t_zd_window VALUES ('未买单查询','w_tjdj_xs_wmd','1',NULL,NULL,NULL,'N',NULL,NULL,121,'05')
GO
INSERT INTO t_zd_window VALUES ('销售单审核','w_tjdj_xs_sh','1',NULL,NULL,NULL,NULL,NULL,NULL,122,'05')
GO
INSERT INTO t_zd_window VALUES ('销售统计','w_tj_pos_dy','1',NULL,NULL,NULL,NULL,NULL,'pos',124,'05')
GO
INSERT INTO t_zd_window VALUES ('按收银点统计','w_tj_pos_xz',NULL,NULL,NULL,NULL,NULL,NULL,'3xsd',125,'05')
GO
INSERT INTO t_zd_window VALUES ('按班次统计','w_tj_pos_bc','1',NULL,NULL,NULL,NULL,NULL,NULL,126,'05')
GO
INSERT INTO t_zd_window VALUES ('品项类别统计','w_tj_pos_cplb','1',NULL,NULL,NULL,NULL,NULL,NULL,127,'05')
GO
INSERT INTO t_zd_window VALUES ('品项统计','w_tj_pos_cp','1',NULL,NULL,NULL,NULL,NULL,NULL,128,'05')
GO
INSERT INTO t_zd_window VALUES ('部门销售统计','w_tj_pos_bm','1','2009-6-25 16:10:10.000',NULL,NULL,NULL,NULL,NULL,129,'05')
GO
INSERT INTO t_zd_window VALUES ('经理签单统计','w_tj_pos_jlqd','1',NULL,NULL,NULL,NULL,NULL,NULL,130,'05')
GO
INSERT INTO t_zd_window VALUES ('退菜原因统计','w_tj_pos_dy','1',NULL,NULL,NULL,NULL,NULL,'tcy',131,'05')
GO
INSERT INTO t_zd_window VALUES ('优惠原因统计','w_tj_pos_yhyy_xz','1',NULL,NULL,NULL,NULL,NULL,NULL,132,'05')
GO
INSERT INTO t_zd_window VALUES ('赠送原因统计','w_tj_pos_dy','1',NULL,NULL,NULL,NULL,NULL,'zsy',133,'05')
GO
INSERT INTO t_zd_window VALUES ('销售汇总统计','w_pos_xsdzd','1',NULL,NULL,NULL,NULL,NULL,NULL,134,'05')
GO
INSERT INTO t_zd_window VALUES ('销售经理业绩','w_xsjl_cx','1',NULL,NULL,NULL,NULL,NULL,NULL,135,'05')
GO
INSERT INTO t_zd_window VALUES ('服务员销售统计','w_tj_fwy',NULL,NULL,NULL,NULL,NULL,NULL,NULL,136,'05')
GO
INSERT INTO t_zd_window VALUES ('服务员按类别销售统计','w_tj_fwy_yj_xz','1',NULL,NULL,NULL,NULL,NULL,NULL,137,'05')
GO
INSERT INTO t_zd_window VALUES ('服务员按单品销售统计','w_tj_dcy_yj_xz','1',NULL,NULL,NULL,NULL,NULL,NULL,138,'05')
GO
INSERT INTO t_zd_window VALUES ('点菜员按类别销售统计','w_tj_fwy_lb','1',NULL,NULL,NULL,NULL,NULL,NULL,139,'05')
GO
INSERT INTO t_zd_window VALUES ('点菜员按单品销售统计','w_tj_fwy_dp','1',NULL,NULL,NULL,NULL,NULL,NULL,140,'05')
GO
INSERT INTO t_zd_window VALUES ('服务技师提成','w_tj_fwjs','1',NULL,NULL,NULL,NULL,NULL,NULL,141,'05')
GO
INSERT INTO t_zd_window VALUES ('人均消费统计图表','w_tbtj_use_01',NULL,NULL,NULL,NULL,NULL,NULL,'1',142,'05')
GO
INSERT INTO t_zd_window VALUES ('日客流量统计图表','w_tbtj_use_01',NULL,NULL,NULL,NULL,NULL,NULL,'2',143,'05')
GO
INSERT INTO t_zd_window VALUES ('日上座率统计图表','w_tbtj_use_01',NULL,NULL,NULL,NULL,NULL,NULL,'4',144,'05')
GO
INSERT INTO t_zd_window VALUES ('日销售额统计图表','w_tbtj_use_01',NULL,NULL,NULL,NULL,NULL,NULL,'5',145,'05')
GO
INSERT INTO t_zd_window VALUES ('销售额均线对比图表','w_tbtj_use_01',NULL,NULL,NULL,NULL,NULL,NULL,'11',146,'05')
GO
INSERT INTO t_zd_window VALUES ('客户消费情况统计','w_khxf_tj',NULL,NULL,NULL,NULL,NULL,NULL,NULL,147,'05')
GO
INSERT INTO t_zd_window VALUES ('客户预定情况统计','w_yddcx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,148,'05')
GO
INSERT INTO t_zd_window VALUES ('保密菜单设置','w_bmcd_sz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,149,'01')
GO
INSERT INTO t_zd_window VALUES ('会员管理','w_main_hygl',NULL,NULL,NULL,NULL,NULL,NULL,'',150,'08')
GO
INSERT INTO t_zd_window VALUES ('财务管理','w_hmcwgl',NULL,NULL,NULL,NULL,NULL,NULL,NULL,151,'09')
GO
INSERT INTO t_zd_window VALUES ('会员档案','w_khzd',NULL,NULL,NULL,NULL,NULL,NULL,NULL,152,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡制作','w_ickzz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,153,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡验证','w_ick_yz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,154,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡信息修改','w_ick_ys',NULL,NULL,NULL,NULL,NULL,NULL,NULL,155,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡初始化','w_ickql',NULL,NULL,NULL,NULL,NULL,NULL,NULL,156,'08')
GO
INSERT INTO t_zd_window VALUES ('积分卡返款设置','w_ick_fksz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,157,'08')
GO
INSERT INTO t_zd_window VALUES ('积分卡返款','w_ick_fk_xz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,158,'08')
GO
INSERT INTO t_zd_window VALUES ('储值卡续存','w_ickxz_ck',NULL,NULL,NULL,NULL,NULL,NULL,NULL,159,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡消费查询','w_xzkb_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,160,'08')
GO
INSERT INTO t_zd_window VALUES ('积分卡返款查询','w_ick_fk_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,161,'08')
GO
INSERT INTO t_zd_window VALUES ('储值卡续存查询','w_ickck_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,162,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡挂失','w_ick_gs',NULL,NULL,NULL,NULL,NULL,NULL,NULL,163,'08')
GO
INSERT INTO t_zd_window VALUES ('磁卡补卡','w_ick_bk',NULL,NULL,NULL,NULL,NULL,NULL,NULL,164,'08')
GO
INSERT INTO t_zd_window VALUES ('前台收银','w_zw',NULL,NULL,NULL,NULL,NULL,NULL,NULL,165,'10')
GO
INSERT INTO t_zd_window VALUES ('发票种类维护','w_fplx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,166,'02')
GO
INSERT INTO t_zd_window VALUES ('发票领用','w_fply',NULL,NULL,NULL,NULL,NULL,NULL,NULL,167,'02')
GO
INSERT INTO t_zd_window VALUES ('发票使用查询','w_fpcx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,168,'02')
GO
INSERT INTO t_zd_window VALUES ('反结账账单查询','w_xs_fjz_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,169,'05')
GO
INSERT INTO t_zd_window VALUES ('销售单领发票查询','w_xs_fpxs_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,170,'05')
GO
INSERT INTO t_zd_window VALUES ('前台收银明细表','w_xstj_sybb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,171,'05')
GO
INSERT INTO t_zd_window VALUES ('财务类别设置','w_cp_cwlb',NULL,NULL,NULL,NULL,NULL,NULL,NULL,172,'02')
GO
INSERT INTO t_zd_window VALUES ('电子券','w_dzq_sz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,173,'02')
GO
INSERT INTO t_zd_window VALUES ('菜品停用设置','w_cpty_sz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,174,'02')
GO
INSERT INTO t_zd_window VALUES ('桌位停用设置','w_zwty_sz',NULL,NULL,NULL,NULL,NULL,NULL,NULL,175,'02')
GO
INSERT INTO t_zd_window VALUES ('ICK端口设置','w_sys_com_set',NULL,NULL,NULL,NULL,NULL,NULL,NULL,176,'08')
GO
INSERT INTO t_zd_window VALUES ('会员卡查询','w_wh_ick_cx',NULL,NULL,NULL,NULL,NULL,NULL,NULL,177,'08')
GO
INSERT INTO t_zd_window VALUES ('会员卡密码修改','w_ick_editpass',NULL,NULL,NULL,NULL,NULL,NULL,NULL,178,'08')
GO
INSERT INTO t_zd_window VALUES ('仓库打印设置','w_ck_print_set','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,179,'03')
GO
INSERT INTO t_zd_window VALUES ('会员生日统计','w_kh_srtj','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,180,'08')
GO
INSERT INTO t_zd_window VALUES ('销售对比表','w_tj_xsdb','1','2009-1-19 7:24:39.110',NULL,NULL,'Y',NULL,NULL,181,'05')
GO
INSERT INTO wh_mkqx VALUES ('01','餐饮后台管理系统','1')
GO
INSERT INTO wh_mkqx VALUES ('010101','桌位停用设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010102','菜品停用设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010103','时令菜价格设定','1')
GO
INSERT INTO wh_mkqx VALUES ('010104','菜品成本初始化','1')
GO
INSERT INTO wh_mkqx VALUES ('010105','包桌设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010106','促销设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010107','沽清设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010201','厅位字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010202','菜品字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010203','菜品打印','1')
GO
INSERT INTO wh_mkqx VALUES ('010204','菜品毛利表','1')
GO
INSERT INTO wh_mkqx VALUES ('010205','菜品成本卡','1')
GO
INSERT INTO wh_mkqx VALUES ('010206','菜品归属字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010207','职工字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010208','职工权限字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010209','签单权限字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010210','结账币种字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010211','结账卡别字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010301','客户档案字典','1')
GO
INSERT INTO wh_mkqx VALUES ('010302','客户协议管理','1')
GO
INSERT INTO wh_mkqx VALUES ('010303','客户消费统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010401','POS销售统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010402','类别销售统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010403','菜品销售统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010404','菜品汇总统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010405','部门销售统计','1')
GO
INSERT INTO wh_mkqx VALUES ('010406','经理签单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('010407','退菜原因查询','1')
GO
INSERT INTO wh_mkqx VALUES ('010408','点菜历史记录','1')
GO
INSERT INTO wh_mkqx VALUES ('010501','日结帐','1')
GO
INSERT INTO wh_mkqx VALUES ('010502','日营业综合报表','1')
GO
INSERT INTO wh_mkqx VALUES ('010503','日类别销售报表','1')
GO
INSERT INTO wh_mkqx VALUES ('010504','日菜品销售报表','1')
GO
INSERT INTO wh_mkqx VALUES ('010505','日部门销售报表','1')
GO
INSERT INTO wh_mkqx VALUES ('010506','部门库存对账单','1')
GO
INSERT INTO wh_mkqx VALUES ('010601','POS编号设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010602','销售菜品类别','1')
GO
INSERT INTO wh_mkqx VALUES ('010603','POS结账设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010604','收银员设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010605','班次设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010606','上传设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010607','数据上传','1')
GO
INSERT INTO wh_mkqx VALUES ('010608','注册信息','1')
GO
INSERT INTO wh_mkqx VALUES ('010701','磁卡制作','1')
GO
INSERT INTO wh_mkqx VALUES ('010702','磁卡验证','1')
GO
INSERT INTO wh_mkqx VALUES ('010703','磁卡发售','1')
GO
INSERT INTO wh_mkqx VALUES ('010704','积分卡返款设置','1')
GO
INSERT INTO wh_mkqx VALUES ('010705','积分卡返款','1')
GO
INSERT INTO wh_mkqx VALUES ('010706','储值卡续款','1')
GO
INSERT INTO wh_mkqx VALUES ('010707','磁卡消费查询','1')
GO
INSERT INTO wh_mkqx VALUES ('010708','积分卡返款查询','1')
GO
INSERT INTO wh_mkqx VALUES ('010709','储值卡续款查询','1')
GO
INSERT INTO wh_mkqx VALUES ('010710','磁卡挂失处理','1')
GO
INSERT INTO wh_mkqx VALUES ('010711','磁卡补卡处理','1')
GO
INSERT INTO wh_mkqx VALUES ('02','仓库管理系统','1')
GO
INSERT INTO wh_mkqx VALUES ('020101','仓库基本信息','1')
GO
INSERT INTO wh_mkqx VALUES ('020102','商品基本档案','1')
GO
INSERT INTO wh_mkqx VALUES ('020103','供应商字典','1')
GO
INSERT INTO wh_mkqx VALUES ('020104','商品初始化新单','1')
GO
INSERT INTO wh_mkqx VALUES ('020105','商品初始化修改','1')
GO
INSERT INTO wh_mkqx VALUES ('020106','商品初始化审核','1')
GO
INSERT INTO wh_mkqx VALUES ('020107','商品初始化打印','1')
GO
INSERT INTO wh_mkqx VALUES ('020108','部门库存初始化','1')
GO
INSERT INTO wh_mkqx VALUES ('020201','填写入库单','1')
GO
INSERT INTO wh_mkqx VALUES ('020202','入库单修改','1')
GO
INSERT INTO wh_mkqx VALUES ('020203','入库单审核','1')
GO
INSERT INTO wh_mkqx VALUES ('020204','入库单打印','1')
GO
INSERT INTO wh_mkqx VALUES ('020205','直接入库','1')
GO
INSERT INTO wh_mkqx VALUES ('020301','填写退货单','1')
GO
INSERT INTO wh_mkqx VALUES ('020302','退货单修改','1')
GO
INSERT INTO wh_mkqx VALUES ('020303','退货单审核','1')
GO
INSERT INTO wh_mkqx VALUES ('020304','退货单打印','1')
GO
INSERT INTO wh_mkqx VALUES ('020401','填写部门调拨单','1')
GO
INSERT INTO wh_mkqx VALUES ('020402','修改部门调拨单','1')
GO
INSERT INTO wh_mkqx VALUES ('020403','审核部门调拨单','1')
GO
INSERT INTO wh_mkqx VALUES ('020404','部门调拨单打印','1')
GO
INSERT INTO wh_mkqx VALUES ('020405','填写部门退货单','1')
GO
INSERT INTO wh_mkqx VALUES ('020406','修改部门退货单','1')
GO
INSERT INTO wh_mkqx VALUES ('020407','审核部门退货单','1')
GO
INSERT INTO wh_mkqx VALUES ('020408','打印部门退货单','1')
GO
INSERT INTO wh_mkqx VALUES ('020501','库存信息查询','1')
GO
INSERT INTO wh_mkqx VALUES ('020502','部门库存查询','1')
GO
INSERT INTO wh_mkqx VALUES ('020503','入库情况查询','1')
GO
INSERT INTO wh_mkqx VALUES ('020601','供应商供货汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('020602','供应商供货明细表','1')
GO
INSERT INTO wh_mkqx VALUES ('020603','商品采购汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('020604','商品采购明细表','1')
GO
INSERT INTO wh_mkqx VALUES ('020605','商品调拨汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('020606','商品调拨明细表','1')
GO
INSERT INTO wh_mkqx VALUES ('020607','仓库入库汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('020608','仓库入库明细表','1')
GO
INSERT INTO wh_mkqx VALUES ('020609','部门调拨汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('020610','部门调拨明细表','1')
GO
INSERT INTO wh_mkqx VALUES ('03','餐饮前台销售系统','1')
GO
INSERT INTO wh_mkqx VALUES ('030101','开单','1')
GO
INSERT INTO wh_mkqx VALUES ('030102','加单退单','1')
GO
INSERT INTO wh_mkqx VALUES ('030103','结账','1')
GO
INSERT INTO wh_mkqx VALUES ('030104','预结账','1')
GO
INSERT INTO wh_mkqx VALUES ('030105','换桌','1')
GO
INSERT INTO wh_mkqx VALUES ('030106','执行预定单','1')
GO
INSERT INTO wh_mkqx VALUES ('030107','补打传菜单','1')
GO
INSERT INTO wh_mkqx VALUES ('030201','客户录入','1')
GO
INSERT INTO wh_mkqx VALUES ('030202','磁卡验证','1')
GO
INSERT INTO wh_mkqx VALUES ('030203','编码设置','1')
GO
INSERT INTO wh_mkqx VALUES ('030301','交接班','1')
GO
INSERT INTO wh_mkqx VALUES ('030302','菜单维护','1')
GO
INSERT INTO wh_mkqx VALUES ('030303','打印机设置','1')
GO
INSERT INTO wh_mkqx VALUES ('030304','返结账','1')
GO
INSERT INTO wh_mkqx VALUES ('030401','销售单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('030402','销售报表','1')
GO
INSERT INTO wh_mkqx VALUES ('030403','收银明细报表','1')
GO
INSERT INTO wh_mkqx VALUES ('030404','当前营业情况','1')
GO
INSERT INTO wh_mkqx VALUES ('030405','吧台酒水初始化','1')
GO
INSERT INTO wh_mkqx VALUES ('030406','吧台酒水录入','1')
GO
INSERT INTO wh_mkqx VALUES ('030407','吧台酒水库存对账','1')
GO
INSERT INTO wh_mkqx VALUES ('030501','总金额比例优惠','1')
GO
INSERT INTO wh_mkqx VALUES ('030502','固定金额优惠','1')
GO
INSERT INTO wh_mkqx VALUES ('030503','可打折菜品比例优惠','1')
GO
INSERT INTO wh_mkqx VALUES ('030504','单菜品比例优惠','1')
GO
INSERT INTO wh_mkqx VALUES ('04','总经理查询系统','1')
GO
INSERT INTO wh_mkqx VALUES ('040101','进货单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040102','退货单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040103','部门调拨单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040104','部门退货单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040105','当前库存查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040106','当前部门库存查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040107','仓库结存查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040108','部门盘点查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040109','商品销售检查','1')
GO
INSERT INTO wh_mkqx VALUES ('040201','供货商供货汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040202','供货商供货明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040203','商品采购汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040204','商品采购明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040205','商品调拨汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040206','商品调拨明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040207','仓库入库汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040208','仓库入库明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040209','部门调拨汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040210','部门调拨明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040301','供应商档案','1')
GO
INSERT INTO wh_mkqx VALUES ('040302','供货单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040303','供货品种统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040401','未买单单据查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040402','已买单单据查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040403','POS销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040404','类别销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040405','单品销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040406','部门销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040407','经理签单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040408','退菜原因查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040409','优惠原因查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040410','厅位翻台查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040411','菜品赠送原因统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040412','部门调拨销售对比','1')
GO
INSERT INTO wh_mkqx VALUES ('040413','收银明细表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040501','客户档案查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040502','客户协议查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040503','客户消费查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040504','客户欠款查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040601','员工档案查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040602','服务员整体销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040603','服务员类别销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040604','点菜员单品销售查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040605','服务员业绩统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040606','点菜员业绩统计',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040607','收银员收银查询',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040701','人均消费统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040702','日客流量统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040703','时段上座率统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040704','日上座率统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040705','日销售额统计','1')
GO
INSERT INTO wh_mkqx VALUES ('040706','销售额成本对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040707','销售额毛利对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040708','毛利与成本对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040709','成本毛利销售对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040710','销售额人数对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040711','销售额均线对比图','1')
GO
INSERT INTO wh_mkqx VALUES ('040801','宾客信息查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040802','宾客消费记录','1')
GO
INSERT INTO wh_mkqx VALUES ('040803','宾客余额表','1')
GO
INSERT INTO wh_mkqx VALUES ('040804','宾客结账单','1')
GO
INSERT INTO wh_mkqx VALUES ('040805','预定到店查询','1')
GO
INSERT INTO wh_mkqx VALUES ('040806','预计离店报表','1')
GO
INSERT INTO wh_mkqx VALUES ('040807','销售员业绩汇总','1')
GO
INSERT INTO wh_mkqx VALUES ('040808','销售员业绩明细','1')
GO
INSERT INTO wh_mkqx VALUES ('040809','协议单位帐务汇总表','1')
GO
INSERT INTO wh_mkqx VALUES ('040810','协议单位帐务明细','1')
GO
INSERT INTO wh_mkqx VALUES ('040811','当前房态表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040812','收入汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('040901','日营业汇总表',NULL)
GO
INSERT INTO wh_mkqx VALUES ('05','应收应付管理系统','1')
GO
INSERT INTO wh_mkqx VALUES ('050101','新收款单','1')
GO
INSERT INTO wh_mkqx VALUES ('050102','收款单修改','1')
GO
INSERT INTO wh_mkqx VALUES ('050103','收款单审核','1')
GO
INSERT INTO wh_mkqx VALUES ('050104','收款单打印','1')
GO
INSERT INTO wh_mkqx VALUES ('050105','客房应收帐','1')
GO
INSERT INTO wh_mkqx VALUES ('050201','新付款单','1')
GO
INSERT INTO wh_mkqx VALUES ('050202','付款单修改','1')
GO
INSERT INTO wh_mkqx VALUES ('050203','付款单审核','1')
GO
INSERT INTO wh_mkqx VALUES ('050204','付款单打印','1')
GO
INSERT INTO wh_mkqx VALUES ('050205','期间应付款统计','1')
GO
INSERT INTO wh_mkqx VALUES ('050301','销售单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('050302','入库单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('050303','退货单查询','1')
GO
INSERT INTO wh_mkqx VALUES ('050401','客户收款统计','1')
GO
INSERT INTO wh_mkqx VALUES ('050402','供应商付款统计','1')
GO
INSERT INTO wh_mkqx VALUES ('06','餐饮外卖销售系统','1')
GO
INSERT INTO wh_mkqx VALUES ('060101','授权外卖','1')
GO
INSERT INTO wh_mkqx VALUES ('07','厨师管理系统','1')
GO
INSERT INTO wh_mkqx VALUES ('0701','厨师设置','1')
GO
INSERT INTO wh_mkqx VALUES ('0702','责任菜品设置','1')
GO
INSERT INTO wh_mkqx VALUES ('0703','出菜统计','1')
GO
INSERT INTO wh_mkqx VALUES ('0704','原材料使用统计','1')
GO
INSERT INTO wh_mkqx VALUES ('08','财务管理系统','')
GO
INSERT INTO wh_mkqx VALUES ('09','前台接待管理系统','1')
GO
INSERT INTO wh_mkqx VALUES ('090101','预定新单','1')
GO
INSERT INTO wh_mkqx VALUES ('090102','预定退单','1')
GO
INSERT INTO wh_mkqx VALUES ('090103','预定查询','1')
GO
INSERT INTO wh_mkqx VALUES ('090201','客户录入','1')
GO
INSERT INTO wh_mkqx VALUES ('090301','交接班','1')
GO
INSERT INTO wh_mkqx VALUES ('090302','菜单维护','1')
GO
INSERT INTO wh_mkqx VALUES ('10','客户管理',NULL)
GO
INSERT INTO wh_mkqx VALUES ('100101','端口设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('100201','客户档案字典','1')
GO
INSERT INTO wh_mkqx VALUES ('100202','客户消费统计','1')
GO
INSERT INTO wh_mkqx VALUES ('100301','磁卡制作','1')
GO
INSERT INTO wh_mkqx VALUES ('100302','磁卡验证','1')
GO
INSERT INTO wh_mkqx VALUES ('100303','磁卡发售','1')
GO
INSERT INTO wh_mkqx VALUES ('100304','积分卡返款设置','1')
GO
INSERT INTO wh_mkqx VALUES ('100305','积分卡返款','1')
GO
INSERT INTO wh_mkqx VALUES ('100306','储值卡续款','1')
GO
INSERT INTO wh_mkqx VALUES ('100307','磁卡消费查询','1')
GO
INSERT INTO wh_mkqx VALUES ('100308','积分卡返款查询','1')
GO
INSERT INTO wh_mkqx VALUES ('100309','储值卡续款查询','1')
GO
INSERT INTO wh_mkqx VALUES ('100310','磁卡挂失处理','1')
GO
INSERT INTO wh_mkqx VALUES ('100311','磁卡补卡处理','1')
GO
INSERT INTO wh_mkqx VALUES ('100312','有效期延时','1')
GO
INSERT INTO wh_mkqx VALUES ('100313','磁卡初始化','')
GO
INSERT INTO wh_mkqx VALUES ('12','划菜管理','1')
GO
INSERT INTO wh_mkqx VALUES ('120101','划菜','1')
GO
INSERT INTO wh_mkqx VALUES ('120201','已上菜品统计','1')
GO
INSERT INTO wh_mkqx VALUES ('120301','未上菜品统计','1')
GO
INSERT INTO wh_mkqx VALUES ('13','点菜器权限','1')
GO
INSERT INTO wh_mkqx VALUES ('15','数据接收','1')
GO
INSERT INTO wh_mkqx VALUES ('150001','系统编号设置','1')
GO
INSERT INTO wh_mkqx VALUES ('150002','点菜器设置','1')
GO
INSERT INTO wh_mkqx VALUES ('150003','打印设置','1')
GO
INSERT INTO wh_mkqx VALUES ('130101','开台','1')
GO
INSERT INTO wh_mkqx VALUES ('130102','换台','1')
GO
INSERT INTO wh_mkqx VALUES ('130103','并台','1')
GO
INSERT INTO wh_mkqx VALUES ('130104','清台','1')
GO
INSERT INTO wh_mkqx VALUES ('130105','修改人数','1')
GO
INSERT INTO wh_mkqx VALUES ('130201','点菜服务','1')
GO
INSERT INTO wh_mkqx VALUES ('130301','加菜服务','1')
GO
INSERT INTO wh_mkqx VALUES ('130401','催菜','1')
GO
INSERT INTO wh_mkqx VALUES ('130402','缓菜','1')
GO
INSERT INTO wh_mkqx VALUES ('130403','退菜','1')
GO
INSERT INTO wh_mkqx VALUES ('130404','赠菜','1')
GO
INSERT INTO wh_mkqx VALUES ('130501','预结账','1')
GO
INSERT INTO wh_mkqx VALUES ('130502','重量确认','1')
GO
INSERT INTO wh_mkqx VALUES ('51','客房设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510101','楼号信息设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510102','楼层信息设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510103','客房类型设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510104','客房信息设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510201','消费种类设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510202','消费摘要设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510203','付款方式设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510301','国籍信息设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510302','地区信息设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510303','证件类型设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510304','外宾证件设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510401','职工管理',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510402','权限管理',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510403','结账设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510404','班次设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('510405','注册信息',NULL)
GO
INSERT INTO wh_mkqx VALUES ('52','客房接待',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520101','散客入住',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520102','团体入住',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520103','预定入住',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520104','资料修改',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520105','房间换房',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520106','房价修改',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520107','其它功能',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520108','离店报告',NULL)
GO
INSERT INTO wh_mkqx VALUES ('520109','自用房','1')
GO
INSERT INTO wh_mkqx VALUES ('53','客房收银',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530101','押金录入',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530102','消费录入',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530103','团队结账',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530104','散客结账',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530105','查询系统',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530106','过营业日',NULL)
GO
INSERT INTO wh_mkqx VALUES ('530107','交接班','1')
GO
INSERT INTO wh_mkqx VALUES ('54','客房夜审',NULL)
GO
INSERT INTO wh_mkqx VALUES ('540101','夜审',NULL)
GO
INSERT INTO wh_mkqx VALUES ('540102','客房营业报表','1')
GO
INSERT INTO wh_mkqx VALUES ('55','公关销售',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550101','散客预定',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550102','团队预定',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550103','预定入住作废',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550104','协议单位',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550105','协议单位帐务',NULL)
GO
INSERT INTO wh_mkqx VALUES ('550106','销售员设置',NULL)
GO
INSERT INTO wh_mkqx VALUES ('56','房务中心','1')
GO
INSERT INTO wh_mkqx VALUES ('560101','脏房清扫',NULL)
GO
INSERT INTO wh_mkqx VALUES ('560102','消费录入',NULL)
GO
INSERT INTO wh_mkqx VALUES ('560103','吧品维护',NULL)
GO
INSERT INTO wh_mkqx VALUES ('560104','吧品录入',NULL)
GO
INSERT INTO wh_mkqx VALUES ('560105','离店报告',NULL)
GO
INSERT INTO wh_mkqx VALUES ('60','客房简版统计权限','1')
GO
INSERT INTO wh_mkqx VALUES ('600101','宾客信息查询','1')
GO
INSERT INTO wh_mkqx VALUES ('600102','宾客消费记录','1')
GO
INSERT INTO wh_mkqx VALUES ('600103','宾客余额表','1')
GO
INSERT INTO wh_mkqx VALUES ('600104','宾客结账单','1')
GO
INSERT INTO wh_mkqx VALUES ('600105','预定到店查询','1')
GO
INSERT INTO wh_mkqx VALUES ('600106','预计离店报表','1')
GO
INSERT INTO wh_mkqx VALUES ('600107','销售员业绩汇总','1')
GO
INSERT INTO wh_mkqx VALUES ('600108','销售员业绩明细','1')
GO
INSERT INTO wh_mkqx VALUES ('600109','挂帐单位帐务汇总','1')
GO
INSERT INTO wh_mkqx VALUES ('600110','挂帐单位帐务明细','1')
GO
INSERT INTO wh_mkqx VALUES ('600111','当前房态表','1')
GO
INSERT INTO wh_mkqx VALUES ('600112','收入汇总表','1')
GO
INSERT INTO t_zd_memu VALUES (8,1,NULL,'仓库系统',NULL,'',20,'',0,'CKXT','01','N',3,0)
GO
INSERT INTO t_zd_memu VALUES (418,3,NULL,'历史帐单维护',NULL,'kl_w_rebill',110,'22',75,'LSZDWH',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (419,3,NULL,'经营日报表(按结算方式)',NULL,'kl_w_report_jyrb',43,'22',75,'JYRBBAJSFS',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5147,5,NULL,'经营日报表1',NULL,'kl_w_report_rb',5,'21',5138,'JYRBB1',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5149,5,NULL,'挂帐单位当日结算统计',NULL,'kl_w_report_gzjz',15,'21',5138,'GZDWDRJSTJ',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5150,5,NULL,'挂帐单位未结算统计',NULL,'kl_w_report_gzwj',20,'21',5138,'GZDWWJSTJ',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5151,5,NULL,'帐单查询',NULL,'kl_w_cxtj',25,'21',5138,'ZDCX',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5563,5,NULL,'消费品名分类统计',NULL,'kl_w_rep_any',30,'21',5138,'XFPMFLTJ',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5600,5,NULL,'品名查询',NULL,'kl_w_wh_menu_search',5,'21',5138,'PMCX',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (5743,1,NULL,'后台管理系统',NULL,NULL,5,NULL,0,'HTGLXT',NULL,'N',3,0)
GO
INSERT INTO t_zd_memu VALUES (9006,2,NULL,'仓库基础信息设置',NULL,NULL,5,NULL,8,'CKJCXXSZ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9007,3,NULL,'仓库基本信息',NULL,'w_sys_ckxx_sz',5,'3600',9006,'CKJBXX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9008,2,NULL,'供应商入库管理',NULL,NULL,15,NULL,8,'GYSRKGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9009,3,NULL,'填写总库入库单',NULL,'w_sprk_use_gys_xz',5,'3600',9008,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9010,2,NULL,'商品库存初始化',NULL,NULL,10,NULL,8,'SPKCCSH',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9011,3,NULL,'商品初始化新单',NULL,'w_spcsh_use_lr',5,'3600',9010,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9012,3,NULL,'商品初始化修改',NULL,'w_spcsh_use_02',10,'3600',9010,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9013,3,NULL,'商品初始化审核',NULL,'w_spcsh_use_sh_xz',15,'3600',9010,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9014,3,NULL,'商品初始化打印',NULL,'w_spcsh_use_03',20,'3600',9010,'?窲?愮?嗉?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9019,3,NULL,'总库入库单修改',NULL,'w_sprk_use_01',10,'3600',9008,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9020,3,NULL,'总库入库单审核',NULL,'w_sprk_use_03',15,'3600',9008,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9021,3,NULL,'总库入库单打印',NULL,'w_sprk_use_02',20,'3600',9008,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9022,2,NULL,'供应商退货管理',NULL,NULL,20,NULL,8,'?窲?',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9023,3,NULL,'填写退货单',NULL,'w_spth_use_gys_xz',5,'3600',9022,'?窲',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9024,3,NULL,'退货单修改',NULL,'w_spth_use_01',10,'3600',9022,'?窲',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9025,3,NULL,'退货单审核',NULL,'w_spth_use_03',15,'3600',9022,'?窲',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9026,3,NULL,'退货单打印',NULL,'w_spth_use_02',20,'3600',9022,'?窲s',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9027,2,NULL,'部门调拨管理',NULL,NULL,25,NULL,8,'BMDBGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9028,3,NULL,'填写部门调拨单',NULL,'w_spbmdb_use_01',5,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9029,3,NULL,'修改部门调拨单',NULL,'w_spbmdb_use_02',10,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9030,3,NULL,'审核部门调拨单',NULL,'w_spbmdb_use_04',15,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9031,3,NULL,'部门调拨单打印',NULL,'w_spbmdb_use_03',20,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9032,3,NULL,'填写部门退货单',NULL,'w_spbmth_use_01',25,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9033,3,NULL,'审核部门退货单',NULL,'w_spbmth_use_04',35,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9034,3,NULL,'修改部门退货单',NULL,'w_spbmth_use_02',30,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9035,3,NULL,'打印部门退货单',NULL,'w_spbmth_use_03',40,'3600',9027,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9036,2,NULL,'仓库报表',NULL,NULL,40,NULL,8,'CKBB',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9037,3,NULL,'供应商供货汇总表1',NULL,'w_gys_ghhzb_ck',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9038,3,NULL,'供应商供货汇总表',NULL,'w_gys_ghhzb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9039,3,NULL,'供应商供货明细表',NULL,'w_gys_ghmxb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9040,3,NULL,'供应商供货明细表1',NULL,'w_gys_ghmxb_ck',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9041,3,NULL,'商品采购汇总表',NULL,'w_splb_hzb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9042,3,NULL,'商品采购明细表',NULL,'w_splb_mxb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9043,3,NULL,'商品调拨汇总表',NULL,'w_spdb_hzb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9044,3,NULL,'商品调拨明细表',NULL,'w_spdb_mxb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9045,3,NULL,'仓库入库汇总表',NULL,'w_ckrk_hzb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9046,3,NULL,'仓库入库明细表',NULL,'w_ckrk_mxb',5,'3600',9036,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9047,2,NULL,'库存信息查询',NULL,NULL,30,NULL,8,'KCXXCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9048,3,NULL,'一级库存查询',NULL,NULL,5,NULL,9047,'YJKCCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9049,3,NULL,'二级库存查询',NULL,NULL,5,NULL,9047,'EJKCCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9050,4,NULL,'库存信息查询',NULL,'w_kctj_zkc',5,'3600',9048,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9051,4,NULL,'库存上限统计',NULL,'w_kctj_kcsx',5,'3600',9048,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9052,4,NULL,'库存下限统计',NULL,'w_kctj_kcxx',5,'3600',9048,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9053,4,NULL,'部门库存查询',NULL,'w_kctj_bmkc',5,'3600',9049,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9054,3,NULL,'部门库存初始化',NULL,NULL,25,NULL,9010,'BMKCCSH',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9055,4,NULL,'部门库存初始化',NULL,'w_bmkccsh_use_01',5,'3600',9054,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9056,2,NULL,'库存盘点',NULL,NULL,35,NULL,8,'KCPD',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9057,3,NULL,'一级库存盘点',NULL,NULL,5,NULL,9056,'YJKCPD',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9058,3,NULL,'二级库存盘点',NULL,NULL,5,NULL,9056,'EJKCPD',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9059,4,NULL,'商品结转生成',NULL,'w_ckjz_use_01',5,'3600',9057,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9061,4,NULL,'商品结转录入',NULL,'w_ckjz_use_04',15,'3600',9057,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9062,4,NULL,'商品结转审核',NULL,'w_ckjz_use_05',20,'3600',9057,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9063,4,NULL,'商品结转打印',NULL,'w_ckjz_use_06',25,'3600',9057,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9064,4,NULL,'部门库存盘点生成',NULL,'w_bmkcpd_use_01',5,'3600',9058,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9065,4,NULL,'部门库存盘点作废',NULL,'w_bmkcpd_use_03',10,'3600',9058,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9066,4,NULL,'部门库存盘点录入',NULL,'w_bmkcpd_use_04',15,'3600',9058,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9067,4,NULL,'部门库存盘点审核',NULL,'w_bmkcpd_use_05',20,'3600',9058,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9068,4,NULL,'部门库存盘点打印',NULL,'w_bmkcpd_use_06',25,'3600',9058,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9070,3,NULL,'商品基本档案',NULL,'w_sys_spxx_wh',5,'3600',9006,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9071,3,NULL,'供应商字典',NULL,'w_gyszd',5,'3600',9006,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9072,2,NULL,'操作员管理',NULL,NULL,5,NULL,5743,'CZYGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9073,3,NULL,'操作员代码设置',NULL,'t_w_wh_operator',5,NULL,9072,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9074,3,NULL,'操作员分组',NULL,'t_w_wh_operator_group',10,NULL,9072,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9075,3,NULL,'操作员权限设置',NULL,'t_w_wh_menu_right',15,NULL,9072,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9076,3,NULL,'模块管理器',NULL,'t_w_wh_menu_abc',25,NULL,9072,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9077,2,NULL,'基础数据',NULL,NULL,10,NULL,5743,'JCSJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9078,3,NULL,'菜品字典',NULL,'w_cpzd',10,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9079,3,NULL,'客户字典',NULL,'w_khzd',40,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9081,3,NULL,'部门设置',NULL,'w_bmzd',30,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9096,3,NULL,'采购管理',NULL,NULL,45,NULL,9027,'CGGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9097,4,NULL,'填写部门申购单',NULL,'w_spbmcg_use_01',5,'3600',9096,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9098,4,NULL,'修改部门申购单',NULL,'ck_spcgd_edit',10,'3600',9096,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9099,4,NULL,'申购单审批',NULL,'ck_spcgd_sh_xz',15,'3600',9096,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9100,4,NULL,'申购单打印',NULL,'ck_spcgd_dy_xz',20,'3600',9096,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9101,3,NULL,'直拨入库单',NULL,'w_spzjrk_use_gys_xz',25,'3600',9008,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9103,1,NULL,'财务管理',NULL,NULL,30,NULL,0,'CWGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9108,2,0,'仓库报表',NULL,NULL,3,NULL,9103,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9109,3,0,'供应商供货汇总表1',NULL,'w_gys_ghhzb_ck',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9110,3,0,'供应商供货汇总表',NULL,'w_gys_ghhzb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9111,3,0,'供应商供货明细表',NULL,'w_gys_ghmxb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9112,3,0,'供应商供货明细表1',NULL,'w_gys_ghmxb_ck',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9113,3,0,'商品采购汇总表',NULL,'w_splb_hzb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9114,3,0,'商品采购明细表',NULL,'w_splb_mxb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9115,3,0,'商品调拨汇总表',NULL,'w_spdb_hzb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9116,3,0,'商品调拨明细表',NULL,'w_spdb_mxb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9117,3,0,'仓库入库汇总表',NULL,'w_ckrk_hzb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9118,3,0,'仓库入库明细表',NULL,'w_ckrk_mxb',5,'3600',9108,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9119,2,0,'应付款管理',NULL,NULL,25,NULL,9103,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9120,3,0,'期间应付款统计',NULL,'w_yfk_qjtj_xz',0,'0101',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9121,3,0,'供应商付款统计',NULL,'w_yfk_tj_xz_01',25,'3600',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9122,3,0,'新付款单',NULL,'w_yfk_use_01',5,'0101',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9123,3,0,'付款单审核',NULL,'w_yfk_use_sh_xz',15,'0101',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9124,3,0,'付款单修改',NULL,'w_yfk_use_edit',10,'0101',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9125,3,0,'付款单打印',NULL,'w_yfk_dy_xz',20,'0101',9119,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9126,2,NULL,'商品采购管理',NULL,NULL,6,NULL,8,'SPCGGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9127,3,NULL,'填写部门申购单',NULL,'w_spbmcg_use_01',5,'3600',9126,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9128,3,NULL,'修改部门申购单',NULL,'ck_spcgd_edit',10,'3600',9126,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9129,3,NULL,'申购单审批',NULL,'ck_spcgd_sh_xz',15,'3600',9126,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9130,3,NULL,'申购单打印',NULL,'ck_spcgd_dy_xz',20,'3600',9126,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9132,1,NULL,'前台收银',NULL,NULL,10,NULL,0,'QTSY',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9133,2,NULL,'前台收银','F8','w_zw',5,'0101',9132,'QTSY',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9134,3,NULL,'班次设置',NULL,'w_sys_bc_sz',5,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9135,4,NULL,'商品结转作废',NULL,'w_ckjz_use_03',5,NULL,9057,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9136,3,NULL,'单品供货查询',NULL,'w_kctj_dpgh_cx',5,NULL,9036,'DPGHCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9137,3,NULL,'单品流向统计',NULL,'w_dptj_cx',5,NULL,9036,'DPLXTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9138,3,NULL,'厅位信息设置',NULL,'w_twzd',5,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9144,3,NULL,'点菜员字典',NULL,'w_zgzd',35,NULL,9077,'DCYZD',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9145,1,NULL,'预定管理',NULL,NULL,15,NULL,0,'YDGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9146,2,NULL,'预定管理','F9','w_yd_main',5,'0202',9145,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9151,2,NULL,'销售统计',NULL,NULL,10,NULL,9103,'XSTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9184,3,NULL,'经理签单权限设置',NULL,'w_qdqxzd',65,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9185,3,NULL,'技师提成设置',NULL,'w_tc_sz',70,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9188,3,NULL,'点菜员权限设置',NULL,'w_dcyqx_sz',75,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9191,3,NULL,'保密菜单设置',NULL,'w_bmcd_sz',20,NULL,9072,'BMCDSZ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9194,3,NULL,'销售单查询',NULL,NULL,5,NULL,9151,'XSDCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9195,4,0,'未买单查询',NULL,'w_tjdj_xs_wmd',NULL,NULL,9194,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9196,4,0,'已买单销售单查询',NULL,'w_tjdj_xs_md',NULL,NULL,9194,'YMDXSDCX',NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9197,3,NULL,'品项销售统计',NULL,NULL,5,NULL,9151,'PXXSTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9198,4,0,'销售单审核',NULL,'w_tjdj_xs_sh',NULL,NULL,9194,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9199,4,0,'品项统计',NULL,'w_tj_pos_cp',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9200,4,0,'销售统计',NULL,'w_tj_pos_dy',NULL,'pos',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9201,4,0,'按收银点统计',NULL,'w_tj_pos_xz',NULL,'3xsd',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9202,4,0,'赠送原因统计',NULL,'w_tj_pos_dy',NULL,'zsy',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9203,4,0,'优惠原因统计',NULL,'w_tj_pos_yhyy_xz',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9204,4,0,'按班次统计',NULL,'w_tj_pos_bc',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9205,4,0,'品项类别统计',NULL,'w_tj_pos_cplb',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9206,4,0,'部门销售统计',NULL,'w_tj_pos_bm',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9207,4,0,'翻台率统计',NULL,'w_xstj_ftl_tj',NULL,NULL,9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9208,4,0,'日上座率统计图表',NULL,'w_tbtj_use_01',NULL,'4',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9209,4,0,'日客流量统计图表',NULL,'w_tbtj_use_01',NULL,'2',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9210,4,0,'人均消费统计图表',NULL,'w_tbtj_use_01',NULL,'1',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9211,4,0,'日销售额统计图表',NULL,'w_tbtj_use_01',NULL,'5',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9212,4,0,'销售额均线对比图表',NULL,'w_tbtj_use_01',NULL,'11',9197,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9213,3,NULL,'服务员业绩统计',NULL,NULL,5,NULL,9151,'FWYYJTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9214,4,0,'销售经理业绩',NULL,'w_xsjl_cx',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9215,4,0,'服务员销售统计',NULL,'w_tj_fwy',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9216,4,0,'服务技师提成',NULL,'w_tj_fwjs',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9218,4,0,'服务员按单品销售统计',NULL,'w_tj_dcy_yj_xz',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9219,4,0,'点菜员按类别销售统计',NULL,'w_tj_fwy_lb',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9220,4,0,'点菜员按单品销售统计',NULL,'w_tj_fwy_dp',NULL,NULL,9213,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9221,3,NULL,'客户消费统计',NULL,NULL,5,NULL,9151,'KHXFTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9222,4,0,'客户消费情况统计',NULL,'w_khxf_tj',NULL,NULL,9221,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9230,2,NULL,'应收款管理',NULL,NULL,20,NULL,9103,'YSKGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9231,3,NULL,'新收款单',NULL,'w_ysk_use_01',5,'0101',9230,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9232,3,NULL,'收款单修改',NULL,'w_ysk_use_edit',10,'0101',9230,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9233,3,NULL,'收款单审核',NULL,'w_ysk_use_sh_xz',15,'0101',9230,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9234,3,NULL,'收款单打印',NULL,'w_ysk_dy_xz',20,'0101',9230,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9235,2,NULL,'二楼收银',NULL,'w_zw',10,'0201',9132,'ELSY',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9237,2,NULL,'发票管理',NULL,NULL,5,NULL,9103,'FPGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9238,3,NULL,'发票类型定义',NULL,'w_fplx',5,NULL,9237,'FPLXDY',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9239,3,NULL,'发票领用',NULL,'w_fply',10,NULL,9237,'FPLY',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9240,3,NULL,'发票查询',NULL,'w_fpcx',15,NULL,9237,'FPCX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9241,2,NULL,'会员管理',NULL,NULL,15,NULL,9103,'HYGL',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9242,3,NULL,'会员档案',NULL,'w_khzd',5,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9243,3,NULL,'磁卡制作',NULL,'w_ickzz',10,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9244,3,NULL,'磁卡验证',NULL,'w_ick_yz',15,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9245,3,NULL,'磁卡有效期延时',NULL,'w_ick_ys',20,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9246,3,NULL,'磁卡初始化',NULL,'w_ickql',25,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9247,3,NULL,'积分卡返款设置',NULL,'w_ick_fksz',30,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9248,3,NULL,'积分卡返款',NULL,'w_ick_fk_xz',35,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9249,3,NULL,'储值卡续存',NULL,'w_ickxz_ck',40,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9250,3,NULL,'磁卡消费查询',NULL,'w_xzkb_cx',45,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9251,3,NULL,'积分卡返款查询',NULL,'w_ick_fk_cx',50,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9252,3,NULL,'储值卡续存查询',NULL,'w_ickck_cx',55,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9253,3,NULL,'磁卡挂失',NULL,'w_ick_gs',60,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9254,3,NULL,'磁卡补卡',NULL,'w_ick_bk',65,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9256,2,NULL,'前台收银设置',NULL,NULL,15,NULL,5743,'QTSYSZ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9257,3,0,'POS编码设置',NULL,'w_sys_posbm_sz',NULL,NULL,9256,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9259,3,0,'POS可销售菜品类别设置',NULL,'w_sys_posxscplb_sz',15,NULL,9256,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9260,3,0,'POS可销售厅位设置',NULL,'w_sys_posxstwlb_sz',10,NULL,9256,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9261,3,0,'POS结账设置',NULL,'w_sys_posjz_sz',5,NULL,9256,NULL,NULL,NULL,3,NULL)
GO
INSERT INTO t_zd_memu VALUES (9262,2,NULL,'日结账',NULL,'w_rjz_jz',0,NULL,9103,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9263,3,NULL,'数据初始化',NULL,'w_jcxx_csh',0,NULL,9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9264,4,NULL,'反结账账单查询',NULL,'w_xs_fjz_cx',0,NULL,9194,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9265,4,NULL,'销售汇总统计 ',NULL,'w_pos_xsdzd',0,NULL,9197,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9266,4,NULL,'退菜统计 ',NULL,'w_tj_pos_dy',5,'tcy',9197,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9267,3,NULL,'结算方式设置 ',NULL,'w_hbzd',5,'',9077,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9268,3,NULL,'会员卡查询',NULL,'w_wh_ick_cx',70,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9269,3,NULL,'会员卡密码修改',NULL,'w_ick_editpass',70,NULL,9241,NULL,NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9279,3,NULL,'仓库打印设置',NULL,'w_ck_print_set',5,'3600',9006,'CKJBXX',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9281,3,NULL,'会员生日统计',NULL,'w_kh_srtj',75,'',9241,'HYSRTJ',NULL,'Y',3,0)
GO
INSERT INTO t_zd_memu VALUES (9282,3,NULL,'销售对比表',NULL,'w_tj_xsdb',75,'',9197,'HYSRTJ',NULL,'Y',3,0)
GO