コード例 #1
0
ファイル: frmMonitorView.cs プロジェクト: gofixiao/Midea
        private Node BuilderJobTree(Node groupNode)
        {
            DevComponents.AdvTree.ColumnHeader col1 = new DevComponents.AdvTree.ColumnHeader();
            col1.Name = "ascmWipEntities_Name";
            col1.Text = "作业号";
            col1.Width.Absolute = 140;
            groupNode.NodesColumns.Add(col1);

            DevComponents.AdvTree.ColumnHeader col2 = new DevComponents.AdvTree.ColumnHeader();
            col2.Name = "dateReleased";
            col2.Text = "作业日期";
            col2.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col2);

            DevComponents.AdvTree.ColumnHeader col3 = new DevComponents.AdvTree.ColumnHeader();
            col3.Name = "ascmMaterialItem_DocNumber";
            col3.Text = "装配件";
            col3.Width.Absolute = 120;
            groupNode.NodesColumns.Add(col3);

            DevComponents.AdvTree.ColumnHeader col4 = new DevComponents.AdvTree.ColumnHeader();
            col4.Name = "ascmMaterialItem_Description";
            col4.Text = "装配件描述";
            col4.Width.Absolute = 150;
            groupNode.NodesColumns.Add(col4);

            DevComponents.AdvTree.ColumnHeader col5 = new DevComponents.AdvTree.ColumnHeader();
            col5.Name = "netQuantity";
            col5.Text = "计划数量";
            col5.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col5);

            DevComponents.AdvTree.ColumnHeader col6 = new DevComponents.AdvTree.ColumnHeader();
            col6.Name = "totalRequiredQuantity";
            col6.Text = "总数量";
            col6.Width.Absolute = 70;
            groupNode.NodesColumns.Add(col6);

            DevComponents.AdvTree.ColumnHeader col7 = new DevComponents.AdvTree.ColumnHeader();
            col7.Name = "totalPreparationQuantity";
            col7.Text = "备料数";
            col7.Width.Absolute = 70;
            groupNode.NodesColumns.Add(col7);

            DevComponents.AdvTree.ColumnHeader col8 = new DevComponents.AdvTree.ColumnHeader();
            col8.Name = "totalGetMaterialQuantity";
            col8.Text = "领料数";
            col8.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col8);

            groupNode.NodesColumnsHeaderVisible = true;

            return groupNode;
        }
コード例 #2
0
        private Node BuilderJobTree(Node groupNode)
        {
            DevComponents.AdvTree.ColumnHeader col1 = new DevComponents.AdvTree.ColumnHeader();
            col1.Name           = "ascmWipEntities_Name";
            col1.Text           = "作业号";
            col1.Width.Absolute = 140;
            groupNode.NodesColumns.Add(col1);

            DevComponents.AdvTree.ColumnHeader col2 = new DevComponents.AdvTree.ColumnHeader();
            col2.Name           = "dateReleased";
            col2.Text           = "作业日期";
            col2.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col2);

            DevComponents.AdvTree.ColumnHeader col3 = new DevComponents.AdvTree.ColumnHeader();
            col3.Name           = "ascmMaterialItem_DocNumber";
            col3.Text           = "装配件";
            col3.Width.Absolute = 120;
            groupNode.NodesColumns.Add(col3);

            DevComponents.AdvTree.ColumnHeader col4 = new DevComponents.AdvTree.ColumnHeader();
            col4.Name           = "ascmMaterialItem_Description";
            col4.Text           = "装配件描述";
            col4.Width.Absolute = 150;
            groupNode.NodesColumns.Add(col4);

            DevComponents.AdvTree.ColumnHeader col5 = new DevComponents.AdvTree.ColumnHeader();
            col5.Name           = "netQuantity";
            col5.Text           = "计划数量";
            col5.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col5);

            DevComponents.AdvTree.ColumnHeader col6 = new DevComponents.AdvTree.ColumnHeader();
            col6.Name           = "totalRequiredQuantity";
            col6.Text           = "总数量";
            col6.Width.Absolute = 70;
            groupNode.NodesColumns.Add(col6);

            DevComponents.AdvTree.ColumnHeader col7 = new DevComponents.AdvTree.ColumnHeader();
            col7.Name           = "totalPreparationQuantity";
            col7.Text           = "备料数";
            col7.Width.Absolute = 70;
            groupNode.NodesColumns.Add(col7);

            DevComponents.AdvTree.ColumnHeader col8 = new DevComponents.AdvTree.ColumnHeader();
            col8.Name           = "totalGetMaterialQuantity";
            col8.Text           = "领料数";
            col8.Width.Absolute = 80;
            groupNode.NodesColumns.Add(col8);

            groupNode.NodesColumnsHeaderVisible = true;

            return(groupNode);
        }
コード例 #3
0
        private void SetDetailHead(Node districtNode)
        {
            DevComponents.AdvTree.ColumnHeader clmHeadSub1 = new DevComponents.AdvTree.ColumnHeader();
            clmHeadSub1.Name           = "cdcode";
            clmHeadSub1.Text           = "产地代码";
            clmHeadSub1.Width.Absolute = 150;

            DevComponents.AdvTree.ColumnHeader clmHeadSub2 = new DevComponents.AdvTree.ColumnHeader();
            clmHeadSub2.Name           = "cdname";
            clmHeadSub2.Text           = "产地名称";
            clmHeadSub2.Width.Absolute = 150;

            DevComponents.AdvTree.ColumnHeader clmHeadSub3 = new DevComponents.AdvTree.ColumnHeader();
            clmHeadSub3.Name           = "cdremark";
            clmHeadSub3.Text           = "备注";
            clmHeadSub3.Width.Absolute = 200;

            districtNode.NodesColumns.Add(clmHeadSub1);
            districtNode.NodesColumns.Add(clmHeadSub2);
            districtNode.NodesColumns.Add(clmHeadSub3);
        }
