コード例 #1
0
ファイル: Form1.cs プロジェクト: AlexOcculate/DevExpressTEST
        private void treeList1_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
        {
            // DATAVALUE: FOREACH COLUMN CONFIGED IN THE TREELIST...
            if (e.IsCheckState)
            {
                return;
            }
            if (e.Column == this.colID)
            {
                e.CellData = e.Node;
                return;
            }
            DataTable dt = _cfg.getConfigTable();

            if (e.Column == this.colName)
            {
                DataRow[] select = dt.Select("ID = " + e.Node, "Name ASC", DataViewRowState.CurrentRows);
                e.CellData = select[0]["Name"];
                return;
            }
            if (e.Column == this.colPreview)
            {
                DataRow[] select = dt.Select("ID = " + e.Node, "Name ASC", DataViewRowState.CurrentRows);
                e.CellData = select[0]["Preview"];
                return;
            }
        }
コード例 #2
0
ファイル: OrgTreeList.cs プロジェクト: aehyok/InputModel
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            OrgTreeItem obj = info.Node as OrgTreeItem;

            switch (info.Column.FieldName)
            {
            case "ID":
                info.CellData = obj.ID;
                break;

            case "FatherID":
                info.CellData = obj.FatherID;
                break;

            case "Name":
                info.CellData = obj.Name;
                break;

            case "FullName":
                info.CellData = obj.FullName;
                break;

            case "DWDM":
                info.CellData = obj.DWDM;
                break;
            }
        }
コード例 #3
0
 void OnTreeListVirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
 {
     if (e.Node is TreeListRootObj || e.Node is TreeListLeaf)
     {
         e.CellData = e.Node.ToString();
     }
 }
コード例 #4
0
 public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
 {
     if (info.Node is DbSchemaBaseNode node)
     {
         info.CellData = node.Text;
     }
 }
コード例 #5
0
ファイル: ViewExplorer.cs プロジェクト: thachgiasoft/abc-erp
 void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
 {
     if (info.Column.VisibleIndex >= 0)
     {
         info.CellData = cellsCore[info.Column.VisibleIndex];
     }
 }
コード例 #6
0
        private void treeListFileExplorer_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
        {
            var di = new DirectoryInfo((string)e.Node);

            if (e.Column == treeListColumnFoldery)
            {
                e.CellData = di.Name;
            }
        }
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            SpreadsheetNode obj = info.Node as SpreadsheetNode;

            switch (info.Column.Caption)
            {
            case "Name":
                info.CellData = obj.Name;
                break;
            }
        }
コード例 #8
0
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            TableMemberInfo tmInfo = info.Node as TableMemberInfo;

            switch (info.Column.FieldName)
            {
            case "FieldName":
                info.CellData = tmInfo.FieldName;
                break;

            case "PropertyType":
                if (tmInfo.PropertyType != null)
                {
                    info.CellData = tmInfo.PropertyType.Name.ToString();
                }
                else
                {
                    info.CellData = "null";
                }
                break;

            case "PropertyTypeName":
                info.CellData = tmInfo.PropertyTypeName;
                break;

            case "TypeName":
                info.CellData = tmInfo.TypeName;
                break;

            case "Caption":
                info.CellData = tmInfo.Caption;
                break;

            case "IsXPBaseObject":
                info.CellData = tmInfo.IsXPBaseObject;
                break;

            case "IsXPCollection":
                info.CellData = tmInfo.IsXPCollection;
                break;

            case "IsUsed":
                info.CellData = tmInfo.IsUsed;
                break;

            case "ImageIndex":
                info.CellData = tmInfo.ImageIndex;
                break;

            case "HashCode":
                info.CellData = tmInfo.HashCode;
                break;
            }
        }
