|
@@ -310,17 +310,18 @@ Dim serialStart:serialStart = CLng(GetSetting("SerialNumberStart")) + CLng(GetSe |
|
|
Dim Counter:Counter=0 |
|
|
Dim Counter:Counter=0 |
|
|
Dim KitLabelID |
|
|
Dim KitLabelID |
|
|
Dim KitLabelRs |
|
|
Dim KitLabelRs |
|
|
|
|
|
Dim Mid:Mid = GetSetting("MailingID") |
|
|
Dim Step : If KitRs("InboundSTID") <> "" Then : Step = 2 : Else Step = 1 |
|
|
Dim Step : If KitRs("InboundSTID") <> "" Then : Step = 2 : Else Step = 1 |
|
|
serialStart = PadLeft(serialStart + CLng(Counter),9,"0") |
|
|
serialStart = PadLeft(serialStart + CLng(Counter),9,"0") |
|
|
While Not InkjetRs.EOF |
|
|
While Not InkjetRs.EOF |
|
|
|
|
|
|
|
|
If Step = 1 Then |
|
|
If Step = 1 Then |
|
|
oConn.Execute("INSERT INTO KitLabels (KitID,OutboundSerial,OutboundIMBDigits) " &_ |
|
|
oConn.Execute("INSERT INTO KitLabels (KitID,OutboundSerial,OutboundIMBDigits) " &_ |
|
|
"VALUES(" & KitID & ",'" & serialStart & "','" & KitRs("OutBoundSTID").Value & serialStart & "000000000" & "');") |
|
|
|
|
|
|
|
|
"VALUES(" & KitID & ",'" & serialStart & "','" & KitRs("OutBoundSTID").Value & Mid & serialStart & "000000000" & "');") |
|
|
|
|
|
|
|
|
Else |
|
|
Else |
|
|
oConn.Execute "INSERT INTO KitLabels (KitID,OutboundSerial,InBoundSerial,OutboundIMBDigits,InBoundIMBDigits) " &_ |
|
|
oConn.Execute "INSERT INTO KitLabels (KitID,OutboundSerial,InBoundSerial,OutboundIMBDigits,InBoundIMBDigits) " &_ |
|
|
"VALUES(" & KitID & ",'" & serialStart & "','" & serialStart + 1 & "','" & KitRs("OutBoundSTID").Value & serialStart & "000000000" & "','" & KitRs("InboundSTID").Value & serialStart + 1 & Jcode & "');" |
|
|
|
|
|
|
|
|
"VALUES(" & KitID & ",'" & serialStart & "','" & serialStart + 1 & "','" & KitRs("OutBoundSTID").Value & Mid & serialStart & "000000000" & "','" & KitRs("InboundSTID").Value & serialStart + 1 & Jcode & "');" |
|
|
End If |
|
|
End If |
|
|
Set KitLabelRs = oConn.Execute("SELECT TOP 1 [ID] FROM KitLabels ORDER BY ID DESC"):KitLabelID = KitLabelRs("ID").Value |
|
|
Set KitLabelRs = oConn.Execute("SELECT TOP 1 [ID] FROM KitLabels ORDER BY ID DESC"):KitLabelID = KitLabelRs("ID").Value |
|
|
|
|
|
|
|
|