{"Message":"增加个人中心页面","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/任务成员表"},{"State":1,"Type":7,"Name":"Table/任务表"},{"State":1,"Type":23,"Name":"TableView/View_任务工时统计"},{"State":1,"Type":7,"Name":"Table/任务工时表"},{"State":1,"Type":23,"Name":"TableView/用户信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户角色关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织级别视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色分类关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色拥有权限视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色组织关系视图","ExclusiveType":0},{"State":2,"Type":22,"Name":"Tables/项目任务"},{"State":4,"Type":23,"Name":"TableView/View_项目统计信息"},{"State":4,"Type":7,"Name":"Table/项目任务分组"},{"State":4,"Type":7,"Name":"Table/项目分组","ExclusiveType":0},{"State":4,"Type":7,"Name":"Table/项目动态"},{"State":4,"Type":7,"Name":"Table/项目岗位"},{"State":4,"Type":7,"Name":"Table/项目版本"},{"State":4,"Type":7,"Name":"Table/项目表"},{"State":4,"Type":7,"Name":"Table/项目预算变动表"},{"State":1,"Type":1,"Name":"PCPage/新增报工"},{"State":1,"Type":1,"Name":"PCPage/任务-基本信息"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":1,"Name":"PCPage/FGC_修改用户信息"},{"State":1,"Type":1,"Name":"PCPage/FGC_我的待办"},{"State":2,"Type":6,"Name":"Pages/项目首页"},{"State":2,"Type":6,"Name":"Pages/项目首页/项目配置"},{"State":4,"Type":1,"Name":"PCPage/项目岗位配置"},{"State":4,"Type":1,"Name":"PCPage/项目配置首页"},{"State":2,"Type":6,"Name":"Pages/项目首页/项目首页子页面"},{"State":4,"Type":1,"Name":"PCPage/任务列表"},{"State":4,"Type":1,"Name":"PCPage/项目工时"},{"State":4,"Type":1,"Name":"PCPage/项目成员统计"},{"State":4,"Type":1,"Name":"PCPage/项目概况-关键数据"},{"State":4,"Type":1,"Name":"PCPage/项目概况"},{"State":4,"Type":1,"Name":"PCPage/项目甘特图"},{"State":2,"Type":6,"Name":"Pages/项目首页/预算申请"},{"State":4,"Type":1,"Name":"PCPage/预算申请"},{"State":4,"Type":1,"Name":"PCPage/预算申请审批"},{"State":4,"Type":1,"Name":"PCPage/项目信息"},{"State":4,"Type":1,"Name":"PCPage/项目列表"},{"State":4,"Type":1,"Name":"PCPage/项目审批"},{"State":4,"Type":1,"Name":"PCPage/项目标题"},{"State":4,"Type":1,"Name":"PCPage/项目首页"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":15,"Name":"ServerCommand/新增任务"},{"State":1,"Type":15,"Name":"ServerCommand/移除任务成员"},{"State":1,"Type":15,"Name":"ServerCommand/修改工时"},{"State":1,"Type":15,"Name":"ServerCommand/新增工时"},{"State":1,"Type":26,"Name":"Upload"},{"State":1,"Type":40,"Name":"Plugin"},{"State":4,"Type":7,"Name":"Table/项目成员表"},{"State":1,"Type":15,"Name":"ServerCommand/同步项目成员"},{"State":4,"Type":1,"Name":"PCPage/项目成员"},{"State":3,"Type":6,"Name":"Pages/项目"},{"State":3,"Type":6,"Name":"Pages/项目/项目首页/项目配置"},{"State":3,"Type":6,"Name":"Pages/项目/项目首页/项目首页-容器页面"},{"State":3,"Type":6,"Name":"Pages/项目/项目首页/预算申请"},{"State":3,"Type":6,"Name":"Pages/项目/项目首页"},{"State":3,"Type":22,"Name":"Tables/项目"},{"State":3,"Type":15,"Name":"ServerCommand/移除项目成员"},{"State":3,"Type":1,"Name":"PCPage/任务成员详情"},{"State":3,"Type":15,"Name":"ServerCommand/修改任务预算工时"},{"State":3,"Type":1,"Name":"PCPage/项目成员详情"},{"State":3,"Type":1,"Name":"PCPage/项目岗位详情"},{"State":3,"Type":20,"Name":"ServerCommands/用户"},{"State":3,"Type":15,"Name":"ServerCommand/更新用户配置"},{"State":3,"Type":6,"Name":"Pages/个人中心"},{"State":3,"Type":1,"Name":"PCPage/个人中心"}],"Version":"v1"}