コード例 #9
0
 public void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
 {
     // DATAVALUE: FOREACH COLUMN CONFIGED IN THE TREELIST...
     if (e.IsCheckState)
     {
         return;
     }
     DataRow[] row = this.RowByID((int)e.Node);
     if (e.Column == this.CreationTreeListColumn)
     {
         e.CellData = row[0][CREATION_FIELD_NM];
         return;
     }
     if (e.Column == this.IDTreeListColumn)
     {
         e.CellData = row[0][ID_FIELD_NM];
         return;
     }
     if (e.Column == this.ParentIDTreeListColumn)
     {
         e.CellData = row[0][PARENTID_FIELD_NM];
         return;
     }
     if (e.Column == this.IsFolderTreeListColumn)
     {
         e.CellData = row[0][ISFOLDER_FIELD_NM];
         return;
     }
     if (e.Column == this.NameTreeListColumn)
     {
         e.CellData = row[0][NAME_FIELD_NM];
         return;
     }
     if (e.Column == this.TypeTreeListColumn)
     {
         e.CellData = row[0][TYPE_FIELD_NM];
         return;
     }
     if (e.Column == this.UriTreeListColumn)
     {
         e.CellData = row[0][URI_FIELD_NM];
         return;
     }
     if (e.Column == this.PreviewTreeListColumn)
     {
         e.CellData = row[0][PREVIEW_FIELD_NM];
         return;
     }
     if (e.Column == this.DescriptionTreeListColumn)
     {
         e.CellData = row[0][DESCRIPTION_FIELD_NM];
         return;
     }
 }
 private void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
 {
     if ((e.Node as DataRow).Table.Columns[e.Column.FieldName] != null)
     {
         object value = (e.Node as DataRow)[e.Column.FieldName];
         if (value != null)
         {
             e.CellData = value;
         }
     }
 }
コード例 #11
0
ファイル: PointTreeNode.cs プロジェクト: lsw8724/MMXReport
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            MimicTreeNode obj = info.Node as MimicTreeNode;

            switch (info.Column.Caption)
            {
            case "Name":
                info.CellData = obj.ThisNode.Name;
                break;
            }
        }
コード例 #12
0
ファイル: Projects.cs プロジェクト: pvx/ShopOrder
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            Project obj = info.Node as Project;

            switch (info.Column.FieldName)
            {
            case "Name":
                info.CellData = obj.Name;
                break;
            }
        }
コード例 #13
0
 void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(
     VirtualTreeGetCellValueInfo info)
 {
     if (info.Column.FieldName == GUIConstants.TreeListNameColumn)
     {
         info.CellData = ((INode)info.Node).NodeName;
     }
     else if (info.Column.FieldName == GUIConstants.TreeListOriginalNoteColumnName)
     {
         info.CellData = (INode)info.Node;
     }
 }
コード例 #14
0
 void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(
     VirtualTreeGetCellValueInfo info)
 {
     if (info.Column.FieldName == GUIConstants.TreeListNameColumn)
     {
         info.CellData = ((INode)info.Node).NodeName;
     }
     else if (info.Column.FieldName == GUIConstants.TreeListOriginalNoteColumnName)
     {
         info.CellData = (INode)info.Node;
     }
 }
コード例 #15
0
 void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
 {
     foreach (String strField in info.Column.FieldName.Split(';'))
     {
         PropertyInfo proInfo = InnerData.GetType().GetProperty(info.Column.FieldName);
         if (proInfo != null)
         {
             info.CellData = proInfo.GetValue(InnerData, null);
             return;
         }
     }
 }
コード例 #16
0
        void IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            Guard.ArgumentNotNull(info, nameof(info));

            var checkItem = (CheckItem)info.Node;
            var prop      = typeof(CheckItem).GetProperty(info.Column.FieldName);

            if (prop != null)
            {
                info.CellData = prop.GetValue(checkItem);
            }
        }
コード例 #17
0
ファイル: ReturnShops.cs プロジェクト: pvx/ShopOrder
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            var obj = info.Node as ReturnShopObj;

            switch (info.Column.FieldName)
            {
            case "Name": if (obj != null)
                {
                    info.CellData = obj;
                }
                break;
            }
        }
