/// <summary>
        /// 方案项目选择
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Tv_FaList_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        {
            if (this.BeforeNode != null && e.Node.FullPath == this.BeforeNode.FullPath)
            {
                return;
            }

            if (this.BeforeNode != null)    //如果当前选中之前有选中的节点,则需要做一次Tag记录
            {
                this.SaveTmpDataToTag();
            }

            this.BeforeNode = e.Node as CLDC_MeterUI.TreeViewCheckStyel.ThreeStateTreeNode;       //保存当前节点

            if (e.Node.Text != "新建...")
            {
                this._FaName = e.Node.Text;
            }
            else
            {
                this._FaName = "";
            }

            tableLayoutPanel1.Enabled = true;

            if (e.Node.Tag is List <CLDC_DataCore.Struct.StXieBo> )
            {
                this.SetData(e.Node.Tag as List <CLDC_DataCore.Struct.StXieBo>);
            }
            else
            {
                this.SetData(_XieBo.getXieBoFa(e.Node.Text));
            }
        }
        public void LoadXieBo(string XieBoFa)
        {
            XieBoItem = new List <CLDC_DataCore.Struct.StXieBo>();

            CLDC_DataCore.SystemModel.Item.csXieBo _XieBoItem = new CLDC_DataCore.SystemModel.Item.csXieBo();

            XieBoItem = _XieBoItem.getXieBoFa(XieBoFa);
        }
Example #3
0
        /// <summary>
        ///
        /// </summary>
        public void LoadXieBo()
        {
            XieBoItem = new List <StXieBo>();
            if (XieBo != 1)
            {
                return;
            }

            CLDC_DataCore.SystemModel.Item.csXieBo _XieBoItem = new CLDC_DataCore.SystemModel.Item.csXieBo();

            XieBoItem = _XieBoItem.getXieBoFa(XieBoFa);
        }