示例#1
0
        private void tV1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            TreeNode node = e.Node;

            nSelDir = nWLRpt.GetDirByKey(node.Name);
            LSelRpt = nSelDir.GetRpt(chBChild.Checked);
            UpdatedGV1();
        }
示例#2
0
        private void AddNodeToTV(TreeNode nNode, CWLRptDir ndir)
        {
            foreach (CWLRptDir nd in ndir.LsDir)
            {
                TreeNode nNode1 = new TreeNode(nd.desc);
                nNode1.Name       = nd.key;
                nNode1.ImageIndex = 0;
                AddNodeToTV(nNode1, nd);
                nNode.Nodes.Add(nNode1);
            }

            /*foreach (CWLRpt nd in ndir.LsRpt)
             * {
             *  TreeNode nNode1 = new TreeNode(nd.desc);
             *  nNode1.Name = nd.key;
             *  nNode1.ImageIndex = 1;
             *  nNode1.SelectedImageIndex = 1;
             *  nNode.Nodes.Add(nNode1);
             * }
             */
        }
示例#3
0
        public frmC报表维护(Form _Owner)
        {
            InitializeComponent();

            this.MdiParent = _Owner;
            richText1      = ((frmMain)_Owner).richText1;

            nWLRptM       = new CWLRptManager();
            nWLRptM.sPath = System.Environment.CurrentDirectory;
            nWLRptM.sFIle = System.Environment.CurrentDirectory + "\\TableInf.xml";
            string sMsg = "";

            nWLRptM.LoadFromXML(ref sMsg);
            if (sMsg.Length > 0)
            {
                CABCDGV.InsertRichMsg(richText1, sMsg, true);
            }
            nWLRpt = nWLRptM.nRpt;
            CABCDGV.InitializeDGV(dGV1, sCol, bCol, true);
            Init();
            this.DoubleBuffered = true;
        }