代码操作(系统/自定义)菜单按钮原创
金蝶云社区-独眼兽
独眼兽
10人赞赏了该文章 649次浏览 未经作者许可,禁止转载编辑于2023年09月21日 10:45:00


代码操作系统菜单按钮事件 ==》this.View.InvokeFormOperation("操作编码");

代码操作自定义菜单按钮事件==》((IDynamicFormViewService)this.View).MainBarItemClick("标识");


例如 :        

                调用保存:this.View.InvokeFormOperation(FormOperationEnum.Save);  

                 调用提交:this.View.InvokeFormOperation(FormOperationEnum.Submit );  

        系统内置可用操作码如下:

 

                                                                新建操作

                                                                New = 0,

                                                                删除操作

                                                                Delete = 1,

                                                                编辑操作

                                                                Edit = 2,

                                                                查看操作

                                                                View = 3,

                                                                暂存

                                                                Draft = 4,

                                                                保存操作

                                                                Save = 5,

                                                                提交

                                                                Submit = 6,

                                                                审核操作

                                                                Audit = 7,

                                                                反审核操作

                                                                UnAudit = 8,

                                                                作废操作

                                                                Cancel = 9,

                                                                反作废操作

                                                                UnCancel = 10,

                                                                关闭操作

                                                                Close = 11,

                                                                单据转换下推

                                                                Push = 12,

                                                                单据转换上拉

                                                                Draw = 13,

                                                                刷新

                                                                Refresh = 14,

                                                                禁用

                                                                Forbid = 15,

                                                                反禁用

                                                                Enable = 16,

                                                                复制

                                                                Copy = 17,

                                                                过滤

                                                                Filter = 18,

                                                                预览

                                                                PrintPreview = 19,

                                                                打印

                                                                Print = 20,

                                                                按列表引出

                                                                Export = 21,

                                                                按模版引出

                                                                ExportData = 22,

                                                                引入

                                                                ImportData = 23,

                                                                空操作

                                                                DoNothing = 24,

                                                                分配

                                                                Allocate = 25,

                                                                上查

                                                                TrackUp = 26,

                                                                下查

                                                                TrackDown = 27,

                                                                弹性域窗口关闭

                                                                FlexClose = 28,

                                                                按引入模板引出数据

                                                                ExportDataByImportTemplate = 29,

                                                                预览选择行

                                                                PrintPreviewSelect = 30,

                                                                打印选择行

                                                                PrintSelect = 31,

                                                                引入模板设置

                                                                ImportTemplateSetting = 32,

                                                                引出格式设置

                                                                ExportSetting = 33,

                                                                撤销

                                                                CancelAssign = 34

                                                                                    

图标赞 10
10人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!