• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IModelListView类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IModelListView的典型用法代码示例。如果您正苦于以下问题:C# IModelListView类的具体用法?C# IModelListView怎么用?C# IModelListView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IModelListView类属于命名空间,在下文中一共展示了IModelListView类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: XafBootstrapTableEditor

 public XafBootstrapTableEditor(IModelListView info)
     : base(info)
 {
     ListView = info;
     MarkedObjects = new List<String>();
     SelectedObjects = new List<Object>();
 }
开发者ID:Terricks,项目名称:XAFBootstrap,代码行数:7,代码来源:XafBootstrapTableEditor.cs


示例2: MasterDetailRuleInfo

 public MasterDetailRuleInfo(IModelListView childListView, IModelMember collectionMember, ITypeInfo typeInfo, CriteriaOperator criteria, bool synchronizeActions) {
     ChildListView = childListView;
     CollectionMember = collectionMember;
     TypeInfo = typeInfo;
     _criteria = criteria;
     _synchronizeActions = synchronizeActions;
 }
开发者ID:dimajanzen,项目名称:eXpand,代码行数:7,代码来源:MasterDetailRuleInfo.cs


示例3: ModifyInstanceGridView

        public void ModifyInstanceGridView(XpandXafGridView masterGridView, int rowHandle, int relationIndex, IModelListView masterModelListView, List<IMasterDetailRule> masterDetailRules) {
            var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
            bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
            if (isRelationSet) {
                IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
                Window window = _xafApplication.CreateWindow(TemplateContext.View, null, true, false);
                ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
                var detailXafGridView = (XpandXafGridView)masterGridView.GetDetailView(rowHandle, relationIndex);
                ((XpandGridListEditor)listView.Editor).CustomGridViewCreate +=
                    (o, eventArgs) => {
                        eventArgs.Handled = true;
                        eventArgs.GridView = detailXafGridView;
                        eventArgs.GridControl.DataSource = detailXafGridView.DataSource;
                    };

                EventHandler[] listViewOnControlsCreated = { null };
                listViewOnControlsCreated[0] = (sender, args) => {
                    detailXafGridView.MasterFrame = masterGridView.MasterFrame ?? _masterFrame;
                    detailXafGridView.Window = window;
                    detailXafGridView.GridControl = masterGridView.GridControl;
                    listView.ControlsCreated -= listViewOnControlsCreated[0];
                };
                listView.ControlsCreated += listViewOnControlsCreated[0];
                ((PropertyCollectionSource)listView.CollectionSource).MasterObject = masterGridView.GetRow(rowHandle);
                window.SetView(listView);
            }
        }
开发者ID:gvilas,项目名称:eXpand,代码行数:27,代码来源:GridViewBuilder.cs


示例4: XpandASPxGridListEditorSynchronizer

 public XpandASPxGridListEditorSynchronizer(DevExpress.ExpressApp.Web.Editors.ASPx.ASPxGridListEditor gridListEditor, IModelListView model) : base(gridListEditor, model) {
     modelSynchronizerList = new ModelSynchronizerList();
     modelSynchronizerList.Add(new GridViewOptionsModelSynchronizer(gridListEditor.Grid, model));
     foreach (var column in model.Columns) {
         modelSynchronizerList.Add(new ColumnOptionsModelSynchronizer(gridListEditor.Grid, column));
     }
 }
开发者ID:gvilas,项目名称:eXpand,代码行数:7,代码来源:XpandASPxGridListEditorSynchronizer.cs


示例5: GridListEditorSynchronizer

 public GridListEditorSynchronizer(GridListEditor gridListEditor, IModelListView model)
     : base(gridListEditor, model) {
     modelSynchronizerList = new ModelSynchronizerList { new GridViewOptionsModelSynchronizer(gridListEditor.GridView, model) };
     foreach (var modelColumn in model.Columns) {
         modelSynchronizerList.Add(new ColumnOptionsModelSynchronizer(gridListEditor.GridView, modelColumn));
     }
 }
开发者ID:aries544,项目名称:eXpand,代码行数:7,代码来源:XpandGridListEditor.cs


示例6: XpandTreeListEditorModelSynchronizerList

 public XpandTreeListEditorModelSynchronizerList(TreeListEditor treeListEditor, IModelListView model)
     : base(treeListEditor, model) {
     modelSynchronizerList = new ModelSynchronizerList();
     modelSynchronizerList.Add(new TreeListOptionsModelSynchronizer(treeListEditor.TreeList, model));
     foreach (var modelColumn in model.Columns) {
         modelSynchronizerList.Add(new TreeListColumnOptionsModelSynchronizer(treeListEditor.TreeList, modelColumn));
     }
 }
