{ "Name": "提交任务评论", "Enabled": true, "Triggers": [ { "$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon", "Permission": { "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": [ { "$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core", "roleNames": [ "FGC_LoginUser" ] } ] } }, "Parameters": [ { "Name": "任务ID", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "回复ID", "DataValidationInfo": {} }, { "Name": "回复人姓名", "DataValidationInfo": {} }, { "Name": "内容", "DataValidationInfo": { "IgnoreBlank": false } }, { "Name": "附件", "DataValidationInfo": {} }, { "Name": "发表人", "DataValidationInfo": { "IgnoreBlank": false } } ] } ], "Commands": [ { "$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon", "TableName": "任务评论表", "UpdateType": "add", "ShowConfirm": false, "UpdateBindingValues": [ { "BindingInfo": { "TableName": "任务评论表", "ColumnName": "任务ID", "GUID": "fcbe911d-0b52-40b4-b60c-a05d5abbbb9f" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=任务ID" } }, { "BindingInfo": { "TableName": "任务评论表", "ColumnName": "发表人", "GUID": "082d77b2-e31a-411e-8610-5e4929cc38ed" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=发表人" } }, { "BindingInfo": { "TableName": "任务评论表", "ColumnName": "内容", "GUID": "e0138448-55f2-44bc-95b2-7a05e18ea5f1" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=IF(回复ID>0,\"@\"&回复人姓名&\":\",\"\")&内容" } }, { "BindingInfo": { "TableName": "任务评论表", "ColumnName": "附件", "GUID": "9b6baaf9-2f8b-4f7d-8d77-773b5bf47a43" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=附件" } }, { "BindingInfo": { "TableName": "任务评论表", "ColumnName": "回复对象", "GUID": "61d03e06-92a2-40d3-a1a7-6e6bb6f65d13" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=回复ID" } } ] }, { "$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon", "ErrorCode": "0", "Message": "发表成功" } ] }