Files
clue/ServerCommands/任务/提交任务评论.json

302 lines
9.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"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.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "发表人信息",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "b32e8e31-2e03-44b3-8774-6b48b363c130",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "e0d1b828-840b-4876-8765-b4e94c91f82d"
},
"ColumnName": "全名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "9cdfbd06-f04e-4883-b43f-f245aca5b52e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发表人"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "3e629553f95c4cca9c28f8574fb4883c"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务信息",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "7fba4eb2-1603-4e5d-a86b-b9e48bbe4a00",
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "6b4d94f3-2223-4836-9533-00d0686bf68e"
},
"ColumnName": "任务名称"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "672bb236-ef0f-46e3-90c4-cc106feb4379"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"TopCount": "1"
},
"ID": "477f7bb227874bcea369ae287b4909a5"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务评论表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "任务ID",
"GUID": "7fe5c008-2952-4a8a-ad28-9182dc388da4"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "发表人",
"GUID": "013ce705-82f8-4000-b154-60abf77c84a0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发表人"
}
},
{
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "内容",
"GUID": "3a06cf5b-d665-4759-bb73-dc20023407cc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=IF(回复ID>0,\"@\"&回复人姓名&\"\",\"\")&内容"
}
},
{
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "附件",
"GUID": "225e9ca7-2a1d-4272-be0d-ae76e566390f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=附件"
}
},
{
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "回复对象",
"GUID": "faef5eca-95c8-4b52-8241-98d0951d62f1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=回复ID"
}
}
]
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "回复对象",
"TableValue": {
"TableName": "任务评论表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "62500f48-3da9-4099-919d-98a0c1ff56e7",
"BindingInfo": {
"TableName": "任务评论表",
"ColumnName": "发表人",
"GUID": "dc5f9817-6402-4843-b779-6c8ab086ab00"
},
"ColumnName": "发表人"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务评论表",
"ColumnName": "ID",
"GUID": "97811137-4042-45b2-86a8-3f8ba217d8a2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=回复ID"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "b256511e072646d79533f5200d7060bf"
},
{
"$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": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "命令名称",
"Value": "打开任务详情"
},
{
"Name": "任务ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
}
],
"OutParamaterName": "参数对象"
},
{
"$type": "Forguncy.Model.NotificationMessageCommand, ServerDesignerCommon",
"NotificationName": "提醒通知",
"SendType": 1,
"UserNames": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=回复对象.发表人"
},
"Params": [
{
"Name": "标题",
"Value": "有新的任务评论"
},
{
"Name": "内容",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=发表人信息.全名&\"在任务【\"&任务信息.任务名称&\"】中提到了你,赶紧来看看吧~\""
}
},
{
"Name": "类型",
"Value": "执行命令",
"Remark": "分为:打开页面、执行命令..."
},
{
"Name": "参数对象",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参数对象"
}
}
],
"ID": "5a7833802f0846f496a8718ab25bc639"
}
],
"ID": "fefeccfc-8977-49a5-ae92-aec49d0710d3"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "发表成功"
}
]
}