| | |
| | | |
| | | |
| | | customShow.getFormSetting = function (btnFlag) { |
| | | var ren = 1; |
| | | if (btnFlag == 'printableBtn') { |
| | | ren = customShow.options.formsetting['printable']; |
| | | } else if (btnFlag == 'exportBtn') { |
| | | ren = customShow.options.formsetting['exportable']; |
| | | } else if (btnFlag == 'rejectBtn') { |
| | | ren = customShow.options.formsetting['rejectable']; |
| | | } else if (btnFlag == 'submitBtn') { |
| | | ren = customShow.options.formsetting['submitable']; |
| | | } else if (btnFlag == 'auditableBtn') { |
| | | ren = customShow.options.formsetting['auditable']; |
| | | } else if (btnFlag == 'queryBtn') { |
| | | ren = customShow.options.formsetting['queryable']; |
| | | } else if (btnFlag == 'createBtn') { |
| | | ren = customShow.options.formsetting['createable']; |
| | | } else if (btnFlag == 'clearBtn') { |
| | | // ren = customShow.options.formsetting['clearable']; |
| | | ren = 1; |
| | | } else if (btnFlag == 'disposableBtn') { |
| | | // ren = customShow.options.formsetting['disposable']; |
| | | ren = 1; |
| | | //} else if (btnFlag == 'fromSaveBtn') { |
| | | // if(customShow.options.customShowFlag != '3'){//发布修改 李伟民 0120 |
| | | // ren = customShow.options.formsetting['saveable']; |
| | | // |
| | | // }else{ |
| | | // ren = 1; |
| | | // } |
| | | // ren = 1; |
| | | } else if (btnFlag == 'editableBtn') { |
| | | ren = customShow.options.formsetting['editableBtn'];//编辑按钮受权限控制 李伟民 0204 |
| | | // ren = 1; |
| | | } |
| | | return ren; |
| | | if(customShow.options.customShowFlag == '3' && btnFlag == 'saveable'){//发布修改 李伟民 0120 |
| | | ren = 1; |
| | | } else { |
| | | var ren = 1; |
| | | if (btnFlag == 'printableBtn') { |
| | | ren = customShow.options.formsetting['printable']; |
| | | } else if (btnFlag == 'exportBtn') { |
| | | ren = customShow.options.formsetting['exportable']; |
| | | } else if (btnFlag == 'rejectBtn') { |
| | | ren = customShow.options.formsetting['rejectable']; |
| | | } else if (btnFlag == 'submitBtn') { |
| | | ren = customShow.options.formsetting['submitable']; |
| | | } else if (btnFlag == 'auditableBtn') { |
| | | ren = customShow.options.formsetting['auditable']; |
| | | } else if (btnFlag == 'queryBtn') { |
| | | ren = customShow.options.formsetting['queryable']; |
| | | } else if (btnFlag == 'createBtn') { |
| | | ren = customShow.options.formsetting['createable']; |
| | | } else if (btnFlag == 'clearBtn') { |
| | | // ren = customShow.options.formsetting['clearable']; |
| | | ren = 1; |
| | | } else if (btnFlag == 'disposableBtn') { |
| | | // ren = customShow.options.formsetting['disposable']; |
| | | } else if (btnFlag == 'fromSaveBtn') { |
| | | ren = customShow.options.formsetting['saveable']; |
| | | // ren = 1; |
| | | } else if (btnFlag == 'editableBtn') { |
| | | ren = customShow.options.formsetting['editableBtn'];//编辑按钮受权限控制 李伟民 0204 |
| | | // ren = 1; |
| | | } |
| | | |
| | | } |
| | | return ren; |
| | | |
| | | } |
| | | var customLinkageAnalysis = customLinkageAnalysis || {}; |