コード例 #4
0
ファイル: ComboTree.cs プロジェクト: huamanhtuyen/VNACCS
        /// <summary>
        /// When overridden in a derived class, sets the specified array of objects in a collection in the derived class.
        /// </summary>
        /// <param name="items">An array of items.</param>
        protected virtual void SetItemsCore(IList items)
        {
            if(this.DesignMode) return;
            _AdvTree.BeginUpdate();
            _AdvTree.ClearAndDisposeAllNodes();

            bool isGrouping = !string.IsNullOrEmpty(_GroupingMembers);

            List<string> fieldNames = new List<string>();
            // Create Columns
            if (string.IsNullOrEmpty(this.DisplayMembers))
            {
                if (_AdvTree.Columns.Count > 0)
                {
                    foreach (DevComponents.AdvTree.ColumnHeader columnHeader in _AdvTree.Columns)
                    {
                        if(!string.IsNullOrEmpty(columnHeader.DataFieldName))
                            fieldNames.Add(columnHeader.DataFieldName);
                    }
                }
                if (fieldNames.Count == 0)
                {
                    _AdvTree.Columns.Clear();
                    if (_DataManager.List is Array)
                    {
                        DevComponents.AdvTree.ColumnHeader ch = new DevComponents.AdvTree.ColumnHeader("Items");
                        ch.Width.Relative = 100;
                        _AdvTree.Columns.Add(ch);
                        OnDataColumnCreated(new DataColumnEventArgs(ch));
                    }
                    else if (_DataManager != null)
                    {
                        PropertyDescriptorCollection properties = _DataManager.GetItemProperties();
                        foreach (PropertyDescriptor prop in properties)
                        {
                            fieldNames.Add(prop.Name);
                            DevComponents.AdvTree.ColumnHeader ch = new DevComponents.AdvTree.ColumnHeader(StringHelper.GetFriendlyName(prop.Name));
                            ch.DataFieldName = prop.Name;
                            ch.Width.Relative = Math.Max(10, 100 / properties.Count);
                            _AdvTree.Columns.Add(ch);
                            OnDataColumnCreated(new DataColumnEventArgs(ch));
                        }
                    }
                }
            }
            else
            {
                _AdvTree.Columns.Clear();
                if (_DisplayMembers != null && _DisplayMembers.Count > 0)
                {
                    foreach (BindingMemberInfo item in _DisplayMembers)
                    {
                        DevComponents.AdvTree.ColumnHeader ch = new DevComponents.AdvTree.ColumnHeader(StringHelper.GetFriendlyName(item.BindingMember));
                        ch.Tag = item;
                        ch.Width.Relative = Math.Max(10, 100 / _DisplayMembers.Count);
                        _AdvTree.Columns.Add(ch);
                        fieldNames.Add(item.BindingMember);
                        OnDataColumnCreated(new DataColumnEventArgs(ch));
                    }
                }
            }

            if (string.IsNullOrEmpty(_GroupingMembers) && string.IsNullOrEmpty(_ParentFieldNames))
            {
                for (int i = 0; i < items.Count; i++)
                {
                    object item = items[i];
                    Node node = CreateNode(_AdvTree.Nodes, item, i, fieldNames);
                }
            }
            else if (!string.IsNullOrEmpty(_ParentFieldNames))
            {
                isGrouping = true;

                Dictionary<string, Node> nodeParentCollection = new Dictionary<string, Node>();
                Dictionary<string, List<Node>> nodeNeedsParentCollection = new Dictionary<string, List<Node>>();
                string[] parentFields = _ParentFieldNames.Split(',');

                for (int i = 0; i < items.Count; i++)
                {
                    object item = items[i];
                    string nodeKey = GetItemText(item, parentFields[0]);
                    string parentKey = GetItemText(item, parentFields[1]);
                    Node parentNode = null;
                    if (nodeParentCollection.TryGetValue(parentKey, out parentNode))
                    {
                        Node node = CreateNode(parentNode.Nodes, item, i, fieldNames);
                        nodeParentCollection.Add(nodeKey, node);
                    }
                    else
                    {
                        Node node = CreateNode(this.Nodes, item, i, fieldNames);
                        List<Node> list = null;
                        if (!nodeNeedsParentCollection.TryGetValue(parentKey, out list))
                        {
                            list = new List<Node>();
                            nodeNeedsParentCollection.Add(parentKey, list);
                        }
                        list.Add(node);
                        nodeParentCollection.Add(nodeKey, node);
                    }
                }
                // If there are nodes that needed a parent process them now
                foreach (KeyValuePair<string, List<Node>> keyValue in nodeNeedsParentCollection)
                {
                    Node parentNode = null;
                    if (nodeParentCollection.TryGetValue(keyValue.Key, out parentNode))
                    {
                        foreach (Node node in keyValue.Value)
                        {
                            node.Remove();
                            parentNode.Nodes.Add(node);
                        }
                    }
                }
            }
            else
            {
                string[] groupFields = _GroupingMembers.Split(',');
                for (int i = 0; i < groupFields.Length; i++)
                {
                    groupFields[i] = groupFields[i].Trim();
                }
                Dictionary<string, Node> _GroupTable = new Dictionary<string, Node>();
                for (int i = 0; i < items.Count; i++)
                {
                    object item = items[i];
                    NodeCollection parentCollection = _AdvTree.Nodes;

                    // Find the parent collection to add item to
                    string key = "";
                    for (int gi = 0; gi < groupFields.Length; gi++)
                    {
                        string text = GetItemText(item, groupFields[gi]);
                        key += text.ToLower() + "/";
                        Node groupNode = null;
                        if (!_GroupTable.TryGetValue(key, out groupNode))
                        {
                            groupNode = CreateGroupNode(parentCollection, text);
                            _GroupTable.Add(key, groupNode);
                        }
                        parentCollection = groupNode.Nodes;
                    }

                    Node node = CreateNode(parentCollection, item, i, fieldNames);
                }
            }

            // If not grouping then remove the expand part space on left-hand side
            if (isGrouping)
            {
                _AdvTree.ExpandWidth = 14;
            }
            else
            {
                _AdvTree.ExpandWidth = 0;
            }

            _AdvTree.EndUpdate();
        }