开发者ID:kevin3274,项目名称:eXpand,代码行数:8,代码来源:XpandTreeListEditorModelSynchronizerList.cs


示例7: GetLevelDefaultViewCore

 DevExpress.XtraGrid.Views.Base.ColumnView GetLevelDefaultViewCore(IModelListView masterModelListView, IMasterDetailColumnView masterGridView, int rowHandle, int relationIndex, List<MasterDetailRuleInfo> masterDetailRules) {
     var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
     bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
     if (isRelationSet) {
         IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
         ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
         listView.CreateControls();
         return ((IColumnViewEditor)listView.Editor).ColumnView;
     }
     return null;
 }
开发者ID:dimajanzen,项目名称:eXpand,代码行数:11,代码来源:MasterDetailBuilders.cs


示例8: SetFooterCount

        protected void SetFooterCount(IModelListView view)
        {
            view.IsFooterVisible = true;
            var firstColumn = view.Columns.Where(x => x.Index > -1).OrderBy(x => x.Index).FirstOrDefault();

            var sum = firstColumn?.Summary.FirstOrDefault(x => x.SummaryType == SummaryType.Count);
            if (firstColumn != null && sum == null)
            {
                sum = firstColumn.Summary.AddNode<IModelColumnSummaryItem>(firstColumn.PropertyName+"Count");
                sum.SummaryType = SummaryType.Count;
            }
        }
开发者ID:ZixiangBoy,项目名称:CIIP,代码行数:12,代码来源:ViewObject.cs


示例9: GetLevelDefaultViewCore

 XpandXafGridView GetLevelDefaultViewCore(IModelListView masterModelListView, XpandXafGridView masterGridView, int rowHandle, int relationIndex, List<IMasterDetailRule> masterDetailRules) {
     var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
     bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
     if (isRelationSet) {
         IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
         ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
         XpandXafGridView defaultXpandXafGridView = null;
         EventHandler[] listViewOnControlsCreated = { null };
         listViewOnControlsCreated[0] = (sender, args) => {
             defaultXpandXafGridView = (XpandXafGridView)((GridListEditor)((XpandListView)sender).Editor).GridView;
             listView.ControlsCreated -= listViewOnControlsCreated[0];
         };
         listView.ControlsCreated += listViewOnControlsCreated[0];
         listView.CreateControls();
         return defaultXpandXafGridView;
     }
     return null;
 }
开发者ID:gvilas,项目名称:eXpand,代码行数:18,代码来源:GridViewBuilder.cs


示例10: GetLevelDefaultViewCore

 DevExpress.XtraGrid.Views.Base.ColumnView GetLevelDefaultViewCore(IModelListView masterModelListView, ExpressApp.MasterDetail.Win.IMasterDetailColumnView masterGridView, int rowHandle, int relationIndex, List<MasterDetailRuleInfo> masterDetailRules) {
     var modelDetailRelationCalculator = new ModelDetailRelationCalculator(masterModelListView, masterGridView, masterDetailRules);
     bool isRelationSet = modelDetailRelationCalculator.IsRelationSet(rowHandle, relationIndex);
     if (isRelationSet) {
         IModelListView childModelListView = modelDetailRelationCalculator.GetChildModelListView(rowHandle, relationIndex);
         ListView listView = GetListView(modelDetailRelationCalculator, rowHandle, relationIndex, childModelListView);
         DevExpress.XtraGrid.Views.Base.ColumnView defaultXpandXafGridView = null;
         EventHandler[] listViewOnControlsCreated = { null };
         ListView view = listView;
         listViewOnControlsCreated[0] = (sender, args) => {
             defaultXpandXafGridView = ((IColumnViewEditor)((ListView)sender).Editor).GridView;
             view.ControlsCreated -= listViewOnControlsCreated[0];
         };
         listView.ControlsCreated += listViewOnControlsCreated[0];
         listView.CreateControls();
         return defaultXpandXafGridView;
     }
     return null;
 }
开发者ID:aries544,项目名称:eXpand,代码行数:19,代码来源:MasterDetailBuilders.cs


