332 lines
14 KiB
JSON
332 lines
14 KiB
JSON
{
|
||
"Name": "从Gitee提取报工",
|
||
"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": "开始日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "2024-06-13"
|
||
},
|
||
{
|
||
"Name": "结束日期",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
}
|
||
},
|
||
{
|
||
"Name": "用户",
|
||
"DataValidationInfo": {
|
||
"IgnoreBlank": false
|
||
},
|
||
"TestData": "Administrator"
|
||
}
|
||
],
|
||
"InvokeTriggerTestData": {
|
||
"UserName": "Administrator"
|
||
}
|
||
}
|
||
],
|
||
"Commands": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "用户",
|
||
"TableValue": {
|
||
"TableName": "用户信息视图",
|
||
"TableValueType": 1,
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "4228fb3e-a8a6-4dbb-b3cc-bce5b3011435",
|
||
"BindingInfo": {
|
||
"TableName": "用户信息视图",
|
||
"ColumnName": "GIT用户名",
|
||
"GUID": "5879fc09-08fa-451a-a355-b26d486f8c31"
|
||
},
|
||
"ColumnName": "GIT用户名"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "用户信息视图",
|
||
"ColumnName": "用户名",
|
||
"GUID": "24bb73b2-b153-4756-85c1-7b2af8af884d"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=用户"
|
||
}
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0,
|
||
"TopCount": "1"
|
||
},
|
||
"ID": "b4030fac6e4643919f2d70820325c4bf"
|
||
},
|
||
{
|
||
"$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": "=用户.GIT用户名"
|
||
}
|
||
},
|
||
"value": "%Null%",
|
||
"compareType": 1
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "计算天数",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=DATEDIF(开始日期,结束日期,\"d\")"
|
||
},
|
||
"ID": "839247702b97432483704b323205cd67"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "总工时",
|
||
"ParameterValue": "0",
|
||
"ID": "73122483179048b18313028406573a8f"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||
"LoopInfo": {
|
||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||
"LoopCount": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=计算天数"
|
||
},
|
||
"LoopIndexParamName": "index",
|
||
"LoopItemParamName": "当前天数"
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "当前日期",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=开始日期+index-1"
|
||
},
|
||
"ID": "16028728d41c48a6a213d0ebd8d32b2e"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "Gitee事件",
|
||
"TableValue": {
|
||
"TableName": "Git_事件记录",
|
||
"BindingInfos": [
|
||
{
|
||
"GUID": "07b5b976-2ddd-4e1c-b61a-a27412db7d04",
|
||
"BindingInfo": {
|
||
"TableName": "Git_事件记录",
|
||
"ColumnName": "日期",
|
||
"GUID": "12eed73a-37a4-4ab4-9850-53a04c017263"
|
||
},
|
||
"ColumnName": "日期"
|
||
},
|
||
{
|
||
"GUID": "0cc165a2-d802-4923-bca3-e8450105b7bd",
|
||
"BindingInfo": {
|
||
"TableName": "Git_事件记录",
|
||
"ColumnName": "事件内容",
|
||
"GUID": "c2d0070c-3266-465c-865d-90e48ee75302"
|
||
},
|
||
"ColumnName": "事件内容"
|
||
}
|
||
],
|
||
"SqlCondition": {
|
||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||
"SubConditions": [
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "Git_事件记录",
|
||
"ColumnName": "git用户名",
|
||
"GUID": "0057124f-d1b6-4f02-a3d8-1affcc691fed"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=用户.GIT用户名"
|
||
}
|
||
},
|
||
{
|
||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||
"ColumnBindingInfo": {
|
||
"TableName": "Git_事件记录",
|
||
"ColumnName": "日期",
|
||
"GUID": "6f2040a7-9a8d-449f-982d-85c6c73ab517"
|
||
},
|
||
"Value": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=当前日期"
|
||
}
|
||
}
|
||
]
|
||
},
|
||
"NullFormulaValueQueryPolicy": 0,
|
||
"OrderBySqlCondition": {
|
||
"OrderByColumns": [
|
||
{
|
||
"ColumnBindingInfo": {
|
||
"TableName": "Git_事件记录",
|
||
"ColumnName": "日期",
|
||
"GUID": "d1eb816a-334f-46ce-9738-4740009be374"
|
||
},
|
||
"Order": 0
|
||
}
|
||
]
|
||
}
|
||
},
|
||
"ID": "ee6c5b8e973045dba953f276a0654008"
|
||
},
|
||
{
|
||
"$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": "=Gitee事件.Count"
|
||
}
|
||
},
|
||
"value": "0",
|
||
"compareType": 2
|
||
},
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "最小时间",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=Gitee事件.0.日期"
|
||
},
|
||
"ID": "16f04d70627b4c23bd50fd5af94bc002"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "最大时间",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=GETPARAM(\"Gitee事件.\"&Gitee事件.Count-1&\".日期\")"
|
||
},
|
||
"ID": "ee7c067b599447098af7b945afb6f01b"
|
||
},
|
||
{
|
||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||
"InParamater": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=Gitee事件"
|
||
},
|
||
"Operation": 16,
|
||
"OperationParamaterAName": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=CHAR(10)"
|
||
},
|
||
"OperationParamaterBName": "事件内容",
|
||
"OutParamaterName": "事件内容拼接"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "今日工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=IFERROR(ROUND((最大时间-最小时间)*24,1),0)"
|
||
},
|
||
"ID": "be9fc47d15544d86a333c2072f2bde64"
|
||
},
|
||
{
|
||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||
"ParameterName": "总工时",
|
||
"ParameterValue": {
|
||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||
"SerializeProperty": "=总工时+今日工时"
|
||
},
|
||
"ID": "ccb605ff743244d99d745fad3c9a21a0"
|
||
}
|
||
],
|
||
"ID": "99086d22-0b81-4634-9ce0-0f2f4e7b3153"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "0",
|
||
"Message": "无今日Gitee签入或签出记录",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "工作内容"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "281e736c-4b4f-464a-a2d0-979f3a0072cd"
|
||
}
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "d41dd9b6-a1b7-4d5e-a315-f5bcf5f4bd5b"
|
||
},
|
||
{
|
||
"CommandList": [
|
||
{
|
||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||
"ErrorCode": "400",
|
||
"Message": "您尚未设置Gitee信息,请前往\"个人中心\"设置后再试",
|
||
"CustomReturns": [
|
||
{
|
||
"ReturnPropertyName": "工时"
|
||
},
|
||
{
|
||
"ReturnPropertyName": "工作内容"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ID": "215c583f-1e78-4578-a6a6-720c352259dc"
|
||
}
|
||
]
|
||
}
|
||
],
|
||
"ReturnProperties": [
|
||
{
|
||
"Name": "工时"
|
||
},
|
||
{
|
||
"Name": "工作内容"
|
||
}
|
||
]
|
||
} |