コード例 #5
0
ファイル: ComboTree.cs プロジェクト: huamanhtuyen/VNACCS
 /// <summary>
 /// Initializes a new instance of the DataColumnEventArgs class.
 /// </summary>
 /// <param name="header"></param>
 public DataColumnEventArgs(DevComponents.AdvTree.ColumnHeader header)
 {
     ColumnHeader = header;
 }
コード例 #6
0
        private AdvTree.AdvTree CreatePropertyTree()
        {

            AdvTree.AdvTree tree = new DevComponents.AdvTree.AdvTree();
#if (!TRIAL)
            tree.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
#endif
            // Default node style
            ElementStyle elementStyle1 = new ElementStyle();
            elementStyle1.Name = STR_DefaultNodeStyle;
            elementStyle1.TextColor = System.Drawing.SystemColors.ControlText;
            elementStyle1.TextTrimming = eStyleTextTrimming.None;
            elementStyle1.TextLineAlignment = eStyleTextAlignment.Center;
            tree.Styles.Add(elementStyle1);
            tree.NodeStyle = elementStyle1;

            _ReadOnlyStyle = new ElementStyle();
            _ReadOnlyStyle.Name = "ReadOnlyStyle";
            _ReadOnlyStyle.TextColor = SystemColors.ControlDark;
            _ReadOnlyStyle.TextTrimming = eStyleTextTrimming.None;
            tree.Styles.Add(_ReadOnlyStyle);

            // Category style
            _CategoryStyle = new ElementStyle();
            _CategoryStyle.Name = "CategoryStyle";
            _CategoryStyle.TextColor = System.Drawing.SystemColors.ControlText;
            _CategoryStyle.BackColorSchemePart = eColorSchemePart.PanelBackground;
            _CategoryStyle.Font = new Font(this.Font, FontStyle.Bold);
            tree.Styles.Add(_CategoryStyle);

            // Value Changed Style
            _ValueChangedStyle = new ElementStyle();
            _ValueChangedStyle.Name = "ValueChangedStyle";
            _ValueChangedStyle.Font = new Font(this.Font, FontStyle.Bold);
            tree.Styles.Add(_ValueChangedStyle);

            tree.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline;
            tree.AllowDrop = false;
            tree.DragDropEnabled = false;
            tree.BackColor = System.Drawing.SystemColors.Window;
            tree.BackgroundStyle.Class = "TreeBorderKey";
            tree.Name = "propertyTree";
            tree.PathSeparator = ";";
            tree.Size = new System.Drawing.Size(150, 100);
            tree.TabIndex = 0;
            tree.ExpandWidth = 12;
            tree.ExpandButtonType = eExpandButtonType.Triangle;
            tree.Indent = 0;
            tree.GridRowLines = true;
            tree.GridColumnLines = true;
            tree.GridColumnLineResizeEnabled = true;
            tree.GridLinesColor = Color.WhiteSmoke;
            tree.HScrollBarVisible = false;
            tree.SelectionPerCell = true;
            tree.SelectionBoxStyle = eSelectionStyle.FullRowSelect;
            tree.SelectionFocusAware = false;
            tree.CellHorizontalSpacing = 2;
            tree.BeforeNodeSelect += new AdvTreeNodeCancelEventHandler(PropertyTreeBeforeNodeSelect);
            tree.KeyboardSearchEnabled = false;
            tree.KeyPress += new KeyPressEventHandler(PropertyTreeKeyPress);
            tree.ColumnResizing += new EventHandler(PropertyTreeColumnResized);
            tree.DoubleClick += new EventHandler(PropertyTreeDoubleClick);
            tree.Leave += new EventHandler(PropertyTreeLeave);

            AdvTree.ColumnHeader header = new DevComponents.AdvTree.ColumnHeader();
            header.Name = "propertyName";
            header.Width.Relative = 50;
            tree.Columns.Add(header);

            header = new DevComponents.AdvTree.ColumnHeader();
            header.Name = "propertyValue";
            header.Width.Relative = 50;
            tree.Columns.Add(header);

            tree.ColumnsVisible = false;

            tree.Dock = DockStyle.Fill;
            return tree;
        }