This commit is contained in:
SHAMUSPC\NINGMEI
2024-03-06 13:30:27 +08:00
parent 7313436580
commit 32badc7cf7
82 changed files with 8238 additions and 4014 deletions

View File

@@ -0,0 +1,389 @@
{
"Name": "修改任务预算工时",
"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": "任务ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "新预算工时",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务表",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "8fc75aad-be22-4706-bfc1-5d2a9e34ee8c"
},
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "efdec58c-5625-4843-a75d-ff21aec11dff"
},
"ColumnName": "任务名称"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "3db7c756-c246-409a-abb4-19c211e4658e"
},
"ColumnName": "任务预算工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "23383ca7-120e-436c-8f7b-3b828003fcfe"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"TopCount": "1"
},
"ID": "96d547bb2a2a49d7a8c7dc2c2df503c5"
},
{
"$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": "View_项目统计信息",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "8be465f9-1173-4551-ba9c-8077e9e1068a",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "严格模式"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "工时核定方式",
"GUID": "ec3b7b01-920d-4ad5-9a6b-6360afbada2a"
},
"ColumnName": "工时核定方式"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "c3f88088-ff8f-4ba4-b4b8-0b9b680f51b1"
},
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "总核定工时",
"GUID": "7c0f01a0-76c6-4b67-85f4-4c0e4455503e"
},
"ColumnName": "总核定工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "f6308398-2aec-4b4a-9e2a-ec524facb605"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.项目ID"
}
},
"TopCount": "1"
},
"ID": "bf2f70f520974b768143f5c166040550"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.严格模式"
}
},
"value": "1"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
},
"value": "0",
"compareType": 2
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.总核定工时-任务表.任务预算工时+新预算工时"
}
},
"value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.项目预算工时"
},
"compareType": 2
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务预算工时超标,请修改或申请新的预算。",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.任务预算工时"
}
}
]
}
],
"ID": "e9f67ed4-f44a-4bd7-b04a-4b3d8ee43eff"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"ShowConfirm": false,
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "36cde956-3506-4020-942d-ca6bb7016a8e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "340f9b02-8f8d-47f0-9111-01fd2d7f4357"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "b391f334-49fe-4abd-944a-382c49fa21d0"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "fdbb3ead-fef4-4513-bb19-98b174e3a225"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"调整了任务[\"&任务表.任务名称&\"]的预算工时\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "bc64b248-4605-441a-a2fe-02fffb13b8d6"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新预算工时"
}
}
]
}
],
"ID": "4b6538ad-e137-43ed-a0bd-db5e924474df"
}
],
"Comments": "如果任务设置了预算工时,则检测是否超标"
}
],
"ID": "431d1fc4-4a40-414f-a32c-c06768da0400"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在",
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.任务预算工时"
}
}
]
}
],
"ID": "7828a711-c408-40ed-91a2-1035bd9e90f2"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
},
"CustomReturns": [
{
"ReturnPropertyName": "新工时",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务表.任务预算工时"
}
}
]
}
]
}
}
],
"ReturnProperties": [
{
"Name": "新工时"
}
]
}

View File

