生产管理系统.sql
资源名称:VCSDB.rar [点击查看]
上传用户:hjieqiu
上传日期:2013-05-11
资源大小:16494k
文件大小:153k
源码类别:
企业管理
开发平台:
C#
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SF_cg2审核采购订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[SF_cg2审核采购订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SF_cg5订货合同计划登记]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[SF_cg5订货合同计划登记]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SYS清采购订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[SYS清采购订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[SYS清采购订单审核]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[SYS清采购订单审核]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp计算old]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[mrp计算old]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_KF2批次调拨单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_KF2批次调拨单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cg1删除全部未用项]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cg1删除全部未用项]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cg1取得采购项]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cg1取得采购项]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cg1填写采购订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cg1填写采购订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cg3修改采购订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cg3修改采购订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cj1填生产订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cj1填生产订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cj2审生产订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cj2审生产订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cj5填完工报告单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cj5填完工报告单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_cj5由MRP生成生产订单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_cj5由MRP生成生产订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_kf1填成品入库单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_kf1填成品入库单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mps主生产计划审核]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mps主生产计划审核]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mps主生产计划预排]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mps主生产计划预排]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mps填需求计划]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mps填需求计划]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrpMpsTest]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrpMpsTest]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrpTest子项毛需求]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrpTest子项毛需求]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrpTest计算]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrpTest计算]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrpmps]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrpmps]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrp子项毛需求]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrp子项毛需求]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrp生产件资源负荷]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrp生产件资源负荷]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrp计算]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrp计算]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_mrp试算生产件资源负荷]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_mrp试算生产件资源负荷]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_sc生成领料单]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_sc生成领料单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sf_加入进销存卡片]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sf_加入进销存卡片]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sys生成资源日程表]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[sys生成资源日程表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[低层码]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
- drop procedure [dbo].[低层码]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[V物料主文件]') and OBJECTPROPERTY(id, N'IsView') = 1)
- drop view [dbo].[V物料主文件]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[v商品库存明细]') and OBJECTPROPERTY(id, N'IsView') = 1)
- drop view [dbo].[v商品库存明细]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[v资源清单]') and OBJECTPROPERTY(id, N'IsView') = 1)
- drop view [dbo].[v资源清单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[v资源负荷报表]') and OBJECTPROPERTY(id, N'IsView') = 1)
- drop view [dbo].[v资源负荷报表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[bom信息状态]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[bom信息状态]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[bom状态]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[bom状态]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[jzh每月结转日期表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[jzh每月结转日期表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp0]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp0]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrpcalcd]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrpcalcd]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrpcalcm]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrpcalcm]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp发布时间]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp发布时间]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp正式]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp正式]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp简单计算]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp简单计算]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[mrp试算]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[mrp试算]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[临时生产件资源负荷报表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[临时生产件资源负荷报表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[临时资源负荷报表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[临时资源负荷报表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[临时进销存卡片]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[临时进销存卡片]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[主生产计划]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[主生产计划]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[主生产计划历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[主生产计划历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[主生产计划预排历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[主生产计划预排历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[主需求计划]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[主需求计划]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[主需求计划历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[主需求计划历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[产品入库单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[产品入库单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[产品入库单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[产品入库单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[功能模块]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[功能模块]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[发布项清单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[发布项清单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[完工报告单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[完工报告单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[完工报告单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[完工报告单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[客户修改历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[客户修改历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[工作中心]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[工作中心]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[工厂日历]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[工厂日历]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[工艺线路主]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[工艺线路主]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[工艺线路细]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[工艺线路细]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[库存库]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[库存库]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[报损报溢历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[报损报溢历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[换货单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[换货单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[效期对照表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[效期对照表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[权限登记]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[权限登记]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[标准工序]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[标准工序]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料主文件]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料主文件]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料价值代码]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料价值代码]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料入库单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料入库单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料入库单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料入库单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料反查表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料反查表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料展开表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料展开表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料归属类别]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料归属类别]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料清单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料清单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料状态类别]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料状态类别]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料计划类别]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料计划类别]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[物料需求计划old]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[物料需求计划old]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产件资源负荷报表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产件资源负荷报表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产大纲]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产大纲]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产大纲历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产大纲历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产订单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产订单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产订单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[生产订单审核]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[生产订单审核]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[系统日志]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[系统日志]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[职工清单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[职工清单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[计划期参数]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[计划期参数]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[计量单位]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[计量单位]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[订货合同]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[订货合同]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[订货合同发布]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[订货合同发布]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[订货合同接收]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[订货合同接收]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[词库]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[词库]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[调拨单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[调拨单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[调拨单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[调拨单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[调整库存历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[调整库存历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[资源日程表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[资源日程表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[资源日程表历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[资源日程表历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[资源消耗定额]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[资源消耗定额]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[资源清单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[资源清单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[资源负荷报表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[资源负荷报表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[运行参数表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[运行参数表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[进退货单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[进退货单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[进退货单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[进退货单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[进销存卡片]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[进销存卡片]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[选择记帐记录表]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[选择记帐记录表]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单o]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单o]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单发布]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单发布]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单审核]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单审核]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[采购订单接收]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[采购订单接收]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售订单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售订单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售订单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售订单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售预测]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售预测]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销售预测历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销售预测历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[销退货单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[销退货单历史]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[领料单]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[领料单]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[领料单temp]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[领料单temp]
- GO
- if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[领料单历史]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
- drop table [dbo].[领料单历史]
- GO
- CREATE TABLE [dbo].[bom信息状态] (
- [状态代码] [char] (1) NOT NULL ,
- [状态描述] [varchar] (50) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[bom状态] (
- [状态代码] [char] (1) NOT NULL ,
- [状态描述] [varchar] (50) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[jzh每月结转日期表] (
- [月份] [int] NOT NULL ,
- [全称] [char] (4) NULL ,
- [结转日期] [int] NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp0] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (20) NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [期初库存] [decimal](18, 4) NULL ,
- [预计入库] [decimal](18, 4) NULL ,
- [预计采购] [decimal](18, 4) NULL ,
- [预计生产] [decimal](18, 4) NULL ,
- [预计外协] [decimal](18, 4) NULL ,
- [预计出库] [decimal](18, 4) NULL ,
- [需求数量] [decimal](18, 4) NULL ,
- [建议采购] [decimal](18, 4) NULL ,
- [建议生产] [decimal](18, 4) NULL ,
- [建议外协] [decimal](18, 4) NULL ,
- [预计库存] [decimal](18, 4) NULL ,
- [安全库存] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrpcalcd] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [期初库存] [decimal](18, 4) NULL ,
- [毛需求] [decimal](18, 4) NULL ,
- [预计入库] [decimal](18, 4) NULL ,
- [预计出库] [decimal](18, 4) NULL ,
- [预计库存] [decimal](18, 4) NULL ,
- [净需求] [decimal](18, 4) NULL ,
- [计划产出] [decimal](18, 4) NULL ,
- [计划投入] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrpcalcm] (
- [低层码] [int] NULL ,
- [物料编号] [char] (14) NULL ,
- [计划代码] [char] (5) NULL ,
- [当前库存] [decimal](18, 4) NULL ,
- [逾期入库] [decimal](18, 4) NULL ,
- [逾期出库] [decimal](18, 4) NULL ,
- [提前期] [int] NULL ,
- [批量] [decimal](18, 4) NULL ,
- [安全库存] [decimal](18, 4) NULL ,
- [可用库存] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [发布编号] [char] (20) NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [期初库存] [decimal](18, 4) NULL ,
- [毛需求] [decimal](18, 4) NULL ,
- [预计入库] [decimal](18, 4) NULL ,
- [预计出库] [char] (10) NULL ,
- [预计库存] [decimal](18, 4) NULL ,
- [净需求] [decimal](18, 4) NULL ,
- [计划产出] [decimal](18, 4) NULL ,
- [计划投入] [decimal](18, 4) NULL ,
- [能力计算标记] [char] (1) NOT NULL ,
- [生产订单标记] [char] (1) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp发布时间] (
- [发布编号] [int] IDENTITY (1, 1) NOT NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [发布时间] [char] (20) NULL ,
- [发布人] [char] (10) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp正式] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [发布编号] [char] (20) NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [期初库存] [decimal](18, 4) NULL ,
- [毛需求] [decimal](18, 4) NULL ,
- [预计入库] [decimal](18, 4) NULL ,
- [预计出库] [char] (10) NULL ,
- [预计库存] [decimal](18, 4) NULL ,
- [净需求] [decimal](18, 4) NULL ,
- [计划产出] [decimal](18, 4) NULL ,
- [计划投入] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp简单计算] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [物料编号] [char] (14) NULL ,
- [用量] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[mrp试算] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [期初库存] [decimal](18, 4) NULL ,
- [毛需求] [decimal](18, 4) NULL ,
- [预计入库] [decimal](18, 4) NULL ,
- [预计出库] [char] (10) NULL ,
- [预计库存] [decimal](18, 4) NULL ,
- [净需求] [decimal](18, 4) NULL ,
- [计划产出] [decimal](18, 4) NULL ,
- [计划投入] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[临时生产件资源负荷报表] (
- [资源编号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [负荷] [float] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[临时资源负荷报表] (
- [资源编号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [负荷] [float] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[临时进销存卡片] (
- [编号] [int] IDENTITY (1, 1) NOT NULL ,
- [部门] [varchar] (20) NOT NULL ,
- [组别] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [摘要] [varchar] (100) NOT NULL ,
- [单据号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [入库数量] [float] NOT NULL ,
- [入库金额] [float] NOT NULL ,
- [出库数量] [float] NOT NULL ,
- [出库金额] [float] NOT NULL ,
- [结存数量] [float] NOT NULL ,
- [结存金额] [float] NOT NULL ,
- [同货号数量] [float] NULL ,
- [同货号金额] [float] NULL ,
- [成本单价] [float] NULL ,
- [影响部门] [varchar] (20) NOT NULL ,
- [影响组别] [varchar] (100) NOT NULL ,
- [影响货位] [varchar] (20) NULL ,
- [接收登记] [binary] (30) NULL ,
- [记帐人] [char] (20) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[主生产计划] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [编号] [char] (14) NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NULL ,
- [结束日期] [int] NULL ,
- [期初库存] [float] NULL ,
- [需求数量] [float] NULL ,
- [MPS数量] [float] NULL ,
- [生产单数量] [float] NULL ,
- [预计库存] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL Default '有效' ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[主生产计划历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [编号] [char] (14) NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NULL ,
- [结束日期] [int] NULL ,
- [期初库存] [float] NULL ,
- [需求数量] [float] NULL ,
- [MPS数量] [float] NULL ,
- [生产单数量] [float] NULL ,
- [预计库存] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[主生产计划预排历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [编号] [char] (14) NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NULL ,
- [结束日期] [int] NULL ,
- [期初库存] [float] NULL ,
- [需求数量] [float] NULL ,
- [MPS数量] [float] NULL ,
- [生产单数量] [float] NULL ,
- [预计库存] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[主需求计划] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NULL ,
- [结束日期] [int] NULL ,
- [需求数量] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[主需求计划历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NULL ,
- [结束日期] [int] NULL ,
- [需求数量] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[产品入库单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [生产单号] [char] (14) NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [源仓区] [varchar] (20) NOT NULL ,
- [源仓位] [varchar] (20) NOT NULL ,
- [目的仓区] [varchar] (20) NOT NULL ,
- [目的仓位] [varchar] (20) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [效期] [int] NULL ,
- [批次] [char] (14) NULL ,
- [库存成本单价] [float] NULL ,
- [批次成本单价] [float] NULL ,
- [到货数量] [float] NULL ,
- [入库数量] [float] NOT NULL ,
- [拒收数量] [float] NULL ,
- [验收结论] [char] (10) NULL ,
- [到货日期] [int] NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[产品入库单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [生产单号] [char] (14) NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [源仓区] [varchar] (20) NOT NULL ,
- [源仓位] [varchar] (20) NOT NULL ,
- [目的仓区] [varchar] (20) NOT NULL ,
- [目的仓位] [varchar] (20) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [效期] [int] NULL ,
- [批次] [char] (14) NULL ,
- [库存成本单价] [float] NULL ,
- [批次成本单价] [float] NULL ,
- [到货数量] [float] NULL ,
- [入库数量] [float] NOT NULL ,
- [拒收数量] [float] NULL ,
- [验收结论] [char] (10) NULL ,
- [到货日期] [int] NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[功能模块] (
- [模块编号] [char] (10) NOT NULL ,
- [组别] [char] (20) NOT NULL ,
- [模块] [char] (20) NOT NULL ,
- [描述] [varchar] (100) NULL ,
- [模块类型] [int] NOT NULL ,
- [程序文件] [varchar] (100) NULL ,
- [菜单文件] [varchar] (100) NULL ,
- [打印文件] [varchar] (100) NULL ,
- [记帐参数] [varchar] (250) NULL ,
- [打印参数] [varchar] (250) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[发布项清单] (
- [编号] [int] NOT NULL ,
- [方式] [char] (10) NULL ,
- [表名] [char] (20) NULL ,
- [影响表名] [char] (20) NULL ,
- [零售条件] [char] (60) NULL ,
- [库房条件] [char] (60) NULL ,
- [转入表名] [char] (20) NULL ,
- [零售] [char] (1) NULL ,
- [库房] [char] (1) NULL ,
- [远存储过程] [char] (40) NULL ,
- [近存储过程] [char] (40) NULL ,
- [全接收登记] [binary] (30) NULL ,
- [送前远过程] [char] (40) NULL ,
- [送前近过程] [char] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[完工报告单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [生产单号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [批次] [char] (14) NULL ,
- [填报日期] [int] NOT NULL ,
- [完成数量] [float] NOT NULL ,
- [记帐人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [验收结论] [char] (10) NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[完工报告单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [生产单号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [批次] [char] (14) NULL ,
- [填报日期] [int] NOT NULL ,
- [完成数量] [float] NOT NULL ,
- [记帐人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [验收结论] [char] (10) NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[客户修改历史] (
- [编号] [int] NOT NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [原简称] [varchar] (50) NULL ,
- [原拼音编码] [char] (20) NULL ,
- [原名称] [varchar] (40) NULL ,
- [原销售扣率] [float] NULL ,
- [原授信额度] [float] NULL ,
- [原联系人] [char] (10) NULL ,
- [原地址] [varchar] (40) NULL ,
- [原邮编] [char] (6) NULL ,
- [原区号] [char] (6) NULL ,
- [原地区] [varchar] (12) NULL ,
- [原电话] [varchar] (20) NULL ,
- [原传真] [varchar] (20) NULL ,
- [原电报] [varchar] (20) NULL ,
- [原开户行] [varchar] (40) NULL ,
- [原开户行邮编] [char] (6) NULL ,
- [原银行帐号] [varchar] (20) NULL ,
- [原税号] [varchar] (20) NULL ,
- [原性质] [varchar] (10) NULL ,
- [原首营] [int] NULL ,
- [原库房地址] [varchar] (40) NULL ,
- [原库房电话] [varchar] (20) NULL ,
- [原业务员] [char] (10) NULL ,
- [原业务部门] [varchar] (20) NULL ,
- [原销售属性] [varchar] (6) NULL ,
- [原是否停用] [char] (2) NULL ,
- [原类别] [char] (10) NULL ,
- [新简称] [varchar] (50) NULL ,
- [新拼音编码] [char] (20) NULL ,
- [新名称] [varchar] (40) NULL ,
- [新销售扣率] [float] NULL ,
- [新授信额度] [float] NULL ,
- [新联系人] [char] (10) NULL ,
- [新地址] [varchar] (40) NULL ,
- [新邮编] [char] (6) NULL ,
- [新区号] [char] (6) NULL ,
- [新地区] [varchar] (12) NULL ,
- [新电话] [varchar] (20) NULL ,
- [新传真] [varchar] (20) NULL ,
- [新电报] [varchar] (20) NULL ,
- [新开户行] [varchar] (40) NULL ,
- [新开户行邮编] [char] (6) NULL ,
- [新银行帐号] [varchar] (20) NULL ,
- [新税号] [varchar] (20) NULL ,
- [新性质] [varchar] (10) NULL ,
- [新首营] [int] NULL ,
- [新库房地址] [varchar] (40) NULL ,
- [新库房电话] [varchar] (20) NULL ,
- [新业务员] [char] (10) NULL ,
- [新业务部门] [varchar] (20) NULL ,
- [新销售属性] [varchar] (6) NULL ,
- [新是否停用] [char] (2) NULL ,
- [新类别] [char] (10) NULL ,
- [修改原因] [varchar] (50) NULL ,
- [修改标记] [char] (1) NULL ,
- [修改日期] [int] NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[工作中心] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [名称] [char] (40) NULL ,
- [最大工时] [int] NULL ,
- [额定工时] [int] NULL ,
- [最小工时] [int] NULL ,
- [数量] [int] NULL ,
- [制造费用] [float] NULL ,
- [人数] [int] NULL ,
- [工资费率] [float] NULL ,
- [记帐人] [varchar] (50) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[工厂日历] (
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [开始日期] [int] NOT NULL ,
- [结束日期] [int] NOT NULL ,
- [备注] [varchar] (255) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[工艺线路主] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [名称] [varchar] (40) NULL ,
- [生产类型] [char] (16) NULL ,
- [生产批量] [int] NULL ,
- [工作中心编号] [char] (10) NULL ,
- [准备时间] [int] NULL ,
- [生产时间] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[工艺线路细] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [工艺线路编号] [char] (14) NULL ,
- [序号] [char] (10) NULL ,
- [工序编号] [char] (14) NULL ,
- [工序名称] [varchar] (40) NULL ,
- [前置时间] [int] NULL ,
- [工具一编号] [char] (10) NULL ,
- [工具一名称] [varchar] (40) NULL ,
- [工具二编号] [char] (10) NULL ,
- [工具二名称] [varchar] (40) NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[库存库] (
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [部门] [varchar] (20) NOT NULL ,
- [组别] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [库存数量] [float] NOT NULL ,
- [库存金额] [float] NOT NULL ,
- [库存单价] [float] NOT NULL ,
- [最新进价] [float] NULL ,
- [扣率] [float] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[报损报溢历史] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [部门] [varchar] (20) NOT NULL ,
- [组别] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [数量] [float] NULL ,
- [库存单价] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [金额] [float] NULL ,
- [批价金额] [float] NULL ,
- [实金额] [float] NULL ,
- [责任人] [char] (10) NULL ,
- [证明人] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [报溢意见] [varchar] (50) NULL ,
- [上级意见] [varchar] (50) NULL ,
- [储运意见] [varchar] (50) NULL ,
- [经营意见] [varchar] (50) NULL ,
- [财会意见] [varchar] (50) NULL ,
- [小组意见] [varchar] (50) NULL ,
- [日期] [int] NULL ,
- [序号] [int] NULL ,
- [单据号] [char] (12) NULL ,
- [打印标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [票据类型] [char] (6) NOT NULL ,
- [效期] [int] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[报损报溢批次明细历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [报损报溢编号] [char] (14) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [库存编号] [int] NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [数量] [float] NULL ,
- [库存单价] [float] NULL ,
- [库存金额] [float] NULL ,
- [记帐人] [char] (10) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[换货单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [单据号] [char] (14) NOT NULL ,
- [货号] [char] (14) NOT NULL ,
- [客户编号] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [原货批号] [varchar] (20) NOT NULL ,
- [新货批号] [varchar] (20) NOT NULL ,
- [原货批次] [char] (14) NULL ,
- [新货批次] [char] (14) NULL ,
- [原货效期] [int] NULL ,
- [新货效期] [int] NULL ,
- [库存编号] [int] NULL ,
- [货位] [varchar] (20) NULL ,
- [换货数量] [float] NULL ,
- [提成进价] [float] NULL ,
- [成本金额] [float] NULL ,
- [日期] [int] NULL ,
- [记帐日期] [int] NULL ,
- [换货原因] [varchar] (30) NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[效期对照表] (
- [货号] [char] (14) NOT NULL ,
- [批号] [char] (14) NOT NULL ,
- [效期] [int] NULL ,
- [有效天数] [int] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[权限登记] (
- [权限序号] [int] NOT NULL ,
- [编号] [char] (6) NOT NULL ,
- [编号类型] [int] NOT NULL ,
- [模块编号] [char] (10) NOT NULL ,
- [选中标记] [char] (1) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[标准工序] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [名称] [varchar] (40) NULL ,
- [工作中心编号] [char] (10) NULL ,
- [排队时间] [int] NULL ,
- [加工时间] [int] NULL ,
- [移动时间] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料主文件] (
- [编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [条码] [char] (14) NULL ,
- [物料名称] [varchar] (50) NOT NULL ,
- [拼音编码] [char] (10) NULL ,
- [计量单位] [char] (10) NOT NULL ,
- [规格型号] [char] (20) NULL ,
- [计划类别] [char] (5) NULL ,
- [状态类别] [char] (5) NULL ,
- [归属类别] [char] (5) NULL ,
- [价值类别] [char] (1) NULL ,
- [物料特性a] [varchar] (40) NULL ,
- [物料特性b] [varchar] (40) NULL ,
- [物料特性c] [varchar] (40) NULL ,
- [物料特性d] [varchar] (40) NULL ,
- [长] [decimal](18, 3) NULL ,
- [宽] [decimal](18, 3) NULL ,
- [高] [decimal](18, 3) NULL ,
- [净重] [decimal](18, 3) NULL ,
- [品牌] [char] (10) NULL ,
- [颜色] [char] (10) NULL ,
- [等级] [char] (10) NULL ,
- [进货提前期] [int] NOT NULL ,
- [准备周期] [int] NOT NULL ,
- [生产周期] [int] NOT NULL ,
- [最小包装量] [decimal](18, 3) NULL ,
- [最低销售量] [decimal](18, 3) NULL ,
- [批量] [decimal](18, 4) NULL ,
- [最高库存] [decimal](18, 3) NULL ,
- [最低库存] [decimal](18, 3) NULL ,
- [库存期限] [int] NULL ,
- [录入者] [char] (8) NULL ,
- [录入日期] [int] NULL ,
- [低层码] [int] NULL ,
- [指定供货商] [char] (10) NULL ,
- [定货策略] [char] (10) NULL ,
- [生产车间] [char] (10) NULL ,
- [修改标记] [char] (1) NULL ,
- [修改日期] [int] NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料价值代码] (
- [价值代码] [char] (1) NOT NULL ,
- [价值类别描述] [varchar] (40) NOT NULL ,
- [盘点周期] [int] NULL ,
- [说明] [varchar] (50) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料入库单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [采购订单编号] [char] (14) NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [目的仓区] [varchar] (20) NOT NULL ,
- [目的仓位] [varchar] (20) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [批次] [char] (14) NULL ,
- [库存成本单价] [float] NULL ,
- [批次成本单价] [float] NULL ,
- [到货数量] [float] NOT NULL ,
- [入库数量] [float] NOT NULL ,
- [拒收数量] [float] NULL ,
- [验收结论] [char] (10) NULL ,
- [到货日期] [int] NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料入库单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [采购订单编号] [char] (14) NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [目的仓区] [varchar] (20) NOT NULL ,
- [目的仓位] [varchar] (20) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NULL ,
- [批次] [char] (14) NULL ,
- [库存成本单价] [float] NULL ,
- [批次成本单价] [float] NULL ,
- [到货数量] [float] NOT NULL ,
- [入库数量] [float] NOT NULL ,
- [拒收数量] [float] NULL ,
- [验收结论] [char] (10) NULL ,
- [到货日期] [int] NULL ,
- [验收日期] [int] NULL ,
- [验收员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料反查表] (
- [层次] [varchar] (20) NULL ,
- [父项编号] [char] (20) NULL ,
- [子项编号] [char] (20) NULL ,
- [需求量] [decimal](10, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料展开表] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [层次] [varchar] (20) NULL ,
- [父项编号] [char] (14) NULL ,
- [子项编号] [char] (14) NULL ,
- [需要数量] [decimal](10, 4) NULL ,
- [损耗率] [decimal](5, 2) NULL ,
- [用量] [decimal](18, 4) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料归属类别] (
- [类别代码] [char] (5) NOT NULL ,
- [类别描述] [char] (20) NOT NULL ,
- [相关会计科目] [char] (20) NULL ,
- [说明] [varchar] (50) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料清单] (
- [父项编号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [需要数量] [decimal](18, 4) NOT NULL ,
- [领料车间] [char] (10) NULL ,
- [领料库房] [char] (10) NULL ,
- [平均损耗率1] [decimal](6, 5) NOT NULL ,
- [损耗率] [decimal](5, 4) NULL ,
- [bom状态] [char] (1) NULL ,
- [bom信息状态] [char] (1) NULL ,
- [审核者] [char] (8) NULL ,
- [审核日期] [int] NULL ,
- [其它事项] [text] NULL ,
- [低层码] [int] NULL ,
- [展开标记] [bit] NULL
- ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料状态类别] (
- [类别代码] [char] (5) NOT NULL ,
- [状态描述] [char] (20) NOT NULL ,
- [说明] [varchar] (50) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料计划类别] (
- [类别代码] [char] (5) NOT NULL ,
- [类别名称] [char] (20) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[物料需求计划old] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (20) NOT NULL ,
- [年份] [smallint] NOT NULL ,
- [计划期] [tinyint] NOT NULL ,
- [需求数量] [decimal](18, 4) NOT NULL ,
- [已满足数量] [decimal](18, 4) NULL ,
- [状态] [char] (10) NULL ,
- [mps编号] [char] (10) NULL ,
- [审核者] [char] (10) NULL ,
- [审核日期] [char] (10) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产件资源负荷报表] (
- [资源编号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [负荷] [float] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产大纲] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年月] [int] NOT NULL ,
- [生产数量] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产大纲历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年月] [int] NOT NULL ,
- [生产数量] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产订单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [MPS编号] [char] (14) NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [生产批号] [char] (20) NULL ,
- [物料编号] [char] (14) NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [数量] [float] NULL ,
- [生产部门] [char] (10) NULL ,
- [下达日期] [int] NULL ,
- [要求完成日期] [int] NULL ,
- [完成数量] [float] NULL ,
- [剩余数量] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [记帐日期] [int] NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产订单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [MPS编号] [char] (14) NOT NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [生产批号] [char] (20) NULL ,
- [物料编号] [char] (14) NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [数量] [float] NULL ,
- [生产部门] [char] (10) NULL ,
- [下达日期] [int] NULL ,
- [要求完成日期] [int] NULL ,
- [完成数量] [float] NULL ,
- [剩余数量] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [记帐日期] [int] NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NULL ,
- [备注] [varchar] (40) NULL ,
- [领料单标志] [bit] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[生产订单审核] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [MPS编号] [char] (14) NOT NULL ,
- [编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [生产批号] [char] (20) NULL ,
- [物料编号] [char] (14) NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [数量] [float] NULL ,
- [生产部门] [char] (10) NULL ,
- [下达日期] [int] NULL ,
- [要求完成日期] [int] NULL ,
- [完成数量] [float] NULL ,
- [剩余数量] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [记帐日期] [int] NULL ,
- [审核人] [varchar] (10) NULL ,
- [审核日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [状态] [char] (10) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[盘点批次明细历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [盘点编号] [char] (14) NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [批次] [char] (14) NULL ,
- [原库存数量] [float] NULL ,
- [新库存数量] [float] NULL ,
- [原库存单价] [float] NULL ,
- [新库存单价] [float] NULL ,
- [日期] [int] NULL ,
- [库存编号] [int] NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [数量] [float] NULL ,
- [库存单价] [float] NULL ,
- [库存金额] [float] NULL ,
- [记帐人] [char] (10) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[系统日志] (
- [编号] [int] NULL ,
- [时间] [datetime] NULL ,
- [摘要] [varchar] (100) NULL ,
- [模块编号] [char] (10) NULL ,
- [程序文件] [varchar] (100) NULL ,
- [操作员] [char] (10) NULL ,
- [日期] [int] NULL ,
- [详细情况] [varchar] (1000) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[职工清单] (
- [职工编号] [char] (6) NOT NULL ,
- [组别编号] [char] (6) NOT NULL ,
- [姓名] [char] (10) NOT NULL ,
- [性别] [char] (2) NOT NULL ,
- [职务] [char] (10) NULL ,
- [密码] [char] (10) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[计划期参数] (
- [需求区期数] [char] (10) NULL ,
- [计划区期数] [char] (10) NULL ,
- [预测区期数] [char] (10) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[计量单位] (
- [计量单位] [char] (10) NOT NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[订货合同] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (12) NULL ,
- [单据号] [char] (12) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [订货数量] [real] NULL ,
- [进价] [money] NULL ,
- [金额] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[订货合同发布] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (12) NULL ,
- [单据号] [char] (12) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [订货数量] [real] NULL ,
- [进价] [money] NULL ,
- [金额] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[订货合同接收] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (12) NULL ,
- [单据号] [char] (12) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [订货数量] [real] NULL ,
- [进价] [money] NULL ,
- [金额] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[词库] (
- [内部编号] [int] NOT NULL ,
- [单位] [char] (8) NULL ,
- [剂型] [char] (16) NULL ,
- [处方类型] [char] (8) NULL ,
- [商品类别] [char] (8) NULL ,
- [商品属性] [char] (8) NULL ,
- [进货税率] [real] NULL ,
- [客户性质] [char] (10) NULL ,
- [供货商类型] [char] (12) NULL ,
- [地区] [char] (12) NULL ,
- [调价依据] [char] (50) NULL ,
- [部门类型] [char] (30) NULL ,
- [职务] [char] (30) NULL ,
- [货位] [char] (10) NULL ,
- [仓区] [char] (20) NULL ,
- [仓位] [char] (20) NULL ,
- [备用字段1] [char] (30) NULL ,
- [备用字段2] [char] (10) NULL ,
- [备用字段3] [char] (10) NULL ,
- [备用字段4] [char] (10) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[调拨单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [源部门] [varchar] (20) NULL ,
- [源组别] [varchar] (20) NULL ,
- [源货位] [varchar] (20) NULL ,
- [目的部门] [varchar] (20) NULL ,
- [目的组别] [varchar] (20) NULL ,
- [目的货位] [varchar] (20) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [库存编号] [int] NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NOT NULL ,
- [单价] [float] NOT NULL ,
- [最新进价] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [合计金额] [float] NULL ,
- [批发金额] [float] NULL ,
- [零售金额] [float] NULL ,
- [调拨日期] [int] NULL ,
- [日期] [int] NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [序号] [int] NULL ,
- [单据号] [char] (12) NULL ,
- [申请单号] [char] (14) NULL ,
- [单据类型] [char] (4) NULL ,
- [打印标记] [char] (1) NULL ,
- [作废标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [库存数量] [float] NULL ,
- [票据类型] [char] (6) NOT NULL ,
- [成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [成本金额] [float] NULL ,
- [调拨原因] [varchar] (20) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[调拨单历史] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [源部门] [varchar] (20) NULL ,
- [源组别] [varchar] (20) NULL ,
- [源货位] [varchar] (20) NULL ,
- [目的部门] [varchar] (20) NULL ,
- [目的组别] [varchar] (20) NULL ,
- [目的货位] [varchar] (20) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [库存编号] [int] NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NOT NULL ,
- [单价] [float] NULL ,
- [最新进价] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [合计金额] [float] NULL ,
- [批发金额] [float] NULL ,
- [零售金额] [float] NULL ,
- [调拨日期] [int] NULL ,
- [日期] [int] NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [序号] [int] NULL ,
- [单据号] [char] (12) NULL ,
- [申请单号] [char] (14) NULL ,
- [单据类型] [char] (4) NULL ,
- [打印标记] [char] (1) NULL ,
- [作废标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [库存数量] [float] NULL ,
- [票据类型] [char] (6) NOT NULL ,
- [成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [成本金额] [float] NULL ,
- [调拨原因] [varchar] (20) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[调整库存历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [部门] [varchar] (20) NOT NULL ,
- [组别] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [原库存数] [float] NULL ,
- [原库存金额] [float] NULL ,
- [原库存单价] [float] NULL ,
- [新库存数量] [float] NOT NULL ,
- [新库存金额] [float] NULL ,
- [新库存单价] [float] NULL ,
- [记帐人] [char] (10) NULL ,
- [调整日期] [int] NULL ,
- [接收登记] [binary] (30) NULL ,
- [详细说明] [varchar] (50) NULL ,
- [效期] [int] NULL ,
- [零售价] [float] NULL ,
- [批发价] [float] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[资源日程表] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [日期] [int] NOT NULL ,
- [资源编号] [char] (14) NOT NULL ,
- [计划能力] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[资源日程表历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [日期] [int] NOT NULL ,
- [资源编号] [char] (14) NOT NULL ,
- [计划能力] [float] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[资源消耗定额] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [物料编号] [char] (14) NULL ,
- [生产批量] [int] NULL ,
- [资源编号] [char] (14) NULL ,
- [资源类型] [char] (14) NULL ,
- [来源] [char] (16) NULL ,
- [资源需求量] [float] NULL ,
- [前置时间] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[资源清单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [名称] [char] (40) NULL ,
- [拼音编码] [varchar] (20) NULL ,
- [最大工时] [int] NULL ,
- [额定工时] [int] NULL ,
- [最小工时] [int] NULL ,
- [数量] [int] NULL ,
- [制造费用] [float] NULL ,
- [人数] [int] NULL ,
- [工资费率] [float] NULL ,
- [资源类型] [char] (10) NULL ,
- [记帐人] [varchar] (50) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[资源负荷报表] (
- [资源编号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [负荷] [float] NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[运行参数表] (
- [编号] [int] NOT NULL ,
- [参数名称] [varchar] (20) NOT NULL ,
- [参数] [int] NOT NULL ,
- [说明] [varchar] (100) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[进退货单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NOT NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [扣率] [float] NULL ,
- [不含税价] [float] NULL ,
- [税率] [float] NULL ,
- [税额] [float] NULL ,
- [税价合计] [float] NULL ,
- [零价合计] [float] NULL ,
- [批价合计] [float] NULL ,
- [成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [货位] [varchar] (20) NULL ,
- [库存编号] [int] NULL ,
- [应付处理] [char] (8) NULL ,
- [进货单号] [char] (14) NULL ,
- [备注] [varchar] (50) NULL ,
- [业务员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [审单员] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [序号] [int] NULL ,
- [单据号] [char] (12) NULL ,
- [打印标记] [char] (1) NULL ,
- [状态] [char] (6) NULL ,
- [效期] [int] NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[进退货单历史] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NOT NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [扣率] [float] NULL ,
- [不含税价] [float] NULL ,
- [税率] [float] NULL ,
- [税额] [float] NULL ,
- [税价合计] [float] NULL ,
- [零价合计] [float] NULL ,
- [批价合计] [float] NULL ,
- [成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [货位] [varchar] (20) NULL ,
- [库存编号] [int] NULL ,
- [应付处理] [char] (8) NULL ,
- [进货单号] [char] (14) NULL ,
- [备注] [varchar] (50) NULL ,
- [业务员] [char] (10) NULL ,
- [保管员] [char] (10) NULL ,
- [记帐人] [char] (10) NULL ,
- [审单员] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [序号] [int] NULL ,
- [单据号] [char] (12) NULL ,
- [打印标记] [char] (1) NULL ,
- [状态] [char] (6) NULL ,
- [效期] [int] NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[进销存卡片] (
- [编号] [int] IDENTITY (1, 1) NOT NULL ,
- [部门] [varchar] (20) NOT NULL ,
- [组别] [varchar] (20) NOT NULL ,
- [货位] [varchar] (20) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [摘要] [varchar] (100) NOT NULL ,
- [单据号] [char] (14) NOT NULL ,
- [日期] [int] NULL ,
- [入库数量] [float] NOT NULL ,
- [入库金额] [float] NOT NULL ,
- [出库数量] [float] NOT NULL ,
- [出库金额] [float] NOT NULL ,
- [结存数量] [float] NOT NULL ,
- [结存金额] [float] NOT NULL ,
- [同货号数量] [float] NULL ,
- [同货号金额] [float] NULL ,
- [成本单价] [float] NULL ,
- [影响部门] [varchar] (20) NOT NULL ,
- [影响组别] [varchar] (100) NOT NULL ,
- [影响货位] [varchar] (20) NULL ,
- [接收登记] [binary] (30) NULL ,
- [记帐人] [char] (20) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[选择记帐记录表] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [标识字段1] [varchar] (50) NULL ,
- [标识字段2] [varchar] (50) NULL ,
- [标识字段3] [varchar] (50) NULL ,
- [标识字段4] [varchar] (50) NULL ,
- [标识字段5] [varchar] (50) NULL ,
- [标识字段6] [varchar] (50) NULL ,
- [标识字段7] [varchar] (50) NULL ,
- [标识字段8] [varchar] (50) NULL ,
- [标识字段9] [varchar] (50) NULL ,
- [标识字段10] [varchar] (50) NULL ,
- [记帐人] [varchar] (10) NULL ,
- [操作文件名] [varchar] (40) NULL ,
- [备用字段1] [varchar] (50) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NULL ,
- [物料编号] [char] (14) NULL ,
- [订货数量] [decimal](24, 4) NULL ,
- [进价] [money] NULL ,
- [不含税价] [money] NULL ,
- [税率] [decimal](5, 4) NULL ,
- [税额] [money] NULL ,
- [税价合计] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [剩余数量] [decimal](18, 4) NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [审单人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [订单状态] [char] (6) NULL ,
- [订单说明] [varchar] (40) NULL ,
- [接收登记] [binary] (30) NULL ,
- [修改标记] [char] (1) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单o] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [订单号] [char] (10) NOT NULL ,
- [供货商号] [char] (10) NULL ,
- [订货日期] [int] NULL ,
- [物料编号] [char] (20) NOT NULL ,
- [年份] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [采购数量] [decimal](18, 4) NOT NULL ,
- [审核者] [char] (10) NULL ,
- [审核日期] [int] NULL ,
- [订单状态] [char] (10) NULL ,
- [到货数量] [decimal](18, 4) NOT NULL ,
- [剩余数量] [decimal](18, 4) NULL ,
- [备注] [varchar] (50) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单历史] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NULL ,
- [物料编号] [char] (14) NULL ,
- [订货数量] [decimal](24, 4) NULL ,
- [进价] [money] NULL ,
- [不含税价] [money] NULL ,
- [税率] [real] NULL ,
- [税额] [money] NULL ,
- [税价合计] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [剩余数量] [decimal](18, 4) NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [审单人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [订单状态] [char] (6) NULL ,
- [订单说明] [varchar] (40) NULL ,
- [接收登记] [binary] (30) NULL ,
- [修改标记] [char] (1) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单发布] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NULL ,
- [物料编号] [char] (14) NULL ,
- [订货数量] [decimal](24, 4) NULL ,
- [进价] [money] NULL ,
- [不含税价] [money] NULL ,
- [税率] [decimal](5, 4) NULL ,
- [税额] [money] NULL ,
- [税价合计] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [剩余数量] [decimal](18, 4) NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [审单人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [订单状态] [char] (6) NULL ,
- [订单说明] [varchar] (40) NULL ,
- [接收登记] [binary] (30) NULL ,
- [修改标记] [char] (1) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单审核] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NULL ,
- [物料编号] [char] (14) NULL ,
- [订货数量] [decimal](24, 4) NULL ,
- [进价] [money] NULL ,
- [不含税价] [money] NULL ,
- [税率] [decimal](5, 4) NULL ,
- [税额] [money] NULL ,
- [税价合计] [money] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [年份] [int] NULL ,
- [计划期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (8) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [real] NULL ,
- [剩余数量] [decimal](18, 4) NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (8) NULL ,
- [审单人] [char] (8) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [订单状态] [char] (6) NULL ,
- [订单说明] [varchar] (40) NULL ,
- [接收登记] [binary] (30) NULL ,
- [修改标记] [char] (1) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[采购订单接收] (
- [内部编号] [int] NOT NULL ,
- [编号] [char] (14) NULL ,
- [合同编号] [char] (14) NULL ,
- [单据号] [char] (14) NULL ,
- [申请编号] [char] (14) NULL ,
- [供货商号] [char] (10) NOT NULL ,
- [货号] [char] (14) NOT NULL ,
- [订货数量] [float] NOT NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [进价] [float] NULL ,
- [提成进价] [float] NULL ,
- [扣率] [float] NULL ,
- [不含税价] [float] NULL ,
- [税率] [float] NULL ,
- [税额] [float] NULL ,
- [税价合计] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [批发金额] [float] NULL ,
- [零售金额] [float] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [订货地点] [varchar] (20) NULL ,
- [订货人] [char] (10) NULL ,
- [送货日期] [int] NULL ,
- [送货数量] [float] NULL ,
- [有效起日] [int] NULL ,
- [有效止日] [int] NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (10) NULL ,
- [审单人] [char] (10) NULL ,
- [作废标记] [char] (1) NULL ,
- [打印标记] [char] (1) NULL ,
- [订单状态] [char] (6) NULL ,
- [订单说明] [varchar] (40) NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [销售订单编号] [char] (14) NULL ,
- [销售订单单据号] [char] (14) NULL ,
- [销售单单据号] [char] (14) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [库存编号] [int] NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [货位] [varchar] (20) NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [招标价] [float] NULL ,
- [招标零售价] [float] NULL ,
- [扣率] [float] NULL ,
- [不含税额] [float] NULL ,
- [税率] [float] NULL ,
- [税额] [float] NULL ,
- [税价合计] [float] NULL ,
- [零价合计] [float] NULL ,
- [批价合计] [float] NULL ,
- [销售价] [float] NULL ,
- [库存单价] [float] NULL ,
- [库存金额] [float] NULL ,
- [转提货库] [char] (10) NULL ,
- [销售日期] [int] NULL ,
- [审单员] [char] (10) NULL ,
- [业务员] [char] (10) NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [记帐日期] [int] NULL ,
- [序号] [int] NULL ,
- [详细情况] [varchar] (20) NULL ,
- [接收登记] [binary] (30) NULL ,
- [库存数量] [float] NULL ,
- [销售属性] [varchar] (6) NULL ,
- [票据类型] [char] (6) NOT NULL ,
- [状态] [char] (10) NULL ,
- [退货数量] [float] NULL ,
- [帐期] [int] NULL ,
- [批次成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [批次成本金额] [float] NULL ,
- [毛利] [float] NULL ,
- [效期] [int] NULL ,
- [来源] [char] (8) NULL ,
- [供货商号] [char] (10) NULL ,
- [进货扣率] [float] NULL ,
- [购货人] [char] (12) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NOT NULL ,
- [销售订单编号] [char] (14) NULL ,
- [销售订单单据号] [char] (14) NULL ,
- [销售单单据号] [char] (14) NULL ,
- [货号] [char] (14) NOT NULL ,
- [批号] [varchar] (20) NOT NULL ,
- [批次] [char] (14) NULL ,
- [库存编号] [int] NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [部门] [varchar] (20) NULL ,
- [组别] [varchar] (20) NULL ,
- [货位] [varchar] (20) NULL ,
- [大包装数] [float] NULL ,
- [中包装数] [float] NULL ,
- [数量] [float] NULL ,
- [批发价] [float] NULL ,
- [零售价] [float] NULL ,
- [招标价] [float] NULL ,
- [招标零售价] [float] NULL ,
- [扣率] [float] NULL ,
- [不含税额] [float] NULL ,
- [税率] [float] NULL ,
- [税额] [float] NULL ,
- [税价合计] [float] NULL ,
- [零价合计] [float] NULL ,
- [批价合计] [float] NULL ,
- [销售价] [float] NULL ,
- [库存单价] [float] NULL ,
- [库存金额] [float] NULL ,
- [转提货库] [char] (10) NULL ,
- [销售日期] [int] NULL ,
- [审单员] [char] (10) NULL ,
- [业务员] [char] (10) NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [记帐日期] [int] NULL ,
- [序号] [int] NULL ,
- [详细情况] [varchar] (20) NULL ,
- [接收登记] [binary] (30) NULL ,
- [库存数量] [float] NULL ,
- [销售属性] [varchar] (6) NULL ,
- [票据类型] [char] (6) NOT NULL ,
- [状态] [char] (10) NULL ,
- [退货数量] [float] NULL ,
- [帐期] [int] NULL ,
- [批次成本单价] [float] NULL ,
- [提成进价] [float] NULL ,
- [批次成本金额] [float] NULL ,
- [毛利] [float] NULL ,
- [效期] [int] NULL ,
- [来源] [char] (8) NULL ,
- [供货商号] [char] (10) NULL ,
- [进货扣率] [float] NULL ,
- [购货人] [char] (12) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售订单] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [销售合同单据号] [char] (14) NULL ,
- [销售订单单据号] [char] (14) NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [订货数量] [float] NOT NULL ,
- [市场价] [float] NULL ,
- [出厂价] [float] NULL ,
- [扣率] [float] NULL ,
- [实际订价] [float] NULL ,
- [金额] [float] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [交货日期] [int] NULL ,
- [交货地点] [varchar] (20) NULL ,
- [订货人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL ,
- [状态] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售订单历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [编号] [char] (14) NULL ,
- [销售合同单据号] [char] (14) NULL ,
- [销售订单单据号] [char] (14) NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [订货数量] [float] NOT NULL ,
- [市场价] [float] NULL ,
- [出厂价] [float] NULL ,
- [扣率] [float] NULL ,
- [实际订价] [float] NULL ,
- [金额] [float] NULL ,
- [交货方式] [varchar] (20) NULL ,
- [订货日期] [int] NULL ,
- [交货日期] [int] NULL ,
- [交货地点] [varchar] (20) NULL ,
- [订货人] [char] (10) NULL ,
- [记帐日期] [int] NULL ,
- [记帐人] [char] (10) NOT NULL ,
- [备注] [varchar] (40) NULL ,
- [状态] [char] (10) NULL ,
- [接收登记] [binary] (30) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售预测] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [客户编号] [char] (14) NOT NULL ,
- [物料编号] [char] (14) NOT NULL ,
- [年月] [int] NOT NULL ,
- [计划期] [int] NOT NULL ,
- [预测数量] [int] NULL ,
- [记帐人] [varchar] (10) NULL ,
- [修改日期] [int] NULL ,
- [修改标记] [char] (1) NULL ,
- [接收登记] [binary] (30) NULL ,
- [备注] [varchar] (40) NULL
- ) ON [PRIMARY]
- GO
- CREATE TABLE [dbo].[销售预测历史] (
- [内部编号] [int] IDENTITY (1, 1) NOT NULL ,
- [客户编号] [char] (14) NOT NULL ,