📄 movetodustbin.asp
字号:
<%
Sub MoveToDustbin(ObjDB,BoxID,ID)
Dim ObjRS,StrSQL
Dim IntID,IntBoxID
Dim IntExeID,IntComMsgID
IntBoxID = BoxID
If IntBoxID = 2 Then
IntID = ID
Else
IntExeID = ID
End If
Set ObjRS = Server.CreateObject ("ADODB.RecordSet")
If IntBoxID = 2 Then
StrSQL = "Update T_CRM_Stock_Application Set IsDel = 1 Where ID = " & IntID
ObjDB.Execute StrSQL
StrSQL = "Select * from T_CRM_Stock_Application_Delete where ID = 1"
ObjRS.Open StrSQL,ObjDB,1,3
ObjRS.AddNew
ObjRS("ComMsgID") = IntID
ObjRS("BoxID") = IntBoxID
ObjRS.Update
ObjRS.Close
Set ObjRS = Nothing
Else
StrSQL = "Update T_CRM_Stock_Application_Record_Des Set IsDel = 1 where ID = " & IntExeID
ObjDB.Execute StrSQL
StrSQL = "Select ComMsgID from V_OA_Work_Commessage where ExeID = " & IntExeID
Set ObjRS = ObjDB.Execute (StrSQL)
IntComMsgID = ObjRS("ComMsgID")
ObjRS.Close
StrSQL = "Select * from T_CRM_Stock_Application_Delete where ID = 1"
ObjRS.Open StrSQL,ObjDB,1,3
ObjRS.AddNew
ObjRS("ComMsgID") = IntComMsgID
ObjRS("ExeID") = IntExeID
ObjRS("BoxID") = IntBoxID
ObjRS.Update
ObjRS.Close
Set ObjRS = Nothing
End If
End Sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -