{ "Name": "初始化填充任务数据", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon", "Parameters": [ { "Name": "ID", "DataValidationInfo": { "IgnoreBlank": false } } ] } ], "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "任务", "TableValue": { "TableName": "任务表", "TableValueType": 1, "BindingInfos": [ { "GUID": "fa80dc44-4dbb-46a5-818f-c5eace93b52e", "BindingInfo": { "TableName": "任务表", "ColumnName": "ID", "GUID": "99f0fee8-e0f3-48ad-b4cb-56767ada0f75" }, "ColumnName": "ID" }, { "GUID": "ccd4d0f1-68e6-4e06-836c-46ee1cb14116", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务名称", "GUID": "4d22167b-0d0c-48de-9d37-e6e850c943e0" }, "ColumnName": "任务名称" }, { "GUID": "59e8d52c-a716-4205-91f9-bfe3dc60c55c", "BindingInfo": { "TableName": "任务表", "ColumnName": "项目ID", "GUID": "2db90e41-be4a-4d26-8609-617a412e10f7" }, "ColumnName": "项目ID" }, { "GUID": "61395d0f-6f4c-4347-9f43-5bf3c5703594", "BindingInfo": { "TableName": "任务表", "ColumnName": "任务负责人", "GUID": "3809e1e6-a6cb-430c-8b14-5fd27956f40b" }, "ColumnName": "任务负责人" }, { "GUID": "41ae5c6b-462d-4134-a717-7d62e4ad5e80", "BindingInfo": { "TableName": "任务表", "ColumnName": "FGC_Creator", "GUID": "146030b3-56bb-4ae5-bbc3-0be8e8942b45" }, "ColumnName": "创建者" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务表", "ColumnName": "ID", "GUID": "ecfa2ad0-5d11-4646-8955-455c7da0d276" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, "NullFormulaValueQueryPolicy": 0, "TopCount": "1" }, "ID": "2cdd4639b4f049cbbb01195301a32385" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.任务负责人" } }, "value": "%Null%", "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "检测是否已是成员", "TableValue": { "TableName": "任务成员表", "TableValueType": 3, "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "be9bdab1-bfd0-4426-94bc-681301098045" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "f2659ec4-d47a-48ea-a8a4-bc590a695dd3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.任务负责人" } } ] }, "NullFormulaValueQueryPolicy": 0 }, "ID": "e3d8b191a3e34b89afcfc7da561b8a9a" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=检测是否已是成员" } }, "value": "0" }, "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务成员表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "项目ID", "GUID": "942b47f1-2951-4b4c-a8f3-3e11401788e1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.项目ID" } }, { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "26adae20-4ba6-444b-b65a-21e72f4d53d6" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "55d5aa21-6c08-462a-a7dc-7570ec21c6b3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.任务负责人" } } ] } ], "ID": "ea2a9ef9-ab13-47bd-bf96-a7d98e497200" } ] }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.任务负责人" } }, "value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.创建者" }, "compareType": 1 }, "CommandList": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "检测是否已是成员", "TableValue": { "TableName": "任务成员表", "TableValueType": 3, "SqlCondition": { "$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess", "SubConditions": [ { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "d0fa004b-b5ec-4b97-ba47-47fa8503adef" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "f2659ec4-d47a-48ea-a8a4-bc590a695dd3" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.创建者" } } ] }, "NullFormulaValueQueryPolicy": 0 }, "ID": "fc2da484a7cd476ea97d471e6c24be2e" }, { "$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon", "ConditionAndCommandPairList": [ { "Condition": { "$type": "Forguncy.Model.IfCondition, ServerDesignerCommon", "param": { "$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon", "ParamObject": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=检测是否已是成员" } }, "value": "0" }, "CommandList": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务成员表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "项目ID", "GUID": "1cf6bbeb-8e96-47bd-b4d5-56eee8560d4c" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.项目ID" } }, { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务ID", "GUID": "05b0a91c-da6f-48de-ba43-40d53135f424" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=ID" } }, { "BindingInfo": { "TableName": "任务成员表", "ColumnName": "任务成员", "GUID": "29297a84-17bc-4b2e-8424-51549229d092" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务.创建者" } } ] } ], "ID": "44c67dce-2513-40c3-aa96-758064fa77b7" } ] } ], "ID": "1eb4ba97-1a1b-455d-b892-01e46b973b91" } ] } ], "ID": "100d48f3-0ff2-417e-b684-e745d1dba730" } ] } ], "ID": "d51c8e94-55b6-4bad-a06f-b272ac3c72be" } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "执行完毕" } ] }