USE YrtWMS_Siemens2;
|
GO
|
|
ALTER TABLE SapSendInfo
|
ADD Batch nvarchar(500),
|
FromStorageLocation nvarchar(100),
|
MaterialCode nvarchar(500),
|
Plant nvarchar(500),
|
Quantity decimal(10,2),
|
SType nvarchar(500),
|
SalesOrder nvarchar(500),
|
SalesOrderItem nvarchar(500),
|
SerialNo nvarchar(500),
|
ToStorageLocation nvarchar(100),
|
Unit nvarchar(100),
|
Vendor nvarchar(500),
|
WorkOrder nvarchar(500),
|
StorageLocation nvarchar(100)
|
|
|
|
ALTER TABLE SapSendInfo
|
ADD MaterialName nvarchar(500)
|
|
|
ALTER TABLE OutInStockTask
|
ADD PositionName nvarchar(100) , -- 库位号
|
CGHW_ProductStorage Decimal(18,2), -- 常规货位的库存数
|
ZCG_ProductStorage Decimal(18,2) --暂存区的库存数
|
|
ALTER TABLE OutInStockTask
|
ADD Remark nvarchar(500) -- 说明
|
|
|
-- 增加PLC的任务号
|
ALTER TABLE Task_Queue
|
ADD PlcTaskNo int -- PLC的任务号
|
|
-- 增加入库时的高度 [EditBy shaocx,2022-08-25]
|
ALTER TABLE Task_Queue
|
ADD PhysicsHeight int, -- 物理高度
|
LogicHeight int -- 逻辑高度
|
|
-- 增加入库时的高度 [EditBy shaocx,2022-08-25]
|
ALTER TABLE Base_ProductPosition
|
ADD PhysicsHeight int, -- 物理高度
|
LogicHeight int -- 逻辑高度
|
|
-- [EditBy shaocx,2022-09-18]
|
alter table partTask
|
add issueTime datetime ,--下发时间
|
finishTime datetime ,--结束时间
|
plcReceiveTime datetime, --plc接收任务时间
|
isPersonHandler int -- 是否人工处理过(1处理过,0未处理过)
|
|
|
alter table Base_ProductPosition
|
add IsInMoreHighPosition int -- 是否入的是匹配自己高度的更高库位,这些库位需要移库的 【EditBy shaocx,2022-09-19】
|
|
alter table Task_Queue
|
add IsInMoreHighPosition int -- 是否入的是匹配自己高度的更高库位,这些库位需要移库的 【EditBy shaocx,2022-09-19】
|
|
|
|
-- [EditBy shaocx,2022-09-22]
|
alter table MainTask
|
add wmsTaskId int -- WMS的任务ID
|
|
|
alter table SapSendFailRecodInfo
|
add SendSapData nvarchar(max) -- 增加 传输参数 [EditBy shaocx,2022-09-23]
|
|
alter table SapSendInfo
|
add Remark nvarchar(500) -- 增加 备注 [EditBy shaocx,2022-09-23]
|
|
alter table SapSendFailRecodInfo
|
add Remark nvarchar(500) -- 增加 备注 [EditBy shaocx,2022-09-23]
|
|
alter table SapSendInfo
|
add RetMsg nvarchar(500),
|
RetResult nvarchar(500)
|
|
|
|
alter table Sale_Order
|
add HasOutNumber int -- 已出库套数 【Editby shaocx,2022-09-29】
|
|
|
alter table Base_ProductPosition
|
add isHasInRecordForNoBill int -- 无单入库扫描是否已记录入库 [EditBy shaocx,2022-10-18]
|
|
alter table Base_ProductPosition
|
add SmallUnit nvarchar(50) -- 库存单位 [EditBy shaocx,2022-10-18]
|
|
|
|
alter table Base_PositionPrint
|
add isNeedPrint int -- 是否需要打印,需要1,不需要0
|
|
|
alter table Base_PositionPrint
|
add printDevice int -- 打印区域,1是入库口打印机,2是出库口打印机
|
|
alter table Base_ProductPosition
|
add OpRemark nvarchar(500) -- 增加 操作备注 [EditBy shaocx,2023-07-26]
|
|
alter table Base_ProductPosition
|
add DoContainerNoTime datetime -- 增加 操作物料锁定的时间 [EditBy shaocx,2023-07-26]
|
|
|
alter table Base_ProductPosition
|
add QrCode_guid nvarchar(500) -- 增加 二维码GUIDI [EditBy shaocx,2023-11-5]
|
|
alter table OutInStockTask
|
add Creator nvarchar(100) -- 增加 创建人 [EditBy shaocx,2024-02-27]
|
|
|
alter table Base_ProductPosition
|
add BarCode nvarchar(500) -- 增加 条码值(一维码或二维码值) [EditBy shaocx,2024-03-14]
|
|
alter table Base_ProductPosition
|
add IsQrCode bit -- 增加 是否是二维码值 [EditBy shaocx,2024-03-14]
|
|
-- 需要初始化数据
|
update Base_ProductPosition set IsQrCode =0 where IsQrCode is null;
|
|
|
alter table Sys_User
|
add LoginStateForPda tinyint -- 增加 PDA是否在线 [EditBy shaocx,2024-03-14]
|
|
alter table Sys_User
|
add LoginDateForPda datetime -- 增加 PDA在线时间 [EditBy shaocx,2024-03-14]
|
|
alter table Sys_User
|
add LoginIPForPda nvarchar(30) -- 增加 PDA在线IP [EditBy shaocx,2024-03-14]
|
|
alter table Purchase_ShelveList
|
add InStorageDate datetime -- 增加 入库时间 [EditBy shaocx,2024-03-22]
|