{"id":329,"date":"2023-11-17T15:36:38","date_gmt":"2023-11-17T07:36:38","guid":{"rendered":"https:\/\/live-d365fo.pantheonsite.io\/?p=329"},"modified":"2023-11-30T10:24:35","modified_gmt":"2023-11-30T02:24:35","slug":"how-to-create-ssrs-report-in-d365fo-part3-contract-class","status":"publish","type":"post","link":"https:\/\/dev-d365fo.pantheonsite.io\/how-to-create-ssrs-report-in-d365fo-part3-contract-class\/","title":{"rendered":"\u5982\u4f55\u5728D365FO\u521b\u5efaSSRS\u62a5\u8868\uff08\u4e09\uff09Contract Class\uff08how-to-create-ssrs-report-in-d365fo-part3-contract-class\uff09"},"content":{"rendered":"\n
\u5b58\u653e\u62a5\u8868\u6253\u5370\u65f6\u4f7f\u7528\u7684\u53c2\u6570<\/p>\n\n\n\n
\n[\n DataContractAttribute,\n SysOperationGroupAttribute('Parameters', \"@SYS28007\", '1'),\n SysOperationGroupAttribute('ViewGroup', \"@SYS5252\", '2')\n]\npublic class Demo_InventJournalTransTransferContract implements SysOperationValidatable\n{\n TransDate\t\t\t\t\t\t\tfromDate,toDate;\n InventDimViewContract InventDimViewContract;\n\n\n [\n DataMemberAttribute(\"From date\"),\n SysOperationLabelAttribute(literalstr(\"From date\")),\n SysOperationDisplayOrderAttribute('1')\n ]\n public TransDate parmFromDate(TransDate _fromDate = fromDate)\n {\n fromDate = _fromDate;\n return fromDate;\n }\n\n [\n DataMemberAttribute(\"To date\"),\n SysOperationLabelAttribute(literalstr(\"To date\")),\n SysOperationDisplayOrderAttribute('2')\n ]\n public TransDate parmToDate(TransDate _toDate = toDate)\n {\n toDate = _toDate;\n return toDate;\n }\n\n [\n DataMemberAttribute('InventDimViewContract')\n ]\n public InventDimViewContract parmInventDimViewContract(\n InventDimViewContract _inventDimViewContract = inventDimViewContract\n )\n {\n inventDimViewContract = _inventDimViewContract;\n\n return inventDimViewContract;\n }\n\n public boolean validate()\n {\n boolean isValid = true;\n \n return isValid;\n }\n\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"Contract \u5b58\u653e\u62a5\u8868\u6253\u5370\u65f6\u4f7f\u7528\u7684\u53c2\u6570 \u5b9e\u73b0\u63a5\u53e3 SysOperationValidatable [ DataContractAttribute, SysOperationGroupAttribute(‘Parameters’, “@SYS28007”, ‘1’), SysOperationGroupAttribute(‘ViewGroup’, “@SYS5252”, ‘2’) ] public class Demo_InventJournalTransTransferContract implements SysOperationValidatable { TransDate fromDate,toDate; InventDimViewContract InventDimViewContract; [ DataMemberAttribute(“From date”), SysOperationLabelAttribute(literalstr(“From date”)), SysOperationDisplayOrderAttribute(‘1’) ] public TransDate parmFromDate(TransDate _fromDate = fromDate) { fromDate = _fromDate; return fromDate; } [ DataMemberAttribute(“To date”), SysOperationLabelAttribute(literalstr(“To date”)), SysOperationDisplayOrderAttribute(‘2’) ] public TransDate parmToDate(TransDate _toDate = …<\/p>\n