222
schangxiang@126.com
2025-06-13 6a8393408d8cefcea02b7a598967de8dc1e565c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
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]