示例11: Create

        public static CollectionSourceBase Create(XafApplication application, IObjectSpace objectSpace, IModelListView listViewNode) {
            IModelCustomDataSource modelCustomDataSource = ((IModelListViewExtension)listViewNode).CollectionDataSource;
            if (modelCustomDataSource == null) return null;

            Type customDataSourceType = modelCustomDataSource.CustomDataSourceType;   // Тип коллекции
            if (customDataSourceType == null) return null;

            // Две строки ниже стали не нужны, т.к. тип вычисляется из запроса ниже: query.ElementType
            // В модели поле тоже как бы не нужно - пусть останется зарезервированным пока что.
            //Type objectType = modelCustomDataSource.ObjectType;   // Тип выхода запроса
            //if (objectType == null) return null;

            // Создание объекта запроса 
            IQueryable query = Activator.CreateInstance(customDataSourceType, ((ObjectSpace)objectSpace).Session) as IQueryable;  // as IQueryable;

            // Создание коллекции с типом customDataSourceType
            //var outCollection = Activator.CreateInstance(customDataSourceType, objectSpace);

            LinqCollectionSource outCollection = new LinqCollectionSource(objectSpace, query);
            return outCollection ;
        }
开发者ID:pitchalt,项目名称:IntecoAG.XAFExt,代码行数:21,代码来源:CustomCollectionSourceManager.cs


示例12: AdvBandedListEditor

 public AdvBandedListEditor(IModelListView model)
     : base(model) {
 }
开发者ID:noxe,项目名称:eXpand,代码行数:3,代码来源:AdvBandedListEditor.cs


示例13: GridViewOptionsModelSynchronizer

 public GridViewOptionsModelSynchronizer(object control, IModelListView model) : base(control, model) {
 }
开发者ID:aries544,项目名称:eXpand,代码行数:2,代码来源:GridViewOptionsModelSynchronizer.cs


示例14: CreateListView

 public ListView CreateListView(IModelListView childModelListView, int rowHandle, int relationIndex, XafApplication application) {
     IModelMember relationModelMember = _modelDetailRelationCalculator.GetRelationModelMember(rowHandle, relationIndex);
     return CreateListView(childModelListView, relationModelMember, application);
 }
开发者ID:dimajanzen,项目名称:eXpand,代码行数:4,代码来源:MasterDetailBuilders.cs


示例15: GetListView

 ListView GetListView(ModelDetailRelationCalculator modelDetailRelationCalculator, int rowHandle, int relationIndex, IModelListView childModelListView) {
     var listViewBuilder = new ListViewBuilder(modelDetailRelationCalculator, _objectSpace);
     return listViewBuilder.CreateListView(childModelListView, rowHandle, relationIndex);
 }
开发者ID:gvilas,项目名称:eXpand,代码行数:4,代码来源:GridViewBuilder.cs


示例16: FocusedRowGridEditor

 public FocusedRowGridEditor(IModelListView model)
     : base(model)
 {
 }
开发者ID:derjabkin,项目名称:XafWebSplitLayout,代码行数:4,代码来源:FocusedRowGridEditor.cs


示例17: GetLevelDefaultView

 public XpandXafGridView GetLevelDefaultView(XpandXafGridView masterGridView, int rowHandle, int relationIndex, IModelListView masterModelListView, List<IMasterDetailRule> masterDetailRules) {
     return GetLevelDefaultViewCore(masterModelListView, masterGridView, rowHandle, relationIndex, masterDetailRules);
 }
开发者ID:gvilas,项目名称:eXpand,代码行数:3,代码来源:GridViewBuilder.cs


示例18: MultiEditASPxGridListEditor

 public MultiEditASPxGridListEditor(IModelListView model)
     : base(model){
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:3,代码来源:MultiEditASPxGridListEditor.cs


示例19: ModelDetailRelationCalculator

 public ModelDetailRelationCalculator(IModelListView modelListView, DevExpress.XtraGrid.Views.Grid.GridView xafGridView, List<MasterDetailRuleInfo> masterDetailRules) {
     _modelListView = modelListView;
     _xafGridView = xafGridView;
     _masterDetailRules = masterDetailRules;
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:5,代码来源:ModelDetailRelationCalculator.cs


示例20: DocGridListEditor

     public DocGridListEditor(IModelListView model)
         : base(model)
     {          
     
 
     }     
开发者ID:dioptre,项目名称:nkd,代码行数:6,代码来源:DocGridListEditor.cs



注:本文中的IModelListView类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IModelMemberViewItem类代码示例发布时间:2022-05-24
下一篇:
C# IModelInspector类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap