private void showObjectAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs args) { args.DialogController.Cancelling += DialogController_Cancelling; args.View = ObjectEditorHelper.CreateDetailView(Properties.Application, Properties.ObjectSpace, EditValue, Properties.EditValueTypeInfo.Type, Properties.ReadOnly); }
// Стиль отчета private void OwnedReportStyle_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { if (style == null) style = new ReportStyle(); IObjectSpace objectSpace = Application.CreateObjectSpace(); e.View = Application.CreateDetailView(objectSpace, style); e.DialogController.CancelAction.Active["StyleCancel"] = false; }
private void showDefaultEmployeeAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); DetailView detailView = Application.CreateDetailView(objectSpace, DefaultEmployee.GetInstance(objectSpace)); detailView.ViewEditMode = ViewEditMode.Edit; e.View = detailView; }
private void popuptest_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(Nota)); var nota = objectSpace.CreateObject <Nota>(); e.View = Application.CreateDetailView(objectSpace, nota); e.DialogController.CancelAction.Active.SetItemValue("notneeded", false); }
private void casePropertySelection_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { objectSpace = Application.CreateObjectSpace(typeof(BusinessObjects.CaseProperty)); var viewId = Application.FindLookupListViewId(typeof(BusinessObjects.CaseProperty)); CollectionSourceBase source = Application.CreateCollectionSource(objectSpace, typeof(BusinessObjects.CaseProperty), viewId); e.View = Application.CreateListView(viewId, source, true); }
void action_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(typeof(Service)); e.Context = TemplateContext.PopupWindow; e.View = Application.CreateDetailView(os, new OrderTemplate(((DevExpress.ExpressApp.Xpo.XPObjectSpace)os).Session)); ((DetailView)e.View).ViewEditMode = ViewEditMode.Edit; }
private void ShowNotesAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs args) { IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(Note)); string noteListViewId = Application.FindLookupListViewId(typeof(Note)); CollectionSourceBase collectionSource = Application.CreateCollectionSource(objectSpace, typeof(Note), noteListViewId); args.View = Application.CreateListView(noteListViewId, collectionSource, true); }
private void showSingletonAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(Singleton)); DetailView detailView = Application.CreateDetailView(objectSpace, objectSpace.GetObjects <Singleton>()[0]); detailView.ViewEditMode = ViewEditMode.Edit; e.View = detailView; }
private void ShowCustomers_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); string noteListViewId = Application.FindListViewId(typeof(Klient)); CollectionSourceBase collectionSource = Application.CreateCollectionSource(objectSpace, typeof(Klient), noteListViewId); e.View = Application.CreateListView(noteListViewId, collectionSource, true); }
private void WystawFakturyAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(); e.Context = TemplateContext.PopupWindow; e.View = Application.CreateDetailView(os, new InvoiceTemplate(((DevExpress.ExpressApp.Xpo.XPObjectSpace)os).Session)); ((DetailView)e.View).ViewEditMode = ViewEditMode.Edit; }
private void BuildSnapshotActionPop_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var obs = Application.CreateObjectSpace(); var target = obs.CreateObject<SnapshotTarget>(); var targetView = Application.CreateDetailView(obs, target); targetView.ViewEditMode = ViewEditMode.Edit; e.View = targetView; }
private void CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); DetailView detailView = Application.CreateDetailView(objectSpace, objectSpace.GetObjects <AboutCompanySingleton>()[0]); detailView.ViewEditMode = ViewEditMode.Edit; e.View = detailView; }
private void DActivo_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { _ObjectSpaceCore = this.Application.CreateObjectSpace(); _VistaPopup = this.Application.CreateDetailView(_ObjectSpaceCore, _ObjectSpaceCore.CreateObject <ParametroFecha>()); //para ver el parametro en web _VistaPopup.ViewEditMode = ViewEditMode.Edit; //end e.View = _VistaPopup; }
private void dodajSpotkanieAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var klient = (Customer)View.CurrentObject; IObjectSpace os = View.ObjectSpace.CreateNestedObjectSpace(); Meeting spotkanie = os.CreateObject <Meeting>(); spotkanie.Klient = os.GetObject(klient); e.View = Application.CreateDetailView(os, spotkanie); }
private void Action_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var objectSpace = Application.CreateObjectSpace(typeof(FindArticlesDialog)); var obj = new FindArticlesDialog(); var detailView = Application.CreateDetailView(objectSpace, obj); detailView.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit; e.View = detailView; }
void PopupWindowShowActionOnCustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs customizePopupWindowParamsEventArgs) { var objectSpace = Application.CreateObjectSpace(); var anonymousLogonParameters = ((AnonymousLogonParameters) Application.Security.LogonParameters); _userName = anonymousLogonParameters.UserName; anonymousLogonParameters.UserName = null; var detailView = Application.CreateDetailView(objectSpace, anonymousLogonParameters); detailView.ViewEditMode = ViewEditMode.Edit; customizePopupWindowParamsEventArgs.View=_loginAttempts>=3?LogonAttemptsAmountedToLimitDetailView():detailView; }
private void LogX_SelectCommonType_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(CommonTrType)); string vid = Application.FindLookupListViewId(typeof(CommonTrType)); CollectionSourceBase collectionSource = Application.CreateCollectionSource(objectSpace, typeof(CommonTrType), vid); collectionSource.Criteria["Creatable"] = new BinaryOperator("Creatable", true); e.View = Application.CreateListView(vid, collectionSource, true); }
private void LeaderboardAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { XPObjectSpace os = (XPObjectSpace)Application.CreateObjectSpace(typeof(Leaderboard)); Leaderboard obj = new Leaderboard(os.Session); obj.SetDecathalon(os.GetObject(ThisCurrentObject)); obj.UpdateLeaderBoard(os); e.View = Application.CreateDetailView(os, obj, true); }
private void CreateScoreAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { XPObjectSpace os = (XPObjectSpace)Application.CreateObjectSpace(typeof(EnterEventScores)); EnterEventScores obj = new EnterEventScores(os.Session); obj.SetEvent(os.GetObject((DecathalonEvent)View.CurrentObject)); obj.UpdateScoreParameters(); e.View = Application.CreateDetailView(os, obj, true); }
void editObjectAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace editObjectSpace = objectSpace.CreateNestedObjectSpace(); DetailView view = application.CreateDetailView(editObjectSpace, editObjectSpace.GetObject(GetControlValueCore())); view.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit; e.View = view; e.DialogController.SaveOnAccept = true; }
private void TaskStatusAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(); var objectToShow = os.GetObject(View.CurrentObject); DetailView dv = Application.CreateDetailView(os, objectToShow, false); dv.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit; e.View = dv; step = 0; }
private void ShowNotesAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs args) { ListView lv = Application.CreateListView(Application.CreateObjectSpace(typeof(AuditDataItemPersistent)), typeof(AuditDataItemPersistent), true); GroupOperator criteria = new GroupOperator(GroupOperatorType.And); criteria.Operands.Add(new BinaryOperator("AuditedObject.TargetType", ((XPObjectSpace)ObjectSpace).Session.GetObjectType(View.CurrentObject))); criteria.Operands.Add(new BinaryOperator("AuditedObject.TargetKey", XPWeakReference.KeyToString(ObjectSpace.GetKeyValue(View.CurrentObject)))); lv.CollectionSource.Criteria["ByTargetObject"] = criteria; args.View = lv; }
private void ImportData_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var os = Application.CreateObjectSpace(); var obj = os.CreateObject <ImportDataSolution>(); obj.BusinessObject = (this.View as ObjectView).Model.ModelClass.Name; e.View = Application.CreateDetailView(os, obj); e.IsSizeable = true; }
// Форма мастера отчетов private void ReportWizard_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { PredefinedReportWizard predefined = View.CurrentObject as PredefinedReportWizard; wizard = predefined != null ? predefined.Main : new ReportWizard(); style = null; objectSpace = Application.CreateObjectSpace(); e.View = Application.CreateDetailView(objectSpace, wizard); e.DialogController.AcceptAction.Execute += AcceptAction_Execute; e.DialogController.Actions.Add(OwnedReportStyle); }
private void BatchCreate_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var os = Application.CreateObjectSpace(); var para = os.CreateObject <BatchInputBusinessObject>(); var view = Application.CreateDetailView(os, para); //Application.ShowViewStrategy.ShowViewInPopupWindow(view, () => { }); e.View = view; }
private void ShowSearchForm_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { searchAttribute = this.View.ObjectTypeInfo.FindAttribute <SearchableClass>(); if (searchAttribute != null) { IObjectSpace objectSpace = Application.CreateObjectSpace(); SearchFormObject = objectSpace.CreateObject(searchAttribute.SearchFormType); e.View = Application.CreateDetailView(objectSpace, SearchFormObject); } }
private void ConvertCandidateAction_CustomParam(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(typeof(ConvertEmployeeParam)); convertParam = new ConvertEmployeeParam(); var detailView = Application.CreateDetailView(objectSpace, convertParam); detailView.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit; e.View = detailView; }
private void DrugRequestAction_Execute(object sender, CustomizePopupWindowParamsEventArgs e) { TargetViewId = "ItemRequest_DetailView_SalesRepRequest"; IObjectSpace objectSpace = Application.CreateObjectSpace(); ItemRequest itemrequest = objectSpace.CreateObject <ItemRequest>(); itemrequest.Customer = objectSpace.GetObject <Customer>((Customer)View.CurrentObject); e.View = Application.CreateDetailView(objectSpace, TargetViewId, true, itemrequest); //e.Size = new Size(1000, 1000); }
private void paSendMessage_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var customerMessage = Application.CreateObjectSpace(typeof(NPCustomerMessage)); var npNewDailyCharge = customerMessage.CreateObject <NPCustomerMessage>(); var detailView = Application.CreateDetailView(customerMessage, npNewDailyCharge); detailView.ViewEditMode = ViewEditMode.Edit; e.View = detailView; }
private void ShowEmailAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { e.DialogController.SaveOnAccept = false; this.dvDetailView = Application.CreateDetailView(this.CurrentObjectSpace, this.EmailParameter, false); this.dvDetailView.ViewEditMode = ViewEditMode.Edit; e.View = this.dvDetailView; e.View.Caption = "Email"; }
private void ImportBayDeals2Action_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(); _ImportActionParameters = new TrwSubjectImportDealParameters(); _ImportActionParameters.MaxCount = 5; _ImportActionParameters.VolumePercent = 0.6M; _ImportActionParameters.CreateOtherDeal = true; e.View = Application.CreateDetailView(os, _ImportActionParameters); }
private void actionViewAuditTrail_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace space = Application.CreateObjectSpace(); if (space is XPObjectSpace) { AuditTrailDetails details = new AuditTrailDetails((space as XPObjectSpace).Session, this.View.CurrentObject); e.View = Application.CreateDetailView(space, details); } }
private void PostClaimV2_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(); DetailView dv = Application.CreateDetailView(os, os.CreateObject <DateParameters>(), true); dv.ViewEditMode = DevExpress.ExpressApp.Editors.ViewEditMode.Edit; ((DateParameters)dv.CurrentObject).IsErr = false; ((DateParameters)dv.CurrentObject).ActionMessage = "Press OK to CONFIRM the action, else press Cancel."; e.View = dv; }
private void ShowTimeTracking_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { e.DialogController.SaveOnAccept = false; DetailView dv = Application.CreateDetailView(this.CurrentObjectSpace, this.TimeTrackingMultiple, false); dv.ViewEditMode = ViewEditMode.Edit; e.View = dv; e.View.Caption = "Time Tracking"; }
private void ScanRecieveItems_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { TargetViewId = "ReceiverPackageItems_DetailView"; IObjectSpace objectSpace = Application.CreateObjectSpace(); RPI = objectSpace.CreateObject <ReceiverPackageItems>(); RPI.ReceiverPackageId = objectSpace.GetObject <ReceiverPackage>((ReceiverPackage)View.CurrentObject); e.View = Application.CreateDetailView(objectSpace, TargetViewId, true, RPI); e.View.Caption = e.View.Caption + " - " + RPI.ReceiverPackageId.Oid.ToString(); //e.Size = new Size(1000, 1000); }
private void helpPopupWindowShowAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); HelpView hw = objectSpace.FindObject<HelpView>(CriteriaOperator.Parse("ViewId = ?", View.Id)); HelpDocument help = objectSpace.CreateObject<HelpDocument>(); help.Text = hw != null ? hw.Text : null; DetailView dv = Application.CreateDetailView(objectSpace, help, false); HtmlPropertyEditor htmlEditor = (HtmlPropertyEditor)dv.Items[0]; htmlEditor.ControlCreated += htmlEditor_ControlCreated; e.View = dv; }
private void objectWindowAction_OnCustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs args) { var view = application.CreateDetailView(objectSpace, PropertyValue, false); view.AllowEdit.SetItemValue(typeof(ObjectEditorHelper).FullName, AllowEdit); args.DialogController.SaveOnAccept = false; args.View = view; //args.View.ObjectSpace.SetModified(((DetailView)args.View).CurrentObject); //OnViewShowingNotification(); }
void PopupWindowShowActionOnCustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs args) { var objectSpace = Application.CreateObjectSpace(); var anonymousLogonParameters = ((AnonymousLogonParameters) Application.Security.LogonParameters); _userName = anonymousLogonParameters.UserName; anonymousLogonParameters.UserName = null; var detailView = Application.CreateDetailView(objectSpace, anonymousLogonParameters); detailView.ViewEditMode = ViewEditMode.Edit; args.View=_loginAttempts>=3?LogonAttemptsAmountedToLimitDetailView():detailView; var registrationControllers = XpandSecurityModuleBase.CreateRegistrationControllers(Application); args.DialogController.Controllers.AddRange(registrationControllers); args.DialogController.Activated+=DialogControllerOnActivated; }
private void helpPopupWindowShowAction1_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace objectSpace = Application.CreateObjectSpace(); HelpView hw = objectSpace.FindObject<HelpView>(CriteriaOperator.Parse("ViewId = ?", View.Id)); if (hw == null) { hw = objectSpace.CreateObject<HelpView>(); hw.ViewId = View.Id; } e.View = Application.CreateDetailView(objectSpace, hw, false); e.View.CurrentObject = hw; }
void showDocumentsAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { try { IObjectSpace objectSpace = Application.CreateObjectSpace(); var o = (System.Data.Objects.DataClasses.EntityObject)e.Action.SelectionContext.CurrentObject; var c = ((DevExpress.ExpressApp.EF.EFObjectSpace)objectSpace).ObjectContext; var table = NKD.Module.BusinessObjects.BusinessObjectHelper.GetTableName(c, e.Action.SelectionContext.CurrentObject.GetType()); var value = (Guid)o.EntityKey.EntityKeyValues[0].Value; CollectionSource collectionSource = new CollectionSource(objectSpace, typeof(FileData)); CriteriaOperator c1 = new BinaryOperator( new OperandProperty("TableType"), table, BinaryOperatorType.Equal ); CriteriaOperator c2 = new BinaryOperator( new OperandProperty("ReferenceID"), value, BinaryOperatorType.Equal ); CriteriaOperator co = c1 & c2; collectionSource.Criteria.Add("Refences", co); //Do this for manual data lists //if ((collectionSource.Collection as XPBaseCollection) != null) //{ // ((XPBaseCollection)collectionSource.Collection).LoadingEnabled = false; //} ListView view = Application.CreateListView(Application.GetListViewId(typeof(FileData)), collectionSource, false); view.Editor.AllowEdit = true; foreach (var k in view.AllowNew.GetKeys()) view.AllowNew[k] = false; foreach (var k in view.AllowDelete.GetKeys()) view.AllowDelete[k] = false; foreach (var k in view.AllowEdit.GetKeys()) view.AllowEdit[k] = false; foreach (var k in e.DialogController.AcceptAction.Enabled.GetKeys()) e.DialogController.AcceptAction.Enabled[k] = false; e.DialogController.AcceptAction.Enabled.SetItemValue("Item.Enabled", false); e.View = view; e.DialogController.SaveOnAccept = false; } catch (Exception ex) { } }
private void filterWindowShowAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IModelListView model = (IModelListView)View.Model; List<FilterColumn> columns = model.Columns .Where(c => c is IModelColumnAurumFilter && ((IModelColumnAurumFilter)c).ShowFilter) .OrderBy(c => ((IModelColumnAurumFilter)c).FilterIndex) .Select(c => new FilterColumn() { Type = c.ModelMember.Type, Caption = ((IModelColumnAurumFilter)c).FilterCaption, Property = c.PropertyName, Focus = ((IModelColumnAurumFilter)c).Focus }).ToList(); // значения ListView listView = View as ListView; if (listView != null) { GridListEditor editor = listView.Editor as GridListEditor; if (editor != null) { GridControl grid = editor.Grid; ColumnView colView = grid.FocusedView as ColumnView; if (colView != null) { var criteria = colView.ActiveFilterCriteria; if (colView.Tag != null && colView.Tag is List<Tuple<string, FilterValue>>) { var oldValues = (List<Tuple<string, FilterValue>>)colView.Tag; oldValues.ForEach(t => { var col = columns.Find(c => c.Property == t.Item1); if (col != null) { col.Value = t.Item2; } }); } } } } columns.ForEach(c => { if (c.Value == null) c.Value = QueryGridFilterFactory.CreateEmptyValue(c); }); e.View = new FilterWindowView(View.ObjectSpace, View.Model, false, columns); e.View.Caption = "Фильтр"; }
private void ShowNotesAction_CustomizePopupWindowParams(Object sender, CustomizePopupWindowParamsEventArgs args) { IObjectSpace objectSpace = Application.CreateObjectSpace(); args.View = Application.CreateListView(Application.FindListViewId(typeof(Note)), new CollectionSource(objectSpace, typeof(Note)), true); }
private void cloneViewPopupWindowShowAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { ObjectSpace objectSpace = Application.CreateObjectSpace(); e.View = Application.CreateDetailView(objectSpace, new ViewCloner(objectSpace.Session)); }
private void objectWindowAction_OnCustomizePopupWindowParams(Object sender, CustomizePopupWindowParamsEventArgs args) { args.DialogController.Cancelling += DialogController_Cancelling; objectSpace.Committing += ObjectSpaceOnCommitting; args.View = _popupWindowHelper.CreateListView(application, objectSpace, (ISupportSequenceObject)View.CurrentObject); }
private void ImportFilesAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { var extList = getImportExtList(); var objectSpace = Application.CreateObjectSpace(); e.View = ((IXafDeltaWebPlatform) GetPlatform("")).CreateImportDetailView(objectSpace, extList); }
private void showObjectAction_CustomizePopupWindowParams(Object sender, CustomizePopupWindowParamsEventArgs args) { args.DialogController.Cancelling += DialogController_Cancelling; _objectSpace.Committing += ObjectSpaceOnCommitting; _listView = CreateListView(_application, _objectSpace); args.View = _listView; }
void newObjectWindowAction_OnCustomizePopupWindowParams(Object sender, CustomizePopupWindowParamsEventArgs args) { if (!DataSource.AllowAdd) { throw new InvalidOperationException(); } if (newObjectViewController != null) { //TODO MINAKOV rewrite OnViewShowingNotification(); //CaptionHelper.GetLocalizedText("DialogButtons", "Add")); newObjectViewController.NewObjectAction.DoExecute(newObjectViewController.NewObjectAction.Items[0]); args.View = _application.CreateDetailView(newObjectSpace, newObject, listView); } }
private void SelectDataSourceAction_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { e.View = Application.CreateDetailView(ObjectSpaceInMemory.CreateNew(), new SnapReportDataSourceParameters()); e.DialogController.AcceptAction.Execute += AcceptAction_Execute; }
private void popupWindowShowAction1_CustomizePopupWindowParams(object sender, CustomizePopupWindowParamsEventArgs e) { IObjectSpace os = Application.CreateObjectSpace(); e.View = Application.CreateDetailView(os, os.CreateObject<Person>()); }