コード例 #18
0
        private void treeList1_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
        {
            DirectoryInfo di = new DirectoryInfo((string)e.Node);

            if (e.Column == colName)
            {
                e.CellData = di.Name;
                return;
            }

            if (e.Column == colType)
            {
                if (IsDrive((string)e.Node))
                {
                    e.CellData = "Drive";
                }
                else if (!IsFile(di))
                {
                    e.CellData = "Folder";
                }
                else
                {
                    e.CellData = "File";
                }

                if (e.Column == colFullPath)
                {
                    e.CellData = (string)e.Node;
                }
                return;
            }

            if (e.Column == colSize)
            {
                if (IsFile(di))
                {
                    e.CellData = new FileInfo((string)e.Node).Length;
                }
                else
                {
                    e.CellData = null;
                }

                return;
            }

            if (e.Column == colFullPath)
            {
                e.CellData = (string)e.Node;
            }
        }
コード例 #19
0
        public override void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            var obj = info.Node as OrderHeaderData;

            switch (info.Column.FieldName)
            {
            case "Name":
                if (obj != null)
                {
                    info.CellData = obj;
                }
                break;
            }
        }
コード例 #20
0
        private void OnGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
        {
            WmsLayer layer = e.Node as WmsLayer;

            if (layer == null)
            {
                return;
            }

            if (e.Column.FieldName == "LayerName")
            {
                e.CellData = layer.Title;
            }
        }
コード例 #21
0
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            var obj = info.Node as CustomNode;

            if (obj == null)
            {
                return;
            }
            switch (info.Column.FieldName)
            {
            case "Name":
                info.CellData = obj.Name;
                break;
            }
        }
コード例 #22
0
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            ConfigMsg obj = info.Node as ConfigMsg;

            switch (info.Column.FieldName)
            {
            case "ConfigDesc":
                info.CellData = obj.ConfigDesc;
                break;

            case "ConfigValue":
                info.CellData = obj.ConfigValue;
                break;
            }
        }
コード例 #23
0
 public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
 {
     if (info.Column.Name == "treeListColumnName")
     {
         info.CellData = Name;
     }
     else if (info.Column.Name == "treeListColumnType")
     {
         info.CellData = Type;
     }
     else if (info.Column.Name == "treeListColumnValue")
     {
         info.CellData = Value;
     }
 }
コード例 #24
0
        void treeList_VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo args)
        {
            CodeExampleGroup group = args.Node as CodeExampleGroup;

            if (group != null)
            {
                args.CellData = group.Name;
            }

            CodeExample example = args.Node as CodeExample;

            if (example != null)
            {
                args.CellData = example.RegionName;
            }
        }
コード例 #25
0
        void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            if (Manager == null)
            {
                return;
            }

            TreeConfigNode config = null;

            if (Manager.ConfigList.TryGetValue(ObjectName, out config) == false)
            {
                return;
            }

            String strField = String.Empty;

            if (config.InnerData.ColumnFieldNames.TryGetValue(info.Column.Caption, out strField) == false)
            {
                return;
            }

            if (String.IsNullOrWhiteSpace(strField))
            {
                return;
            }

            String strFirstField = strField.Split(':')[0];

            if (DataStructureProvider.IsForeignKey(InnerData.AATableName, strFirstField))
            {
                Guid iID = ABCHelper.DataConverter.ConvertToGuid(ABCBusinessEntities.ABCDynamicInvoker.GetValue(InnerData, strFirstField));
                if (iID != Guid.Empty)
                {
                    info.CellData = DataCachingProvider.GetCachingObjectAccrossTable(InnerData.AATableName, iID, strField);
                }
            }
            else
            {
                info.CellData = ABCBusinessEntities.ABCDynamicInvoker.GetValue(InnerData, strFirstField);
                String strEnum = DataConfigProvider.TableConfigList[InnerData.AATableName].FieldConfigList[strFirstField].AssignedEnum;
                if (info.CellData != null && String.IsNullOrWhiteSpace(info.CellData.ToString()) == false && EnumProvider.EnumList.ContainsKey(strEnum))
                {
                    info.CellData = EnumProvider.EnumList[strEnum].Items[info.CellData.ToString()].CaptionVN;
                }
            }
        }
