private void 显示流程_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            var os =(ObjectSpace as XPObjectSpace);
            var flowInstance = new FlowInstance(os.Session, this.View.CurrentObject as 单据);

            e.ShowViewParameters.CreatedView = Application.CreateDetailView(os, flowInstance, false);

            e.ShowViewParameters.NewWindowTarget = NewWindowTarget.Separate;
            e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
            var dc = new DialogController();
            dc.SaveOnAccept = false;
            e.ShowViewParameters.Controllers.Add(dc);
        }
        private void 显示流程_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            var os           = (ObjectSpace as XPObjectSpace);
            var flowInstance = new FlowInstance(os.Session, this.View.CurrentObject as 单据);

            e.ShowViewParameters.CreatedView = Application.CreateDetailView(os, flowInstance, false);

            e.ShowViewParameters.NewWindowTarget = NewWindowTarget.Separate;
            e.ShowViewParameters.TargetWindow    = TargetWindow.NewModalWindow;
            var dc = new DialogController();

            dc.SaveOnAccept = false;
            e.ShowViewParameters.Controllers.Add(dc);
        }