@@ -62,7 +62,7 @@
"DataValidationInfo": {}
},
{
"Name": "参与人",
"Name": "预算工时",
"DataValidationInfo": {}
},
{
@@ -83,50 +83,64 @@
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "参与人",
"ParameterName": "项目统计",
"TableValue": {
"TableName": "用户信息视图",
"TableName": "View_项目统计信息",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "de3bcaa7-aa75-4d79-9231-4da30533b74a"
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "8be465f9-1173-4551-ba9c-8077e9e1068a",
"RelationBinding": {
"RelatedTable": "项目表",
"RelatedColumn": "ID",
"DisplayColumn": "严格模式"
}
},
"ColumnName": "用户名"
"ColumnName": "严格模式"
},
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "6917ca2f-a4c8-4e6e-83a1-da8d327f145c"
"TableName": "View_项目统计信息",
"ColumnName": "工时核定方式",
"GUID": "ec3b7b01-920d-4ad5-9a6b-6360afbada2a"
},
"ColumnName": "全名"
"ColumnName": "工时核定方式"
},
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "默认时薪",
"GUID": "32e094df-b3d7-41fb-b64a-bedb6e0dbd3b"
"TableName": "View_项目统计信息",
"ColumnName": "项目预算工时",
"GUID": "c3f88088-ff8f-4ba4-b4b8-0b9b680f51b1"
},
"ColumnName": "默认时薪"
"ColumnName": "项目预算工时"
},
{
"BindingInfo": {
"TableName": "View_项目统计信息",
"ColumnName": "总核定工时",
"GUID": "7c0f01a0-76c6-4b67-85f4-4c0e4455503e"
},
"ColumnName": "总核定工时"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.TextCESqlCondition, ForguncyDataAccess",
"CompareType": 8,
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "92e828b4-ed0b-4537-8274-16bfe9f17ad7"
"TableName": "View_项目统计信息",
"ColumnName": "项目ID",
"GUID": "f6308398-2aec-4b4a-9e2a-ec524facb605"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人"
"SerializeProperty": "=项目ID"
}
}
},
"TopCount": "1"
},
"ID": "f6ffae1d6c224289b79d71d3369d42e2"
"ID": "4068a409eade48e59173917d96d60bf8"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -138,319 +152,372 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
"SerializeProperty": "=项目统计"
}
},
"value": "%Null%"
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": "1",
"ID": "c54f363fdd1243ab9ebb70c447e54aa0"
}
],
"ID": "1fbb1887-5dc0-47d8-82bd-93ba11b19585"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.严格模式"
}
},
"value": "1"
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
"value": "0",
"compareType": 2
},
{
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.总核定工时+预算工时"
}
},
"value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目统计.项目预算工时"
},
"compareType": 2
}
]
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务预算工时超标,请修改或申请新的预算。"
}
],
"ID": "53f4187a-3af5-4705-9047-e23ca8c51a4e"
},
{
"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": "=父任务ID"
}
},
"value": "%Null%"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": "1",
"ID": "fc1c177d0f8146fe971c98817bc9a68d"
}
],
"ID": "8621eda5-c90a-4e21-bc4e-fe7f3cf5bb76"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "父任务",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "71447dd9-ed15-40d3-8c95-35af02be1228"
},
"ColumnName": "层级"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "a11173ee-ce04-46d5-a2fe-57bac8f3d19f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
"TopCount": "1"
},
"ID": "a739bad14f7e43d0bfa3c64950d43eed"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+1"
},
"ID": "578a03f2bc28443291e158813a67f853"
}
],
"ID": "608074a6-c246-4740-b2b9-22d68cbfa8d9"
}
]
},
"ColumnName": "层级"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "a11173ee-ce04-46d5-a2fe-57bac8f3d19f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
"TopCount": "1"
},
"ID": "b61ebbfdb99e4ab4b532f442c4ccf95c"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "层级",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务.层级+1"
},
"ID": "50af90520fcd4a5aa3def7f06c79bf0d"
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "08af72b6-edaf-4d60-a5b9-9a416fa340e6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "b67853cb-e11a-45e7-a157-a39f2ed30957"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "ae0e9518-a034-41fc-915c-77240b405ea6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "c982c67a-6248-442a-a585-f64fe62d2680"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "32733259-ed48-485c-855b-b773522f34b7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "190579b6-d2d8-4b11-a61c-84831351451e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "7814d8a0-4316-4e3d-a2fb-1419c4820881"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "de35ab3e-835d-4cc3-b8dc-fa36e5212b69"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "4e7e93dd-43ef-4a30-ac01-6884fb764d4e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "60673be5-8743-4376-a620-0710929824eb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "e22df11a-00e2-43d3-b91f-709f94649021"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "4cd5444f-2718-4baf-aa2e-f9d6915f4e46"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=层级"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务预算工时",
"GUID": "d3098515-dcd2-4140-9f49-4c1434e6f61c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=预算工时"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "5dd1d998-9b31-437b-acf4-6f039fb1e101"
},
"Value": "0"
}
],
"ParamNameToSaveNewRowValue": "新任务"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "2e28aac6-1fb2-46fc-a19d-ab41520eead3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "f8082e24-0691-48e8-a425-32659221befd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "b83be749-881b-42fc-ac00-1f4a7e4004fe"
},
"Value": "%CurrentUser%"
}
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功"
}
],
"ID": "42ba3bd5-cbbe-4b9d-b1ad-4d3c7fddfbce"
}
],
"Comments": "如果任务设置了预算工时,则检测是否超标"
}
],
"ID": "542b405b-d3b4-425a-88aa-f2085e26ef9b"
}
]
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "b04306d4-7201-4eb8-948a-4e21ccd3c19b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "父任务ID",
"GUID": "78b4a98e-eac4-47aa-aa4e-1fc168873d15"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=父任务ID"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "9236bf4b-f458-443b-9d42-b22de80d2623"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务标题"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "执行者",
"GUID": "7de19a46-9ff6-41eb-b644-bd6fc0022884"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=执行人"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "开始时间",
"GUID": "12545857-1a69-491a-afe2-69d52ba3adb1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=开始日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "结束时间",
"GUID": "f9d9e102-8ddc-430a-83c9-6759918c3bf7"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=结束日期"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务类型",
"GUID": "74a0db34-6116-4c14-9275-820e0e7bedf1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务类型"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "分组ID",
"GUID": "afa4c154-4cf6-497b-b55f-799bf4d3782a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务分组"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "版本",
"GUID": "1aa2c146-4c85-4bf1-afef-f5ed637646fc"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务版本"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务说明",
"GUID": "18b091f5-71e5-452e-9a52-7a608c1de521"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务说明"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "备注",
"GUID": "4bd247ec-5f3c-410a-86ac-5f5900174fa2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=备注"
}
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务状态",
"GUID": "bfd5eced-642a-4fa0-a515-d004107749c3"
},
"Value": "0"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "层级",
"GUID": "745dab60-5ec4-45f1-b77a-4547247937af"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=层级"
}
}
],
"ParamNameToSaveNewRowValue": "新任务"
"ID": "159e6b8d-e674-41dd-97a9-0722693f416f"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=参与人"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "任务成员表",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "f7aff15e-7a00-4c45-bb96-2c3fda9c9640"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=新任务.ID"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "e616fd0b-0315-4818-be45-20c6cf69073c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.用户名"
}
},
{
"BindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务时薪",
"GUID": "61bbc717-8d82-45cf-8176-8e06d009bf30"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.默认时薪"
}
}
]
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "项目不存在"
}
]
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "e39baf44-b9b5-4142-800d-78993fb0d0a6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "5d49127d-ef06-420e-ab9c-66b073739b36"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"新增任务[\"&任务标题&\"]\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "1957de38-d49e-4123-a364-b267cd6ff3c5"
},
"Value": "%CurrentUser%"
}
]
],
"ID": "9de2f0ca-80c4-4f6c-a3c9-772972beef5c"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "新增成功"
}
]
},

