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

397 lines
20 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": "bdbfea55954c4b629904086d70c6cf24"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "汇报人",
"ParameterValue": "%CurrentUser%",
"ID": "ef89d90423994c52bc09de9aaef7299c"
},
{
"$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.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": "1ecca485-8477-40bd-bc47-6dd93c597ba1",
"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": "=TODAY()"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报类型",
"GUID": "7d6310c4-6c2d-47ff-9742-434ee9c833f2"
},
"Value": "日报"
}
]
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "334a23c90ea84954b786f69ed719d8f9"
},
{
"$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": "b3a5a232-c78d-4625-ae78-3aa6fbefcb39"
},
"Value": "日报"
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "开始日期",
"GUID": "7d040eb3-673c-4a5b-9d4c-2d0f13dee05c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=TODAY()"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "截止日期",
"GUID": "1ff87678-9541-442b-b47e-78f31cd11587"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报人",
"GUID": "0cbf0bf4-2ff5-4be8-9e84-85b4098d9f0a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "内容",
"GUID": "b298647c-8024-4c13-b7c9-866b133897dd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=生成汇报内容"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "总工时",
"GUID": "9ff2c05e-d7b4-4596-a35b-5fa377bf7447"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回总工时"
}
}
]
}
],
"ID": "6c072c5a-eff0-463d-9e68-f1e5cf82e8de"
},
{
"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": "b99ff8ab-af7c-482c-ac31-72cc37bcb7a6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报日期"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "截止日期",
"GUID": "153688bd-3aee-4394-b83f-a5782b86c4e1"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "汇报人",
"GUID": "d96ee4c5-981d-4035-bac9-0b93bec01517"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=汇报人"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "内容",
"GUID": "9c1dff95-830b-44d2-a448-a00b4e300231"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=生成汇报内容"
}
},
{
"BindingInfo": {
"TableName": "汇报记录表",
"ColumnName": "总工时",
"GUID": "cfb960f7-22a5-4efb-8d62-3b35f103ceb1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=返回总工时"
}
}
]
}
],
"ID": "de2eadd4-9642-49a4-99c0-b6eff3bff30c"
}
]
}
],
"ID": "f754b2b4-6995-4438-8e89-1d3600a0b77c"
}
]
}
],
"ID": "582b025d-ca4e-4276-a182-21b31be3db98"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "日志表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "标题",
"GUID": "226e0eb5-e349-400d-aadf-f1e1aaaecf75"
},
"Value": "单日自动生成工作日报命令"
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "内容",
"GUID": "f77a6239-12a7-4064-b33d-28f45eb52e09"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
}
},
{
"BindingInfo": {
"TableName": "日志表",
"ColumnName": "类型",
"GUID": "8b6812b2-6240-4396-ae2e-7d35baeedb7c"
},
"Value": "服务端命令"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}