コード例 #7
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
            this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
            this.buttonRemoveItem = new DevComponents.DotNetBar.ButtonX();
            this.buttonAddItem = new DevComponents.DotNetBar.ButtonX();
            this.advTree1 = new DevComponents.AdvTree.AdvTree();
            this.columnHeader1 = new DevComponents.AdvTree.ColumnHeader();
            this.columnHeader2 = new DevComponents.AdvTree.ColumnHeader();
            this.node1 = new DevComponents.AdvTree.Node();
            this.elementStyle1 = new DevComponents.DotNetBar.ElementStyle();
            this.label1 = new System.Windows.Forms.Label();
            ((System.ComponentModel.ISupportInitialize)(this.advTree1)).BeginInit();
            this.SuspendLayout();
            // 
            // propertyGrid1
            // 
            this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.propertyGrid1.Location = new System.Drawing.Point(300, 3);
            this.propertyGrid1.Name = "propertyGrid1";
            this.propertyGrid1.Size = new System.Drawing.Size(284, 331);
            this.propertyGrid1.TabIndex = 4;
            this.propertyGrid1.PropertyValueChanged += new System.Windows.Forms.PropertyValueChangedEventHandler(this.propertyGrid1_PropertyValueChanged);
            // 
            // buttonX1
            // 
            this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonX1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
            this.buttonX1.Location = new System.Drawing.Point(515, 341);
            this.buttonX1.Name = "buttonX1";
            this.buttonX1.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor();
            this.buttonX1.Size = new System.Drawing.Size(69, 24);
            this.buttonX1.TabIndex = 5;
            this.buttonX1.Text = "&Close";
            this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
            // 
            // buttonRemoveItem
            // 
            this.buttonRemoveItem.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonRemoveItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonRemoveItem.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
            this.buttonRemoveItem.Enabled = false;
            this.buttonRemoveItem.FocusCuesEnabled = false;
            this.buttonRemoveItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.buttonRemoveItem.Location = new System.Drawing.Point(32, 341);
            this.buttonRemoveItem.Name = "buttonRemoveItem";
            this.buttonRemoveItem.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor();
            this.buttonRemoveItem.Size = new System.Drawing.Size(24, 24);
            this.buttonRemoveItem.TabIndex = 3;
            this.buttonRemoveItem.Click += new System.EventHandler(this.buttonRemoveItem_Click);
            // 
            // buttonAddItem
            // 
            this.buttonAddItem.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonAddItem.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.buttonAddItem.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
            this.buttonAddItem.FocusCuesEnabled = false;
            this.buttonAddItem.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.buttonAddItem.Location = new System.Drawing.Point(4, 341);
            this.buttonAddItem.Name = "buttonAddItem";
            this.buttonAddItem.Shape = new DevComponents.DotNetBar.RoundRectangleShapeDescriptor();
            this.buttonAddItem.Size = new System.Drawing.Size(24, 24);
            this.buttonAddItem.TabIndex = 1;
            this.buttonAddItem.Click += new System.EventHandler(this.buttonAddItem_Click);
            // 
            // advTree1
            // 
            this.advTree1.AccessibleRole = System.Windows.Forms.AccessibleRole.Outline;
            this.advTree1.AllowDrop = true;
            this.advTree1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)));
            this.advTree1.BackColor = System.Drawing.SystemColors.Window;
            // 
            // 
            // 
            this.advTree1.BackgroundStyle.Class = "TreeBorderKey";
            this.advTree1.Columns.Add(this.columnHeader1);
            this.advTree1.Columns.Add(this.columnHeader2);
            this.advTree1.ExpandButtonType = DevComponents.AdvTree.eExpandButtonType.Triangle;
            this.advTree1.ExpandWidth = 18;
            this.advTree1.Location = new System.Drawing.Point(3, 3);
            this.advTree1.Name = "advTree1";
            this.advTree1.Nodes.AddRange(new DevComponents.AdvTree.Node[] {
            this.node1});
            this.advTree1.NodeStyle = this.elementStyle1;
            this.advTree1.PathSeparator = ";";
            this.advTree1.SelectionBoxStyle = DevComponents.AdvTree.eSelectionStyle.FullRowSelect;
            this.advTree1.Size = new System.Drawing.Size(291, 332);
            this.advTree1.Styles.Add(this.elementStyle1);
            this.advTree1.SuspendPaint = false;
            this.advTree1.TabIndex = 0;
            this.advTree1.Text = "advTree1";
            this.advTree1.AfterNodeDrop += new DevComponents.AdvTree.TreeDragDropEventHandler(this.advTree1_AfterNodeDrop);
            this.advTree1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.advTree1_MouseUp);
            this.advTree1.AfterNodeSelect += new DevComponents.AdvTree.AdvTreeNodeEventHandler(this.advTree1_AfterNodeSelect);
            // 
            // columnHeader1
            // 
            this.columnHeader1.Name = "columnHeader1";
            this.columnHeader1.Text = "Text";
            this.columnHeader1.Width.Relative = 70;
            // 
            // columnHeader2
            // 
            this.columnHeader2.Name = "columnHeader2";
            this.columnHeader2.Text = "Name";
            this.columnHeader2.Width.Relative = 30;
            // 
            // node1
            // 
            this.node1.Expanded = true;
            this.node1.Name = "node1";
            this.node1.Text = "node1";
            // 
            // elementStyle1
            // 
            this.elementStyle1.Name = "elementStyle1";
            this.elementStyle1.TextColor = System.Drawing.SystemColors.ControlText;
            // 
            // label1
            // 
            this.label1.AutoSize = true;
            this.label1.Location = new System.Drawing.Point(153, 352);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(141, 13);
            this.label1.TabIndex = 6;
            this.label1.Text = "Drag && drop items to re-order";
            this.label1.Anchor = AnchorStyles.Bottom | AnchorStyles.Left;
            // 
            // CrumbBarItemsEditor
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = Color.White;
            this.Controls.Add(this.label1);
            this.Controls.Add(this.buttonX1);
            this.Controls.Add(this.propertyGrid1);
            this.Controls.Add(this.buttonRemoveItem);
            this.Controls.Add(this.buttonAddItem);
            this.Controls.Add(this.advTree1);
            this.Name = "CrumbBarItemsEditor";
            this.Size = new System.Drawing.Size(587, 373);
            this.Load += new System.EventHandler(this.CrumbBarItemsEditor_Load);
            ((System.ComponentModel.ISupportInitialize)(this.advTree1)).EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();

        }
