还是说重点吧:第一xdatabind绑定到数据库的repeat line table;第二setvaluefunc是XForm控件在绑定的时候必须调用的函数,我们这里的用法是重载它;第三getvaluefunc是在赋值绑定以后在提交保存的时候获取正确的值并存到数据库,我第一次的时候没用这个函数,所有的值存到数据库都是null,造成第2个步骤的人打开表单后看不到图片。
<br/>INSERT INTO BPMSysMessagesQueue (ProviderName,Address,Title,Message,CreateAt,FailCount)<br/>SELECT ProviderName,Address,Title,Message,CreateAt,0 FROM BPMSysMessagesFailed WHERE CreateAt >='2012-07-25'<br/>
<br/><br/>SELECT * <br/>FROM [dbo].[BPMInstTasks]<br/>WHERE ProcessName='ICN'<br/>AND State='Deleted'<br/><br/>declare @TaskID INT <br/>SET @TaskID=12361<br/><br/>--SELECT StepID FROM [dbo].[BPMInstProcSteps] WHERE TaskID = @TaskID<br/><br/>--Snapshot<br/>DELETE FROM [dbo].[BPMSysSnapshot] WHERE TaskID = @TaskID<br/>--Security<br/>DELETE FROM [dbo].[BPMSecurityTACL] WHERE TaskID = @TaskID<br/>--TaskStepLinks<br/>DELETE FROM [dbo].[BPMInstTaskStepLinks] WHERE TaskID = @TaskID<br/>--Tasks<br/>DELETE FROM [dbo].[BPMInstTasks] WHERE TaskID = @TaskID<br/>--Share Tasks<br/>DELETE FROM [dbo].[BPMInstShare] WHERE StepID IN (SELECT StepID FROM [dbo].[BPMInstProcSteps] WHERE TaskID = @TaskID)<br/>--Task Steps<br/>DELETE FROM [dbo].[BPMInstProcSteps] WHERE TaskID = @TaskID<br/>--Routing<br/>DELETE FROM [dbo].[BPMInstRouting] WHERE TaskID = @TaskID<br/>--Links in Email<br/>DELETE FROM [dbo].[BPMInstClickToProcessQuery] WHERE TaskID = @TaskID<br/>