{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目动态"},{"State":1,"Type":23,"Name":"TableView/View_项目统计信息"},{"State":1,"Type":1,"Name":"PCPage/项目成员详情"},{"State":1,"Type":1,"Name":"PCPage/项目概况"},{"State":1,"Type":1,"Name":"PCPage/项目成员"},{"State":1,"Type":15,"Name":"ServerCommand/移除项目成员"},{"State":1,"Type":15,"Name":"ServerCommand/同步项目成员"},{"State":3,"Type":7,"Name":"Table/项目动态类型"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-14 16:34:50 +08:00
parent 5ca1fc047e
commit 4a0a7328f3
12 changed files with 494 additions and 394 deletions

View File

@@ -232,7 +232,7 @@
]
}
],
"ID": "11879f47-8edd-4bd0-b768-38cafd1fc2cb"
"ID": "57dc61fc-38f3-4d5e-8b76-2e4c449d55b9"
},
{
"Condition": {
@@ -283,7 +283,7 @@
]
}
],
"ID": "bd17d7f8-10c7-44fe-b385-a358ade9ed87"
"ID": "65242093-099b-4f40-81c7-32ecb240ccbd"
}
]
}

View File

@@ -22,13 +22,7 @@
},
"Parameters": [
{
"Name": "项目ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "成员用户名",
"Name": "成员ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
@@ -39,66 +33,58 @@
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "是否参与任务",
"ParameterName": "项目成员",
"TableValue": {
"TableName": "任务成员表",
"TableValueType": 3,
"SqlCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "cb481729-447b-4d73-9329-6985ed0428e8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
"TableName": "项目成员表",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "a8f998b2-d3c7-4224-9196-3a9dbc555e4d",
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "项目成员",
"GUID": "aeee1b70-ae87-4119-8cf1-297e7264a485"
},
"ColumnName": "项目成员"
},
{
"GUID": "b6ea5aa7-de25-4c1b-862c-8e5346ab2a91",
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "项目成员",
"GUID": "d7373f0c-67da-4118-a920-8f4eb1e2ac79",
"AttachType": {
"$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess",
"UserColumnAttachType": 1
}
},
{
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "51726e62-6255-4e23-9bb4-498d1b063d3f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
},
"LeftBracket": 1
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "463af416-af9e-43ba-91cd-5b3f7771b538",
"RelationBinding": {
"RelatedTable": "任务表",
"RelatedColumn": "ID",
"DisplayColumn": "执行者"
}
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
},
"RightBracket": 1
}
],
"RelationType": 1
}
]
}
"ColumnName": "项目成员_全名"
},
{
"GUID": "1a6587ac-cd40-47d8-a007-56bc639e3d78",
"BindingInfo": {
"TableName": "项目成员表",
"ColumnName": "项目ID",
"GUID": "88295008-b207-4cc2-8e55-2276651588c8"
},
"ColumnName": "项目ID"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "3045a9fe-e0fe-4283-8308-d9f23feead50"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
},
"NullFormulaValueQueryPolicy": 0
},
"ID": "76f278bfb195492ba46fd874d4750856"
"ID": "9f0b430c1d9c4a83b2b1ca8a694335a0"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -110,170 +96,218 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=是否参与任务"
"SerializeProperty": "=项目成员"
}
},
"value": "0"
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目成员表",
"UpdateType": "delete",
"ShowConfirm": true,
"ConfirmText": "您确定要删除吗?",
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "442c8862-a026-4267-9d73-bce2152a982d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "fb204421-bf1a-4021-9b8b-1237c01a1fa7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "是否参与任务",
"TableValue": {
"TableName": "任务成员表",
"BindingInfos": [
{
"GUID": "8b01fba1-2393-41c6-972a-9b5958950b91",
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "49609b4d-8df4-4508-a9b8-8072e328756f",
"RelationBinding": {
"RelatedTable": "任务表",
"RelatedColumn": "ID",
"DisplayColumn": "任务名称"
}
]
},
"ColumnName": "任务名称"
}
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目ID",
"GUID": "6c11b9bb-f57e-445e-aa08-f0710b540c34"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "bf84ac5f-0e10-47fa-9398-d2b9099cc239"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
}
]
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "c06a2faf-aba9-41bf-bfa1-09d5af3c82eb"
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "6307591f-dcb7-47d5-bda8-bca2b7446af2"
},
"Value": "%Null%"
}
]
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "af87ba88-6365-49bc-a9ab-16badbc39596"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "f1f47cd2-a9c5-4aea-8ce5-46cdacd3cf8a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"将成员\"&成员用户名&\"从项目里移出\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "a87dbcdb-9108-443b-8eb4-200fa93ae63b"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "同步项目参与人列表",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "项目ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
"SerializeProperty": "=成员ID"
}
}
],
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
"ID": "034d791dc35841da884c5517d12c66ae"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "删除成功"
"$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": "=是否参与任务.Count"
}
},
"value": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目成员表",
"UpdateType": "delete",
"ShowConfirm": true,
"ConfirmText": "您确定要删除吗?",
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "项目成员表",
"ColumnName": "ID",
"GUID": "442c8862-a026-4267-9d73-bce2152a982d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
}
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "79351972-a943-4838-82e6-66a242a90804"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "项目成员ID",
"GUID": "309b81d4-42e8-4f8f-b58b-f796769f37e6"
},
"Value": "%Null%"
}
]
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "73e1b918-1054-463d-a15d-a43deffeb88c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目成员.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "ba8b71a5-e9ba-4aa1-a159-3b4dc1a93578"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"将成员\"&项目成员.项目成员_全名&\"从项目里移出\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "9a6d6bb4-0157-4622-b00b-5fa507cc874b"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "同步项目参与人列表",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "项目ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目成员.项目ID"
}
}
],
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "删除成功"
}
],
"ID": "9810f851-b1b5-4c78-bafe-27134840900e"
},
{
"CommandList": [
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=是否参与任务"
},
"Operation": 16,
"OperationParamaterAName": ",",
"OperationParamaterBName": "任务名称",
"OutParamaterName": "任务名称拼接"
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"存在已参与任务,无法删除!</br>任务:\"&任务名称拼接"
}
}
],
"ID": "4001df20-5a9a-47f3-88c8-2a0e549b58ad"
}
]
}
],
"ID": "b6a0e863-93b5-44e7-b6b9-cf494a699b08"
"ID": "9d140248-4d94-442b-9d4d-4672c09ef848"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员已参与到具体任务,请先从任务中剔除后再进行删除!"
"Message": "项目成员不存在"
}
],
"ID": "94cad1b0-9fda-49b2-85d7-b836f960f648"
"ID": "efb5077a-f8fb-4e1f-9f2d-8364be7b96dd"
}
]
}