Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        protected override void InitializeServiceComponent()
        {
            base.InitializeServiceComponent();
            ICommandsService commansSrv = this.GetServiceForThisTypeKey <ICommandsService>();

            this.EnabledDeciders.Add(commansSrv.GetCommandEnabledDecider <ExportExcelCommandEnabledDecider>());
        }
Exemple #2
0
        private void BrowseViewLoad(object sender, EventArgs e)
        {
            ICommandsService cmdSer = this.GetServiceForThisTypeKey <ICommandsService>();

            if (cmdSer.Commands.Contains("DisconfirmCommandForBrowseWindow"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["DisconfirmCommandForBrowseWindow"] as CommandBase;    //审核按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmBrowseEnabledDecider>());
            }
            if (cmdSer.Commands.Contains("DocumentDataDeleteCommand"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["DocumentDataDeleteCommand"] as CommandBase;            //删除按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmBrowseEnabledDecider>()); //^_^ 20171010 MODI BY HEHF FOR CBBM11709199 OLD:ConfirmEditorEnabledDecider
            }
            if (cmdSer.Commands.Contains("ModifyCommand"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["ModifyCommand"] as CommandBase;                        //修改按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmBrowseEnabledDecider>()); //^_^ 20171010 MODI BY HEHF FOR CBBM11709199 OLD:ConfirmEditorEnabledDecider
            }
        }
Exemple #3
0
        private void EditorLoad(object sender, EventArgs e)
        {
            ICommandsService cmdSer = this.GetServiceForThisTypeKey <ICommandsService>();

            if (cmdSer.Commands.Contains("Disconfirm"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["Disconfirm"] as CommandBase;    //审核按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmEditorEnabledDecider>());
            }
            if (cmdSer.Commands.Contains("DocumentDataDeleteCommand"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["DocumentDataDeleteCommand"] as CommandBase;    //删除按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmEditorEnabledDecider>());
            }
            if (cmdSer.Commands.Contains("ModifyCommand"))
            {
                CommandBase cmdConfirm = cmdSer.Commands["ModifyCommand"] as CommandBase;    //修改按钮
                cmdConfirm.EnabledDeciders.Add(cmdSer.GetCommandEnabledDecider <ConfirmEditorEnabledDecider>());
            }
        }