339 lines
13 KiB
JSON
339 lines
13 KiB
JSON
{
|
|
"Name": "每周生成周报",
|
|
"Enabled": true,
|
|
"Triggers": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.WeeklyScheduleTriggerSaveData, ServerDesignerCommon",
|
|
"DaysOfWeek": [
|
|
0
|
|
],
|
|
"StartDateTime": 45616.75,
|
|
"ScheduleRunInDebugServer": false
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "项目列表",
|
|
"TableValue": {
|
|
"TableName": "项目表",
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "edd09dea-bb51-492d-832a-0533eccff4a6",
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "ID",
|
|
"GUID": "f206c3ad-8efa-40ef-a1aa-a2f003c8ee92"
|
|
},
|
|
"ColumnName": "ID"
|
|
},
|
|
{
|
|
"GUID": "522df4f1-72cf-4328-8f40-97025c0ac7c0",
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目经理",
|
|
"GUID": "ecbadf6c-bb28-47df-90ac-dc3674c7ec82"
|
|
},
|
|
"ColumnName": "项目经理"
|
|
},
|
|
{
|
|
"GUID": "17603b9f-9a92-4e13-b6c4-96bc934a4a2c",
|
|
"BindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目名称",
|
|
"GUID": "794b61c2-7144-46cc-982d-6743dab9380a"
|
|
},
|
|
"ColumnName": "项目名称"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "项目状态",
|
|
"GUID": "4deb203f-fef2-47d1-82e3-30a8af65d643"
|
|
},
|
|
"Value": "2"
|
|
},
|
|
"OrderBySqlCondition": {
|
|
"OrderByColumns": [
|
|
{
|
|
"ColumnBindingInfo": {
|
|
"TableName": "项目表",
|
|
"ColumnName": "FGC_LastModifyDate",
|
|
"GUID": "d93a6df8-d657-4f3a-b9f5-88e4819ee4b5"
|
|
},
|
|
"Order": 1
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"ID": "deaf3edbc1e84e2d986011db624ad49d",
|
|
"BreakpointIdentity": "157d2bda-68dd-4fcb-9d6d-fd9b3bf643f0"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "本周第一天",
|
|
"ParameterValue": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TODAY()-WEEKDAY(TODAY(),3)"
|
|
},
|
|
"ID": "df92815915cf4d4b8a6f35e43a53d228",
|
|
"BreakpointIdentity": "eac48097-aa12-4a95-9221-bb32d4f7a083"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "本周最后一天",
|
|
"ParameterValue": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TODAY()-WEEKDAY(TODAY(),3)+6"
|
|
},
|
|
"ID": "30fc8cda20f14e26b91c7e60a6cc4a4a",
|
|
"BreakpointIdentity": "3cd3a2b6-9867-4eb0-a2d1-47f861459d3c"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
|
"LoopInfo": {
|
|
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
|
"LoopCount": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=项目列表"
|
|
},
|
|
"LoopItemParamName": "Item"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "AI生成项目汇报",
|
|
"Parameters": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "项目ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.ID"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "汇报类型",
|
|
"Value": "周报"
|
|
},
|
|
{
|
|
"$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": "生成汇报"
|
|
}
|
|
}
|
|
],
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true,
|
|
"BreakpointIdentity": "1cfede2f-912d-48a9-9f20-e39d6ebfecdd"
|
|
},
|
|
{
|
|
"$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.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "汇报记录表",
|
|
"UpdateType": "addOrEdit",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
|
"SubConditions": [
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报对象ID",
|
|
"GUID": "652c9102-3f85-4755-8383-ae9615961f1a"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.ID"
|
|
}
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "开始日期",
|
|
"GUID": "d8272eb5-f5d3-4b70-a8dd-05e8b9061051"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=本周最后一天"
|
|
}
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报对象",
|
|
"GUID": "b54634d1-8481-4090-84e4-bc1960226fda"
|
|
},
|
|
"Value": "项目"
|
|
},
|
|
{
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报类型",
|
|
"GUID": "0778c6f5-9d4e-4fe3-95c7-ce6339301926"
|
|
},
|
|
"Value": "周报"
|
|
}
|
|
]
|
|
},
|
|
"UpdateBindingValues": [
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报对象",
|
|
"GUID": "cc144cc7-1157-4ecc-9d45-8f0471e299f1"
|
|
},
|
|
"Value": "项目"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报类型",
|
|
"GUID": "25ef692c-469f-4dfe-8730-b0d46abe4fb0"
|
|
},
|
|
"Value": "周报"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报对象ID",
|
|
"GUID": "6ca95cdf-dfd7-4267-b7fb-c35e3342bd1d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.ID"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "开始日期",
|
|
"GUID": "2e610634-a618-4cf7-a1d1-c216c935425f"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=本周最后一天"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "汇报人",
|
|
"GUID": "ee5d5206-638d-4888-8d34-dcf0b8570fce"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.项目经理"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "标题",
|
|
"GUID": "038099ce-3c7d-4e39-a11d-decca911262d"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.项目名称&\"的项目周报\""
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "内容",
|
|
"GUID": "ea3a0428-abaf-466a-8488-9835ff33205b"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=生成汇报"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "纯文本内容",
|
|
"GUID": "e105995e-3147-4cf5-ba06-ed2913ea17de"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=生成汇报"
|
|
}
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "总工时",
|
|
"GUID": "d9a0d9f9-d353-4879-a8fd-51e7014436ad"
|
|
},
|
|
"Value": "0"
|
|
},
|
|
{
|
|
"BindingInfo": {
|
|
"TableName": "汇报记录表",
|
|
"ColumnName": "状态",
|
|
"GUID": "6743d7ba-93b7-49e1-84f9-3e1f2cb7ec45"
|
|
},
|
|
"Value": "1"
|
|
}
|
|
],
|
|
"BreakpointIdentity": "142c2fcd-7d6a-42b7-8211-6bf29d15b5cd"
|
|
}
|
|
],
|
|
"ID": "0ef26d17-6eda-46bd-94c5-52eccaea5a60"
|
|
}
|
|
],
|
|
"BreakpointIdentity": "6c4c49ed-716f-4eea-aa95-21e0869c6586"
|
|
}
|
|
],
|
|
"BreakpointIdentity": "535518a1-b9b7-4753-bfc6-636e32777dd7"
|
|
}
|
|
],
|
|
"ReturnProperties": []
|
|
} |