Files
clue/ServerCommands/汇报/单日自动生成工作日报.json

422 lines
21 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": "单日自动生成工作日报",
"Description": "每天8:00自动生成昨日工作内容生成工作日报。",
"Enabled": true,
"Triggers": [
{
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
"InvokeTriggerTestData": {
"UserName": "shamus"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "汇报日期",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=TODAY()-1"
},
"ID": "1c34a0d795bd41bdbda283acaea024f0"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "汇报人",
"ParameterValue": "%CurrentUser%",
"ID": "d1967a498a614945a9ed18d491e02425"
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "根据汇报模板生成内容",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "生成日期",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报类型",
"Value": "日报"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报对象",
"Value": "个人"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "对象ID"
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "汇报人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "生成文本",
"ResultTo": {
"SerializeProperty": "生成汇报内容"
}
},
{
"ResultPropertyName": "返回总工时",
"ResultTo": {
"SerializeProperty": "返回总工时"
}
}
],
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$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": "=code"
}
},
"value": "0"
},
"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": 1,
"BindingInfos": [
{
"GUID": "54a8b66f-a6df-4645-8772-c36f7d8207c4",
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "ID",
"GUID": "7248b549-9806-4766-89e1-f5d49e589ddd"
},
"ColumnName": "ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报人",
"GUID": "56eddff0-36fe-4dd9-af41-999289d040ac"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "开始日期",
"GUID": "2cbb0a81-fada-4134-9c8e-991fba901746"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报类型",
"GUID": "7d6310c4-6c2d-47ff-9742-434ee9c833f2"
},
"Value": "日报"
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报对象",
"GUID": "e6b48d0c-2b41-4b5e-9ef4-0eaa71dd1d89"
},
"Value": "个人"
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "bb847cc2ad724facb075f624bf0e4baa"
},
{
"$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%"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报记录表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报类型",
"GUID": "35aa0d6b-99a4-4c36-86f7-fd6485eb0d7e"
},
"Value": "日报"
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "开始日期",
"GUID": "eb2d6984-be2b-40bd-abaa-e69d08fcb273"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报人",
"GUID": "ca05df5f-8360-4e4d-9f8c-3069d619f14c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "内容",
"GUID": "46ca2fe8-34b5-4930-acc4-a01348f64ab7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=生成汇报内容"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "总工时",
"GUID": "73006e6c-33a7-4aeb-98c2-abee7c803125"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回总工时"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报对象",
"GUID": "2fdeaf58-c3cd-4b89-96de-bdce68b35800"
},
"Value": "个人"
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "状态",
"GUID": "cfdf16a1-dada-43a7-a888-48acad2363e9"
},
"Value": "1"
}
]
}
],
"ID": "1acec4c7-0857-4735-853c-e46e378608c2"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "汇报记录表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "ID",
"GUID": "4f0f2548-0a72-4169-b2af-37ec269b8f80"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=是否已有日报.ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "开始日期",
"GUID": "a7d94978-bda4-4a9c-830e-c3f52d2f12e6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报人",
"GUID": "c0cdf10e-bb0a-48c0-98c1-79d77ea5138b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "内容",
"GUID": "e3dd4fe3-01d4-42f0-b9b5-76c5f07852d0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=生成汇报内容"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "总工时",
"GUID": "63415ccd-c82a-40fe-815b-6ad1e294c952"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回总工时"
}
}
]
}
],
"ID": "82d14f26-de4c-44ec-a78c-4903ee1e3645"
}
]
}
],
"ID": "24e67235-6f02-4c70-82b7-0b7873d06410"
}
]
}
],
"ID": "3003a99b-c1da-4270-99e8-9c7b13a90b6b"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "日志表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "标题",
"GUID": "078ae16b-69ec-437e-b5ba-cf5411ab760c"
},
"Value": "单日自动生成工作日报命令"
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "内容",
"GUID": "974dcb58-5239-4944-bb47-ba7b617c24e2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
}
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "类型",
"GUID": "272ff25f-8ac8-4204-a7d2-2b019ff09783"
},
"Value": "服务端命令"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}