コード例 #8
0
        private void StructureAdvTreeSecondLevelColumns(Node groupNode)
        {
            if (groupNode.NodesColumns.Count > 0)
            {
                groupNode.NodesColumns.Clear();
            }

            DevComponents.AdvTree.ColumnHeader docNumber = new DevComponents.AdvTree.ColumnHeader();
            docNumber.Name           = "docNumber";
            docNumber.Text           = "组件";
            docNumber.Width.Absolute = 165;

            DevComponents.AdvTree.ColumnHeader mpsDateRequiredStr = new DevComponents.AdvTree.ColumnHeader();
            mpsDateRequiredStr.Name           = "mpsDateRequiredStr";
            mpsDateRequiredStr.Text           = "需求日期";
            mpsDateRequiredStr.Width.Absolute = 85;

            DevComponents.AdvTree.ColumnHeader description = new DevComponents.AdvTree.ColumnHeader();
            description.Name           = "description";
            description.Text           = "组件说明";
            description.Width.Absolute = 68;

            DevComponents.AdvTree.ColumnHeader quantityPerAssembly = new DevComponents.AdvTree.ColumnHeader();
            quantityPerAssembly.Name           = "quantityPerAssembly";
            quantityPerAssembly.Text           = "每个装";
            quantityPerAssembly.Width.Absolute = 105;

            DevComponents.AdvTree.ColumnHeader wipSupplyTypeCn = new DevComponents.AdvTree.ColumnHeader();
            wipSupplyTypeCn.Name           = "wipSupplyTypeCn";
            wipSupplyTypeCn.Text           = "供应类型";
            wipSupplyTypeCn.Width.Absolute = 140;

            DevComponents.AdvTree.ColumnHeader supplySubinventory = new DevComponents.AdvTree.ColumnHeader();
            supplySubinventory.Name           = "netQuantity";
            supplySubinventory.Text           = "子库";
            supplySubinventory.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader requiredQuantity = new DevComponents.AdvTree.ColumnHeader();
            requiredQuantity.Name           = "requiredQuantity";
            requiredQuantity.Text           = "需求数量";
            requiredQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader transactionQuantity = new DevComponents.AdvTree.ColumnHeader();
            transactionQuantity.Name           = "transactionQuantity";
            transactionQuantity.Text           = "现有数量";
            transactionQuantity.Width.Absolute = 65;


            DevComponents.AdvTree.ColumnHeader totalGetMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalGetMaterialQuantity.Name           = "totalGetMaterialQuantity";
            totalGetMaterialQuantity.Text           = "领料数";
            totalGetMaterialQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader wmsPreparationQuantity = new DevComponents.AdvTree.ColumnHeader();
            wmsPreparationQuantity.Name           = "wmsPreparationQuantity";
            wmsPreparationQuantity.Text           = "备料数量";
            wmsPreparationQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader getMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            getMaterialQuantity.Name           = "getMaterialQuantity";
            getMaterialQuantity.Text           = "领料数量";
            getMaterialQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader quantityGetMaterialDifference = new DevComponents.AdvTree.ColumnHeader();
            quantityGetMaterialDifference.Name           = "quantityGetMaterialDifference";
            quantityGetMaterialDifference.Text           = "领料差异数量";
            quantityGetMaterialDifference.Width.Absolute = 65;

            groupNode.NodesColumns.Add(docNumber);
            groupNode.NodesColumns.Add(mpsDateRequiredStr);
            groupNode.NodesColumns.Add(description);
            groupNode.NodesColumns.Add(quantityPerAssembly);
            groupNode.NodesColumns.Add(wipSupplyTypeCn);
            groupNode.NodesColumns.Add(supplySubinventory);
            groupNode.NodesColumns.Add(requiredQuantity);
            groupNode.NodesColumns.Add(transactionQuantity);
            groupNode.NodesColumns.Add(totalGetMaterialQuantity);
            groupNode.NodesColumns.Add(wmsPreparationQuantity);
            groupNode.NodesColumns.Add(getMaterialQuantity);
            groupNode.NodesColumns.Add(quantityGetMaterialDifference);

            groupNode.NodesColumnsHeaderVisible = true;
        }