コード例 #26
0
 void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
 {
     if (InnerData != null)
     {
         if (info.Column.Tag != null && info.Column.Tag is ABCTreeListColumn.ColumnConfig)
         {
             String strTemp = String.Empty;
             if (InnerData.ColumnFieldNames.TryGetValue(info.Column.Caption, out strTemp))
             {
                 info.CellData = strTemp;
                 return;
             }
         }
         else
         {
             if (info.Column.FieldName == "Name")
             {
                 info.CellData = InnerData.Name;
                 return;
             }
             if (info.Column.FieldName == "TableName")
             {
                 info.CellData = InnerData.TableName;
                 return;
             }
             if (info.Column.FieldName == "ParentField")
             {
                 info.CellData = InnerData.ParentField;
                 return;
             }
             if (info.Column.FieldName == "ChildField")
             {
                 info.CellData = InnerData.ChildField;
                 return;
             }
             if (info.Column.FieldName == "DefaultLoad")
             {
                 info.CellData = InnerData.DefaultLoad;
                 return;
             }
         }
     }
 }
コード例 #27
0
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            ViewMemberInfo vwInfo = info.Node as ViewMemberInfo;

            switch (info.Column.FieldName)
            {
            case "ViewTypeName":
                info.CellData = vwInfo.ViewTypeName;
                break;

            case "Caption":
                info.CellData = vwInfo.Caption;
                break;

            case "IsUsed":
                info.CellData = vwInfo.IsUsed;
                break;
            }
        }
コード例 #28
0
ファイル: GoodsAssorts.cs プロジェクト: pvx/ShopOrder
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            var obj = info.Node as GoodsNodeBalanceObj;

            switch (info.Column.FieldName)
            {
            case "Name":
                if (obj != null)
                {
                    info.CellData = obj;
                }
                break;

            case "Barcode":
                if (obj != null)
                {
                    info.CellData = obj.Barcode;
                }
                break;

            case "Measure":
                if (obj != null)
                {
                    info.CellData = obj.Measure;
                }
                break;

            case "QuantityInPack":
                if (obj != null)
                {
                    info.CellData = obj.QuantityInPack;
                }
                break;

            case "Check":
                if (obj != null)
                {
                    info.CellData = obj.Check;
                }

                break;
            }
        }
コード例 #29
0
    void TreeList.IVirtualTreeListData.VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
    {
        var a = info.Node as A;

        switch (info.Column.FieldName)
        {
        case "Property0":
            info.CellData = a.Property0;
            break;

        case "Property1":
            info.CellData = a.Property1;
            break;

        case "Property2":
            info.CellData = a.Property2;
            break;
        }
    }
コード例 #30
0
        void VirtualTreeGetCellValue(object sender, VirtualTreeGetCellValueInfo e)
        {
            string caption;

            if (_customCaptions.TryGetValue((string)e.Node, out caption))
            {
                e.CellData = caption;
                return;
            }

            DirectoryInfo di = new DirectoryInfo((string)e.Node);

            if (e.Column.Name == "Name")
            {
                e.CellData = di.Name;
            }
            else
            {
                e.CellData = null;
            }
        }
コード例 #31
0
        public void VirtualTreeGetCellValue(VirtualTreeGetCellValueInfo info)
        {
            var obj = info.Node as GoodsNodeCategoryObj;

            switch (info.Column.FieldName)
            {
            case "Name":
                if (obj != null)
                {
                    info.CellData = obj;
                }
                break;

            case "Check":
                if (obj != null)
                {
                    info.CellData = obj.Check;
                }
                break;
            }
        }