View File

@@ -39,42 +39,44 @@
"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": "bf631fc5-2aea-4f67-8c3e-5687fcd17db1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
"TableName": "任务表",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "f86b2436-5824-47c8-80e9-7deaa1385b6b"
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务工时表",
"ColumnName": "执行人",
"GUID": "2a652f1e-a4f3-4c21-83cf-0e8546ac250c"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
}
]
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "85d6de7c-6adf-4725-bfea-d450b404f74e"
},
"ColumnName": "任务名称"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "5f9bb9c4-f177-4206-9975-eaeb99acc1de"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
"NullFormulaValueQueryPolicy": 0
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "779d1a620e1f4c5fb9e69747944b537b"
"ID": "a0db2ab08aca46578fc299c091dccadf"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
@@ -86,214 +88,143 @@
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=报工数量"
"SerializeProperty": "=任务信息"
}
},
"value": "0"
"value": "%Null%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "任务信息",
"ParameterName": "成员全名",
"TableValue": {
"TableName": "任务表",
"TableValueType": 1,
"TableName": "用户信息视图",
"OnlyGetValue": true,
"TableValueType": 0,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "项目ID",
"GUID": "f86b2436-5824-47c8-80e9-7deaa1385b6b"
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "9dd6b21a-caef-4226-9747-b359dea02e9b"
},
"ColumnName": "项目ID"
},
{
"BindingInfo": {
"TableName": "任务表",
"ColumnName": "任务名称",
"GUID": "85d6de7c-6adf-4725-bfea-d450b404f74e"
},
"ColumnName": "任务名称"
"ColumnName": "全名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务表",
"ColumnName": "ID",
"GUID": "5f9bb9c4-f177-4206-9975-eaeb99acc1de"
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "d91c3fdb-7b4a-4a6c-81e5-2e83e3d1f3b9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
"SerializeProperty": "=成员用户名"
}
},
"TopCount": "1"
},
"ID": "8174cfc9dc9c4c6e990ea8a6e0cc7dd4"
"ID": "fe3fe24e8d3b43c1aa94c775b600d985"
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"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": "用户信息视图",
"OnlyGetValue": true,
"TableValueType": 0,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "9dd6b21a-caef-4226-9747-b359dea02e9b"
},
"ColumnName": "全名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "d91c3fdb-7b4a-4a6c-81e5-2e83e3d1f3b9"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
},
"TopCount": "1"
},
"ID": "c3a79e37337f461e92466b13d96434af"
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
"CommandList": [
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"$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": "任务成员表",
"UpdateType": "delete",
"ShowConfirm": true,
"ConfirmText": "您确定要删除吗?",
"RowsToUpdate": 1,
"RowsToUpdateCondition": {
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
"SubConditions": [
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "任务ID",
"GUID": "17bed3eb-36f7-46c3-b030-c125facc33ec"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "a66e269f-657c-4cd7-b545-5b61dc9ed8c8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
}
]
}
"ColumnName": "任务ID",
"GUID": "17bed3eb-36f7-46c3-b030-c125facc33ec"
},
{
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "16af2943-b274-4526-a1a1-1d0b184df4e5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "00834ae4-957a-482a-91f9-fdd15fef7b25"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"任务[\"&任务信息.任务名称&\"]将\"&成员全名&\"移除\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "1b67fbcf-23b4-4e5b-a3a0-c9a49cb17903"
},
"Value": "%CurrentUser%"
}
]
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务ID"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "移除成功"
}
],
"ID": "ab21317f-2506-4fe8-a7ec-d09f9f61b041"
},
{
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "任务成员表",
"ColumnName": "参与人",
"GUID": "a66e269f-657c-4cd7-b545-5b61dc9ed8c8"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员用户名"
}
}
]
}
},
{
"CommandList": [
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "任务不存在"
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "ae633e9d-0f9e-44ce-b747-40c862d1d724"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=任务信息.项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "63a3c6b1-ee94-4a1d-b425-354ee5c13492"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"任务[\"&任务信息.任务名称&\"]将\"&成员全名&\"移除\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "41d80804-ee0e-4f3e-8de1-449186002d68"
},
"Value": "%CurrentUser%"
}
],
"ID": "e4ab9b0e-5575-4b8a-84af-d39b4b83a0cc"
]
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "移除成功"
}
],
"ID": "f7660baa-d639-445f-9930-b1e5f9302742"
"ID": "0f6d22da-338b-4926-932c-a486ef40a5f8"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员存在报工记录,无法移除!"
"Message": "任务不存在"
}
],
"ID": "2fb8372f-1918-45c1-b98a-ac005a8081f5"
"ID": "15636350-a0ee-41fe-8b53-615843115301"
}
]
}

