IObjectSpace objectSpace =Application.CreateObjectSpace(); //创建新的ObjectSpace;
e.ShowViewParameters.CreatedView = (Xpand.ExpressApp.XpandDetailView)Application.CreateDetailView(objectSpace, objectSpace.GetObject(dyship)); //创建DetailView
e.ShowViewParameters.TargetWindow = TargetWindow.NewModalWindow;
e.ShowViewParameters.Context = TemplateContext.View;
e.ShowViewParameters.CreateAllControllers = true;