{ "Rows": { "RowColumnAttachedInfos": { "2": { "GridRowColumnDefinition": { "DesignLengthInPixel": 15.0 } }, "3": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "4": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "5": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "7": { "GridRowColumnDefinition": { "DesignLengthInPixel": 15.0 } }, "8": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "9": { "GridRowColumnDefinition": { "DesignLengthInPixel": 35.0 } }, "10": { "GridRowColumnDefinition": { "DesignLengthInPixel": 24.0 } }, "11": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "12": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "13": { "GridRowColumnDefinition": { "DesignLengthInPixel": 24.0 } }, "14": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "15": { "GridRowColumnDefinition": { "DesignLengthInPixel": 35.0 } }, "16": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "17": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "18": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "20": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "22": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0, "IsHidden": true } } }, "InLogicalVisibleIndexes": [ 22 ], "Count": 23, "DefaultSize": 32.0 }, "Cols": { "RowColumnAttachedInfos": { "0": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "1": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "2": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "3": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "5": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "6": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "7": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "8": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "9": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "10": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "11": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "12": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "13": { "GridRowColumnDefinition": { "DesignLengthInPixel": 32.0 } }, "14": { "GridRowColumnDefinition": { "DesignLengthInPixel": 24.0 } }, "15": { "GridRowColumnDefinition": { "DesignLengthInPixel": 24.0 } }, "35": { "GridRowColumnDefinition": { "DesignLengthInPixel": 303.0 } } }, "Count": 40, "DefaultSize": 32.0 }, "Values": { "1,1": "申请信息", "1,16": "总金额:", "1,18": 0, "3,1": "申请日期", "3,8": "请款人", "4,8": "%CurrentUser.UserName%", "6,1": "收款账户", "8,1": "户名", "11,1": "开户行", "14,1": "帐号", "17,1": "备注" }, "AttachInfos": { "1,18": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "总收益", "GUID": "f9210e7f-eb9b-4bfb-9073-046106c0f6a8" } }, "3,16": { "CellType": { "$type": "ElementUI.TableCellType, ElementUI", "ElTableName": "EL表格1", "SelectionChangedCommand": { "$type": "GrapeCity.Forguncy.Commands.CustomCommandObject, Forguncy.Commands", "Commands": [ { "$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon", "ParameterName": "计算总金额", "ParameterValue": "0", "ID": "2edd107c63954b7aa8dc6e021e539310" }, { "$type": "Forguncy.Model.RunJavaScriptCommand, ServerDesignerCommon", "JavaScript": "/**\r\n * 计算 JSON 数组中指定属性的总和\r\n * @param {Array} jsonArray - 包含对象的 JSON 数组\r\n * @param {string} propertyName - 要计算总和的属性名称\r\n * @returns {number} - 属性值的总和\r\n */\r\nfunction calculateSum(jsonArray, propertyName) {\r\n let sum = 0;\r\n if (Array.isArray(jsonArray)) {\r\n for (const item of jsonArray) {\r\n if (item.hasOwnProperty(propertyName)) {\r\n const propertyValue = parseFloat(item[propertyName]);\r\n if (!isNaN(propertyValue)) {\r\n sum += propertyValue;\r\n }\r\n }\r\n }\r\n }else{\r\n console.log(\"传入的参数不是JSON数组\")\r\n }\r\n\r\n return sum;\r\n}\r\nvar data = Forguncy.CommandHelper.getVariableValue(\"选择项\")\r\nconst totalPrices = calculateSum(data, \"收益\");\r\nForguncy.CommandHelper.setVariableValue(\"计算总金额\", totalPrices);\r\n", "ID": "b1a8193c7a4c43d4a4de556c70c22964" }, { "$type": "CollectionOperationKit.ClientSideArrayOp, CollectionOperationKit", "Operation": 16, "InParamaterName": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!选择项" }, "OperationParamaterAName": ",", "OperationParamaterBName": "ID", "OutParamaterName": "ID字符串" }, { "$type": "Forguncy.Model.SetCellPropertyCommand, ServerDesignerCommon", "PropertyItemsList": [ { "TargetCells": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!请款单ID" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!ID字符串" } }, { "TargetCells": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!总金额" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!计算总金额" } } ] } ], "ParamProperties": { "selection": "选择项" } }, "bindingOptions": { "$type": "ServerDesignerCommon.Model.BindingDataSourceModel, ServerDesignerCommon", "TableName": "View_任务工时统计", "BindingInfos": [ { "GUID": "59eda730-19f6-4548-ac08-664a8a9ad2b9", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "ID", "GUID": "1fa2c161-639e-4571-bc01-d4804b0d5498" }, "ColumnName": "ID" }, { "GUID": "ab8ed469-769b-4c69-af59-f4ac1933d844", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "日期", "GUID": "7999cdcf-fa52-4f82-a4e8-ee4f3223c436" }, "ColumnName": "日期" }, { "GUID": "eecdf8c2-06c3-433d-afea-0a81b23193ec", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "项目ID", "GUID": "c54bd1d6-b90e-460b-9864-1a4881d728b2", "RelationBinding": { "RelatedTable": "项目表", "RelatedColumn": "ID", "DisplayColumn": "项目名称" } }, "ColumnName": "项目名称" }, { "GUID": "d1deca99-672f-46a4-91eb-16316e069a85", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "任务ID", "GUID": "c8e2793d-fe80-4871-90f6-dd8198b27678", "RelationBinding": { "RelatedTable": "任务表", "RelatedColumn": "ID", "DisplayColumn": "任务名称" } }, "ColumnName": "任务名称" }, { "GUID": "95c6c833-b9b2-4d5a-be6d-dd1598c1d4ca", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "时薪单价", "GUID": "821ad326-ddbe-41f8-8c88-d34a3d672b03" }, "ColumnName": "时薪单价" }, { "GUID": "c78c7539-9d30-4d31-b52f-87bba0f4162c", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "提成系数", "GUID": "6362dc06-4e23-452b-a74c-83b0c34b4d34" }, "ColumnName": "提成系数" }, { "GUID": "3b210a5b-d615-4fa7-a416-7d6102ad8315", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "实际工时", "GUID": "5fff5f41-a4f8-4f91-a020-1e64c598f8c2" }, "ColumnName": "实际工时" }, { "GUID": "80a0a5a3-9165-4569-b190-94d3adaa802a", "BindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "计算提成", "GUID": "cb5082b7-11f7-4dc2-9a8d-a8b0dc01db1e" }, "ColumnName": "收益" } ], "SqlCondition": { "$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess", "ColumnBindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "请款单ID", "GUID": "4fd3b85d-fc62-4b2c-9993-962183b033ff" }, "Value": { "$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon", "SerializeProperty": "=审批结算申请单!请款单ID" } }, "OrderBySqlCondition": { "OrderByColumns": [ { "ColumnBindingInfo": { "TableName": "View_任务工时统计", "ColumnName": "日期", "GUID": "e2a5f195-a982-4998-a8a1-8cebd1dd0a52" }, "Order": 0 } ] }, "CustomColumns": [] }, "autoGenerateColumnsByDataSource": false, "columns": [ { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "ID", "label": "ID", "width": 60, "align": "center", "headerAlign": "center", "colfixed": "false", "resizable": false, "hide": true, "key": "507db75a-ef63-4d9c-9108-32f531b6bba8" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "日期", "label": "日期", "formatStr": "yyyy/MM/dd", "width": 150, "align": "center", "headerAlign": "center", "colfixed": "left", "key": "e67c50d0-22c7-45ff-b9fb-4d63459443b0" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "项目名称", "label": "项目名称", "align": "center", "headerAlign": "center", "colfixed": "false", "showOverflowTooltip": true, "key": "6d7731f8-8ff9-4011-af60-eed75614f5bc" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "任务名称", "label": "任务名称", "align": "center", "headerAlign": "center", "colfixed": "false", "showOverflowTooltip": true, "key": "f4f6ad57-3367-466b-9a73-3e5a9d01f060" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "核定方式", "label": "核定方式", "width": 100, "align": "center", "headerAlign": "center", "colfixed": "false", "key": "e4938a5d-fe57-402f-998e-5580dc159a61" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "时薪单价", "label": "时薪单价", "formatStr": " ¥#,##0.00_)", "width": 150, "align": "center", "headerAlign": "center", "colfixed": "false", "key": "7ec6e191-4b18-4380-9dd8-77b20fcafdee" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "提成系数", "label": "提成系数", "formatStr": "0%", "width": 100, "align": "center", "headerAlign": "center", "colfixed": "false", "key": "a849e367-79e0-45ad-9a9a-285a0f1abb3f" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "核定工时", "label": "核定工时", "width": 150, "align": "center", "headerAlign": "center", "colfixed": "false", "key": "48a9e9c7-1719-46fe-adea-de68a63d6125" }, { "$type": "ElementUI.ColumnSetting, ElementUI", "dataColumnName": "收益", "label": "收益", "formatStr": " ¥#,##0.00_)", "width": 150, "align": "center", "headerAlign": "center", "colfixed": "false", "key": "2c255bd0-201a-491b-a719-34387d8d50ea" } ], "actionButtons": [ { "$type": "ElementUI.ActionButton, ElementUI", "type": "button", "Name": "编辑", "shape": "default" }, { "$type": "ElementUI.ActionButton, ElementUI", "type": "button", "Name": "删除", "styleType": "Accent 5", "shape": "default" } ], "sumText": "合计", "size": "small", "showSelectColumn": true } }, "4,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "请款日期", "GUID": "87fce1c8-fecc-4870-b053-37fb8eff263b" } }, "4,8": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "请款人", "GUID": "7c31fb7c-c268-4500-b989-092426c29bcd", "AttachType": { "$type": "ForguncyDataAccess.UserColumnAttachObj, ForguncyDataAccess", "UserColumnAttachType": 1 } } }, "9,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "户名", "GUID": "6c75cd77-4206-4b49-8572-3715acf4d8b6" }, "CellType": { "$type": "ElementUI.InputCellType, ElementUI", "CommandList": [], "UIPermissions": [ { "Scope": 2, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 1, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 4, "AllowRoles": [ "FGC_Anonymous" ] } ], "type": "text", "placeholder": "请输入", "resize": "none" } }, "12,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "开户行", "GUID": "a771436a-3ff4-441f-929a-b71f7d91cadb" }, "CellType": { "$type": "ElementUI.InputCellType, ElementUI", "CommandList": [], "UIPermissions": [ { "Scope": 2, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 1, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 4, "AllowRoles": [ "FGC_Anonymous" ] } ], "type": "text", "placeholder": "请输入", "resize": "none" } }, "15,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "帐号", "GUID": "f8634fef-548d-4abd-8631-cc6bc999343c" }, "CellType": { "$type": "ElementUI.InputCellType, ElementUI", "CommandList": [], "UIPermissions": [ { "Scope": 2, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 1, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 4, "AllowRoles": [ "FGC_Anonymous" ] } ], "type": "text", "placeholder": "请输入", "resize": "none" } }, "18,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "备注", "GUID": "7237837e-60db-4121-bfa7-9d904ec95d13" }, "CellType": { "$type": "ElementUI.InputCellType, ElementUI", "CommandList": [], "UIPermissions": [ { "Scope": 2, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 1, "AllowRoles": [ "FGC_Anonymous" ] }, { "Scope": 4, "AllowRoles": [ "FGC_Anonymous" ] } ], "type": "textarea", "placeholder": "请输入", "resize": "vertical" } }, "22,1": { "BindingInfo": { "TableName": "收益请款单表", "ColumnName": "ID", "GUID": "5e739753-f9b5-44f4-8a72-0c1d2dd9c0dd" } } }, "StyleDatas": { "Styles": [ { "FontFamily": 0, "FontSize": 13.333333333333332 }, { "FontFamily": 0, "FontSize": 16.0, "Foreground": 1 }, { "BorderRight": 0 }, { "FontFamily": 0, "FontSize": 13.333333333333332, "Formatter": 3 }, { "FontFamily": 0, "FontSize": 14.666666666666666, "Foreground": 4, "Formatter": 5, "HorizontalAlignment": 6 }, { "FontFamily": 0, "FontSize": 14.666666666666666, "Formatter": 7 }, { "FontSize": 16.0, "Foreground": 1 }, { "FontSize": 14.666666666666666 }, { "FontFamily": 0, "FontSize": 14.666666666666666 } ], "Types": { "Strs": [ "Body", "black", "Background 2 -10", "[AUTO]General", "#FFFF0000", "¥#,##0_);[Red](¥#,##0)", "Left", "yyyy\"年\"m\"月\"d\"日\";@" ], "Borders": [ { "Color": 2 } ] }, "CellStyles": { "1,0": 0, "1,1": 1, "1,14": 2, "1,15": 0, "1,16": 3, "1,17": 0, "1,18": 4, "1,19": 0, "1,20": 0, "1,21": 0, "1,22": 0, "2,14": 2, "3,1": 3, "3,2": 0, "3,3": 0, "3,4": 0, "3,5": 0, "3,6": 0, "3,7": 0, "3,8": 3, "3,9": 0, "3,10": 0, "3,11": 0, "3,12": 0, "3,13": 0, "3,14": 2, "3,16": 0, "4,1": 5, "4,2": 0, "4,3": 0, "4,4": 0, "4,5": 0, "4,6": 0, "4,7": 0, "4,8": 5, "4,14": 2, "5,14": 2, "6,1": 6, "6,14": 2, "7,14": 2, "8,14": 2, "9,1": 7, "9,14": 2, "10,1": 7, "10,2": 7, "10,3": 7, "10,4": 7, "10,5": 7, "10,6": 7, "10,14": 2, "11,1": 3, "11,2": 0, "11,3": 0, "11,4": 0, "11,5": 0, "11,6": 0, "11,14": 2, "12,1": 8, "12,14": 2, "13,14": 2, "14,1": 3, "14,2": 0, "14,3": 0, "14,4": 0, "14,5": 0, "14,6": 0, "14,14": 2, "15,1": 8, "15,14": 2, "16,14": 2, "17,1": 3, "17,2": 0, "17,3": 0, "17,4": 0, "17,5": 0, "17,6": 0, "17,7": 0, "17,8": 0, "17,9": 0, "17,10": 0, "17,11": 0, "17,12": 0, "17,13": 0, "17,14": 2, "18,1": 8, "18,14": 2, "19,14": 2, "20,14": 2, "21,1": 8, "21,2": 8, "21,3": 8, "21,4": 8, "21,5": 8, "21,6": 8, "21,7": 8, "21,8": 8, "21,9": 8, "21,10": 8, "21,11": 8, "21,12": 8, "21,13": 8, "22,1": 0, "22,2": 0, "22,3": 0, "22,4": 0, "22,5": 0, "22,6": 0, "22,7": 0, "22,8": 0 }, "SheetStyle": { "FontFamily": 0, "FontSize": 13.333333333333332 } }, "Spans": [ "15,1,1,13", "4,1,1,6", "12,1,1,13", "9,1,1,13", "18,1,3,13", "3,16,18,23", "4,8,1,6", "1,18,1,5", "22,1,1,8" ], "PageInfo": { "$type": "Forguncy.Model.Pages.NormalPage, ServerDesignerCommon", "PermissionData": { "$type": "Forguncy.RbacPermission.Core.Impl.Page.PagePermissionData, Forguncy.RbacPermission.Core", "permissionResource": { "$type": "Forguncy.RbacPermission.Core.Impl.Page.PagePermissionResource, Forguncy.RbacPermission.Core" }, "permissionBindings": [ { "$type": "Forguncy.RbacPermission.Core.Impl.Page.PagePermissionBinding, Forguncy.RbacPermission.Core", "roleNames": [ "FGC_LoginUser" ] } ] }, "RowBreakLines": [], "RepeatRangeSettings": [] }, "PrintInfo": { "PaperSize": {}, "Margin": {} }, "BackgroundPictures": [ { "Name": "BackgroundPicture0", "DisplayName": "背景图1", "StyleInfo": { "Fill": "Accent 1 0" }, "IsAutomaticFill": false, "Location": "18,39", "Size": "3,18" }, { "Name": "28ba3e5b-a2a3-4ff8-886b-039c5c71beea.png", "DisplayName": "背景图2", "StyleInfo": { "Fill": "Accent 1 0" }, "IsAutomaticFill": false, "Location": "18,183", "Size": "3,18" } ], "CustomNames": [ { "Name": "请款单ID", "Formula": "审批结算申请单!$B$23" }, { "Name": "总金额", "Formula": "审批结算申请单!$S$2" } ] }//1hnx3qsxNU3fk9HlFs0yT/uyacDEIl5Si4zI3RltBZn+s8F7H7u+fXg6Vu+YDl+QDCDyPSu9U9vF+Ta0nQVGilJ9i55JZSWzfmksvJcnyn+T5RhYbV1XZjdgMaZdtjbESZQZK2AEn1Owtsd+w5THenYyUV7hvbRk62L5b4vKnemwOUBgPYKBGcSRo7ACXlRNCZvuD2rbvbROaWkvAJ+yEL5p80dPIn7dv6K7W6I0/Q7f0CEvn7Zp2+ZuCxGEcdf2IP/tL6VabCaKGiEfB+ntSZk2V4qqZTAk6DjPSKcnOuQrrnImVWup9L/EvG8TFT1x8Z59IeQzxqSDChXF4NhwCBqLonhBMmu30iDQ4kpucdX08N1igQgskk1/vL2vDSmFMdwBLbzWDXwAP7cFuL0PGFbh+PSnqd53iT+5Wk3zd4YsWI3IqCI76FEyWOylhJdGdPQSHCYXN0K/0luXXKUOML86qU9g9oNqoVvAJG+LOMBbTANfWP+S5RnYEAzhFgrj1hk/2eHFr7I/TNTJ6VpGo4HITqq9N030cmGXUqLnpIQHDXgjAoMkY/TIcZcYOm+Ul5ts+FWDLkKLv/5RJINGu3bXQ6bS6S6PckWMFhYT0RwL4vwqcDQBT8xEKJ/IIPrlELae1UZRC2sIaDPGWUC728at1eXhX3L36Qt6459NuY4rG58l8zO+ceAVtNqAIxJbNeoHvQB5JuEC8FOdNWJyptAzq5YeT97sCSbYS7zzKvlDqtrLGn5c2PP0kDihBz40Q6i9Zw5fuaZMo417ak9Ri828r2PZ+lBlOWP7xXK7VYovPWUH25Qsx/Dm8eYhzUqjNBcawaCv9jdEaafykyhGA2s8q7RwoL5Kwv/41YpagKh/rtVrn+NFdkP8SV+nmrbvETC59hyRmbmJoGU9OKI33A==|920