383 lines
19 KiB
JSON
383 lines
19 KiB
JSON
{
|
||
"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": "5bcbdbb2-ab07-4e79-aa69-0ec84fbe5751"
|
||
},
|
||
"Value": "个人日报"
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "开始日期",
|
||
"GUID": "d97fb1e2-b359-4b2e-b2c9-6238b5c6508a"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=TODAY()"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "汇报人",
|
||
"GUID": "b0f7abf6-320b-4e90-90d9-e787bcbb7a97"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=汇报人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "内容",
|
||
"GUID": "dc75653c-83a6-4142-be7e-0409f81d2f54"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=生成汇报内容"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "总工时",
|
||
"GUID": "b204ba83-7163-4bad-b1e0-ad29580a2e17"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=返回总工时"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "43908d25-436d-4c69-a6e9-3601f546c215"
|
||
},
|
||
{
|
||
"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": "3a31c9e2-8140-4740-8186-78fffffeee8a"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=汇报日期"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "汇报人",
|
||
"GUID": "36bd0b71-7e49-4c55-9b9d-27caa38748bd"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=汇报人"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "内容",
|
||
"GUID": "6d1fc71a-8d21-49d0-b2cd-a9ed1cfd4b6d"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=生成汇报内容"
|
||
}
|
||
},
|
||
{
|
||
"BindingInfo": {
|
||
"TableName": "汇报记录表",
|
||
"ColumnName": "总工时",
|
||
"GUID": "18d4f23e-c763-4c4e-a151-fb4e4112fa21"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=返回总工时"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "53490be1-b27a-48ea-bf58-086ed310c298"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "9a57d033-7e24-4b02-a1a6-09dda167ada6"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "f483d112-b146-42be-b614-f5d3951b360f"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"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"
|
||
}
|
||
}
|
||
]
|
||
}
|
||
}
|
||
]
|
||
} |