コード例 #9
0
        private void StructureAdvTreeFristLevelColumns(AdvTree advTree)
        {
            if (advTree.Columns.Count > 0)
            {
                advTree.Columns.Clear();
            }



            DevComponents.AdvTree.ColumnHeader taskId = new DevComponents.AdvTree.ColumnHeader();
            taskId.ColumnName     = "ascmWipEntities_Name";
            taskId.DataFieldName  = "ascmWipEntities_Name";
            taskId.Name           = "ascmWipEntities_Name";
            taskId.Text           = "作业号";
            taskId.Width.Absolute = 90;



            DevComponents.AdvTree.ColumnHeader productLine = new DevComponents.AdvTree.ColumnHeader();
            productLine.ColumnName     = "scheduledStartDateCn";
            productLine.DataFieldName  = "scheduledStartDateCn";
            productLine.Name           = "scheduledStartDateCn";
            productLine.Text           = "作业日期";
            productLine.Width.Absolute = 60;

            DevComponents.AdvTree.ColumnHeader warehouserId = new DevComponents.AdvTree.ColumnHeader();
            warehouserId.ColumnName     = "ascmDiscreteJobs_line";
            warehouserId.DataFieldName  = "ascmDiscreteJobs_line";
            warehouserId.Name           = "ascmDiscreteJobs_line";
            warehouserId.Text           = "生产线";
            warehouserId.Width.Absolute = 75;

            DevComponents.AdvTree.ColumnHeader categoryStatusCN = new DevComponents.AdvTree.ColumnHeader();
            categoryStatusCN.ColumnName     = "_mtlCategoryStatus";
            categoryStatusCN.DataFieldName  = "_mtlCategoryStatus";
            categoryStatusCN.Name           = "_mtlCategoryStatus";
            categoryStatusCN.Text           = "物料类别状态";
            categoryStatusCN.Width.Absolute = 73;



            DevComponents.AdvTree.ColumnHeader tipCN = new DevComponents.AdvTree.ColumnHeader();
            tipCN.ColumnName     = "onlineTime";
            tipCN.DataFieldName  = "onlineTime";
            tipCN.Name           = "onlineTime";
            tipCN.Text           = "上线时间";
            tipCN.Width.Absolute = 40;

            DevComponents.AdvTree.ColumnHeader taskTime = new DevComponents.AdvTree.ColumnHeader();
            taskTime.ColumnName     = "ascmWorker_name";
            taskTime.DataFieldName  = "ascmWorker_name";
            taskTime.Name           = "ascmWorker_name";
            taskTime.Text           = "责任人";
            taskTime.Width.Absolute = 40;



            DevComponents.AdvTree.ColumnHeader totalRequiredQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalRequiredQuantity.ColumnName     = "taskWipState";
            totalRequiredQuantity.DataFieldName  = "taskWipState";
            totalRequiredQuantity.Name           = "taskWipState";
            totalRequiredQuantity.Text           = "状态";
            totalRequiredQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader totalWmsPreparationQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalWmsPreparationQuantity.ColumnName     = "uploadDate";
            totalWmsPreparationQuantity.DataFieldName  = "uploadDate";
            totalWmsPreparationQuantity.Name           = "uploadDate";
            totalWmsPreparationQuantity.Text           = "上传日期";
            totalWmsPreparationQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader totalGetMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalGetMaterialQuantity.ColumnName     = "taskStarTime";
            totalGetMaterialQuantity.DataFieldName  = "taskStarTime";
            totalGetMaterialQuantity.Name           = "taskStarTime";
            totalGetMaterialQuantity.Text           = "开始时间";
            totalGetMaterialQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader taskendTime = new DevComponents.AdvTree.ColumnHeader();
            taskendTime.ColumnName     = "taskEndTime";
            taskendTime.DataFieldName  = "taskEndTime";
            taskendTime.Name           = "taskEndTime";
            taskendTime.Text           = "结束时间";
            taskendTime.Width.Absolute = 70;



            DevComponents.AdvTree.ColumnHeader ascmMaterialItem_DocNumber = new DevComponents.AdvTree.ColumnHeader();
            ascmMaterialItem_DocNumber.ColumnName     = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.DataFieldName  = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.Name           = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.Text           = "装配件";
            ascmMaterialItem_DocNumber.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader ascmMaterialItem_Description = new DevComponents.AdvTree.ColumnHeader();
            ascmMaterialItem_Description.ColumnName     = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.DataFieldName  = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.Name           = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.Text           = "装配件描述";
            ascmMaterialItem_Description.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader netQuantity = new DevComponents.AdvTree.ColumnHeader();
            netQuantity.ColumnName     = "netQuantity";
            netQuantity.DataFieldName  = "netQuantity";
            netQuantity.Name           = "netQuantity";
            netQuantity.Text           = "计划数量";
            netQuantity.Width.Absolute = 70;


            advTree.Columns.Add(taskId);
            advTree.Columns.Add(productLine);
            advTree.Columns.Add(warehouserId);
            advTree.Columns.Add(categoryStatusCN);
            advTree.Columns.Add(tipCN);
            advTree.Columns.Add(taskTime);
            advTree.Columns.Add(totalRequiredQuantity);
            advTree.Columns.Add(totalWmsPreparationQuantity);
            advTree.Columns.Add(totalGetMaterialQuantity);
            advTree.Columns.Add(taskendTime);
            advTree.Columns.Add(ascmMaterialItem_DocNumber);
            advTree.Columns.Add(ascmMaterialItem_Description);
            advTree.Columns.Add(netQuantity);
        }
コード例 #10
0
ファイル: NodeCellLayout.cs プロジェクト: huamanhtuyen/VNACCS
		public ColumnInfo(int width, bool visible, ColumnHeader h, int absoluteIndex)
		{
			this.Width=width;
			this.Visible=visible;
            this.ColumnHeader = h;
            this.AutoSize = h.Width.AutoSize;
            this.AbsoluteIndex = absoluteIndex;
		}
        public test()
        {
            //this.DropDownStyle = ComboBoxStyle.DropDownList;
            //this.FlatStyle = FlatStyle.Standard;
            //this.Items.Clear();
            //this.Items.Add("");
            //this.Items.AddRange(new List<校系資料>(校系資料庫.Items.Values).ToArray());
            this.LicenseKey             = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
            this.校系                     = new DevComponents.AdvTree.ColumnHeader();
            this.代碼                     = new DevComponents.AdvTree.ColumnHeader();
            this.ButtonDropDown.Visible = true;
            //
            // 校系
            //
            this.校系.ColumnName     = "校系";
            this.校系.DataFieldName  = "校系";
            this.校系.Editable       = false;
            this.校系.MinimumWidth   = 150;
            this.校系.Name           = "校系";
            this.校系.Text           = "校系";
            this.校系.Width.Absolute = 180;
            //
            // 代碼
            //
            this.代碼.ColumnName     = "代碼";
            this.代碼.Editable       = false;
            this.代碼.MinimumWidth   = 75;
            this.代碼.Name           = "代碼";
            this.代碼.Text           = "代碼";
            this.代碼.Width.Absolute = 90;
            this.Columns.Add(this.校系);
            this.Columns.Add(this.代碼);

            Dictionary <string, List <校系資料> > schoolGroup = new Dictionary <string, List <校系資料> >();

            foreach (var item in 校系資料庫.Items.Values)
            {
                if (!schoolGroup.ContainsKey(item.校名))
                {
                    schoolGroup.Add(item.校名, new List <校系資料>());
                }
                schoolGroup[item.校名].Add(item);
            }
            List <Node> schoolNodes = new List <Node>();

            foreach (var school in schoolGroup.Keys)
            {
                Node schoolNode = new Node();
                schoolNode.Cells.Clear();
                schoolNodes.Add(schoolNode);
                schoolNode.Cells.Add(new DevComponents.AdvTree.Cell(school));
                schoolNode.Cells.Add(new DevComponents.AdvTree.Cell(""));
                List <Node> nodes = new List <Node>();
                foreach (var item in schoolGroup[school])
                {
                    Node node = new Node();
                    node.Cells.Clear();
                    nodes.Add(node);
                    node.Cells.Add(new DevComponents.AdvTree.Cell(item.系名));
                    node.Cells.Add(new DevComponents.AdvTree.Cell(item.代碼));
                    node.Tag = item;
                    //if (item == _CurrentData.分發結果)
                    //{
                    //    selectedNode = node;
                    //}
                }
                ;
                schoolNode.Nodes.AddRange(nodes.ToArray());
            }
            Nodes.AddRange(schoolNodes.ToArray());
            this.SelectionChanging += delegate(object sender, AdvTreeNodeCancelEventArgs e)
            {
                e.Cancel = (e.Node != null && e.Node.Tag == null);
                if (e.Cancel)
                {
                    if (e.Node != null && e.Action != eTreeAction.Code)
                    {
                        e.Node.Toggle(eTreeAction.Code);
                    }
                    if (SelectedNode != null && SelectedNode.Parent != null && !SelectedNode.Parent.Expanded)
                    {
                        SelectedNode = null;
                    }
                }
            };
            this.PopupClose += delegate
            {
                this.校系.Width.Absolute = 300;
                if (SelectedNode != null)
                {
                    SelectedNode.Cells[1].Text = "";
                    SelectedNode.Cells[0].Text = ((校系資料)SelectedNode.Tag).校名 + " " + ((校系資料)SelectedNode.Tag).系名;
                }
                //if (EditComplete != null)
                //{
                //    EditComplete(this, new EventArgs());
                //}
            };
            this.PopupShowing += delegate
            {
                this.校系.Width.Absolute = 180;
                if (SelectedNode != null)
                {
                    校系資料 item = (校系資料)SelectedNode.Tag;
                    SelectedNode.Cells[1].Text = item.代碼;
                    SelectedNode.Cells[0].Text = item.系名;
                }
            };
        }