View File

@@ -198,7 +198,7 @@
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "成员ID",
"ParamName": "执行人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=成员ID"

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,145 @@
{
"Name": "更新用户配置",
"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
}
},
{
"Name": "负荷",
"DataValidationInfo": {}
},
{
"Name": "默认时薪",
"DataValidationInfo": {}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "邮件",
"GUID": "62e678a5-f9ee-410d-bd98-e5a95556d6ed"
},
"ColumnName": "邮件"
},
{
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "2226f68b-3c3c-4d6c-a5eb-aac00b02c951"
},
"ColumnName": "全名"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "e7c9e67f-4354-448f-a5b8-0df81d27d6be"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
}
},
"TopCount": "1"
},
"ID": "4d7d73e4d30f4a8eb1017158c0e2adac"
},
{
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
"OperationType": "202",
"CommandOperator": {
"$type": "UserManagementCommandsV2.UpdateUserOperator, UserManagementCommandsV2",
"UserName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
},
"FullName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.全名"
},
"Email": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户.邮件"
},
"ExtendedProperties": [
{
"Name": "负荷",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=负荷"
}
},
{
"Name": "默认时薪",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=默认时薪"
}
}
]
}
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "保存成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}

View File

@@ -84,7 +84,7 @@
}
}
},
"ID": "26c5cca1321e4452a0571822eda70f9d"
"ID": "5a0ad3f6027f47d6b62484d516aa2e03"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
@@ -205,11 +205,12 @@
]
}
],
"ID": "747cdcdd-8f33-49f2-bac1-c05fc36b2602"
"ID": "afcc2411-1b9d-4211-9b98-d668eb09da45"
}
]
}
]
],
"Comments": "查找任务成员表里的成员"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
@@ -247,7 +248,8 @@
}
}
},
"ID": "b61a6630f13f4d60a260243f7ba8d01e"
"ID": "e06003e76e034598b3a4059476852ba3",
"Disabled": true
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
@@ -340,11 +342,13 @@
}
}
],
"ID": "472d8e9e-a7a8-4def-bdbd-c74cb220ddd4"
"ID": "09ec1c75-f0a0-4ffa-a4b0-a5049f63561c"
}
]
}
]
],
"Comments": "将多余的项目成员剔除",
"Disabled": true
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",

View File

@@ -0,0 +1,215 @@
{
"Name": "移除项目成员",
"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": "项目ID",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "成员用户名",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"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"
}
},
{
"$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
}
]
}
},
"ID": "2cffba6c6bea4272bc627c5f7455e410"
},
{
"$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": "0"
},
"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.UpdateDataTableCommand, ServerDesignerCommon",
"TableName": "项目动态",
"UpdateType": "add",
"ShowConfirm": false,
"UpdateBindingValues": [
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目ID",
"GUID": "1136590a-6f78-4586-8611-9c3a0ee7b2a2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=项目ID"
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "项目动态",
"GUID": "54034bbd-5b74-4ea9-9411-1b4646b2b513"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"将成员\"&成员用户名&\"从项目里移出\""
}
},
{
"BindingInfo": {
"TableName": "项目动态",
"ColumnName": "执行人",
"GUID": "60fa8f7a-e378-431e-b287-01e5b8f9a1bf"
},
"Value": "%CurrentUser%"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "删除成功"
}
],
"ID": "c893eeab-d955-4c20-9127-4a65b34bdfda"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "该成员已参与到具体任务,请先从任务中剔除后再进行删除!"
}
],
"ID": "0cfa5973-d6d6-4c62-9e7f-b6d92248dd52"
}
]
}
]
}