コード例 #12
0
        private void StructureAdvTreeSecondLevelColumns(Node groupNode)
        {
            if (groupNode.NodesColumns.Count > 0)
                groupNode.NodesColumns.Clear();

            DevComponents.AdvTree.ColumnHeader docNumber = new DevComponents.AdvTree.ColumnHeader();
            docNumber.Name = "docNumber";
            docNumber.Text = "组件";
            docNumber.Width.Absolute = 165;

            DevComponents.AdvTree.ColumnHeader mpsDateRequiredStr = new DevComponents.AdvTree.ColumnHeader();
            mpsDateRequiredStr.Name = "mpsDateRequiredStr";
            mpsDateRequiredStr.Text = "需求日期";
            mpsDateRequiredStr.Width.Absolute = 85;

            DevComponents.AdvTree.ColumnHeader description = new DevComponents.AdvTree.ColumnHeader();
            description.Name = "description";
            description.Text = "组件说明";
            description.Width.Absolute = 68;

            DevComponents.AdvTree.ColumnHeader quantityPerAssembly = new DevComponents.AdvTree.ColumnHeader();
            quantityPerAssembly.Name = "quantityPerAssembly";
            quantityPerAssembly.Text = "每个装";
            quantityPerAssembly.Width.Absolute = 105;

            DevComponents.AdvTree.ColumnHeader wipSupplyTypeCn = new DevComponents.AdvTree.ColumnHeader();
            wipSupplyTypeCn.Name = "wipSupplyTypeCn";
            wipSupplyTypeCn.Text = "供应类型";
            wipSupplyTypeCn.Width.Absolute = 140;

            DevComponents.AdvTree.ColumnHeader supplySubinventory = new DevComponents.AdvTree.ColumnHeader();
            supplySubinventory.Name = "netQuantity";
            supplySubinventory.Text = "子库";
            supplySubinventory.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader requiredQuantity = new DevComponents.AdvTree.ColumnHeader();
            requiredQuantity.Name = "requiredQuantity";
            requiredQuantity.Text = "需求数量";
            requiredQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader transactionQuantity = new DevComponents.AdvTree.ColumnHeader();
            transactionQuantity.Name = "transactionQuantity";
            transactionQuantity.Text = "现有数量";
            transactionQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader totalGetMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalGetMaterialQuantity.Name = "totalGetMaterialQuantity";
            totalGetMaterialQuantity.Text = "领料数";
            totalGetMaterialQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader wmsPreparationQuantity = new DevComponents.AdvTree.ColumnHeader();
            wmsPreparationQuantity.Name = "wmsPreparationQuantity";
            wmsPreparationQuantity.Text = "备料数量";
            wmsPreparationQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader getMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            getMaterialQuantity.Name = "getMaterialQuantity";
            getMaterialQuantity.Text = "领料数量";
            getMaterialQuantity.Width.Absolute = 65;

            DevComponents.AdvTree.ColumnHeader quantityGetMaterialDifference = new DevComponents.AdvTree.ColumnHeader();
            quantityGetMaterialDifference.Name = "quantityGetMaterialDifference";
            quantityGetMaterialDifference.Text = "领料差异数量";
            quantityGetMaterialDifference.Width.Absolute = 65;

            groupNode.NodesColumns.Add(docNumber);
            groupNode.NodesColumns.Add(mpsDateRequiredStr);
            groupNode.NodesColumns.Add(description);
            groupNode.NodesColumns.Add(quantityPerAssembly);
            groupNode.NodesColumns.Add(wipSupplyTypeCn);
            groupNode.NodesColumns.Add(supplySubinventory);
            groupNode.NodesColumns.Add(requiredQuantity);
            groupNode.NodesColumns.Add(transactionQuantity);
            groupNode.NodesColumns.Add(totalGetMaterialQuantity);
            groupNode.NodesColumns.Add(wmsPreparationQuantity);
            groupNode.NodesColumns.Add(getMaterialQuantity);
            groupNode.NodesColumns.Add(quantityGetMaterialDifference);

            groupNode.NodesColumnsHeaderVisible = true;
        }
コード例 #13
0
        private void StructureAdvTreeFristLevelColumns(AdvTree advTree)
        {
            if (advTree.Columns.Count > 0)
                advTree.Columns.Clear();

            DevComponents.AdvTree.ColumnHeader taskId = new DevComponents.AdvTree.ColumnHeader();
            taskId.ColumnName = "ascmWipEntities_Name";
            taskId.DataFieldName = "ascmWipEntities_Name";
            taskId.Name = "ascmWipEntities_Name";
            taskId.Text = "作业号";
            taskId.Width.Absolute = 90;

            DevComponents.AdvTree.ColumnHeader productLine = new DevComponents.AdvTree.ColumnHeader();
            productLine.ColumnName = "scheduledStartDateCn";
            productLine.DataFieldName = "scheduledStartDateCn";
            productLine.Name = "scheduledStartDateCn";
            productLine.Text = "作业日期";
            productLine.Width.Absolute = 60;

            DevComponents.AdvTree.ColumnHeader warehouserId = new DevComponents.AdvTree.ColumnHeader();
            warehouserId.ColumnName = "ascmDiscreteJobs_line";
            warehouserId.DataFieldName = "ascmDiscreteJobs_line";
            warehouserId.Name = "ascmDiscreteJobs_line";
            warehouserId.Text = "生产线";
            warehouserId.Width.Absolute = 75;

            DevComponents.AdvTree.ColumnHeader categoryStatusCN = new DevComponents.AdvTree.ColumnHeader();
            categoryStatusCN.ColumnName = "_mtlCategoryStatus";
            categoryStatusCN.DataFieldName = "_mtlCategoryStatus";
            categoryStatusCN.Name = "_mtlCategoryStatus";
            categoryStatusCN.Text = "物料类别状态";
            categoryStatusCN.Width.Absolute = 73;

            DevComponents.AdvTree.ColumnHeader tipCN = new DevComponents.AdvTree.ColumnHeader();
            tipCN.ColumnName = "onlineTime";
            tipCN.DataFieldName = "onlineTime";
            tipCN.Name = "onlineTime";
            tipCN.Text = "上线时间";
            tipCN.Width.Absolute = 40;

            DevComponents.AdvTree.ColumnHeader taskTime = new DevComponents.AdvTree.ColumnHeader();
            taskTime.ColumnName = "ascmWorker_name";
            taskTime.DataFieldName = "ascmWorker_name";
            taskTime.Name = "ascmWorker_name";
            taskTime.Text = "责任人";
            taskTime.Width.Absolute = 40;

            DevComponents.AdvTree.ColumnHeader totalRequiredQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalRequiredQuantity.ColumnName = "taskWipState";
            totalRequiredQuantity.DataFieldName = "taskWipState";
            totalRequiredQuantity.Name = "taskWipState";
            totalRequiredQuantity.Text = "状态";
            totalRequiredQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader totalWmsPreparationQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalWmsPreparationQuantity.ColumnName = "uploadDate";
            totalWmsPreparationQuantity.DataFieldName = "uploadDate";
            totalWmsPreparationQuantity.Name = "uploadDate";
            totalWmsPreparationQuantity.Text = "上传日期";
            totalWmsPreparationQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader totalGetMaterialQuantity = new DevComponents.AdvTree.ColumnHeader();
            totalGetMaterialQuantity.ColumnName = "taskStarTime";
            totalGetMaterialQuantity.DataFieldName = "taskStarTime";
            totalGetMaterialQuantity.Name = "taskStarTime";
            totalGetMaterialQuantity.Text = "开始时间";
            totalGetMaterialQuantity.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader taskendTime = new DevComponents.AdvTree.ColumnHeader();
            taskendTime.ColumnName = "taskEndTime";
            taskendTime.DataFieldName = "taskEndTime";
            taskendTime.Name = "taskEndTime";
            taskendTime.Text = "结束时间";
            taskendTime.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader ascmMaterialItem_DocNumber = new DevComponents.AdvTree.ColumnHeader();
            ascmMaterialItem_DocNumber.ColumnName = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.DataFieldName = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.Name = "ascmMaterialItem_DocNumber";
            ascmMaterialItem_DocNumber.Text = "装配件";
            ascmMaterialItem_DocNumber.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader ascmMaterialItem_Description = new DevComponents.AdvTree.ColumnHeader();
            ascmMaterialItem_Description.ColumnName = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.DataFieldName = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.Name = "ascmMaterialItem_Description";
            ascmMaterialItem_Description.Text = "装配件描述";
            ascmMaterialItem_Description.Width.Absolute = 70;

            DevComponents.AdvTree.ColumnHeader netQuantity = new DevComponents.AdvTree.ColumnHeader();
            netQuantity.ColumnName = "netQuantity";
            netQuantity.DataFieldName = "netQuantity";
            netQuantity.Name = "netQuantity";
            netQuantity.Text = "计划数量";
            netQuantity.Width.Absolute = 70;

            advTree.Columns.Add(taskId);
            advTree.Columns.Add(productLine);
            advTree.Columns.Add(warehouserId);
            advTree.Columns.Add(categoryStatusCN);
            advTree.Columns.Add(tipCN);
            advTree.Columns.Add(taskTime);
            advTree.Columns.Add(totalRequiredQuantity);
            advTree.Columns.Add(totalWmsPreparationQuantity);
            advTree.Columns.Add(totalGetMaterialQuantity);
            advTree.Columns.Add(taskendTime);
            advTree.Columns.Add(ascmMaterialItem_DocNumber);
            advTree.Columns.Add(ascmMaterialItem_Description);
            advTree.Columns.Add(netQuantity);
        }